/* ===== Schriften (SIL Open Font License, siehe fonts/LIZENZ.txt) ===== */
@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/BodoniModa-normal-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/BodoniModa-normal-latin.woff2") format("woff2");
  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: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/BodoniModa-italic-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/BodoniModa-italic-latin.woff2") format("woff2");
  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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/SchibstedGrotesk-normal-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/SchibstedGrotesk-normal-latin.woff2") format("woff2");
  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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  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;
}

/* ===== Farben wie auf hendrik4k.com, dazu das Rot der Dunkelkammer ===== */
:root {
  color-scheme: dark;
  --raum: #050403;
  --kammer: #0d0806;
  --glas: #f2ebe2;
  --glas-leise: #a0968c;
  --chrom: #c8ccd2;
  --wachs: #ff2b12;
  --glut: #ffad5c;
  --linie: rgba(242, 235, 226, 0.14);
  --chrom-verlauf: linear-gradient(180deg, #ffffff 0%, #d4d8de 34%, #5f646b 50%, #eceef1 64%, #8d9299 100%);
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: clamp(16px, 4vw, 56px);
  --zeile: clamp(150px, 21vw, 330px); /* Zielhöhe einer Bildreihe */
  --abstand: clamp(10px, 1.4vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--raum);
  color: var(--glas);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
/* Rotlicht der Dunkelkammer: ein warmer Schein von oben. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 60, 20, 0.16), rgba(255, 60, 20, 0));
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--glut); outline-offset: 3px; }

.sprung {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--raum);
}
.sprung:focus { top: 12px; }

.kicker, .kopf nav, .streifen, .unter, .kapitel-nr, figcaption, .gruppe, .ausruestung dt, .sucher-daten, .fuss {
  font-family: var(--mono);
  text-transform: uppercase;
}

/* ===== Kopf ===== */
.kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--rand) 22px;
}
.logo, .schlagzeile span {
  background: var(--chrom-verlauf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo {
  font: 700 1.35rem/1 var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.kopf nav { display: flex; gap: 1.2em; font-size: 0.72rem; letter-spacing: 0.2em; }
.kopf nav a { text-decoration: none; transition: color 0.2s; }
.kopf nav a:hover { color: var(--glut); }

/* ===== Start: Text links, Sucher rechts ===== */
.start {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(24px, 6vh, 72px) var(--rand) clamp(48px, 9vh, 110px);
}
.kicker { margin: 0 0 1.4rem; color: var(--glut); font-size: 0.74rem; letter-spacing: 0.24em; }
.schlagzeile {
  margin: 0;
  font: 400 clamp(2.9rem, 5.1vw, 5.8rem)/0.9 var(--serif);
  font-variation-settings: "opsz" 96;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.schlagzeile span { display: block; width: max-content; max-width: 100%; padding-right: 0.06em; }
.schlagzeile em {
  display: block;
  margin: 0.04em 0 0.02em 0.6em;
  color: var(--wachs);
  font-style: italic;
  font-size: 0.8em;
  line-height: 0.9;
  text-transform: none;
  text-shadow: 0 0 28px rgba(255, 43, 18, 0.45);
}
.lead { max-width: 34ch; margin: 2rem 0 0; color: var(--glas); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

.ausruestung { display: grid; gap: 0.55rem; max-width: 30rem; margin: 2.2rem 0 0; }
.ausruestung div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--linie);
}
.ausruestung dt { color: var(--glut); font-size: 0.7rem; letter-spacing: 0.18em; line-height: 1.9; }
.ausruestung dd { margin: 0; color: var(--glas-leise); font-size: 0.95rem; }

/* Sucher: Chromrahmen, Eckmarken, Fokusfeld und Aufnahmedaten wie im Display. */
.sucher {
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(160deg, #eceef1, #5f646b 28%, #1a1a1c 52%, #8d9299 78%, #2a2b2e);
  box-shadow: 0 30px 80px rgba(255, 60, 20, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.sucher-bild {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.sucher-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ecke { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, 0.85); }
.ecke-lo { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.ecke-ro { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.ecke-lu { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; }
.ecke-ru { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }
.fokus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 40px;
  border: 1.5px solid var(--glut);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 173, 92, 0.6);
  animation: fokus 2.6s ease-in-out 0.4s 1 both;
}
@keyframes fokus {
  0% { width: 120px; height: 90px; opacity: 0; }
  40% { width: 54px; height: 40px; opacity: 1; border-color: #fff; }
  55% { border-color: var(--glut); }
  100% { width: 54px; height: 40px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .fokus { animation: none; } }
.sucher-daten {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 26px 50px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-align: center;
}

/* ===== Inhalt als Filmstreifen ===== */
.streifen {
  position: sticky;
  top: 0;
  z-index: 10;
  border-block: 1px solid var(--linie);
  background: rgba(5, 4, 3, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* Perforation oben und unten */
.streifen::before, .streifen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(242, 235, 226, 0.16) 0 8px, transparent 8px 20px);
}
.streifen::before { top: 4px; }
.streifen::after { bottom: 4px; }
.streifen ol {
  display: flex;
  gap: clamp(18px, 3.5vw, 56px);
  margin: 0;
  padding: 18px var(--rand);
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.streifen ol::-webkit-scrollbar { display: none; }
.streifen a { text-decoration: none; transition: color 0.2s; }
.streifen a:hover, .streifen a[aria-current="true"] { color: var(--glut); }
.streifen span { margin-right: 0.7em; color: var(--wachs); }

/* ===== Kapitel ===== */
.kapitel {
  padding: clamp(64px, 12vh, 140px) var(--rand) 0;
  scroll-margin-top: 50px;
}
.kapitel-kopf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 2.5vw, 36px);
  align-items: end;
  max-width: 1100px;
  margin-bottom: clamp(28px, 5vh, 52px);
}
.kapitel-nr {
  grid-row: span 3;
  align-self: start;
  color: transparent;
  font: 400 clamp(3.4rem, 8vw, 7rem)/0.8 var(--serif);
  -webkit-text-stroke: 1px rgba(255, 173, 92, 0.75);
}
.kapitel-kopf h2 {
  margin: 0;
  font: 400 clamp(2.2rem, 5vw, 4.4rem)/0.95 var(--serif);
  font-variation-settings: "opsz" 96;
  text-transform: uppercase;
}
.unter { margin: 0.7rem 0 0; color: var(--glut); font-size: 0.72rem; letter-spacing: 0.2em; }
.kapitel-text { max-width: 56ch; margin: 0.9rem 0 0; color: var(--glas-leise); }

/* Bildreihen mit gleicher Höhe: Breite wächst mit dem Seitenverhältnis (--r). */
.bilder {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--abstand) * 2.2) var(--abstand);
}
.bilder::after { content: ""; flex: 2 1 0; }
.bild {
  flex: var(--r) 1 calc(var(--zeile) * var(--r));
  min-width: 0;
  margin: 0;
}
.bild.breit { flex-basis: 100%; }
.bild-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--kammer);
  cursor: zoom-in;
}
.bild-link img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--r);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s;
}
.bild.breit .bild-link img { max-height: 78vh; }
/* Eckmarken des Suchers erscheinen beim Darüberfahren */
.bild-link::before, .bild-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 0 solid var(--glut);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.bild-link::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; transform: translate(6px, 6px); }
.bild-link::after { right: 10px; bottom: 10px; border-width: 0 2px 2px 0; transform: translate(-6px, -6px); }
.bild-link:hover::before, .bild-link:hover::after,
.bild-link:focus-visible::before, .bild-link:focus-visible::after { opacity: 1; transform: none; }
.bild-link:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .bild-link img { transition: none; } .bild-link:hover img { transform: none; } }

figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.bildnr { color: var(--wachs); }
.bildtitel { color: var(--glas); }
.daten { color: var(--glas-leise); letter-spacing: 0.08em; }

.gruppe {
  flex-basis: 100%;
  margin: 0.4rem 0 -0.3rem;
  color: var(--glut);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}
.gruppe::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.8rem;
  background: linear-gradient(90deg, rgba(255, 173, 92, 0.9), rgba(255, 173, 92, 0));
}

/* ===== Fuß ===== */
.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(80px, 14vh, 160px);
  padding: 28px var(--rand) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linie);
  color: var(--glas-leise);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}
.fuss p { margin: 0; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.fuss a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
  text-decoration-color: var(--chrom);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.fuss a:hover { color: #fff; text-decoration-color: var(--wachs); }

/* ===== Leuchtkasten (Großansicht) ===== */
.leuchtkasten {
  width: 100vw;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 4, 3, 0.96);
  color: var(--glas);
}
.leuchtkasten::backdrop { background: rgba(0, 0, 0, 0.6); }
.leuchtkasten figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  height: 100%;
  margin: 0;
  padding: clamp(16px, 4vh, 48px) clamp(16px, 6vw, 96px) clamp(12px, 3vh, 28px);
}
.leuchtkasten img {
  align-self: center;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
}
.leuchtkasten figcaption { justify-content: center; text-align: center; }
.lk-knopf {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(200, 204, 210, 0.4);
  border-radius: 50%;
  background: rgba(5, 4, 3, 0.7);
  color: var(--glas);
  font: 400 1.6rem/1 var(--serif);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lk-knopf:hover { border-color: var(--glut); color: var(--glut); }
.lk-zu { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lk-zurueck, .lk-weiter { top: 50%; transform: translateY(-50%); }
.lk-zurueck { left: 12px; }
.lk-weiter { right: 12px; }

/* ===== Schmale Bildschirme ===== */
@media (max-width: 860px) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .sucher { order: -1; padding: 6px; border-radius: 12px; }
  .sucher-bild { border-radius: 8px; }
  .ecke { width: 18px; height: 18px; }
  .ecke-lo, .ecke-ro { top: 10px; }
  .ecke-lu, .ecke-ru { bottom: 10px; }
  .ecke-lo, .ecke-lu { left: 10px; }
  .ecke-ro, .ecke-ru { right: 10px; }
  .sucher-daten { padding: 20px 34px 10px; font-size: 0.58rem; letter-spacing: 0.08em; }
}
@media (max-width: 560px) {
  :root { --zeile: 150px; }
  .kopf nav { gap: 0.9em; font-size: 0.62rem; letter-spacing: 0.1em; }
  .logo { font-size: 1.1rem; letter-spacing: 0.1em; }
  .ausruestung div { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.7rem; }
  .lk-zurueck, .lk-weiter { top: auto; bottom: 12px; transform: none; }
  .leuchtkasten figure { padding-bottom: 72px; }
}
