/* oow.berlin - CSS-System der statischen Fassung.
 *
 * Kein Framework. Tokens, Grid, clamp(). Werte aus DESIGN_OOW.md (verifizierter Live-Stand
 * 2026-06-16 und das Projektseiten-Masssystem vom 2026-07-15) - nichts davon ist hier
 * neu erfunden. Reihenfolge: Tokens, Grundlage, Typografie, Raster, Bausteine.
 *
 * Vertikaler Rhythmus AUSSCHLIESSLICH 24 / 48 / 96 (144 fuer grosse Sektionswechsel).
 * Inhaltsbreite IMMER 1140, einzige Ausnahme das Bildband mit 1600.
 * Fliesstext und Zitate immer links; zentriert sind nur Statement-Kopf und dunkle Baender.
 */

/* ------------------------------------------------------------------ 0. Schriften
 *
 * Selbst gehostet als WOFF2, keine Verbindung zu Google oder Adobe.
 *
 * ITC Avant Garde Gothic W01 aus dem lizenzierten Webfont-Kit (Fonts.com Pay-As-You-Go,
 * Rechnung FSC144926 vom 1.10.2019, siehe schriften/HINWEIS.md). Fuenf aufrechte Schnitte;
 * die fuenf schraegen bleiben draussen, weil die Gestaltung keine Kursive kennt.
 * Jeder Schnitt ist unter genau den Gewichten angemeldet, die dieses CSS anfordert - so
 * greift der Browser zum echten Schnitt, statt einen zu errechnen.
 *
 * Roboto Mono steht unter der SIL Open Font License 1.1 - der Lizenztext liegt daneben in
 * schriften/OFL.txt, das verlangt die Lizenz beim Weitergeben. Eine variable Datei je
 * Zeichenvorrat; "latin-ext" laedt der Browser nur, wenn ein Zeichen daraus vorkommt.
 */

@font-face {
  font-family: "ITC Avant Garde Gothic";
  font-style: normal;
  font-weight: 100 200; /* Extra Light - Bandarolen-Titel */
  font-display: swap;
  src: url("/schriften/itc-avant-garde-xlight.woff2") format("woff2");
}

@font-face {
  font-family: "ITC Avant Garde Gothic";
  font-style: normal;
  font-weight: 300 400; /* Book - Fliesstext und Zitate */
  font-display: swap;
  src: url("/schriften/itc-avant-garde-book.woff2") format("woff2");
}

@font-face {
  font-family: "ITC Avant Garde Gothic";
  font-style: normal;
  font-weight: 500; /* Medium - Labels */
  font-display: swap;
  src: url("/schriften/itc-avant-garde-medium.woff2") format("woff2");
}

@font-face {
  font-family: "ITC Avant Garde Gothic";
  font-style: normal;
  font-weight: 600; /* Demi - Namenszeile unter dem Zitat */
  font-display: swap;
  src: url("/schriften/itc-avant-garde-demi.woff2") format("woff2");
}

@font-face {
  font-family: "ITC Avant Garde Gothic";
  font-style: normal;
  font-weight: 700 800; /* Bold - Display-Headlines */
  font-display: swap;
  src: url("/schriften/itc-avant-garde-bold.woff2") format("woff2");
}

/* Roboto Mono auf die beiden gebrauchten Gewichte festgelegt und auf die Zeichen
   beschnitten, die im Bestand vorkommen (Latin-1 plus typografische Satzzeichen, Euro,
   Delta fuer den NCS-Farbfinder) - 203 Zeichen statt des vollen Vorrats. Aus 55 KB in zwei
   variablen Dateien werden so 24 KB in zwei festen. Die OFL erlaubt das ausdruecklich. */
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/schriften/roboto-mono-300.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/schriften/roboto-mono-500.woff2") format("woff2");
}

/* ------------------------------------------------------------------ 1. Tokens */

