/* Zusätze zur Website. Nur was die festgelegten Abweichungen brauchen, alles andere kommt unverändert aus den
   Stylesheets unter /css/.
   Farben der Seite (gelesen 25.11.2026): Grund #28292b, Akzent #95bb3a (Knopf „Alle akzeptieren“ des alten Banners: Grün mit Schrift
   #28292b), Text weiß, Fließtext aller mit Rückfall sans-serif. */

/* 1) Hinweis zur Speicherung (Info-Hinweis, Knopf „Nicht mehr anzeigen“). Ersetzt den alten Cookie-Banner.
      Dunkel wie das Banner-Kopfband (#28292b), weiße Schrift (14,6:1), Link und Knopf im Grün der Seite (#95bb3a auf #28292b 6,6:1,
      Knopfschrift #28292b auf Grün 6,6:1, gedrückt #7fa02e 4,8:1). Sichtbar über transform + visibility, Höhe per ResizeObserver in --cookie-h. */
html { scroll-padding-bottom: var(--cookie-h, 0px); }
body.has-cookie { padding-bottom: var(--cookie-h, 0px); }
#cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000001;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem;
  margin: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: #28292b; color: #fff; box-shadow: 0 -5px 13px rgba(0, 0, 0, .35); border-top: 2px solid #95bb3a;
  font-family: aller, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.45; text-align: left;
  transform: translateY(110%); visibility: hidden;
}
#cookie.is-visible { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  #cookie { transition: transform .35s ease, visibility 0s linear .35s; }
  #cookie.is-visible { transition: transform .35s ease, visibility 0s; }
}
#cookie p { margin: 0; padding: 0; flex: 1 1 200px; max-width: 46rem; color: inherit; font-size: inherit; line-height: inherit; }
#cookie a { color: #95bb3a; text-decoration: underline; }
#cookie button {
  font: 600 14px/1.2 aller, sans-serif;
  min-height: 44px; margin: 0; padding: .45rem 1.1rem;
  border: 0; border-radius: 3px; background: #95bb3a; color: #28292b; cursor: pointer;
}
#cookie button:active { background: #7fa02e; }   /* Druck-Feedback dunkler */
#cookie :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Fußknopf „Hinweis zur Speicherung“ (Widerruf): eigener Absatz unter „AGB“ im Block „Rechtliches“. Schrift und Größe erbt er vom
   Textmodul, die Farbe nicht: Weiß auf dem Grün hätte 2,22:1, Dunkel #28292b hat 6,55:1 (WCAG AA verlangt 4,5:1). Das Skript blendet ihn ein. */
.os-fuss-hinweis[hidden] { display: none !important; }
.fuss-speicher {
  font: inherit; line-height: inherit; color: #28292b;
  background: none; border: 0; margin: 0; padding: 0; min-height: 24px; cursor: pointer; text-align: inherit;
}
@media (hover: hover) { .fuss-speicher:hover { text-decoration: underline; } }
.fuss-speicher:active { text-decoration: underline; text-decoration-thickness: 2px; }
@media (forced-colors: active) { .fuss-speicher { color: LinkText; } }

