/* ============================================================
   Ostsee-Handwerker – oh-a11y.css
   Barrierefreiheit: Sprunglink, Fokus, Erkennbarkeit, Bewegung,
   erzwungene Farben, Druck. Quelldatei: assets_new/site/oh-a11y.css
   Im <head> als letzte CSS-Datei laden.
   Ziel: WCAG 2.2 Stufe AA (orientiert an EN 301 549 / BITV-Test).
   ============================================================ */

/* ---------- Sprunglink ----------
   Erster Fokus der Seite; führt zum Hauptinhalt. Liegt außerhalb des
   sichtbaren Bereichs und erscheint erst mit Tastatur-Fokus. */
.oh-skip{
  position:absolute;left:1rem;top:-6rem;z-index:200;
  display:inline-block;padding:.75rem 1.1rem;border-radius:.5rem;
  background:#ffd200;color:#0a0c10;font-size:1rem;font-weight:700;line-height:1.3;
  text-decoration:none;transition:top .15s ease;
}
.oh-skip:focus{top:1rem}
.oh-skip:focus-visible{outline:3px solid #fff;outline-offset:2px}
main[tabindex="-1"]:focus{outline:none}
main[tabindex="-1"]:focus-visible{outline:3px solid #ffd200;outline-offset:-3px}

/* ---------- Fokus sichtbar (WCAG 2.4.7 / 2.4.11) ---------- */
:focus-visible{outline:3px solid #ffd200;outline-offset:2px}
:focus:not(:focus-visible){outline:none}
/* Gelbe Fläche: weiße Fokusrand, damit er sich vom Element abhebt */
.oh-btn-brand:focus-visible,.btn-brand:focus-visible,.oh-skip:focus-visible,#oh-consent .oh-accept:focus-visible,
.oh-az-index a:focus-visible,.oh-mega-cta:focus-visible,#oh-chat .oh-chip:focus-visible,.bg-brand:focus-visible{
  outline:3px solid #fff;outline-offset:2px;
}
/* In scrollenden Flächen und engen Karten läuft der Fokusrand nach innen */
.oh-mnav :focus-visible,.oh-nav-drop-panel :focus-visible,.oh-table-wrap :focus-visible,.oh-card:focus-visible{
  outline-offset:-3px;
}

/* ---------- Ankerziele unter der festen Kopfzeile ---------- */
html{scroll-padding-top:calc(var(--oh-header-h,76px) + 1rem)}
[id]{scroll-margin-top:calc(var(--oh-header-h,76px) + 1rem)}

/* ---------- Kleine Beschriftungen: 10 px auf 11 px angehoben ---------- */
.text-\[10px\]{font-size:.6875rem;line-height:1.45}
.oh-panel-cat,.oh-mnav-cat{font-size:.6875rem}

/* ---------- Links im Fließtext nicht nur über die Farbe erkennen ---------- */
main :is(p, dd, td, small) a:not([class*="btn"]):not([class*="rounded"]):not([class*="border"]):not([class*="card"]):not([class*="inline-flex"]):not([class*="flex"]),
main a:not([class]){
  text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.18em;
}
main :is(p, dd, td, small) a:not([class*="btn"]):not([class*="rounded"]):not([class*="border"]):not([class*="card"]):not([class*="inline-flex"]):not([class*="flex"]):hover{
  text-decoration-thickness:2px;
}

/* ---------- Verkleinerte Bewegung (WCAG 2.3.3, vestiguläre Störungen) ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  [data-reveal]{opacity:1!important;transform:none!important}
  #oh-intro{display:none!important}
  #oh-wa-float,.oh-wa-float span[class*="animate-ping"]{animation:none!important}
}

/* ---------- Erzwungene Farben / Hochkontrast-Modus ---------- */
@media (forced-colors:active){
  .oh-btn,.oh-card,.oh-mnav,.oh-mnav-grp,.oh-nav-drop-panel,.oh-ico,.oh-badge,.oh-note,.oh-warn,
  .oh-table-wrap,.oh-steps li,.oh-facts>div,.oh-faq details,.oh-mega-cta,.oh-head-ico,.oh-pill{
    border:1px solid ButtonText;
  }
  summary{forced-color-adjust:auto}
  .oh-cta-bg img{opacity:.35}
  .oh-skip{border:1px solid ButtonText}
  :focus-visible{outline:3px solid Highlight}
}

/* ---------- Druck ---------- */
@media print{
  header.fixed,.oh-mnav,#oh-fab,#oh-cookie-pill,#oh-chat,#oh-consent,.oh-skip,.oh-wa-float,#oh-view-badge,#oh-loader,#oh-intro,canvas,.oh-head-actions{display:none!important}
  body{background:#fff;color:#000}
  main>section:first-child,main>div:first-child,main>section.oh-hero:first-child{padding-top:1rem}
  .oh-card,.oh-steps li,.oh-table-wrap,.oh-faq details{break-inside:avoid}
  .oh-foot-sky,.oh-cta-bg{display:none!important}
}

/* ---- reflow-kopf: Kopfzeile ohne seitliches Scrollen ab 320 px ---- */
@media(min-width:360px) and (max-width:399px){.oh-head-tel{display:none}.oh-logo{gap:.5rem}.oh-logo-mark{width:2rem;height:2rem}.oh-logo-text{font-size:.9375rem;letter-spacing:0}}
@media(min-width:400px) and (max-width:479px){.oh-logo{gap:.5rem}.oh-logo-mark{width:2rem;height:2rem}.oh-logo-text{font-size:.9375rem;letter-spacing:0}}
a.oh-head-ico:focus-visible,button.oh-head-ico:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* ---- tastziele: Abschnitts-Links im Inhaltsverzeichnis der AGB-Seite ----
   Block-Links mit 16 px Hoehe direkt untereinander: Ziel unter 24 x 24 px und kein Abstand zum
   Nachbarn (WCAG 2.2, 2.5.8). Mindesthoehe 24 px, Text darin mittig. */
main a.block[href^="#p"]{min-height:24px;display:flex;align-items:center}
