@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════════════════
   BASIS
   Luca Gentile · Performance Coach

   Gestaltung: kinetische Typografie × Praezisionsinstrument.
   Archivo als variable Schrift mit Breitenachse (wdth 62–125) fuer alles,
   was Titel und Wert ist; JetBrains Mono fuer Beschriftungen, Messwerte
   und Navigation. Graphitschwarz, Knochenweiss, Orange als einziger
   Akzent. Gilt fuer alle Seiten; die Startseite ergaenzt sektionen.css
   und bewegung.css.

   Inhalt
   01  Schriften (selbst gehostet)
   02  Gestaltungsvariablen
   03  Flaechenthemen
   04  Zuruecksetzen und Grundeinstellungen
   05  Typografie
   06  Aufbau
   07  Schaltflaechen
   08  Kopfzeile und Klappmenue
   09  Formular
   10  Fusszeile
   11  Rechtliche Seiten
   12  Hilfsklassen
   ═══════════════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────────────
   01  SCHRIFTEN
   Beide liegen lokal unter assets/fonts/ (SIL Open Font License) – es
   geht keine Anfrage an fremde Server. Die latin-ext-Datei laedt der
   Browser dank unicode-range nur, wenn ein Zeichen daraus vorkommt.
   ─────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-variabel-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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-variabel-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Rechenzeichen ≈ ≠ ≤ ≥ – fehlen in den beiden Teilen oben, sonst kaeme
   das Zeichen aus einer Systemschrift. Aus derselben Archivo-Fassung
   (Google Fonts, OFL) geschnitten, 3 KB.                               */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-variabel-zeichen.woff2") format("woff2");
  unicode-range: U+2248, U+2260, U+2264-2265;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-variabel-latin.woff2") format("woff2");
}


/* ───────────────────────────────────────────────────────────────────────
   02  GESTALTUNGSVARIABLEN
   Alle Kontrastwerte sind mit werkzeuge/kontrast.php geprueft.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  /* Farben ------------------------------------------------------------ */
  --schwarz: #0b0b0b;        /* Grundflaeche                             */
  --graphit: #151515;        /* abgesetzte Flaechen                      */
  --graphit-hell: #1f1f1f;   /* Felder, Rueckmeldungen                   */
  --bein: #f2f1ec;           /* Schrift auf Dunkel, helle Flaeche        */
  --grau: #8c8b86;           /* Sekundaertext auf Dunkel       5.8:1     */
  --grau-hell: #5f5e5a;      /* Sekundaertext auf --bein       5.7:1     */
  --signal: #f2611f;         /* das Orange der Wortmarke                 */
  --signal-auf-hell: #e2541a; /* Orange fuer grosse Schrift auf --bein 3.4:1 */
  --hellgrau: #dddcd7;       /* helle Flaeche (Fuer wen, Fragen)         */
  --signal-auf-grau: #d64f14; /* Orange fuer grosse Schrift auf Hellgrau 3.1:1 */

  --linie: rgba(242, 241, 236, 0.16);

  /* Schrift ----------------------------------------------------------- */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --groesse-riesig: clamp(3rem, 8vw, 9rem);
  --groesse-titel: clamp(2.5rem, 6vw, 6.5rem);
  --groesse-gross: clamp(1.75rem, 3vw, 2.75rem);
  --groesse-vorspann: clamp(1.1875rem, 1.6vw, 1.375rem);
  --groesse-text: 1.0625rem;
  --groesse-mono: 0.8125rem;

  /* Aufbau ------------------------------------------------------------ */
  --rand: clamp(1rem, 3vw, 2.5rem);
  --kopf-hoehe: 4rem;
  --abstand: clamp(5rem, 11vw, 10rem);

  /* Weicher Uebergang von Schwarz in eine Flaeche (am Handy zwischen
     den Kapiteln). Die Deckkraft folgt einer S-Kurve: Sie faellt an
     beiden Enden nur langsam, so beginnt und endet der Verlauf ohne
     sichtbare Kante. Gebrauch: linear-gradient(to bottom,
     var(--schwarz-weich)) bzw. to top. Ebenso fuer Orange.            */
  --verlauf: 7.5rem;
  --schwarz-weich:
    var(--schwarz),
    color-mix(in oklab, var(--schwarz) 97.2%, transparent) 10%,
    color-mix(in oklab, var(--schwarz) 89.6%, transparent) 20%,
    color-mix(in oklab, var(--schwarz) 78.4%, transparent) 30%,
    color-mix(in oklab, var(--schwarz) 64.8%, transparent) 40%,
    color-mix(in oklab, var(--schwarz) 50%, transparent) 50%,
    color-mix(in oklab, var(--schwarz) 35.2%, transparent) 60%,
    color-mix(in oklab, var(--schwarz) 21.6%, transparent) 70%,
    color-mix(in oklab, var(--schwarz) 10.4%, transparent) 80%,
    color-mix(in oklab, var(--schwarz) 2.8%, transparent) 90%,
    transparent;
  --signal-weich:
    var(--signal),
    color-mix(in oklab, var(--signal) 97.2%, transparent) 10%,
    color-mix(in oklab, var(--signal) 89.6%, transparent) 20%,
    color-mix(in oklab, var(--signal) 78.4%, transparent) 30%,
    color-mix(in oklab, var(--signal) 64.8%, transparent) 40%,
    color-mix(in oklab, var(--signal) 50%, transparent) 50%,
    color-mix(in oklab, var(--signal) 35.2%, transparent) 60%,
    color-mix(in oklab, var(--signal) 21.6%, transparent) 70%,
    color-mix(in oklab, var(--signal) 10.4%, transparent) 80%,
    color-mix(in oklab, var(--signal) 2.8%, transparent) 90%,
    transparent;

  /* Bewegung ---------------------------------------------------------- */
  --kurve: cubic-bezier(0.23, 1, 0.32, 1);
}


