:root {
  color-scheme: dark;
  --bg: #141516;
  --text: #f2f0e8;
  --subtle: #c4c5bf;
  --accent: #cadaD1;
  --line: #424545;
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .38; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rahmen { width: min(100% - clamp(2rem, 9vw, 8rem), 1220px); margin-inline: auto; }
.kopf, .kopf nav, .fuss nav { display: flex; align-items: center; }
.kopf { min-height: 65px; justify-content: space-between; gap: 1rem; }
.kopf nav, .fuss nav { gap: clamp(1rem, 3vw, 2.4rem); font-size: .88rem; }
.kopf a:hover, .fuss a:hover, #download:hover { text-decoration: underline; text-underline-offset: .28em; }
.wortmarke { text-transform: uppercase; font: 600 .76rem ui-monospace, monospace; letter-spacing: .06em; }

.auftakt { position: relative; isolation: isolate; overflow: hidden; background: #202223; }
.hintergruende, .hintergruende img, .auftakt::before { position: absolute; inset: 0; }
.hintergruende { z-index: -2; }
.hintergruende img { height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity .85s ease; }
.hintergruende .aktiv { opacity: 1; }
.auftakt::before { content: ""; z-index: -1; background: linear-gradient(90deg, #101213 0%, #101213ee 25%, #1012136c 53%, transparent 86%), linear-gradient(0deg, #101213bb, transparent 30%); }
.auftakt-inhalt { min-height: clamp(36rem, 48vw, 43rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 3rem 5.6rem; }
.gattung { margin: 0 0 1.3rem; font: 500 clamp(.65rem, 1.5vw, .78rem) ui-monospace, monospace; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
h1 { font-size: clamp(3.25rem, 8.4vw, 7.5rem); line-height: .9; letter-spacing: -.06em; margin: 0 0 2rem; }
.player { width: min(100%, 25rem); padding: .9rem 1.05rem .93rem; background: #1b1e1fee; }
.player-kopf { display: flex; justify-content: space-between; gap: 1em; align-items: baseline; margin-bottom: .55rem; font-size: .9rem; }
.player-kopf span { font: .76rem ui-monospace, monospace; color: var(--subtle); }
audio { display: block; width: 100%; height: 39px; }
.audio-aktionen { font-size: .8rem; color: var(--accent); margin-top: .62rem; }
#download[aria-disabled="true"] { color: var(--subtle); cursor: default; text-decoration: none; }
#audio-status { color: var(--subtle); margin: .35rem 0 0; }
.bildsteuerung { position: absolute; right: max(1rem, calc((100% - 1220px) / 2)); bottom: 1.15rem; display: flex; align-items: center; gap: .3rem; padding: .15rem .35rem; background: #141516d9; }
.bildsteuerung button { background: transparent; border: 0; min-width: 32px; height: 36px; }
.bildpunkt::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border: 1px solid var(--accent); border-radius: 50%; }
.bildpunkt[aria-pressed="true"]::after { background: var(--accent); }

.abschnitt { padding-block: clamp(1.6rem, 4.5vw, 3.6rem); border-bottom: 1px solid var(--line); }
.handlung { display: grid; grid-template-columns: 1fr 2.6fr; column-gap: 2rem; align-items: start; }
h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.35rem); letter-spacing: -.035em; line-height: 1.1; }
.handlung p { margin: 0; max-width: 64ch; color: var(--subtle); font-size: clamp(1rem, 1.65vw, 1.18rem); line-height: 1.65; }
.galerie-kopf, .dialog-fuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.15rem; }
.galerie-steuerung { display: flex; gap: .55rem; flex-shrink: 0; }
.galerie-steuerung button, #schliessen { border: 1px solid var(--line); background: #26292a; min-width: 45px; height: 42px; font-size: 1.32rem; }
.galerie-steuerung button:not(:disabled):hover, #schliessen:hover { background: #3c4241; }
.bildreihe { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * .85rem) / 4); gap: .85rem; margin: 0; padding: 5px 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bildreihe::-webkit-scrollbar { display: none; }
.bildreihe li { min-width: 0; scroll-snap-align: start; }
.bildreihe a { display: block; }
.bildreihe a:focus-visible { outline-offset: -2px; }
.bildreihe img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.88); transition: filter .2s ease; }
.bildreihe a:hover img, .bildreihe a:focus-visible img { filter: brightness(1.12); }
.bildreihe a span { display: block; padding: .55rem .1rem; font-size: .82rem; color: var(--subtle); }
.fuss { padding-block: 1.4rem 2rem; }
.fuss nav { justify-content: flex-end; color: var(--subtle); }

#grossansicht { width: min(95vw, 1400px); max-width: none; max-height: 96dvh; padding: 0; border: 1px solid var(--line); background: #151616; color: var(--text); }
#grossansicht::backdrop { background: #000d; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-inhalt { position: relative; }
#schliessen { position: absolute; top: .65rem; right: .65rem; z-index: 1; }
#grossbild { max-height: 81dvh; object-fit: contain; background: #090909; }
.dialog-fuss { margin: 0; padding: .6rem .8rem; }
.dialog-fuss p { margin: 0; }

@media (max-width: 720px) {
  .handlung { grid-template-columns: 1fr; gap: .8rem; }
  .bildreihe { grid-auto-columns: calc((100% - .85rem) / 2); }
  .auftakt-inhalt { min-height: 35rem; justify-content: flex-end; padding-bottom: 4.75rem; }
  .auftakt::before { background: linear-gradient(0deg, #101213 6%, #101213d6 36%, #10121321 85%); }
  .hintergruende img { object-position: 55% top; }
}
@media (max-width: 380px) {
  .kopf { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .75rem; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
