/* ==========================================================================
   Basis für alle Seiten von bewertung.bramdale.de
   Farben, Schriften, Abstände und Bausteine nach FARBPLAN.md. Werte und
   Namen sind aus der basis.css der Website übernommen, damit beide Seiten
   gleich aussehen. Neue Werte gehören zuerst in FARBPLAN.md, dann hierher.
   ========================================================================== */

/* ---------- Schriften: nur vom eigenen Server, unveränderte Dateien ------- */

/* Variable Schnitte, je eine Datei für alle Stärken. Der Browser lädt eine
   Schrift erst, wenn ein Text sie braucht; Clash Grotesk kommt deshalb nur
   auf der Landingpage an. font-display: swap zeigt den Text sofort in der
   Ersatzschrift und tauscht, sobald die Datei da ist. */
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("/fonts/ClashGrotesk-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/AzeretMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ------------------------------------------------------ */

:root {
  /* Farben: genau diese elf */
  --navy:         #0A1628;
  --navy-tief:    #142238;
  --navy-linie:   #243450;
  --papier:       #F6F8FA;
  --flaeche:      #E9EEF3;
  --linie:        #D2DAE3;
  --graublau:     #5B6B80;
  --hell-navy:    #C7D2E0;
  --gedimmt-navy: #9FB0C4;
  --orange:       #FF7A00;
  --fehler:       #B3231B;

  /* Punkte des Rasters (Farbplan 5.1) */
  --punkt-hell:   #C9D3DE;
  --punkt-dunkel: #223352;

  /* Schriften */
  --schrift-text:      "Switzer", "Helvetica Neue", Arial, sans-serif;
  --schrift-statement: "Clash Grotesk", "Switzer", "Helvetica Neue", Arial, sans-serif;
  --schrift-mono:      "Azeret Mono", ui-monospace, Menlo, monospace;

  /* Typo-Skala */
  --gr-statement: clamp(38px, 5.6vw, 72px);
  --gr-h2:        clamp(26px, 3.2vw, 38px);
  --gr-h3:        clamp(18px, 1.8vw, 24px);
  --gr-lead:      clamp(18px, 1.5vw, 20px);
  --gr-text:      16px;
  --gr-klein:     15px;
  --gr-button:    16px;
  --gr-label:     12px;
  --gr-kennzahl:  clamp(20px, 2.4vw, 28px);

  /* Abstände: Vielfache von 8 px */
  --r1: 8px;
  --r2: 16px;
  --r3: 24px;
  --r4: 32px;
  --r5: 40px;
  --r6: 48px;
  --r7: 56px;
  --r8: 64px;
  --abschnitt: clamp(64px, 9vw, 112px);
  --rand:      clamp(16px, 4vw, 40px);
  --breite:    1200px;
  --raster:    24px;
  /* Zeilenlänge: gemeint sind Zeichen. In Switzer ist 1ch schmaler als ein
     Durchschnittsbuchstabe, 54ch ergeben rund 66 Zeichen, 50ch rund 60. */
  --mass-text: 54ch;
  --mass-lead: 50ch;

  /* Bewegung (Farbplan 7): drei Tempostufen, keine eigenen Werte */
  --dauer: 180ms;
  --dauer-linie: 240ms;
  --kurve: cubic-bezier(0.23, 1, 0.32, 1);
  --kurve-farbe: ease;
  --dauer-auftritt: 700ms;
  --staffel-auftritt: 140ms;
  --dauer-aufbau: 1200ms;
  --staffel-aufbau: 180ms;
  --kurve-ruhig: cubic-bezier(0.33, 1, 0.68, 1);

  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --gr-text: 17px; }
}

/* ---------- Grundlage ------------------------------------------------------ */

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