/* Ab Tablet ist der Innenabstand der Kapitel groesser; der Verlauf
   fuellt ihn ganz.                                                     */
@media (min-width: 48rem) {
  :root {
    --verlauf: max(7.5rem, var(--abstand));
  }
}


/* ───────────────────────────────────────────────────────────────────────
   03  FLAECHENTHEMEN
   Jede Sektion setzt ihr Thema; die Bausteine darin greifen auf die
   Rollenvariablen zu.
   ─────────────────────────────────────────────────────────────────────── */

.thema-dunkel {
  --flaeche: var(--schwarz);
  --text: var(--bein);
  --text-still: var(--grau);
  --akzent: var(--signal);
  --strich: var(--linie);
  --feldrand: var(--grau);
}

.thema-graphit {
  --flaeche: var(--graphit);
  --text: var(--bein);
  --text-still: var(--grau);
  --akzent: var(--signal);
  --strich: var(--linie);
  --feldrand: var(--grau);
}

.thema-hell {
  --betont: var(--signal-auf-hell);
  --flaeche: var(--bein);
  --text: var(--schwarz);
  --text-still: var(--grau-hell);
  --akzent: var(--schwarz);
  --strich: rgba(11, 11, 11, 0.16);
}

/* Am Handy ein helles Grau, ab Tablet wie Hell auf Knochenweiss */
.thema-grau {
  --betont: var(--signal-auf-grau);
  --flaeche: var(--hellgrau);
  --text: var(--schwarz);
  --text-still: var(--grau-hell);
  --akzent: var(--schwarz);
  --strich: rgba(11, 11, 11, 0.18);
}

@media (min-width: 48rem) {
  .thema-grau {
    --betont: var(--signal-auf-hell);
    --flaeche: var(--bein);
    --strich: rgba(11, 11, 11, 0.16);
  }
}

/* Orange als ganzes Feld. Schrift und Akzent sind Schwarz (5.8:1). */
.thema-signal {
  --flaeche: var(--signal);
  --text: var(--schwarz);
  --text-still: var(--schwarz);
  --akzent: var(--schwarz);
  --strich: rgba(11, 11, 11, 0.28);
  --feldrand: var(--schwarz);
}

.thema-dunkel,
.thema-graphit,
.thema-hell,
.thema-grau,
.thema-signal {
  background-color: var(--flaeche);
  color: var(--text);
}


