/* BRYZE Ads: Tokens, Schriften, Grundstile, Knöpfe, Felder, Chips.
   Feste helle Farbwelt (Beige und Pflaume). Alle Schriften werden von dieser Anwendung selbst ausgeliefert (/fonts/),
   es gibt keine Anfrage an Dritte. Ampelfarben stehen nur in den Ampel-Bausteinen. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque_800ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree_400Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree_600SemiBold.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono_400Regular.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* Farben */
  --seite: #F7EEDF;
  --text: #211725;
  --leise: #5B5160;
  --flaeche: #FFFFFF;
  --flaeche-warm: #FBF5EA;
  --linie: rgba(33, 23, 37, .14);
  --linie-stark: rgba(33, 23, 37, .42);
  --akzent: #B9E9DC;
  --akzent-tief: #8FD3C2;
  --pflaume-hell: #3A2A3F;
  --auf-pflaume: #F7EEDF;

  /* Ampel (nur für Ampeln) */
  --gruen: #2F8F5B;
  --gelb: #D9A21B;
  --rot: #C8423B;
  --grau: #8A8190;
  --gruen-flaeche: #DDEFE3;
  --gelb-flaeche: #F6E8BE;
  --rot-flaeche: #F5D6D2;
  --grau-flaeche: #E8E3EA;
  --annahme-flaeche: #F6E6B8;
  --annahme-rand: #C89A1E;

  /* Schriften */
  --schrift-kopf: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --schrift-text: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --schrift-zahl: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Maße */
  --rand: 16px;
  --radius: 16px;
  --radius-klein: 12px;
  --tipp: 44px;
  --schatten: 0 1px 0 rgba(33, 23, 37, .04), 0 6px 18px -10px rgba(33, 23, 37, .28);
  --kopf-hoehe: 56px;
  --unterleiste-hoehe: 64px;
  --leiste-breite: 248px;
  --leiste-schmal: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--seite);
  color: var(--text);
  font: 400 16px/1.5 var(--schrift-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--schrift-kopf); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(1.65rem, 5.2vw, 2.15rem); }
h2 { font-size: clamp(1.2rem, 3.6vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }
strong, b { font-weight: 600; }
a { color: var(--text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--akzent-tief); }
a:hover { text-decoration-color: var(--text); }
ul, ol { margin: 0; padding-left: 1.2em; }
code, .zahl, .mono { font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 16px 0; }
[hidden] { display: none !important; }
.nur-lesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.leise { color: var(--leise); }
.klein { font-size: .875rem; line-height: 1.45; }
.winzig { font-size: .8125rem; line-height: 1.4; }

/* Sichtbarer Fokus: Pflaume innen (Kontrast), Mint außen (Marke) */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 5px var(--akzent); border-radius: 8px; }
.knopf:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { border-radius: var(--radius-klein); }