:root {
  /* Die Ersatzkette greift nur, solange die Schrift noch laedt. */
  --schrift-display: "ITC Avant Garde Gothic", "Century Gothic", "URW Gothic", sans-serif;
  --schrift-mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gewicht-duenn: 100;
  --gewicht-text: 300;
  --gewicht-label: 500;
  --gewicht-fett: 800;

  /* Farben */
  --farbe-text: #232323;
  --farbe-stark: #000;
  --farbe-grund: #fff;
  --farbe-akzent: #5f33ff;
  --farbe-band: #f9f2ef;
  --farbe-dunkel: #1c1c1c;
  --farbe-knopf: #0c0c0c;
  --farbe-knopf-text: #fff;
  --farbe-still: #bcbcbc;
  --farbe-linie: #e2e2e2;

  /* Mass und Rhythmus */
  --breite: 1140px;
  --breite-bild: 1600px;
  /* 20px, damit der Text im 1140er Container netto auf 1100 kommt - genau der
     Live-Wert aus dem vermessenen Masssystem. */
  --rand: 20px;
  --s1: 24px;
  --s2: 48px;
  --s3: 96px;
  --s4: 144px;

  /* Schriftgroessen. Die drei Werte je Zeile sind Desktop / Tablet / Mobil aus dem
     vermessenen Masssystem; clamp() fuellt dazwischen stufenlos. */
  --gr-bandarole: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem);
  --gr-statement: clamp(2rem, 1.1rem + 3vw, 3.9rem);
  --gr-sektion: clamp(2rem, 1.4rem + 1.9vw, 2.8rem);
  --gr-teaser: clamp(1.1rem, 0.8rem + 0.9vw, 1.6rem);
  --gr-zitat: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem);
  --gr-text: clamp(0.9rem, 0.8rem + 0.25vw, 1rem);
  --gr-klein: 0.75rem;
  --gr-zahl: clamp(2.4rem, 1.6rem + 2.6vw, 4rem);

  --ls-label: 0.29em;
  --ls-knopf: 0.16em;
  --ls-mono: 0.27em;
  --radius-knopf: 49px;
  --wechsel: 0.3s;

  /* Hero-Hoehen exakt wie live vermessen: 990 / 662 / 372 (Desktop/Tablet/Mobil).
     Bewusst KEIN clamp() - die drei Werte sind gesetzt, nicht interpoliert. */
  --hero-hoehe: 990px;
}

@media (max-width: 1024px) {
  :root {
    --hero-hoehe: 662px;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-hoehe: 372px;
  }
}

/* ------------------------------------------------------------------ 2. Grundlage */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--farbe-grund);
  color: var(--farbe-text);
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-text);
  font-size: var(--gr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
}

/* Fliesstext-Links unterstrichen, Ueberschriften-Links ohne Dekoration. */
.fliesstext a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
  margin: 0;
}

.sprung {
  position: absolute;
  left: -9999px;
}

.sprung:focus {
  left: var(--rand);
  top: var(--rand);
  z-index: 20;
  background: var(--farbe-stark);
  color: #fff;
  padding: 12px 20px;
}

:focus-visible {
  outline: 2px solid var(--farbe-akzent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ 3. Mass */

.mass {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.mass--breit {
  max-width: var(--breite-bild);
}

.koerper {
  padding-block: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.koerper--schmal > * {
  max-width: 76ch;
}

.koerper > .bild,
.koerper > .karussell,
.koerper--schmal > .bild,
.koerper--schmal > .karussell {
  max-width: none;
  margin-block: var(--s2);
}

/* ------------------------------------------------------------------ 4. Typografie */

.label {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-label);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--farbe-akzent);
}

.eyebrow {
  font-family: var(--schrift-mono);
  font-weight: var(--gewicht-label);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--farbe-text);
}

.seitentitel {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-duenn);
  font-size: var(--gr-bandarole);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--farbe-stark);
}

.sektionstitel {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-fett);
  font-size: var(--gr-sektion);
  line-height: 1.05;
  color: var(--farbe-stark);
  margin-top: var(--s2);
}

.teaser {
  font-size: var(--gr-teaser);
  line-height: 1.6;
  max-width: 46ch;
}

.zitat {
  font-family: var(--schrift-display);
  font-weight: 400;
  font-size: var(--gr-zitat);
  line-height: 1.8;
  color: var(--farbe-akzent);
  max-width: 44ch;
  margin-top: var(--s2);
}