/* ───────────────────────────────────────────────────────────────────────
   04  ZURUECKSETZEN UND GRUNDEINSTELLUNGEN
   ─────────────────────────────────────────────────────────────────────── */

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

html {
  scroll-padding-top: var(--kopf-hoehe);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--schwarz);
  color: var(--bein);
  font-family: var(--sans);
  font-size: var(--groesse-text);
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background-color: var(--signal);
  color: var(--schwarz);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ───────────────────────────────────────────────────────────────────────
   05  TYPOGRAFIE
   Titel: Archivo, schwer, schmal gestellt (wdth 72–82), eng gesetzt.
   Beschriftung: Mono in Versalien, leicht gesperrt.
   ─────────────────────────────────────────────────────────────────────── */

.riesig,
.titel,
.gross {
  font-family: var(--sans);
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
  hyphens: manual;
}

/* Schmale Schrift und negativer Zeichenabstand lassen die Woerter
   zusammenruecken; etwas mehr Wortabstand trennt sie wieder. Gilt fuer
   alle Ueberschriften in Archivo – die Mono-Beschriftungen (.marke,
   h3 der Rechtstexte) behalten ihren eigenen Abstand.                  */
:is(h1, h2, h3):not(.marke),
.riesig,
.titel,
.gross {
  word-spacing: 0.05em;
}

.riesig {
  font-size: var(--groesse-riesig);
  font-variation-settings: "wdth" 72;
  line-height: 0.9;
}

.titel {
  font-size: var(--groesse-titel);
  font-variation-settings: "wdth" 72;
  line-height: 0.92;
}

.gross {
  font-size: var(--groesse-gross);
  font-weight: 650;
  font-variation-settings: "wdth" 82;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.vorspann {
  font-size: var(--groesse-vorspann);
  line-height: 1.45;
  max-width: 36rem;
  text-wrap: pretty;
}

.fliess {
  max-width: 38rem;
  color: var(--text-still, var(--grau));
  text-wrap: pretty;
}

.fliess + .fliess {
  margin-top: 1rem;
}

.fliess strong {
  color: var(--text, var(--bein));
  font-weight: 600;
}

/* Schluesselwoerter in Orange (6.1:1 auf Schwarz). Auf Hell gilt das
   etwas dunklere --signal-auf-hell (3.4:1) – dort nur in grosser
   Schrift verwenden. Im Fliesstext zusaetzlich etwas kraeftiger.     */
.betont,
.fliess .betont {
  color: var(--betont, var(--signal));
}

.fliess .betont {
  font-weight: 600;
}

/* Beschriftung im Stil eines Messgeraets */
.marke {
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-still, var(--grau));
}

.fein {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-still, var(--grau));
}


/* ───────────────────────────────────────────────────────────────────────
   06  AUFBAU
   ─────────────────────────────────────────────────────────────────────── */

.bahn {
  width: 100%;
  padding-inline: var(--rand);
}

.bahn--schmal {
  max-width: 52rem;
  margin-inline: auto;
}

.sektion {
  padding-block: var(--abstand);
}

/* Kopf eines Kapitels: Beschriftung links, Titel rechts */
.kapitel {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 62rem) {
  .kapitel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    align-items: start;
  }

  .kapitel > .marke {
    padding-top: 1rem;
  }
}


/* ───────────────────────────────────────────────────────────────────────
   07  SCHALTFLAECHEN
   ─────────────────────────────────────────────────────────────────────── */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  background-color: var(--signal);
  color: var(--schwarz);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: transform 160ms var(--kurve), background-color 180ms ease, color 180ms ease;
}

.knopf:active {
  transform: scale(0.97);
}

/* Auf Orange dreht der Knopf um */
.thema-signal .knopf {
  background-color: var(--schwarz);
  color: var(--bein);
}

@media (hover: hover) and (pointer: fine) {
  .knopf:hover {
    background-color: var(--bein);
    color: var(--schwarz);
  }

  .thema-hell .knopf:hover,
  .thema-grau .knopf:hover,
  .thema-signal .knopf:hover {
    background-color: var(--graphit);
    color: var(--bein);
  }
}

