/* Barrierefreiheit (WCAG 2.1 AA) – Ergänzungen zu style.css und responsive.css.
   Wird nach allen anderen Stylesheets geladen. */

/* ---------- Sprunglink ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100000;
  padding: 12px 20px;
  background-color: #fff;
  color: #3d4e35;
  font-size: 20px;
  border-radius: var(--radious);
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* Per Skript fokussierte Überschriften/Bereiche brauchen keinen Rahmen */
[tabindex="-1"]:focus {
  outline: none;
}

/* ---------- Sichtbarer Tastaturfokus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.accordion-button:focus-visible {
  outline: 3px solid #3d4e35 !important;
  outline-offset: 3px;
}
/* auf dunklen Flächen und Fotos gelb */
header a:focus-visible,
header button:focus-visible,
.hero_sec a:focus-visible,
.section2 a:focus-visible,
.bg_dark a:focus-visible,
.bg_dark button:focus-visible,
.bg_dark input:focus-visible,
.bg_dark textarea:focus-visible,
.footer a:focus-visible,
.menu_container_bg a:focus-visible,
.menu_container_bg button:focus-visible {
  outline-color: #ebe34c !important;
}
/* eigene Checkboxen/Radios: echtes Feld ist unsichtbar, daher Rahmen um die Kachel */
.validate_frm .custom-check:focus-within {
  outline: 3px solid #ebe34c;
  outline-offset: 4px;
}

/* ---------- Menü ---------- */
.menu-toggle {
  border: 0;
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 376px) and (max-width: 991px) {
  .menu-toggle img {
    width: 100%;
    height: 100%;
  }
}
/* Geschlossenes Menü ist nicht mehr per Tab erreichbar */
.menu_container_bg {
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.menu_container_bg.open {
  visibility: visible;
  transition: opacity 0.2s ease;
}
/* Fokusrahmen nur so breit wie der Menütext */
.menu_container .menu_sec a.main_head {
  display: table;
  margin-left: auto;
  margin-right: auto;
}
.menu_container .main_head.active,
.menu_container .main_head[aria-current="page"] {
  color: var(--color-primary);
}

/* ---------- Formular ---------- */
/* Platzhalter bleibt beim Tippen lesbar (vorher weiß auf weiß) */
.validate_frm .form-control:focus::placeholder {
  color: #4b4b4b;
}
/* Einzeilige Felder genauso hoch wie die bisherigen Textfelder */
.validate_frm input.form-control {
  padding-bottom: calc(50px + 1.5em);
}
.form-hint {
  font-size: 18px;
  margin-bottom: 0;
}
.validate_frm .error,
.form-error,
.step-error {
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.validate_frm .error {
  font-size: 18px;
  margin: 12px 0 0;
}
.validate_frm .error:empty,
.form-error:empty,
.step-error:empty {
  display: none;
}
.form-error,
.step-error {
  font-size: 20px;
  margin: 20px 0 0;
}
.form-error::before,
.step-error::before {
  content: "⚠ ";
}
/* Fehler nicht nur über Farbe: Ausrufezeichen im Status-Kreis */
.field-wrapper:has([aria-invalid="true"]) .valid-icon::after,
.field-wrapper:has([aria-invalid="true"]) .invalid-icon::after {
  content: "!";
  color: #3d4e35;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}

/* ---------- Buttons ---------- */
/* Bootstrap setzt beim Fokus den Hintergrund transparent -> Buttons behalten ihre Farbe */
.btn.bg_white:focus-visible {
  background-color: #fff !important;
}
.btn.bg_primary:focus-visible {
  background-color: #f0ee42 !important;
}
/* Hover-Kontrast (grau auf gelb 4,2:1 -> 6,5:1) */
.btn:hover {
  color: #4b4b4b !important;
}
@media only screen and (min-width: 320px) and (max-width: 767px) {
  button.mx-2.normal_btn.btn-outline-new.bg_white {
    margin-bottom: 12px;
  }
}

/* ---------- Überschriften (vorher h3/p, jetzt p/h1/h3) ---------- */
.hero_sub_head {
  margin-bottom: 0.5rem;
}

/* ---------- Schnuppertag (Anmeldung) ---------- */
.appointment_box .appointment_label {
  color: #575954;
  font-size: 20px;
  line-height: 1.5;
  font-weight: normal;
  font-family: "Borel", sans-serif;
  margin: 0;
}
.appointment_box .appointment_date {
  position: relative;
  color: #c8703f; /* vorher #eca480: 2,1:1, jetzt 3,6:1 */
  font-size: 60px;
  line-height: 1.2;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  max-width: none;
  margin: 0;
  padding-bottom: 10px;
}
.appointment_box .appointment_date:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 50%;
  max-width: 100px;
  height: 4px;
  border-radius: 10px;
  background-color: #eba37f;
  margin: auto;
}
@media (max-width: 767px) {
  .appointment_box .appointment_date {
    font-size: 44px;
  }
}

/* ---------- Footer-Kontraste ---------- */
.footer-bottom p,
.footer-bottom p a {
  color: #fff !important; /* vorher #e4e4da: 4,3:1, jetzt 5,5:1 */
}
.footer-bottom .text_primary {
  color: #f9f050 !important; /* vorher #ebe34c: 4,1:1, jetzt 4,6:1 */
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .section3 {
    background-attachment: scroll;
  }
}
