/* Muhmelädchen – Richtung B „Ladenschild“ – Farb-Token
   Alle Textpaare >= 4,5:1 (WCAG 2.2 AA), Prüfung siehe ../system_farbe.md */
:root {
  /* Grundflächen */
  --kalk:            #F4F0E8; /* heller Grund, Hauptfläche */
  --kalk-2:          #E9E3D7; /* zweite helle Fläche (Kartenfuß, Formularfeld) */
  --papier:          #FFFFFF; /* nur Wappen-Platz hinter dem Logo-JPG */
  --schwarz:         #161513; /* Logo-Schwarz: dunkle Sections, Schildplatte, Text auf hell */
  --schwarz-2:       #22201D; /* Karte/Tab auf dunklem Grund */
  --schwarz-3:       #2E2B27; /* Hover auf dunkler Karte */

  /* Text */
  --text:            #161513; /* auf Kalk 16,1:1 */
  --text-2:          #4A4640; /* Nebentext auf Kalk 8,2:1, auf Kalk-2 7,3:1 */
  --text-hell:       #F4F0E8; /* auf Schwarz 16,1:1 */
  --text-hell-2:     #B9B2A6; /* Nebentext auf Schwarz 8,7:1, auf Schwarz-3 6,7:1 */

  /* Terrakotta – einzige Farbe */
  --terra:           #BE6C3D; /* Markenton (Sponsorentafel): NUR auf Schwarz (4,7:1) und als Grafik */
  --terra-tief:      #9A4E25; /* Hauptbutton, aktiver Filter, Stempel auf Kalk; Kalk-Text 5,3:1 */
  --terra-tief-hover:#8C4520; /* Hover/aktiv des Hauptbuttons; Kalk-Text 6,2:1 */
  --terra-licht:     #D98A5C; /* Terrakotta-Text/Link-Hover auf Schwarz 6,7:1 */

  /* Linien (dekorativ, kein Text) */
  --linie-hell:      #CFC7B9; /* Trennlinie auf Kalk */
  --linie-dunkel:    #4A453E; /* Trennlinie auf Schwarz */
  --rahmen-hell:     #161513; /* Wappenschild-Kontur 2 px auf Kalk */
  --rahmen-dunkel:   #F4F0E8; /* Wappenschild-Kontur 2 px auf Schwarz */

  /* Zustände */
  --fokus-hell:      #161513; /* Fokusring auf Kalk (3 px + 3 px Abstand) */
  --fokus-dunkel:    #F4F0E8; /* Fokusring auf Schwarz und auf Terrakotta-Button */
  --fehler:          #B3261E; /* auf Kalk 5,8:1 */
  --fehler-dunkel:   #F2A097; /* auf Schwarz 8,9:1 */
  --erfolg:          #2F6B3A; /* auf Kalk 5,6:1 */
  --erfolg-dunkel:   #8FC79A; /* auf Schwarz 9,4:1 */
  --platzhalter:     #9A4E25; /* Rahmen „Steckbrief folgt“ gestrichelt, Text bleibt --text-2 */

  /* Video-Abdunklung nur unten links / Info-Plakette */
  --scrim:           rgba(22, 21, 19, .72);
}

/* Section-Rollen */
.hell   { background: var(--kalk);    color: var(--text); }
.dunkel { background: var(--schwarz); color: var(--text-hell); }

/* Buttons */
.btn-haupt { background: var(--terra-tief); color: var(--kalk); border: 2px solid var(--terra-tief); }
.btn-haupt:hover, .btn-haupt:active { background: var(--terra-tief-hover); border-color: var(--terra-tief-hover); }
.hell .btn-kontur   { background: transparent; color: var(--schwarz); border: 2px solid var(--schwarz); }
.hell .btn-kontur:hover   { background: var(--schwarz); color: var(--kalk); }
.dunkel .btn-kontur { background: transparent; color: var(--kalk); border: 2px solid var(--kalk); }
.dunkel .btn-kontur:hover { background: var(--kalk); color: var(--schwarz); }

.hell :focus-visible   { outline: 3px solid var(--fokus-hell);   outline-offset: 3px; }
.dunkel :focus-visible { outline: 3px solid var(--fokus-dunkel); outline-offset: 3px; }

/* Schildplatte */
.schild          { background: var(--schwarz); color: var(--text-hell); }
.dunkel .schild  { background: var(--kalk);    color: var(--text); } /* invertiert */

::selection { background: var(--terra-tief); color: var(--kalk); }