.knopf--klein {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.knopf--breit {
  width: 100%;
}

/* Beschriftung in zwei Laengen; es ist immer nur eine sichtbar */
.knopf__kurz { display: none; }

@media (max-width: 47.99rem) {
  .knopf__lang { display: none; }
  .knopf__kurz { display: inline; }
}

/* Schlusszeile: die Aktion ueber die ganze Breite. Beim Ueberfahren
   laeuft Orange von links hinein.                                     */
.schluss {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
  border-block: 1px solid var(--strich, var(--linie));
  color: var(--text, var(--bein));
  text-decoration: none;
  isolation: isolate;
  touch-action: manipulation;
  transition: color 200ms ease;
}

.schluss::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--rand) * -1);
  z-index: -1;
  background-color: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--kurve);
}

.schluss__text {
  font-size: clamp(1.75rem, 5vw, 5.25rem);
  font-weight: 750;
  font-variation-settings: "wdth" 72;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.schluss__pfeil {
  flex: none;
  font-size: clamp(1.75rem, 5vw, 5.25rem);
  line-height: 1;
  transition: transform 480ms var(--kurve);
}

@media (hover: hover) and (pointer: fine) {
  .schluss:hover {
    color: var(--schwarz);
  }

  .schluss:hover::before {
    transform: scaleX(1);
  }

  .schluss:hover .schluss__pfeil {
    transform: translateX(-1rem);
  }
}

.schluss:active::before {
  transform: scaleX(1);
}

/* Auf Orange laeuft Schwarz hinein */
.thema-signal .schluss::before {
  background-color: var(--schwarz);
}

@media (hover: hover) and (pointer: fine) {
  .thema-signal .schluss:hover {
    color: var(--bein);
  }
}


/* ───────────────────────────────────────────────────────────────────────
   08  KOPFZEILE UND KLAPPMENUE
   Eine schmale schwarze Leiste: Zeichen, Navigation in Mono, eine Aktion.

   Das Klappmenue am Handy laeuft ueber :target statt ueber <details>:
   Ein Tippen auf einen Menuepunkt setzt die Sprungmarke auf den
   Abschnitt, damit ist #menue nicht mehr das Ziel und das Menue
   schliesst sich von selbst. Welcher Schalter sichtbar ist, entscheidet
   :has(). Kein JavaScript.
   ─────────────────────────────────────────────────────────────────────── */

.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background-color: var(--schwarz);
  border-bottom: 1px solid var(--linie);
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--kopf-hoehe);
  padding-inline: var(--rand);
}

.zeichen {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--bein);
  text-decoration: none;
}

/* Das LG-Zeichen als freigestelltes PNG (Quelle: werkzeuge/logo/) */
.zeichen__bild {
  width: auto;
  height: 2.25rem;
  flex: none;
}

.zeichen__name {
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Am Handy reicht das Zeichen; neben Termin und Menue bricht der Name
   sonst auf zwei Zeilen um. Der Link bekommt seinen Namen dann aus dem
   versteckten Text.                                                    */
@media (max-width: 29.99rem) {
  .zeichen__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.nav--breit {
  display: none;
}

.nav__liste {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
}

.nav__link {
  display: inline-block;
  padding-block: 0.5rem;
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bein);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--signal);
  }
}

.kopf__aktion-lang { display: none; }

.menue__schalter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-right: -0.5rem;
  padding-inline: 0.5rem;
  color: var(--bein);
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  touch-action: manipulation;
}

.menue__schalter svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menue__schalter--zu { display: none; }

.kopf:has(#menue:target) .menue__schalter--auf { display: none; }
.kopf:has(#menue:target) .menue__schalter--zu { display: inline-flex; }

.menue {
  display: none;
  position: fixed;
  top: var(--kopf-hoehe);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--kopf-hoehe));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2rem var(--rand);
  background-color: var(--schwarz);
}

.menue:target {
  display: flex;
  flex-direction: column;
}

.menue__liste {
  display: grid;
}

.menue .nav__link {
  display: block;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--linie);
  font-family: var(--sans);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 750;
  font-variation-settings: "wdth" 72;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.05;
}

