/* =====================================================================
   AHNAV — eigenständiges, gescoptes Navigations-Stylesheet
   Quelle: Sara, 2026-06-17, Bauteil Variante A (#ahnav-styles), 1:1.
   Wurzelklasse: .ahnav  ·  Theme-Kollisions-Schutz: alles unter .ahnav
   ===================================================================== */

.ahnav{
  /* --- GL-003 §7.2 Tokens, lokal gescoped --- */
  --ah-blue:#1c73bf;
  --ah-blue-deep:#155a96;
  --ah-blue-tint:#eaf2fb;
  --ah-ink:#1f2933;
  --ah-text:#334155;
  --ah-text-muted:#64748b;
  --ah-amber:#c98a3c;
  --ah-radius:8px;
  --ah-focus:#ffd400;
  --ah-logo-green:#5a8a3c;       /* bestehende Marke, NICHT überschreiben */
  --ahnav-line:#e6ebf1;          /* Hairline-Trenner */
  --ahnav-surface:#ffffff;
  --ahnav-shadow:0 1px 0 rgba(20,40,70,.06), 0 6px 20px rgba(20,40,70,.05);
  --ahnav-shadow-stuck:0 1px 0 rgba(20,40,70,.08), 0 10px 28px rgba(20,40,70,.10);
  --ahnav-dd-shadow:0 18px 44px rgba(20,40,70,.16);
  --ahnav-h:74px;                /* Höhe der Leiste, Desktop */
  --ahnav-h-mobile:62px;         /* Höhe der Leiste, Mobil/Tablet */
  --ahnav-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ahnav-z:1000;                /* sticky-Header über Theme-Content, unter WP-Adminbar(32px) */

  position:sticky;
  top:0;
  z-index:var(--ahnav-z);
  background:var(--ahnav-surface);
  box-shadow:var(--ahnav-shadow);
  font-family:var(--ahnav-font);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.ahnav *,
.ahnav *::before,
.ahnav *::after{box-sizing:border-box}

/* WP-Adminbar (eingeloggte Redakteure): sticky unter die 32px-Bar schieben. */
.admin-bar .ahnav{top:32px}
@media (max-width:782px){
  .admin-bar .ahnav{top:46px}
}

/* leichter "festgeklebt"-Schatten, von JS via .is-stuck gesetzt */
.ahnav.is-stuck{box-shadow:var(--ahnav-shadow-stuck)}

/* ---- Innen-Container ------------------------------------------------ */
.ahnav__inner{
  display:flex;
  align-items:center;
  gap:24px;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
  min-height:var(--ahnav-h);
}

/* ---- Brand / Logo --------------------------------------------------- */
.ahnav__brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  margin-right:auto;          /* schiebt Menü + CTA nach rechts */
  flex:0 1 auto;
  min-width:0;                 /* erlaubt Text-Ellipsis im Brand-Block */
}
.ahnav__logo{
  width:40px;height:40px;border-radius:9px;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--ah-logo-green);color:#fff;
  font-weight:700;font-size:18px;overflow:hidden;
}
.ahnav__logo svg{width:23px;height:23px}
.ahnav__logo img{width:100%;height:100%;object-fit:contain;display:block}
.ahnav__brand-text{display:flex;flex-direction:column;line-height:1.18;min-width:0}
.ahnav__brand-name{
  font-size:17px;font-weight:700;color:var(--ah-ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ahnav__brand-sub{
  font-size:12.5px;color:var(--ah-text-muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* =====================================================================
   DESKTOP-MENÜ  (>= 1025px)
   ===================================================================== */
.ahnav__menu{
  display:flex;
  align-items:center;
  gap:2px;
  list-style:none;
  margin:0;padding:0;
}
.ahnav__menu > li{position:relative;margin:0}
.ahnav__link,
.ahnav__disclosure{
  font:inherit;cursor:pointer;border:0;background:none;
  display:inline-flex;align-items:center;gap:6px;
  font-size:16px;font-weight:500;color:var(--ah-ink);
  text-decoration:none;padding:0 14px;height:44px;border-radius:var(--ah-radius);
  transition:color .15s ease, background .15s ease;
}
.ahnav__link:hover,
.ahnav__disclosure:hover{color:var(--ah-blue)}
.ahnav__menu > li.is-current > .ahnav__link{color:var(--ah-blue);font-weight:600}
/* aktiver Seiten-Marker: dezente Linie unter dem aktuellen Top-Level-Punkt */
.ahnav__menu > li.is-current > .ahnav__link::after{
  content:"";position:absolute;left:14px;right:14px;bottom:6px;height:2px;
  background:var(--ah-blue);border-radius:2px;
}
.ahnav__caret{transition:transform .2s ease;flex:none}
.ahnav__menu > li.is-open .ahnav__caret{transform:rotate(180deg)}
.ahnav__menu > li.is-open > .ahnav__disclosure{color:var(--ah-blue)}

/* ---- CTA (Doctolib) ------------------------------------------------- */
.ahnav__cta{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--ah-blue);color:#fff;text-decoration:none;
  font-size:15.5px;font-weight:600;border-radius:var(--ah-radius);
  padding:0 20px;min-height:48px;white-space:nowrap;flex:none;
  transition:background .15s ease;
}
.ahnav__cta:hover{background:var(--ah-blue-deep);color:#fff}
.ahnav__cta svg{width:17px;height:17px;flex:none}

/* ---- Fokusring (GL-003 A11y, #ffd400) ------------------------------- */
.ahnav a:focus-visible,
.ahnav button:focus-visible{
  outline:3px solid var(--ah-focus);
  outline-offset:2px;
  border-radius:var(--ah-radius);
}

/* ---- Dropdown-Panel (Variante A: schlanke Text-Liste) --------------- */
.ahnav__dropdown{
  position:absolute;top:calc(100% + 6px);left:8px;z-index:10;
  width:288px;padding:8px;
  background:#fff;border:1px solid var(--ahnav-line);border-radius:12px;
  box-shadow:var(--ahnav-dd-shadow);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.ahnav__menu > li.is-open .ahnav__dropdown{
  opacity:1;visibility:visible;transform:translateY(0);
}
.ahnav__dropdown ul{list-style:none;margin:0;padding:0}
.ahnav__dropdown a{
  display:block;text-decoration:none;color:var(--ah-ink);
  font-size:15.5px;font-weight:500;line-height:1.35;
  padding:11px 14px;border-radius:var(--ah-radius);
  transition:background .13s ease, color .13s ease;
}
.ahnav__dropdown a:hover,
.ahnav__dropdown a:focus-visible{background:var(--ah-blue-tint);color:var(--ah-blue-deep)}
.ahnav__dropdown a:focus-visible{outline:3px solid var(--ah-focus);outline-offset:-2px}
.ahnav__dropdown-foot{
  margin-top:6px;padding:11px 14px;border-top:1px solid var(--ahnav-line);
  font-size:13.5px;color:var(--ah-text-muted);line-height:1.45;
}
.ahnav__dropdown-foot a{
  display:inline;padding:0;color:var(--ah-blue);font-weight:600;border-radius:3px;
}
.ahnav__dropdown-foot a:hover{background:none;color:var(--ah-blue-deep)}

/* =====================================================================
   BURGER + OFF-CANVAS  (<= 1024px)
   ===================================================================== */
.ahnav__burger{display:none}        /* nur Mobil/Tablet sichtbar */
.ahnav__backdrop{display:none}
.ahnav__offcanvas{display:none}

/* Standard: Desktop-Layout (>= 1025px) sichtbar */
.ahnav__menu,
.ahnav__cta{display:flex}

/* --------------------------------------------------------------------- */
@media (max-width:1024px){
  .ahnav{--ahnav-z:1000}
  .ahnav__inner{min-height:var(--ahnav-h-mobile);gap:12px;padding:0 16px}

  /* Desktop-Bestandteile aus der Leiste nehmen */
  .ahnav__menu{display:none}
  .ahnav__inner > .ahnav__cta{display:none}   /* CTA wandert ins Off-Canvas */

  /* Burger anzeigen */
  .ahnav__burger{
    display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
    gap:5px;flex:none;
    width:48px;height:48px;border-radius:var(--ah-radius);
    border:1px solid var(--ahnav-line);background:#fff;cursor:pointer;
    transition:background .15s ease, border-color .15s ease;
  }
  .ahnav__burger:hover{background:#f7f9fc}
  .ahnav__burger-bar{
    width:21px;height:2px;border-radius:2px;background:var(--ah-ink);
    transition:transform .22s ease, opacity .18s ease;
  }

  /* Off-Canvas-Sheet (rechts) */
  .ahnav__offcanvas{
    display:block;
    position:fixed;top:0;right:0;bottom:0;z-index:1002;
    width:min(86vw,360px);
    background:#fff;
    box-shadow:-18px 0 44px rgba(20,40,70,.18);
    transform:translateX(100%);
    transition:transform .26s cubic-bezier(.4,0,.2,1);
    display:flex;flex-direction:column;
    overscroll-behavior:contain;
  }
  .ahnav__backdrop{
    display:block;
    position:fixed;inset:0;z-index:1001;
    background:rgba(20,40,70,.42);
    opacity:0;visibility:hidden;
    transition:opacity .26s ease, visibility .26s ease;
  }

  /* offen-Zustand: vom JS via .ahnav-lock auf <body> getriggert */
  body.ahnav-lock .ahnav__offcanvas{transform:translateX(0)}
  body.ahnav-lock .ahnav__backdrop{opacity:1;visibility:visible}

  /* Sheet-Kopf */
  .ahnav__sheet-head{
    display:flex;align-items:center;gap:10px;
    padding:14px 16px;min-height:var(--ahnav-h-mobile);
    border-bottom:1px solid var(--ahnav-line);
  }
  .ahnav__sheet-head .ahnav__brand{margin-right:auto}
  .ahnav__close{
    width:44px;height:44px;border-radius:var(--ah-radius);flex:none;
    border:1px solid var(--ahnav-line);background:#fff;cursor:pointer;
    display:flex;align-items:center;justify-content:center;color:var(--ah-ink);
    transition:background .15s ease;
  }
  .ahnav__close:hover{background:#f7f9fc}
  .ahnav__close svg{width:20px;height:20px}

  /* Sheet-Body (scrollbar) */
  .ahnav__sheet-body{
    flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;
    padding:8px;
  }
  .ahnav__sheet-list{list-style:none;margin:0;padding:0}
  .ahnav__sheet-list > li{margin:0}

  .ahnav__sheet-link,
  .ahnav__sheet-disclosure{
    font:inherit;cursor:pointer;border:0;background:none;width:100%;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    text-align:left;text-decoration:none;
    padding:14px;border-radius:10px;min-height:48px;
    font-size:16.5px;font-weight:600;color:var(--ah-ink);
    transition:background .14s ease, color .14s ease;
  }
  .ahnav__sheet-link:hover,
  .ahnav__sheet-disclosure:hover{background:#f4f8fd}
  .ahnav__sheet-list > li.is-current > .ahnav__sheet-link{color:var(--ah-blue)}
  .ahnav__sheet-chev{flex:none;color:var(--ah-text-muted);transition:transform .22s ease}
  .ahnav__sheet-list > li.is-open > .ahnav__sheet-disclosure{
    background:var(--ah-blue-tint);color:var(--ah-blue-deep);
  }
  .ahnav__sheet-list > li.is-open .ahnav__sheet-chev{transform:rotate(180deg)}

  /* eingeklappte Untergruppe: per max-height animiert, default zu */
  .ahnav__sheet-sub{
    list-style:none;margin:0;padding:0;
    max-height:0;overflow:hidden;
    transition:max-height .28s ease;
  }
  .ahnav__sheet-list > li.is-open .ahnav__sheet-sub{max-height:760px}
  .ahnav__sheet-sub a{
    display:block;text-decoration:none;color:var(--ah-text);
    padding:13px 14px 13px 26px;border-radius:9px;min-height:48px;
    font-size:15.5px;font-weight:500;line-height:1.3;
    display:flex;align-items:center;
    transition:background .13s ease, color .13s ease;
  }
  .ahnav__sheet-sub a:hover,
  .ahnav__sheet-sub a:focus-visible{background:#f4f8fd;color:var(--ah-blue-deep)}

  /* CTA im Sheet: voll-breiter blauer Button, fix unten */
  .ahnav__sheet-foot{
    flex:none;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top:1px solid var(--ahnav-line);background:#fff;
  }
  .ahnav__sheet-cta{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;background:var(--ah-blue);color:#fff;text-decoration:none;
    font-size:16px;font-weight:600;border-radius:var(--ah-radius);min-height:52px;
    transition:background .15s ease;
  }
  .ahnav__sheet-cta:hover{background:var(--ah-blue-deep);color:#fff}
  .ahnav__sheet-cta svg{width:18px;height:18px;flex:none}

  /* KOLLISIONS-FIX (Tobi): bestehender mobiler Sticky-Bottom-CTA
     (ameliehaas-sticky-cta.php, z-index 99999) würde sonst ÜBER dem
     offenen Off-Canvas-Sheet schweben. Solange das Sheet offen ist
     (body.ahnav-lock), den Sticky-CTA ausblenden. */
  body.ahnav-lock .ah-sticky-cta{display:none !important}
}

/* >= 1025px: Off-Canvas-Markup ist im DOM, bleibt aber komplett aus */
@media (min-width:1025px){
  .ahnav__offcanvas,
  .ahnav__backdrop,
  .ahnav__burger{display:none !important}
}

/* No-JS-Fallback: ohne JS Dropdown via :hover/:focus öffnen */
.ahnav-no-js .ahnav__menu > li:hover .ahnav__dropdown,
.ahnav-no-js .ahnav__menu > li:focus-within .ahnav__dropdown{
  opacity:1;visibility:visible;transform:translateY(0);
}

/* prefers-reduced-motion (GL-003 A11y, Pflicht) */
@media (prefers-reduced-motion:reduce){
  .ahnav *,
  .ahnav__offcanvas,
  .ahnav__backdrop,
  .ahnav__dropdown,
  .ahnav__sheet-sub{transition:none !important}
}

/* ---- NAVFIX (Tobi 2026-06-17): Disclosure erbt sonst Customify-Default-
   Button-Styling (button:not(...) => blauer Block var(--customify-primary)
   weiße Schrift). Saras `.ahnav__disclosure{background:initial}` ist zu
   schwach (0,1,0 + kein !important < Theme 0,1,1). Höhere Spezifität
   (.ahnav nav ...) + !important schlägt die Theme-Regel sicher.
   Ergebnis: dezenter Nav-Link, kein blauer Button, "Über mich" einzeilig. */
.ahnav nav .ahnav__disclosure,
.ahnav .ahnav__inner .ahnav__disclosure{
  background:transparent !important;
  background-color:transparent !important;
  color:#1f2933 !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  font:inherit !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  white-space:nowrap !important;
  min-height:0 !important;
  padding:0 14px !important;
}
.ahnav nav .ahnav__disclosure:hover,
.ahnav nav .ahnav__disclosure[aria-expanded="true"]{
  color:#1c73bf !important;
  background:transparent !important;
}
.ahnav__inner a, .ahnav nav .ahnav__disclosure{ white-space:nowrap !important; }
/* ---- /NAVFIX (Tobi 2026-06-17) ---- */

/* ---- NAVFIX-MOBILE (Tobi 2026-06-23): Mobil-Off-Canvas-Disclosure -------
   Analog zum Desktop-NAVFIX (2026-06-17), aber fuer den Sheet-Button
   `.ahnav__sheet-disclosure`. Saras eigene Regel `background:none;
   color:var(--ah-ink)` (0,1,0, kein !important) verliert gegen Customify
   `button:not(.menu-mobile-toggle, ...)` (0,1,1) => geschlossener Button
   wurde dunkelblauer Block (#235787) mit weisser Schrift.
   FALLE: der gewollte is-open-Tint (var(--ah-blue-tint)/--ah-blue-deep)
   MUSS gewinnen, der Hover (#f4f8fd) MUSS erhalten bleiben. Daher:
   - Reset NUR auf den geschlossenen Zustand via :not(.is-open) (0,4,0 + !important).
   - Hover separat, ebenfalls nur :not(.is-open).
   - is-open-Tint explizit mit gleicher/hoeherer Spezifitaet + !important bekraeftigt,
     damit er den Reset sicher schlaegt. */

/* geschlossen: transparent, dunkel-ink, Bauteil-Geometrie (radius 10px) */
.ahnav .ahnav__sheet-list > li:not(.is-open) > .ahnav__sheet-disclosure{
  background:transparent !important;
  background-color:transparent !important;
  color:var(--ah-ink, #1f2933) !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:10px !important;
  font:inherit !important;
  text-transform:none !important;
  letter-spacing:normal !important;
}
/* geschlossen + Hover: heller Bauteil-Hover, dunkel-ink (NICHT weiss) */
.ahnav .ahnav__sheet-list > li:not(.is-open) > .ahnav__sheet-disclosure:hover{
  background:#f4f8fd !important;
  background-color:#f4f8fd !important;
  color:var(--ah-ink, #1f2933) !important;
}
/* aufgeklappt (is-open): heller Tint gewinnt sicher (Bauteil-Wunschzustand) */
.ahnav .ahnav__sheet-list > li.is-open > .ahnav__sheet-disclosure{
  background:var(--ah-blue-tint, #eaf2fb) !important;
  background-color:var(--ah-blue-tint, #eaf2fb) !important;
  color:var(--ah-blue-deep, #155a96) !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:10px !important;
}
/* ---- /NAVFIX-MOBILE (Tobi 2026-06-23) ---- */

/* NAVFIX-MOBILE-2 (Tobi 2026-06-23) — Customify button:not(...)-Durchschlag am Sheet neutralisieren */
.ahnav .ahnav__close{
  background:transparent !important; background-color:transparent !important;
  color:var(--ah-ink,#1f2933) !important;
  border:0 !important; box-shadow:none !important; border-radius:0 !important;
  text-transform:none !important; font-weight:inherit !important;
}
.ahnav .ahnav__close:hover,
.ahnav .ahnav__close:focus-visible{ color:var(--ah-blue,#1c73bf) !important; }
.ahnav .ahnav__sheet-list .ahnav__sheet-disclosure{
  justify-content:space-between !important;
  text-align:left !important;
  text-transform:none !important;
  font-weight:400 !important;
}
/* KEIN background-Override hier — is-open-Tint (#eaf2fb/#155a96) + Hover (#f4f8fd) bleiben unangetastet */
/* /NAVFIX-MOBILE-2 */

/* NAVFIX-BURGER (James 2026-06-23) — Customify button:not(...)-Durchschlag am Burger neutralisieren, Bauteil-Design wiederherstellen */
.ahnav .ahnav__burger{
  background:#fff !important; background-color:#fff !important;
  border:1px solid var(--ahnav-line,#e2e8f0) !important;
  border-radius:var(--ah-radius,10px) !important;
  box-shadow:none !important;
  text-transform:none !important;
}
.ahnav .ahnav__burger:hover,
.ahnav .ahnav__burger:focus-visible{ background:#f7f9fc !important; background-color:#f7f9fc !important; }
.ahnav .ahnav__burger .ahnav__burger-bar{ background:var(--ah-ink,#1f2933) !important; }
/* /NAVFIX-BURGER */


/* ============================================================
   NAVFIX-POLISH (James 2026-06-23 / rev2 nach Andreas-Feedback)
   Idempotent. rev2: Logo-Dopplung zurueckgenommen (Brand-Text bleibt,
   Logo Originalgroesse), Close-X ganz aus (display:none), Sub-Items
   schlicht eingerueckt OHNE Linie. Backdrop/Typo/Start/Radius bleiben.
   ============================================================ */

/* --- A11y: Fokusring volle 3px erzwingen --- */
.ahnav a:focus-visible,
.ahnav button:focus-visible{
  outline:3px solid var(--ah-focus,#ffd400) !important;
  outline-offset:2px !important;
}
.ahnav__sheet-sub a:focus-visible{
  outline:3px solid var(--ah-focus,#ffd400) !important;
  outline-offset:2px !important;
}
.ahnav__sheet-cta:focus-visible{ outline-offset:3px !important; }

/* --- Close-X: ganz aus (Andreas: brauchen wir nicht; Esc + Backdrop-Tap schliessen) --- */
.ahnav .ahnav__close{ display:none !important; }

/* --- Disclosure-Radius 10->8 (schlaegt die zwei (0,4,1)-!important-Regeln) --- */
.ahnav .ahnav__sheet-list > li:not(.is-open) > .ahnav__sheet-disclosure,
.ahnav .ahnav__sheet-list > li.is-open > .ahnav__sheet-disclosure{
  border-radius:8px !important;
}

@media (max-width:980px){
  /* --- Backdrop: dunkler + Blur --- */
  .ahnav__backdrop{
    background:rgba(10,25,50,.60) !important;
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    will-change:opacity;
  }

  /* --- Aktiv „Start": tiefblau + bold, entschaerft CTA-Farbkonkurrenz --- */
  .ahnav__sheet-list > li.is-current > .ahnav__sheet-link{
    color:var(--ah-blue-deep,#155a96) !important;
    font-weight:700 !important;
  }

  /* --- Typo (px, kein rem) --- */
  .ahnav__sheet-link,
  .ahnav__sheet-disclosure{ font-size:17px; }   /* war 16.5 */
  .ahnav__sheet-sub a{ font-size:16px; }          /* war 15.5 */

  /* --- Rhythmus --- */
  .ahnav__sheet-body{ padding:12px 8px 8px; }
  .ahnav__sheet-list > li:first-child{ margin-top:4px; }

  /* --- Trennlinie Sheet-Kopf --- */
  .ahnav__sheet-head{ border-bottom-color:#d8e2ed; }

  /* --- Radius vereinheitlichen (sheet-link + sub; disclosure oben global) --- */
  .ahnav__sheet-link{ border-radius:8px; }   /* war 10 */
  .ahnav__sheet-sub a{ border-radius:8px; }  /* war 9 */
}

/* Dropdown-Panel-Radius (Desktop) auf 12px */
.ahnav__dropdown{ border-radius:12px; }
/* /NAVFIX-POLISH */

/* ============================================================
   NAVFIX-ALIGN (James 2026-06-24) — „Schwerpunkte" einreihen
   (Sara/Iris-Konsens). Schlaegt die NAVFIX-Regeln font:inherit
   !important + font-weight:400 !important (Spezifitaet 0,4,1)
   mit IDENTISCHEN Selektoren + spaeter im Quelltext.
   Farbe (ink geschlossen / blue-deep is-open) bleibt unangetastet.
   ============================================================ */
.ahnav .ahnav__sheet-list > li:not(.is-open) > .ahnav__sheet-disclosure,
.ahnav .ahnav__sheet-list > li.is-open > .ahnav__sheet-disclosure{
  font-weight:600 !important;
  font-size:17px !important;
  padding:14px !important;
  margin:0 !important;
  text-indent:0 !important;
}
/* neue SVG-Chevrons auf den Plain-Links: muted, KEIN Rotate (is-open nur am Disclosure) */
.ahnav__sheet-link .ahnav__sheet-chev{
  color:var(--ah-text-muted,#64748b);
  transform:none !important;
  flex:none;
}
/* /NAVFIX-ALIGN */

/* ============================================================
   NAVFIX-FINAL (James 2026-06-24) — Abnahme-Feinschliff
   1) dezenter „Schliessen"-Button unten (BFSG, Vera) + Customify-Reset
   2) Backdrop kraeftiger (.60->.72), Sara P1
   3) Link-Chevrons heller/muted (Sara)
   ============================================================ */

/* --- 1) Schliessen-Button im Sheet-Footer: dezenter Text-Button,
   Customify button:not(...) neutralisieren (sonst blauer Block) --- */
.ahnav .ahnav__sheet-close-text{
  display:block; width:100%; margin:8px 0 0;
  background:transparent !important; background-color:transparent !important;
  border:0 !important; box-shadow:none !important; border-radius:8px !important;
  color:var(--ah-text-muted,#64748b) !important;
  font:inherit !important; font-size:15px !important; font-weight:500 !important;
  text-transform:none !important; letter-spacing:normal !important;
  min-height:44px; cursor:pointer; text-align:center;
}
.ahnav .ahnav__sheet-close-text:hover,
.ahnav .ahnav__sheet-close-text:focus-visible{
  background:#f4f8fd !important; background-color:#f4f8fd !important;
  color:var(--ah-blue-deep,#155a96) !important;
}

@media (max-width:980px){
  /* --- 2) Backdrop kraeftiger fuer klare Fokus-Trennung --- */
  .ahnav__backdrop{
    background:rgba(10,20,40,.72) !important;
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    will-change:opacity;
  }

  /* --- 3) Link-Chevrons dezenter (heller-muted, klar leiser als Titeltext) --- */
  .ahnav__sheet-link .ahnav__sheet-chev{
    color:#94a3b8 !important;
  }
}
/* /NAVFIX-FINAL */

/* ============================================================
   NAVFIX-DESKTOP (James 2026-06-24) — Desktop-Abnahme
   1) Brand-Untertitel voll zeigen (kein Ellipsis-Abschnitt),
      Brand-Block behaelt natuerliche Breite; bei schmalen
      Desktop-Breiten (<1200px) Untertitel ausblenden (Kollisionsschutz).
   2) Dropdown-Ecken auf System-Radius 8px (Soll, schlaegt 12px).
   Nur Header-Brand (.ahnav__inner), Sheet-Kopf unberuehrt.
   ============================================================ */
.ahnav__inner .ahnav__brand{ flex:none; }
.ahnav__inner .ahnav__brand-text{ min-width:auto !important; }
.ahnav__inner .ahnav__brand-sub{
  overflow:visible !important;
  text-overflow:clip !important;
  max-width:none !important;
}
@media (max-width:1200px){
  .ahnav__inner .ahnav__brand-sub{ display:none !important; }
}
.ahnav__dropdown{ border-radius:var(--ah-radius,8px) !important; }
/* /NAVFIX-DESKTOP */

/* NAVFIX-DESKTOP-2 (James 2026-06-24) — Untertitel im Burger-Modus (Tablet ~600-1024px)
   wieder einblenden: horizontales Menue ist im Burger, Platz ist frei.
   Schlaegt die NAVFIX-DESKTOP-Ausblendung (max-width:1200px) im Ueberlappungsbereich
   durch spaetere Quelltext-Position + gleiche Spezifitaet. <600px bleibt aus (zu eng). */
@media (max-width:1024px) and (min-width:600px){
  .ahnav__inner .ahnav__brand-sub{ display:block !important; }
}
/* /NAVFIX-DESKTOP-2 */

/* NAVFIX-OVERVIEW (James 2026-06-24) — Schwerpunkte-Uebersichts-Link
   „Alle Schwerpunkte ansehen" als erster, abgesetzter Eintrag im Dropdown/Sheet. */
.ahnav__dropdown-overview a{
  font-weight:600 !important;
  color:var(--ah-blue,#1c73bf) !important;
  border-bottom:1px solid var(--ahnav-line,#e6ebf1);
  margin-bottom:4px;
  padding-bottom:10px;
}
.ahnav__dropdown-overview a:hover,
.ahnav__dropdown-overview a:focus-visible{
  color:var(--ah-blue-deep,#155a96) !important;
  background:var(--ah-blue-tint,#eaf2fb);
}
.ahnav__sheet-sub-overview{
  font-weight:600 !important;
  color:var(--ah-blue,#1c73bf) !important;
}
/* /NAVFIX-OVERVIEW */

/* NAVFIX-HEADER-FALLBACK (James 2026-06-24) — Update-Haertung gegen Doppel-Header. */
#masthead.site-header,
#customify-header { display:none !important; }
/* /NAVFIX-HEADER-FALLBACK */