/* Knöpfe: mindestens 44 px Tippfläche */
.knopf {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tipp); min-width: var(--tipp);
  padding: 0 18px;
  border: 1.5px solid var(--text);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  color: var(--text);
  font: 600 1rem/1.2 var(--schrift-text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { background: var(--flaeche-warm); }
.knopf:active { transform: translateY(1px); }
.knopf--haupt { background: var(--text); color: var(--auf-pflaume); }
.knopf--haupt:hover { background: var(--pflaume-hell); }
.knopf--ruhig { border-color: var(--linie); background: transparent; }
.knopf--ruhig:hover { background: rgba(33, 23, 37, .06); }
.knopf--gefahr { border-color: var(--rot); color: var(--text); background: var(--rot-flaeche); }
.knopf--voll { width: 100%; }
.knopf--klein { padding: 0 14px; font-size: .9375rem; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.knopf--icon { padding: 0; width: var(--tipp); }
.knopf .ikone { width: 20px; height: 20px; flex: none; }

/* Felder */
.feld { display: grid; gap: 6px; }
.feld > label, .etikett { font-weight: 600; font-size: .9375rem; }
.hilfe { color: var(--leise); font-size: .875rem; line-height: 1.4; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; min-height: var(--tipp);
  padding: 10px 12px;
  border: 1.5px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  color: var(--text);
  font: 400 1rem/1.4 var(--schrift-text);
}
input[type="number"], .feld--zahl input { font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums; }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[disabled], select[disabled], textarea[disabled] { background: var(--grau-flaeche); color: var(--leise); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: #75697B; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rot); }
.fehlertext { color: #8E2A25; font-weight: 600; font-size: .9375rem; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--text); flex: none; margin: 0; }
.schalter { display: flex; align-items: center; gap: 12px; min-height: var(--tipp); cursor: pointer; font-weight: 600; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; min-height: 26px;
  border: 1px solid var(--linie-stark); border-radius: 999px;
  background: var(--flaeche); color: var(--text);
  font: 600 .8125rem/1.2 var(--schrift-text);
  white-space: nowrap;
}
.chip--mint { background: var(--akzent); border-color: var(--akzent-tief); }
.chip--annahme { background: var(--annahme-flaeche); border-color: var(--annahme-rand); letter-spacing: .04em; font-size: .75rem; }
.chip--ruhig { border-color: var(--linie); font-weight: 400; }
.chip--dunkel { background: var(--text); color: var(--auf-pflaume); border-color: var(--text); }
.chip--evidenz { font-family: var(--schrift-zahl); font-weight: 400; font-size: .75rem; padding: 1px 7px; min-height: 22px; border-radius: 6px; border-color: var(--linie-stark); background: transparent; }
.chip--zahl { font-family: var(--schrift-zahl); font-weight: 400; }

/* Ampel: nie nur Farbe. Form und Wort tragen die Bedeutung. */
.ampel { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; min-height: 34px; border-radius: 999px; border: 1.5px solid var(--grau); background: var(--grau-flaeche); font: 600 .9375rem/1.2 var(--schrift-text); color: var(--text); white-space: nowrap; }
.ampel__punkt { width: 14px; height: 14px; flex: none; background: var(--grau); border-radius: 50%; }
.ampel--gruen { border-color: var(--gruen); background: var(--gruen-flaeche); }
.ampel--gruen .ampel__punkt { background: var(--gruen); border-radius: 50%; }
.ampel--gelb { border-color: var(--gelb); background: var(--gelb-flaeche); }
.ampel--gelb .ampel__punkt { background: var(--gelb); border-radius: 2px; transform: rotate(45deg) scale(.82); }
.ampel--rot { border-color: var(--rot); background: var(--rot-flaeche); }
.ampel--rot .ampel__punkt { background: var(--rot); border-radius: 3px; }
.ampel--grau .ampel__punkt { background: transparent; border: 2.5px solid var(--grau); }
.ampel--knapp .ampel__punkt { background-image: repeating-linear-gradient(135deg, var(--text) 0 2px, transparent 2px 5px); background-color: var(--seite); border: 2px solid currentColor; }
.ampel--gruen.ampel--knapp .ampel__punkt { border-color: var(--gruen); }
.ampel--gelb.ampel--knapp .ampel__punkt { border-color: var(--gelb); }
.ampel--rot.ampel--knapp .ampel__punkt { border-color: var(--rot); }
.ampel--gross { padding: 10px 20px 10px 16px; font-size: 1.25rem; min-height: 48px; font-family: var(--schrift-kopf); font-weight: 800; }
.ampel--gross .ampel__punkt { width: 20px; height: 20px; }
.ampel--klein { padding: 3px 10px 3px 8px; min-height: 26px; font-size: .8125rem; gap: 7px; }
.ampel--klein .ampel__punkt { width: 11px; height: 11px; }
.ampel__zusatz { font-weight: 400; color: var(--leise); }

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