@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-display: swap; src: url(fonts/schibsted-grotesk-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #edeeea;          /* Sandstein, kühl */
  --paper: #f6f6f3;
  --ink: #1e2b25;         /* Fensterladen-Schwarzgrün */
  --muted: #5a665f;
  --line: #cfd3cb;
  --green: #2f5e4a;       /* Fensterläden */
  --sun: #e8890c;         /* das alte Schanzeneck-Orange */
  --cold: #2f6f9f;        /* Sole */
  --earth: #b9ab93;
  --earth-deep: #9d8e75;
  --sky: #dfe6e6;
  --house: #f3efe2;
  --roof: #6e6a72;
  --moon: #b9b8a8;
  --cloud: #b4bbbe;
  --rain: #2f6f9f;
  --snow: #7f939c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171d1a; --paper: #1f2622; --ink: #e6e9e4; --muted: #a2ada6; --line: #36403a;
    --green: #7fb59a; --sun: #f4a03a; --cold: #6fa8d6;
    --earth: #4a4233; --earth-deep: #3b3428; --sky: #1f2a2c; --house: #2c302a; --roof: #55525a; --moon: #e6e2cf; --cloud: #6b7478; --rain: #6fa8d6; --snow: #e6e2cf;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 "Schibsted Grotesk", system-ui, sans-serif;
}
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--sun); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--line); }
.kopf .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.marke { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.marke span { color: var(--sun); }
.kopf nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.kopf nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.kopf nav a:hover { color: var(--sun); }

/* Einstieg */
.einstieg .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; padding-block: 56px 48px; }
.einstieg h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 0 0 24px; }
.einstieg p { max-width: 34em; margin: 0; color: var(--muted); font-size: 1.15rem; }
.einstieg figure { margin: 0; }
.einstieg figure img { border-radius: 3px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.einstieg figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Abschnitte */
section { padding-block: 64px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; margin: 0 0 12px; }
.vorspann { max-width: 40em; color: var(--muted); margin: 0 0 36px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; font-weight: 700; }

/* Werte */
.werte-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.schnitt { width: 100%; height: auto; display: block; }
.schnitt .wert { font: 700 22px "Schibsted Grotesk", system-ui, sans-serif; fill: var(--ink); }
.schnitt .bez { font: 400 15px "Schibsted Grotesk", system-ui, sans-serif; fill: var(--muted); }
.schnitt .tiefe { font: 500 13px "Schibsted Grotesk", system-ui, sans-serif; fill: var(--ink); opacity: .75; }
.stand { font-size: .95rem; color: var(--muted); margin: 0 0 28px; }
.stand.alt { color: var(--sun); }
.zahlen h3 { margin-top: 0; }
.zahlen table.tag { min-width: 0; width: 100%; margin: 0 0 32px; font-size: 1rem; border-top: 1px solid var(--line); }
.zahlen table.tag th, .zahlen table.tag td { padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); }
.zahlen table.tag th[scope="row"] { text-align: left; font-weight: 400; padding-left: 0; }
.zahlen table.tag thead th { font-size: .85rem; color: var(--muted); font-weight: 500; padding-top: 4px; }
.zahlen table.tag td { text-align: right; font-weight: 700; white-space: nowrap; }
.zahlen table.tag td:nth-child(2) { font-weight: 400; color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zahlen dl { margin: 0 0 32px; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); }
.zahlen dt, .zahlen dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.zahlen dd { text-align: right; font-weight: 700; }
.zahlen dd small { font-weight: 400; color: var(--muted); font-size: .85em; }
.verlauf { margin-top: 4px; }
.verlauf svg { width: 100%; height: 96px; display: block; }
.verlauf .achse { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Webcam */
.webcam { margin: 0; max-width: 960px; }
.webcam img { width: 100%; border-radius: 3px; background: var(--line); aspect-ratio: 4/3; object-fit: cover; }
.webcam figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.webcam figcaption.alt { color: var(--sun); }

/* Anlage */
.anlage-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.teil { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.teil p { margin: 0; max-width: 36em; }
.teil .seit { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.altschema { margin-top: 32px; font-size: .95rem; }

/* Chronik */
.chronik { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.jahr { display: grid; grid-template-columns: 7.5rem 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.jahr > b { font-size: 2.2rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--green); }
.jahr ul { list-style: none; margin: 0; padding: 0; }
.jahr li { padding: 3px 0 9px; }
.jahr time { display: block; font-size: .88rem; color: var(--muted); }

/* Archiv */
.tabelle-huelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
th, td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
thead th { font-weight: 500; color: var(--muted); vertical-align: bottom; font-size: .85rem; line-height: 1.3; }
tbody td:first-child { font-weight: 700; }
.fussnote { font-size: .9rem; color: var(--muted); max-width: 44em; margin-top: 14px; }

/* Bau 2007 */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.galerie button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie button[hidden] { display: none; }
.mehr { margin-top: 18px; font: 500 1rem "Schibsted Grotesk", system-ui, sans-serif; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 9px 16px; border-radius: 2px; cursor: pointer; }
.mehr:hover { border-color: var(--sun); color: var(--sun); }
dialog.leuchtkasten { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.leuchtkasten::backdrop { background: rgba(10, 14, 12, .88); }
dialog.leuchtkasten img { max-width: 96vw; max-height: 86vh; width: auto; margin-inline: auto; }
.leuchtkasten-leiste { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.leuchtkasten-leiste button { font: 500 .95rem "Schibsted Grotesk", system-ui, sans-serif; background: #f6f6f3; color: #1e2b25; border: 0; padding: 8px 14px; border-radius: 2px; cursor: pointer; }

/* Fuss */
.fuss { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: .9rem; color: var(--muted); }
.fuss .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .einstieg .wrap, .werte-raster { grid-template-columns: 1fr; gap: 32px; }
  .einstieg .wrap { padding-block: 36px 32px; }
  .anlage-liste { grid-template-columns: 1fr; }
  .jahr { grid-template-columns: 1fr; gap: 6px; }
  .jahr > b { font-size: 1.8rem; }
  section { padding-block: 48px; }
}
