/* Les Digitales Bern – Fotoarchiv */
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #051012;
  --cone: radial-gradient(120% 60% at 50% 0%, #1B4B53 0%, #0B2529 45%, #051012 80%) #051012;
  --cone-top: #163F46;
  --fg: #EDEDEA;
  --muted: #A8B5B5;
  --soft: #C2CCCB;
  --line: rgba(237, 237, 234, .14);
  --line-strong: rgba(237, 237, 234, .25);
  --acc: #D7FF3A;
  --glitch-a: #D7FF3A;
  --glitch-b: #623AFF; /* Komplementärfarbe, wird aus config.json → accent berechnet */
  --display: 'Unbounded', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --gx: clamp(16px, 4vw, 48px);
  --max: 1320px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: #0B0B0D; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gx); padding-right: var(--gx); }
.wrap-x { padding-left: var(--gx); padding-right: var(--gx); }
.acc { color: var(--acc); }
.dim { color: var(--muted); }
.mono { font-family: var(--mono); color: var(--fg); }
.origin { font-family: var(--mono); font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.arrow { color: var(--acc); transition: transform .25s; display: inline-block; }

/* Kopfzeile */
/* Kopfzeile: immer oben fixiert, zuerst transparent, beim Scrollen mit Petrol-Hintergrund */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px max(var(--gx), calc((100% - var(--max)) / 2 + var(--gx))); border-bottom: 1px solid transparent; background: transparent; transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.top.is-scrolled { background: rgba(9, 40, 46, .75); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body:not(.has-hero) > main { padding-top: var(--top-h, 76px); }
html { scroll-padding-top: var(--top-h, 76px); }
.brand { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.brand .dim { color: inherit; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.nav .nav-ss svg { width: 12px; height: 12px; color: var(--acc); }
.nav .nav-ss[aria-current] { color: var(--acc); }
.nav .nav-cta { padding: 0 16px; background: var(--acc); color: #0B0B0D; font-weight: 500; }
.nav .nav-cta:hover { color: #0B0B0D; filter: brightness(1.08); }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; }
.lang a { padding: 0 4px; min-height: 36px; color: var(--muted); }
.lang a + a::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.lang a[aria-current] { color: var(--acc); }
.lang a:hover { color: var(--acc); }

/* gemeinsame Typo */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.eyebrow a { text-decoration: none; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.02em; line-height: 1; }
.h2--acc { color: var(--acc); }
.lead { margin: 0; max-width: 540px; color: var(--soft); }
.section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 32px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.cone { background: var(--cone); }
.cone--page { min-height: 70vh; }

/* Startseite: Hero mit Ken-Burns-Shuffle */
.hero { position: relative; height: clamp(520px, 92svh, 900px); overflow: hidden; background: #020607; }
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 40%); }
/* .is-out: Bild blendet aus, der Zoom läuft dabei weiter (sonst springt es kurz auf die Ausgangsgrösse zurück) */
.slide.is-on img, .slide.is-out img { animation: kb var(--dur, 9s) ease-out forwards; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.16) translate(var(--tx, -2%), var(--ty, -1.5%)); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,7,.55) 0%, rgba(2,6,7,.12) 30%, rgba(2,6,7,.2) 60%, var(--cone-top) 100%); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 6vw, 64px); display: flex; flex-direction: column; gap: 16px; max-width: var(--max); margin: 0 auto; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5.9vw, 84px); line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub { color: var(--acc); }
.hero-desc { margin: 0 0 6px; max-width: 36em; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: var(--fg); text-shadow: 0 1px 18px rgba(0,0,0,.65); }
.hero-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--mono); font-size: 14px; color: var(--soft); }