.menue__aktion {
  margin-top: 2rem;
}

@media (min-width: 62rem) {
  .nav--breit { display: block; }
  .kopf__aktion-lang { display: inline; }
  .kopf__aktion-kurz { display: none; }

  /* Die :has()-Selektoren muessen hier wiederholt werden: eine Media
     Query erhoeht die Spezifitaet nicht, und die Regel oben wiegt wegen
     der Kennung im :has() schwerer als eine Klasse allein.             */
  .menue,
  .menue:target,
  .menue__schalter,
  .kopf:has(#menue:target) .menue__schalter--auf,
  .kopf:has(#menue:target) .menue__schalter--zu {
    display: none;
  }
}

/* Unter der festen Kopfzeile beginnt der Inhalt */
main {
  padding-top: var(--kopf-hoehe);
}


/* ───────────────────────────────────────────────────────────────────────
   09  FORMULAR
   Felder wie auf einem Messblatt: Beschriftung in Mono, Eingabe auf
   einer Linie, die beim Fokus orange und doppelt so stark wird.
   ─────────────────────────────────────────────────────────────────────── */

.formular {
  display: grid;
  gap: 1.75rem;
}

.feld-reihe {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 36rem) {
  .feld-reihe--zwei {
    grid-template-columns: 1fr 1fr;
  }
}

.feld-reihe > * {
  min-width: 0;
}

/* align-content: start – steht neben einem Feld ein hoeheres (etwa mit
   Hinweis darunter), bleiben Beschriftung und Linie trotzdem auf einer
   Hoehe, statt dass sich die Zeilen strecken.                          */
.feld {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.feld__beschriftung {
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-still, var(--grau));
}

.feld__optional {
  text-transform: none;
}

.feld__eingabe {
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 0;
  border: 0;
  /* Feldrand braucht 3:1 gegen die Flaeche: --grau auf Dunkel (5.35:1
     auf Graphit), Schwarz auf Orange (6.1:1)                            */
  border-bottom: 1px solid var(--feldrand, var(--grau));
  border-radius: 0;
  background: transparent;
  color: var(--text, var(--bein));
  /* 16px und mehr: iOS zoomt sonst beim Antippen hinein */
  font-size: 1.25rem;
  font-variation-settings: "wdth" 90;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.feld__eingabe::placeholder {
  color: var(--text-still, var(--grau));
  opacity: 0.75;
}

.feld__eingabe:focus {
  outline: none;
  border-bottom-color: var(--akzent, var(--signal));
  box-shadow: 0 1px 0 0 var(--akzent, var(--signal));
}

textarea.feld__eingabe {
  min-height: 6rem;
  padding-top: 0.75rem;
  resize: vertical;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* iOS Safari gibt der Auswahlliste eigene Systemoptik und eine
   Mindestbreite. Ohne beides sitzt sie genau wie die Textfelder.       */
.feld__auswahl {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  height: 3rem;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238c8b86' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 1rem;
  cursor: pointer;
}

/* Auf Orange ein schwarzer Pfeil */
.thema-signal .feld__auswahl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230b0b0b' stroke-width='1.5'/%3E%3C/svg%3E");
}

.feld__auswahl option {
  background-color: var(--graphit);
  color: var(--bein);
}

/* Fehler: orange Linie und eine Klartextmeldung – Farbe allein reicht nicht */
.feld__eingabe[aria-invalid="true"] {
  border-bottom-color: var(--akzent, var(--signal));
  box-shadow: 0 1px 0 0 var(--akzent, var(--signal));
}

.feld__fehler {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--akzent, var(--signal));
}

/* Symbol vor der Meldung: schrumpft nicht, sitzt auf Hoehe der ersten
   Zeile                                                                */
.feld__fehler-symbol {
  flex: none;
  margin-top: 0.2rem;
}

.feld__hinweis {
  font-size: 0.9375rem;
  color: var(--text-still, var(--grau));
}

.zustimmung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  align-items: start;
}

