/*
  Onepager – dunkles Grav-Theme
  Überschriften: Unbounded (liegt in fonts/), Fließtext: GuardianEgyp (eigene Dateien in fonts/ ablegen,
  Namen: guardianegyp-regular.woff2 / .woff / .ttf). Ohne GuardianEgyp greift eine Slab-Serif-Ersatzschrift.
*/

/* ---------- Schriften ---------- */
@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "GuardianEgyp-Regular";
    src: local("GuardianEgyp-Regular"),
         url("../fonts/guardianegyp-regular.woff2") format("woff2"),
         url("../fonts/guardianegyp-regular.woff") format("woff"),
         url("../fonts/guardianegyp-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
    --bg: #0a0a0a;
    --surface: #131313;
    --line: rgba(255, 255, 255, .12);
    --text: #ececec;
    --soft: #bdbdbd;
    --mute: #8c8c8c;
    --accent: #FD0042;
    --head: "Unbounded", system-ui, sans-serif;
    --body: "GuardianEgyp-Regular", "Roboto Slab", Rockwell, Georgia, serif;
    --wrap: 1024px;
    --bar: 56px;
    --gap: clamp(14px, 2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

body {
    background: var(--bg);
    color: var(--text);
    font: 400 18px/1.6 var(--body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body.ov-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Kopfzeile ---------- */
.bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--bar);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 clamp(16px, 3vw, 40px);
    background: rgba(10, 10, 10, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand {
    font: 600 13px/1 var(--head);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}
.brand:hover { color: var(--accent); }
.nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
    font: 500 11px/1 var(--head);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mute);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.nav a:hover,
.nav a.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Sektionen ---------- */
.wrap { width: min(var(--wrap), 100% - clamp(32px, 6vw, 80px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - clamp(32px, 6vw, 80px)); }

.sec {
    padding: clamp(64px, 10vw, 140px) 0;
    scroll-margin-top: var(--bar);
}
.sec + .sec { border-top: 1px solid var(--line); }
.sec-page { padding-top: calc(var(--bar) + clamp(48px, 8vw, 100px)); min-height: 70vh; }

.sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.kicker {
    font: 500 11px/1.4 var(--head);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 16px;
}
.sec-title {
    font: 600 clamp(1.6rem, 4vw, 3rem)/1.1 var(--head);
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

/* Hero */
.sec-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--bar) + 40px) 0 clamp(48px, 8vw, 96px);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    opacity: .45;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg), transparent 65%);
}
.sec-hero .wrap { position: relative; }
.hero-title {
    font: 600 clamp(2.6rem, 10vw, 8.5rem)/.95 var(--head);
    letter-spacing: -.03em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.hero-sub {
    margin-top: 22px;
    font: 500 clamp(.85rem, 1.6vw, 1.1rem)/1.4 var(--head);
    letter-spacing: .04em;
    color: var(--soft);
}
.hero-text { margin-top: 28px; }

/* Hero mit Bild: zentriert, 40 % der Seitenbreite (anpassbar über logo_width) */
.sec-hero.has-logo { align-items: center; justify-content: center; text-align: center; padding: var(--bar) 0; }
.hero-logo { position: relative; width: 100%; display: flex; justify-content: center; }
.hero-logo img { width: calc(var(--w, 40) * 1vw); max-width: 100%; height: auto; }
.has-logo .hero-info { margin-top: clamp(24px, 4vw, 48px); }
.has-logo .hero-buttons { justify-content: center; }
.has-logo .hero-text { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-block;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 13px 20px;
    font: 500 11px/1 var(--head);
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Fließtext */
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font: 600 1.2rem/1.25 var(--head); margin-top: 1.8em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1em; color: var(--soft); }
.prose strong { font-weight: 400; color: #fff; }
.intro { margin-bottom: clamp(28px, 4vw, 48px); color: var(--soft); }

.text-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.has-side .text-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }

/* ---------- Elemente (Kacheln, Galerie, Liste) ---------- */
.items {
    --cols: 3;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}
.cols-1 { --cols: 1; }
.cols-2 { --cols: 2; }
.cols-3 { --cols: 3; }
.cols-4 { --cols: 4; }
.cols-5 { --cols: 5; }

.item-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    aspect-ratio: var(--aspect, 1 / 1);
}
.item-media img,
.item-media .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .3s ease;
}
.item-media .ph { display: block; background: linear-gradient(135deg, #1a1a1a, #0e0e0e); }
a.item-media:hover img { transform: scale(1.03); filter: brightness(1.12); }

.play {
    position: absolute;
    left: 50%; top: 50%;
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s, border-color .2s;
}
.play::after {
    content: "";
    position: absolute;
    left: 24px; top: 19px;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
a.item-media:hover .play { background: var(--accent); border-color: var(--accent); }

.item-body { padding-top: 14px; }
.item-title { font: 600 15px/1.25 var(--head); letter-spacing: -.005em; }
.item-meta { margin-top: 4px; font-size: 14px; color: var(--mute); }
.item-text { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.item-text p + p { margin-top: .6em; }
.item-sources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.item-sources a {
    font: 500 10px/1.4 var(--head);
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}
.item-sources a:hover { color: #fff; border-bottom-color: var(--accent); }
.text-sources { margin-top: 1.4em; }

/* Galerie: 2–5 Bilder pro Reihe, Titel/Text nur im Overlay */
.layout-gallery .item-body,
.layout-masonry .item-body,
.text-gallery .item-body { display: none; }
.layout-gallery .items,
.text-gallery .items { align-items: start; }
.items.aspect-auto .item-media { aspect-ratio: auto; }
.items.aspect-auto .item-media img { height: auto; }
.text-gallery { margin-top: clamp(32px, 5vw, 64px); }

/* Mauerwerk-Spalten (unterschiedliche Bildhöhen) */
.layout-masonry .items { display: block; column-count: var(--cols); column-gap: var(--gap); }
.layout-masonry .item { break-inside: avoid; margin-bottom: var(--gap); }
.layout-masonry .item-media { aspect-ratio: auto; border: 0; }
.layout-masonry .item-media img { height: auto; }

/* Stack: jedes Element in voller Breite (Videos, Konzerte) */
.layout-stack .items { --cols: 1 !important; gap: clamp(48px, 7vw, 96px); }
.layout-stack .item-body { padding-top: 18px; }
.layout-stack .item-title { font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
.layout-stack .item-text { max-width: 64ch; font-size: 17px; }
.layout-stack .item:not(.has-media) { padding-top: 28px; border-top: 1px solid var(--line); }

/* Row: Bild links, Text rechts, jedes Element in voller Breite (Releases) */
.layout-row .items { --cols: 1 !important; gap: clamp(40px, 6vw, 80px); }
.layout-row .item.has-media {
    display: grid;
    grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
}
.layout-row .item-body { padding-top: 0; }
.layout-row .item-title { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.layout-row .item-text { font-size: 17px; max-width: 60ch; }

/* Liste */
.layout-list .items { display: block; border-top: 1px solid var(--line); }
.layout-list .item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 22px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.layout-list .item.has-media { grid-template-columns: 88px minmax(0, 1fr); }
.layout-list .item-media { aspect-ratio: 1 / 1; }
.layout-list .item-body { padding: 0; }

/* Bild neben Text */
.text-side .item-media { aspect-ratio: var(--aspect, 4 / 5); }

/* ---------- Fußzeile ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot a { color: var(--mute); }
.foot a:hover { color: #fff; }

/* ---------- Overlay ---------- */
.ov {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 56px 16px 16px;
    background: rgba(5, 5, 5, .95);
}
.ov[hidden] { display: none; }
.ov-stage {
    flex: 1 1 0;
    min-height: 0;
    width: min(1280px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ov-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ov-stage.is-video {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    width: min(1200px, 100%, calc((100vh - 190px) * 16 / 9));
    background: #000;
}
.ov-stage iframe,
.ov-stage video { width: 100%; height: 100%; border: 0; background: #000; }
.ov-cap {
    flex: 0 0 auto;
    width: min(1200px, 100%);
    max-height: 26vh;
    overflow: auto;
}
.ov-cap:empty { display: none; }
.ov-cap .item-body { display: block; padding: 0; }
.ov-cap .item-title { font-size: 16px; }

.ov button {
    position: absolute;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
    font: 300 36px/1 var(--head);
    padding: 10px 14px;
    transition: color .2s;
}
.ov button:hover { color: var(--accent); }
.ov-x { top: 6px; right: 10px; font-size: 40px; }
.ov-prev, .ov-next { top: 50%; transform: translateY(-50%); }
.ov-prev { left: 4px; }
.ov-next { right: 4px; }
.ov-prev[hidden], .ov-next[hidden] { display: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
    .items.cols-4, .items.cols-5 { --cols: 3; }
    .items.cols-3 { --cols: 2; }
    .has-side .text-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .hero-logo img { width: 72vw; }
    .layout-row .item.has-media { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    body { font-size: 17px; }
    .items { --cols: 1 !important; }
    .layout-gallery .items, .text-gallery .items, .layout-masonry .items { --cols: 2 !important; }
    .nav { gap: 16px; }
    .ov-prev, .ov-next { top: auto; bottom: 8px; transform: none; }
    .ov-prev { left: 8px; }
    .ov-next { right: 8px; }
    .ov-cap { max-height: 22vh; padding-bottom: 44px; }
}