/* Kacheln der Jahre */
.tile { display: block; text-decoration: none; color: inherit; }
.tile-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #020607; }
.tile--feat .tile-img { aspect-ratio: 21 / 9; }
.tile-img img, .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .3s; }
.tile:hover img, .card:hover img { transform: scale(1.05); }
.tile:hover, .card:hover { color: inherit; }
.tile:hover .tile-year, .card:hover .nm { text-shadow: -3px 0 var(--glitch-a), 3px 0 var(--glitch-b); }
.tile:hover .arrow, .card:hover .arrow { transform: translateX(6px); }
.badge { position: absolute; top: 18px; left: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0B0B0D; background: var(--acc); padding: 6px 10px; }
.tile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tile-year { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: .95; letter-spacing: -.03em; }
.tile--feat .tile-year { font-size: clamp(48px, 7vw, 96px); }
.tile-info { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 14px; color: var(--soft); }
.tile--feat { margin-bottom: 0; }
.section--latest { padding-bottom: 0; }
/* Startseite: Einleitung mit Portrait */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); padding-bottom: 0; }
.about-img { box-sizing: border-box; width: clamp(88px, 15vw, 190px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid var(--acc); }
.about-text a { color: var(--acc); }
.about-sig { margin: 14px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--acc); }
.about-sig a { color: inherit; text-decoration: none; }
.about-sig a:hover { text-decoration: underline; }
.about-text { margin: 0; max-width: 44em; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.6; color: var(--fg); }
@media (max-width: 520px) { .about { align-items: start; gap: 18px; } .about-text { font-size: 16px; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 44px 28px; }

/* Jahresseite */
.yhero { position: relative; height: clamp(420px, 62svh, 600px); overflow: hidden; background: #020607; }
.kb { animation: kbslow 30s ease-out infinite alternate; }
@keyframes kbslow { from { transform: scale(1.02); } to { transform: scale(1.12) translate(1.5%, -1.5%); } }
.yhero-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: var(--max); margin: 0 auto; }
.yhero-title { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(72px, 13vw, 184px); line-height: .85; letter-spacing: -.03em; }
.facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 20px; font-family: var(--mono); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.hint { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.hint svg { flex: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 40px 26px; }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #020607; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.nm { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.card-name .origin { font-size: 13px; }
.fest { border-top: 1px solid var(--line); margin-top: 48px; }
.more { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--acc); }
.fest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fest-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #020607; }
.fest-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.fest-grid a:hover img { transform: scale(1.05); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 72px; border-top: 1px solid var(--line); margin-top: 48px; }
.wrap.pager, .wrap.fest { position: relative; border-top: 0; }
.wrap.pager::before, .wrap.fest::before { content: ''; position: absolute; top: 0; left: var(--gx); right: var(--gx); border-top: 1px solid var(--line); }
.yhero .crumbs { color: var(--soft); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.pg { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 40px); text-decoration: none; }
.pg-mid { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* Artist-Seite */
.intro { max-width: 900px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.intro .crumbs { margin-bottom: 4px; }
.a-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6.4vw, 92px); line-height: 1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.a-title .origin { font-size: clamp(16px, 1.8vw, 24px); letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
.a-text { max-width: 660px; color: #D3DBDA; font-size: 17px; line-height: 1.65; }
.a-text p { margin: 0 0 .8em; }
/* lange Texte: zugeklappt ca. 6 Zeilen, unten ausgeblendet */
.a-text.is-clamped { max-height: 10em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: -4px 0 8px; padding: 0; border: 0; background: none; color: var(--acc); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.more-btn::after { content: '↓'; transition: transform .25s; }
.more-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.more-btn:hover { filter: brightness(1.1); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: 13px; }
.chip:hover { border-color: var(--fg); }

/* Galerie: Zeilen, Reihenfolge bleibt erhalten */
.gal { --rh: 250px; display: flex; flex-wrap: wrap; gap: 10px; }
.gal::after { content: ''; flex-grow: 999999; }
.ph { position: relative; display: block; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--rh)); overflow: hidden; background: #020607; cursor: zoom-in; }
.ph i { display: block; padding-bottom: calc(100% / var(--r)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ph:hover img { transform: scale(1.03); }

/* Download-Block */
.dl { margin-top: 56px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); background: rgba(5, 16, 18, .7); display: flex; flex-direction: column; gap: 22px; }
.dl-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.dl-head { display: flex; flex-direction: column; gap: 8px; }
.dl-title { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.dl-title svg { width: 26px; height: 26px; color: var(--acc); }
.dl-meta { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dl-ok { color: var(--acc); }
.dl-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--soft); }
.dl-note p { margin: 0 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; cursor: pointer; background: var(--acc); color: #0B0B0D; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.btn:hover { color: #0B0B0D; filter: brightness(1.08); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn-ghost { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.i-lock, .i-down { display: inline-flex; }
.i-down { display: none; }
.is-unlocked .i-lock { display: none; }
.is-unlocked .i-down { display: inline-flex; }
.pager--artists a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.pager--artists .r { text-align: right; align-items: flex-end; }
.pg-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pg-name { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px); }
.pg-name .origin { font-size: 14px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: #020809; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px clamp(10px, 3vw, 28px); font-family: var(--mono); font-size: 13px; }
.lb-count { color: var(--muted); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: inherit; text-decoration: none; cursor: pointer; }
.lb-x { padding: 0; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 clamp(4px, 2vw, 20px); touch-action: pan-y; user-select: none; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .2s, transform .2s; }
.lb-nav { flex: none; width: 52px; height: 52px; border: 0; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.lb-cap { margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lb-swipe { display: none; }

/* Passwort-Dialog */
.pw { border: 1px solid var(--line-strong); background: #0B2529; color: var(--fg); padding: 0; width: min(440px, calc(100vw - 32px)); }
.pw::backdrop { background: rgba(2, 8, 9, .82); }
.pw-in { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pw-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.pw-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.pw-text a, .dl-note a { color: var(--acc); }
.pw-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pw input { min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--fg); font-family: var(--mono); font-size: 16px; }
.pw-err { margin: 0; color: #FF8FB8; font-size: 14px; }
.pw-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Fuss */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
/* FAQ */
.faq { max-width: 820px; }
.faq .a-title, .ss .a-title, .legal .a-title { margin-top: 16px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-family: var(--mono); font-weight: 400; font-size: 26px; line-height: 1; color: var(--acc); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--acc); }
.faq-a { padding: 0 0 22px; max-width: 680px; color: var(--soft); font-size: 17px; }
.faq-a p { margin: 0 0 .8em; }
.faq-a a { color: var(--acc); }
.nav .nav-faq[aria-current] { color: var(--acc); }
.legal { max-width: 720px; }
.legal h2 { margin: 44px 0 12px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.legal p { margin: 0 0 12px; color: var(--soft); }
.legal .legal-h1 { margin: 72px 0 0; font-size: clamp(26px, 3.2vw, 40px); }
.legal .legal-date { margin-top: 44px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nf { min-height: 50vh; display: flex; flex-direction: column; gap: 18px; }

/* Hover auf Fotos: Duoton "Nacht" - Foto schwarzweiss, Lichter in Akzentfarbe, Schatten fast wie der Seitenhintergrund */
.tile-img, .card-img, .ph, .fest-grid a { isolation: isolate; }
.fx { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: var(--acc); mix-blend-mode: multiply; }
.fx2 { background: #041E23; mix-blend-mode: lighten; }
.tile img, .card img, .ph img, .fest-grid img { transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .35s; }
:is(.tile, .card, .ph, .fest-grid a):is(:hover, :focus-visible) img { filter: grayscale(1) contrast(1.55) brightness(1.1); }
:is(.tile, .card, .ph, .fest-grid a):is(:hover, :focus-visible) .fx { opacity: 1; }


/* Slideshow: Filter */
.ss-lead { margin-top: 18px; }
.ss-filter { display: grid; gap: 40px; margin: 44px 0 40px; }
.ss-h { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.ss-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.ss-head .ss-h { margin: 0; }
.ss-search { width: min(100%, 280px); min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .15); color: var(--fg); font: 14px var(--mono); }
.ss-search::placeholder { color: var(--muted); }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: 500 14px var(--mono); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.ss-chip:hover { border-color: var(--acc); }
.ss-chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #0B0B0D; }
.ss-chip--imp { color: var(--soft); font-style: italic; }
.ss-group { margin-bottom: 22px; }
.ss-y { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--soft); }
.ss-hint, .ss-empty { margin: 0; color: var(--muted); font-size: 14px; }
.ss-bar { position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 calc(var(--gx) * -1); padding: 14px var(--gx) calc(14px + env(safe-area-inset-bottom)); background: rgba(9, 40, 46, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.ss-count { margin-right: auto; font-family: var(--mono); font-size: 14px; color: var(--fg); }
.ss-sel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ss-sel select { min-height: 44px; padding: 0 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: 14px var(--mono); text-transform: none; }
.ss-sel option { color: #0B0B0D; }
.btn[disabled] { opacity: .4; cursor: not-allowed; filter: none; }

/* Slideshow: Wiedergabe */
.ssp { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; }
.ssp[hidden] { display: none; }
.ssp-stage { position: absolute; inset: 0; touch-action: pan-y; user-select: none; }
.ssp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.ssp-slide.is-on { opacity: 1; }
.ssp-bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(40px) brightness(.35) saturate(.8); }
.ssp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ssp-slide.is-on .ssp-img, .ssp-slide.is-out .ssp-img { animation: sspz var(--sspd, 8s) ease-out forwards; }
@keyframes sspz { from { transform: scale(1); } to { transform: scale(1.05); } }
.ssp-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding: 60px clamp(14px, 3vw, 36px) calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); transition: opacity .45s; }
.ssp-cap { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.ssp-cap b { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2.2vw, 26px); color: var(--fg); }
.ssp-cap b span { font-family: var(--mono); font-weight: 400; font-size: .6em; color: var(--muted); }
.ssp-ctrls { display: flex; align-items: center; gap: 8px; }
.ssp-count { margin-right: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ssp-btn { background: rgba(0, 0, 0, .35); }
.ssp-btn:hover { border-color: var(--acc); color: var(--acc); }
.ssp .i-play { display: none; }
.ssp.is-paused .i-play { display: inline-flex; }
.ssp.is-paused .i-pause { display: none; }
.ssp.is-idle .ssp-ui { opacity: 0; pointer-events: none; }
.ssp.is-idle { cursor: none; }
@media (prefers-reduced-motion: reduce) { .ssp-slide.is-on .ssp-img, .ssp-slide.is-out .ssp-img { animation: none; } }

@media (max-width: 760px) {
  .ss-bar .btn { width: 100%; }
  .ssp-ctrls { width: 100%; justify-content: space-between; }
  .ssp-count { margin-right: auto; }
}
@media (max-width: 520px) {
  .nav .nav-ss span { display: none; }
  .nav .nav-ss svg { width: 16px; height: 16px; }
}

@media (max-width: 760px) {
  .gal { --rh: 150px; gap: 6px; }
  .fest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-nav { display: none; }
  .lb-swipe { display: inline; }
  .nav { gap: 6px 16px; }
  .brand .dim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-on img, .kb, .dot { animation: none; }
  .slide { transition: none; }
}