/* Eigenes Kontrollkaestchen: ein Quadrat, das sich orange fuellt */
.zustimmung__kasten {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1rem 0 0;
  border: 1px solid var(--feldrand, var(--grau));
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.zustimmung__kasten::after {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  background-color: var(--flaeche, var(--schwarz));
  transform: scale(0.5);
  opacity: 0;
  transition: transform 160ms var(--kurve), opacity 160ms ease;
}

.zustimmung__kasten:checked {
  border-color: var(--akzent, var(--signal));
  background-color: var(--akzent, var(--signal));
}

.zustimmung__kasten:checked::after {
  transform: none;
  opacity: 1;
}

.zustimmung__kasten[aria-invalid="true"] {
  border-color: var(--akzent, var(--signal));
}

.zustimmung__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-still, var(--grau));
  cursor: pointer;
}

.zustimmung__text a {
  color: var(--text, var(--bein));
}

/* Honigtopf: fuer Menschen unsichtbar, fuer Bots verlockend.
   Nicht display:none, damit einfache Bots das Feld ueberhaupt finden.  */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rueckmeldung ueber dem Formular */
.meldung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--signal);
  background-color: var(--graphit-hell);
  color: var(--bein);
  scroll-margin-top: calc(var(--kopf-hoehe) + 1.5rem);
}

.meldung:focus {
  outline: none;
}

.meldung__symbol {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--signal);
}

.meldung__titel {
  font-size: 1.375rem;
  font-weight: 700;
  font-variation-settings: "wdth" 82;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.meldung__text {
  font-size: 0.9375rem;
  color: var(--grau);
}


/* ───────────────────────────────────────────────────────────────────────
   10  FUSSZEILE
   Wortmarke und Satz, daneben Verweise, Kontakt, Rechtliches.
   ─────────────────────────────────────────────────────────────────────── */

.fuss {
  padding: clamp(4rem, 8vw, 6rem) var(--rand) 2rem;
  border-top: 1px solid var(--linie);
  background-color: var(--schwarz);
  color: var(--bein);
}

.fuss__raster {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .fuss__raster {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.fuss__wortmarke {
  width: min(16rem, 70%);
  height: auto;
  margin-bottom: 1.5rem;
}

.fuss__satz {
  max-width: 26rem;
  color: var(--grau);
}

.fuss__liste {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.fuss__liste a {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .fuss__liste a:hover {
    color: var(--signal);
  }
}

.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
}

.fuss__unten a {
  text-decoration: none;
}


/* ───────────────────────────────────────────────────────────────────────
   11  RECHTLICHE SEITEN
   ─────────────────────────────────────────────────────────────────────── */

.abschnitt-kopf {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rechtstext {
  max-width: 46rem;
}

.rechtstext h2 {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-size: var(--groesse-gross);
  font-weight: 700;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.rechtstext h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  word-spacing: normal;
  text-transform: uppercase;
}

.rechtstext p,
.rechtstext ul {
  color: var(--text-still);
}

.rechtstext p + p,
.rechtstext ul {
  margin-top: 1rem;
}

.rechtstext li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rechtstext li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.6em;
  background-color: var(--signal);
}

.rechtstext a {
  color: var(--bein);
}

.rechtstext address {
  font-style: normal;
  color: var(--text-still);
}

.platzhalter-hinweis {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-left: 3px solid var(--signal);
  background-color: var(--graphit);
  font-size: 0.9375rem;
}

.platzhalter-hinweis svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--signal);
}


/* ───────────────────────────────────────────────────────────────────────
   12  HILFSKLASSEN
   ─────────────────────────────────────────────────────────────────────── */

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.am-stueck {
  white-space: nowrap;
}

.sprunglink {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background-color: var(--signal);
  color: var(--schwarz);
  font-family: var(--mono);
  font-size: var(--groesse-mono);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.sprunglink:focus {
  transform: none;
}

@media print {
  .kopf, .menue, .sprunglink, .schluss {
    display: none !important;
  }

  body, .thema-dunkel, .thema-graphit, .thema-hell, .thema-grau, .thema-signal, .fuss {
    background: #fff !important;
    color: #000 !important;
  }

  main {
    padding-top: 0;
  }
}