.zitat__name {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: var(--farbe-akzent);
}

.fliesstext {
  max-width: 76ch;
}

.fliesstext p {
  margin-bottom: var(--s1);
}

.fliesstext p:last-child {
  margin-bottom: 0;
}

.fliesstext h2 {
  font-weight: var(--gewicht-fett);
  font-size: var(--gr-sektion);
  line-height: 1.05;
  color: var(--farbe-stark);
  margin-block: var(--s2) var(--s1);
}

.fliesstext h3 {
  font-weight: var(--gewicht-fett);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--farbe-stark);
  margin-block: var(--s2) var(--s1);
}

/* ------------------------------------------------------------------ 5. Schaltflaechen */

.knopf,
.knopfzeile a {
  display: inline-block;
  background: var(--farbe-knopf);
  color: var(--farbe-knopf-text);
  font-family: var(--schrift-mono);
  font-weight: var(--gewicht-text);
  font-size: var(--gr-klein);
  text-transform: uppercase;
  letter-spacing: var(--ls-knopf);
  border: 0;
  border-radius: var(--radius-knopf);
  padding: 14px 30px;
  text-decoration: none;
  transition: transform var(--wechsel);
}

.knopf:hover,
.knopfzeile a:hover {
  transform: scale(0.9);
}

.knopf--akzent {
  background: var(--farbe-akzent);
}

.knopfzeile {
  margin-block: var(--s1);
}

.knopfzeile p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .knopf,
  .knopfzeile a {
    transition: none;
  }
  .knopf:hover,
  .knopfzeile a:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------------ 6. Kopf */

.kopf {
  position: relative;
  background: var(--farbe-grund);
  border-bottom: 1px solid var(--farbe-linie);
}

.kopf__innen {
  max-width: var(--breite);
  margin-inline: auto;
  padding: var(--s1) var(--rand);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.kopf__marke {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-right: auto;
}

.kopf__logo {
  width: 44px;
  height: auto;
}

.kopf__anspruch {
  font-family: var(--schrift-mono);
  font-size: var(--gr-klein);
  letter-spacing: var(--ls-knopf);
  text-transform: uppercase;
  color: var(--farbe-text);
}

.kopf__direkt ul,
.menue ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kopf__direkt ul {
  display: flex;
  gap: var(--s1);
}

.kopf__direkt a,
.menue a {
  font-family: var(--schrift-mono);
  font-size: var(--gr-klein);
  letter-spacing: var(--ls-knopf);
  text-transform: uppercase;
  text-decoration: none;
}

.kopf__direkt a[aria-current],
.menue a[aria-current] {
  color: var(--farbe-akzent);
}

.kopf__schalter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--schrift-mono);
  font-size: var(--gr-klein);
  letter-spacing: var(--ls-knopf);
  text-transform: uppercase;
  color: var(--farbe-text);
}