/* 2) 500-Seite (neu, im Look der 404): Links im Text in Dunkel und unterstrichen, sonst Divi-Standardblau mit wenig Kontrast. */
.os-fehlerseite .entry p a { color: #28292b; text-decoration: underline; }
/* 2b) Impressum, AGB und Datenschutz (Rechtstexte mit Links im Fließtext): unterstrichen, damit sie nicht nur an der Farbe erkennbar
       sind (axe link-in-text-block). Farbe bleibt. */
.page-id-240076 .et_pb_text_0 .et_pb_text_inner a, .page-id-240080 .et_pb_text_0 .et_pb_text_inner a, .page-id-240084 .et_pb_text_0 .et_pb_text_inner a { text-decoration: underline; }

/* 3) Credit-Fuß nach Hausstandard (Footer_Standard.md), eigene Leiste unter dem Fuß (die Altseite hatte keinen): dunkel (#171717), Grün
      der Seite #95bb3a für Hover, Druck und Fokus. Auf #171717: Text #cfcfcf 11,5:1, Link Weiß 17,9:1, #95bb3a 8,1:1; Symbol Weiß auf
      dem Abzeichen 14,4:1, dunkel auf #95bb3a 8,1:1. */
.ft-credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin: 0; padding: 20px clamp(20px, 5vw, 40px); background: #171717; border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: aller, sans-serif; font-size: 14px; font-weight: 400; line-height: 24px; color: #cfcfcf;
}
.ft-credit > span:first-child > a { display: inline-block; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ft-socials { display: inline-flex; gap: 16px; align-items: center; }   /* 16px: darunter überlappen die 44er-Trefferflächen */
.ft-socials a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s;
}
.ft-socials a::before { content: ""; position: absolute; inset: -8px; }   /* Optik 28×28, Trefferfläche 44×44 */
.ft-socials svg { width: 14px; height: 14px; fill: currentColor; }
@media (hover: hover) {
  .ft-credit > span:first-child > a:hover { color: #95bb3a; }
  .ft-socials a:hover { background: #95bb3a; color: #171717; }
}
.ft-credit > span:first-child > a:active { color: #95bb3a; }   /* Druck-Feedback, am Handy gibt es kein Hover */
.ft-socials a:active { background: #95bb3a; color: #171717; }
.ft-credit a:focus-visible { outline: 2px solid #95bb3a; outline-offset: 3px; }
@media (max-width: 720px) { .ft-credit { flex-direction: column; gap: 8px; } }

/* 3b) Tastatur-Fokus (nur Fokus nachgerüstet, Hover 1:1 wie auf der früheren Seite): Divi schaltet den Fokusrahmen
       global ab (:focus{outline:0}). Doppelring: Weiß innen, Dunkel #28292b außen, so hat auf jedem Grund mindestens ein Ring 3:1
       (Weiß auf Anthrazit 14,6:1 und Olive 3,5:1, Dunkel auf Grün 6,6:1 und Weiß 14,6:1; Weiß auf Grün nur 2,2:1). Knöpfe, Links und Kästchen zeigen ihn nur bei
       Tastaturbedienung, Textfelder auch nach einem Klick (so ist :focus-visible festgelegt). Der durchsichtige outline trägt den Ring im
       Kontrastmodus, dort fällt box-shadow weg. Hinweis und Credit haben eigene Ringe (oben) und bleiben draußen; das :not mit der ID
       hebt die Regel zugleich über Divis Regeln. */
:where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):not(#cookie *, .ft-credit *):focus-visible {
  outline: 2px solid transparent; outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #28292b;
}
/* Kästchen im Divi-Kontaktformular: Divi blendet das echte Kästchen aus, per Tastatur ließ sich das Formular so nicht absenden, und
   Screenreader fanden es nicht. Das Kästchen liegt jetzt unsichtbar über Divis gezeichnetem (label i), Tab und Leertaste bedienen es,
   Divis Häkchen folgt über :checked. Ring wie oben, der durchsichtige outline trägt ihn im Kontrastmodus. */
html .et_pb_contact .et_pb_contact_field_checkbox { position: relative; }
html .et_pb_contact .et_pb_contact_field input[type=checkbox] {
  display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0;
}
html .et_pb_contact .et_pb_contact_field input[type=checkbox]:focus-visible + label i { outline: 2px solid transparent; outline-offset: 4px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #28292b; }

/* Kontrastmodus: der Fuß ist dort weiß, Kästchen und Felder hätten sonst keine Kontur. */
@media (forced-colors: active) {
  html .et_pb_contact .et_pb_contact_field_checkbox label i, html .et_pb_contact input.input, html .et_pb_contact textarea.input { border: 1px solid !important; box-sizing: border-box; }
}
/* Die Köder-Felder des Spamschutzes liegen außerhalb des Fensters, waren aber per Tab erreichbar, und Vorleseprogramme lasen sie vor. Wer sie
   ausfüllt, wird als Programm behandelt. Unsichtbar geschaltet gehen sie weiter mit ab. */
.wpa_hidden_field, .form_field_sec { visibility: hidden !important; }

/* Hinweis zu den Bewertungen, über den drei Stimmen: Weiß auf #28292b 14,6:1. */
.os-bew-hinweis { width: 80%; max-width: 1080px; margin: 0 auto; padding: 0; color: #fff; font: 300 16px/1.6 aller, sans-serif; text-align: center; text-wrap: balance; }

/* 4) Bewegung reduzieren: Einblend- und Übergangsanimationen der Seite enden sofort, nur wenn der Besucher das eingestellt hat. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  #cookie, #cookie * { transition: none !important; }
}

/* Druck: Hinweis und Fußknopf nicht mitdrucken */
@media print {
  #cookie, .os-fuss-hinweis, .fuss-speicher { display: none !important; }
  body.has-cookie { padding-bottom: 0 !important; }
}