html {
  color: var(--navy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: var(--schrift-text);
  font-size: var(--gr-text);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Punktraster: das Notizbuch der Vorarbeit, kaum sichtbar */
  background-color: var(--papier);
  background-image: radial-gradient(circle, var(--punkt-hell) 1px, transparent 1.3px);
  background-size: var(--raster) var(--raster);
  background-position: 12px 12px;
}

img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Fokus: 2 px Navy auf hellem, Orange auf dunklem Grund */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dunkel :focus-visible, .kopf :focus-visible, .fuss :focus-visible { outline-color: var(--orange); }

::selection { background: var(--navy); color: var(--papier); }

/* ---------- Flächen -------------------------------------------------------- */

.dunkel {
  background-color: var(--navy);
  background-image: radial-gradient(circle, var(--punkt-dunkel) 1px, transparent 1.3px);
  background-size: var(--raster) var(--raster);
  background-position: 12px 12px;
  color: var(--hell-navy);
}
.dunkel h1, .dunkel h2, .dunkel h3 { color: var(--papier); }

.flaeche-abgesetzt { background: var(--flaeche); }

.abschnitt { padding-block: var(--abschnitt); }

/* ---------- Schrift -------------------------------------------------------- */

/* Clash Grotesk ist rationiert: nur H1 im Hero und die Statement-Zeile
   „Zu hoch. Zu niedrig. Zu spät.“ auf der Landingpage. */
.statement {
  font-family: var(--schrift-statement);
  font-size: var(--gr-statement);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.h1-schlicht {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2, .abschnitt-kopf h2 {
  font-size: var(--gr-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: var(--gr-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--gr-lead);
  line-height: 1.6;
  max-width: var(--mass-lead);
  color: var(--graublau);
  text-wrap: pretty;
}
.dunkel .lead { color: var(--hell-navy); }

.fliesstext { max-width: var(--mass-text); text-wrap: pretty; }

.mono, .eyebrow, .kennzahl {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: block;
  font-size: var(--gr-label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graublau);
}
.dunkel .eyebrow { color: var(--gedimmt-navy); }

.kennzahl {
  font-size: var(--gr-kennzahl);
  font-weight: 500;
  line-height: 1;
}

/* Abschnittsbeginn: 1 px Navy über der Überschrift, auf dunklem Grund
   Navy Linie, weil Navy dort unsichtbar wäre. */
.abschnitt-kopf {
  display: grid;
  gap: var(--r2);
  margin-bottom: var(--r6);
  padding-top: var(--r2);
  border-top: 1px solid var(--navy);
}
.dunkel .abschnitt-kopf { border-top-color: var(--navy-linie); }
.abschnitt-kopf h2 { max-width: 22ch; }

/* ---------- Buttons und Links ---------------------------------------------- */

/* Haupt-Button: Orange, genau einmal pro Ansicht, Textpfeil rechts.
   Hover und Fokus: Fläche und Schrift tauschen. */
.btn-haupt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--r2);
  width: 100%;
  min-height: 48px;
  padding: var(--r2) 18px;
  background: var(--orange);
  color: var(--navy);
  border: 2px solid var(--orange);
  font-family: var(--schrift-text);
  font-size: var(--gr-button);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dauer) var(--kurve-farbe), color var(--dauer) var(--kurve-farbe);
}
.btn-haupt:focus-visible { background: var(--navy); color: var(--orange); }
@media (hover: hover) {
  .btn-haupt:hover { background: var(--navy); color: var(--orange); }
}

/* Zweit-Button auf dunklem Grund */
.btn-zweit {
  display: inline-flex;
  align-items: center;
  gap: var(--r1);
  min-height: 44px;
  padding: 12px var(--r2);
  border: 1px solid var(--hell-navy);
  background: transparent;
  color: var(--papier);
  font-size: var(--gr-klein);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dauer) var(--kurve-farbe), color var(--dauer) var(--kurve-farbe);
}
.btn-zweit:focus-visible { background: var(--papier); color: var(--navy); }
@media (hover: hover) {
  .btn-zweit:hover { background: var(--papier); color: var(--navy); }
}

/* Zweit-Aktion auf hellem Grund: Textlink mit 1-px-Unterstrich */
.textlink {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- Bausteine ------------------------------------------------------ */

.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  padding: var(--r3);
}

/* Status-Etikett */
.etikett {
  display: inline-block;
  padding: var(--r1) 10px;
  background: var(--navy);
  color: var(--hell-navy);
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Platzhalter für fehlende Fotos und Videos */
.platzhalter {
  display: grid;
  place-items: center;
  padding: var(--r2);
  background-color: var(--navy-tief);
  border: 1px dashed var(--navy-linie);
  color: var(--gedimmt-navy);
  font-family: var(--schrift-mono);
  font-size: var(--gr-label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* Relief: Tonverlauf in Navy, einmal pro Seite (Zeichnung in relief.js).
   Ohne JavaScript bleibt die Fläche einfach Navy. */
.hat-relief { position: relative; overflow: hidden; }
.hat-relief.dunkel { background-image: none; }
.relief {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hat-relief > .wrap { position: relative; }

/* ---------- Kopf ----------------------------------------------------------- */

.kopf {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-linie);
  color: var(--hell-navy);
}
.kopf-innen {
  display: flex;
  align-items: center;
  min-height: 72px;
}

/* Wortmarke (Farbplan 10): orange Linie 28 × 3 px über gesperrten Versalien,
   darunter die Zeile in Azeret Mono. Auf dunklem Grund Papier. */
.wortmarke {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding-block: var(--r1);
  text-decoration: none;
}
.wortmarke::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--orange);
}
.wortmarke b {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--papier);
}
.wortmarke small {
  white-space: nowrap;
  font-family: var(--schrift-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gedimmt-navy);
}

/* ---------- Fuß ------------------------------------------------------------ */

/* Navy Tief statt Navy: setzt sich vom dunklen Abschlussblock darüber ab */
.fuss {
  background-color: var(--navy-tief);
  border-top: 1px solid var(--navy-linie);
  color: var(--gedimmt-navy);
  font-size: 14px;
  line-height: 1.7;
}
/* Links im Fuß übernehmen die Fußfarbe (Gedimmt auf Navy). Ohne eigene
   Farbe setzten die Rechtstexte mit ihrem allgemeinen a { color: Navy }
   die Links Navy auf Navy Tief, kaum lesbar (gefunden 08.10.2026). */
.fuss a { color: inherit; text-decoration: none; }
.fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--r5);
  padding-block: var(--r8) var(--r6);
}
.fuss address { margin-top: var(--r3); font-style: normal; }
.fuss-nav ul { margin: 0; padding: 0; list-style: none; display: grid; }
.fuss-nav a { display: inline-block; padding-block: 4px; }
@media (max-width: 759px) {
  .fuss-raster { grid-template-columns: 1fr; gap: var(--r4); padding-block: var(--r6) var(--r5); }
  .fuss-nav a { padding-block: 10px; }
}

/* Links ohne Unterstreichung in Ruhe (Fuß): Die Linie läuft beim Hover von
   links ein. Einfarbige Hintergrundlinie, kein Farbverlauf. */
.fuss a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dauer-linie) var(--kurve), color var(--dauer) var(--kurve-farbe);
}
.fuss a:focus-visible { background-size: 100% 1px; color: var(--papier); }
@media (hover: hover) {
  .fuss a:hover { background-size: 100% 1px; color: var(--papier); }
}
.fuss .wortmarke { background: none; }

/* ---------- Bewegung reduzieren ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