.kopf__schalter-strich,
.kopf__schalter-strich::before,
.kopf__schalter-strich::after {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.kopf__schalter-strich {
  position: relative;
}

.kopf__schalter-strich::before,
.kopf__schalter-strich::after {
  content: "";
  position: absolute;
  left: 0;
}

.kopf__schalter-strich::before {
  top: -6px;
}

.kopf__schalter-strich::after {
  top: 6px;
}

.menue {
  border-top: 1px solid var(--farbe-linie);
}

.menue ul {
  max-width: var(--breite);
  margin-inline: auto;
  padding: var(--s1) var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* Ohne JavaScript bleibt das Menue sichtbar. Erst das Skript setzt hidden und
   uebernimmt das Auf- und Zuklappen - so ist die Navigation nie unerreichbar. */
.menue[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ 7. Hero */

.hero {
  width: 100%;
  min-height: var(--hero-hoehe);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bild {
  /* Das img traegt Groesse und Alt-Text fuer Bots und Bildersuche; sichtbar ist das
     Hintergrundbild. Kein Layout-Sprung, weil die Hoehe ueber min-height steht. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero--person {
  --hero-hoehe: clamp(320px, 40vw, 660px);
}

/* ------------------------------------------------------------------ 8. Bandarole */

.bandarole {
  background: var(--farbe-band);
}

.bandarole__innen {
  padding-block: var(--s2) 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bandarole .label + .seitentitel {
  margin-bottom: var(--s1);
}

.bandarole .label {
  margin-top: var(--s1);
}

.bandarole .label:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------------ 9. Bilder */

.bild {
  margin: 0;
}

.bild img {
  width: 100%;
}

.karussell {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.karussell__spur {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s1);
}

.karussell__spur li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.karussell__spur img {
  height: clamp(280px, 30vw, 480px);
  width: auto;
  max-width: none;
  object-fit: cover;
}

/* ------------------------------------------------------------------ 10. Zahlenband */

.zahlenband {
  background: var(--farbe-dunkel);
  color: #fff;
  padding-block: var(--s3);
  text-align: center;
}

.zahlenband__titel {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-fett);
  font-size: var(--gr-sektion);
  line-height: 1.05;
  margin-bottom: var(--s2);
}

.zahlenband .mass {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s2) var(--s1);
}

.zahlenband__titel {
  grid-column: 1 / -1;
}

.zahl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zahl__wert {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-fett);
  font-size: var(--gr-zahl);
  line-height: 1;
}

.zahl__beschriftung {
  font-family: var(--schrift-mono);
  font-size: var(--gr-klein);
  letter-spacing: var(--ls-knopf);
  text-transform: uppercase;
  color: var(--farbe-still);
}

/* ------------------------------------------------------------------ 11. Projektraster */

.raster-band {
  padding-block: var(--s3);
  border-top: 1px solid var(--farbe-linie);
}

.raster-band__titel {
  margin-top: 0;
  margin-bottom: var(--s2);
}

.raster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s1);
}

.raster a {
  text-decoration: none;
  display: block;
}

.raster img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.raster__titel {
  display: block;
  padding-block: 16px 24px;
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-label);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--farbe-stark);
}

/* ------------------------------------------------------------------ 12. HELLOOW */

.helloow {
  background: var(--farbe-band);
  padding-block: var(--s3);
  text-align: center;
}

.helloow__gruss {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-duenn);
  font-size: var(--gr-statement);
  line-height: 1;
  text-transform: uppercase;
  color: var(--farbe-stark);
  margin-bottom: var(--s1);
}

.helloow__nummer a {
  font-family: var(--schrift-mono);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.helloow__knoepfe {
  margin-top: var(--s2);
  display: flex;
  gap: var(--s1);
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ 13. Fuss */

.fuss {
  background: var(--farbe-grund);
  border-top: 1px solid var(--farbe-linie);
  padding-block: var(--s3) var(--s2);
  font-size: var(--gr-klein);
  line-height: 1.9;
}

.fuss a {
  text-decoration: none;
}

.fuss a:hover {
  text-decoration: underline;
}

.fuss__raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2) var(--s1);
}

.fuss__name,
.fuss__person {
  font-family: var(--schrift-display);
  font-weight: var(--gewicht-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--farbe-stark);
}

.fuss__liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fuss__unten {
  margin-top: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.fuss__bereiche {
  color: var(--farbe-still);
}

.fuss__bereiche a {
  color: var(--farbe-text);
}

.fuss__profile {
  display: flex;
  gap: var(--s1);
}

.fuss__hinweis {
  color: var(--farbe-still);
}

/* ------------------------------------------------------------------ 14. Platzhalter */

.platzhalter {
  border: 1px solid var(--farbe-linie);
  padding: var(--s1);
  margin-top: var(--s2);
}

/* ------------------------------------------------------------------ 15. Schmale Fenster */

@media (max-width: 1024px) {
  .raster {
    grid-template-columns: repeat(2, 1fr);
  }
  .fuss__raster {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --s3: 64px;
    --s4: 96px;
  }
  .kopf__innen {
    gap: var(--s1);
  }
  .kopf__direkt {
    display: none;
  }
  .kopf__anspruch {
    display: none;
  }
  .menue ul {
    flex-direction: column;
    gap: var(--s1);
  }
  .raster {
    grid-template-columns: 1fr;
  }
  .fuss__raster {
    grid-template-columns: 1fr;
  }
}
