/* =====================================================================
   Gemeinde Malsfeld — Design-System (Prototyp)
   Quelle: abgenommene Designstudie. Farben/Fonts zusätzlich in der
   Tailwind-Config jeder Seite (CDN). Diese Datei = zentrale Custom-CSS.
   WordPress-Mapping: -> style.css / Theme-Tokens
   ===================================================================== */

:root {
  --primary: #0c2640;   /* ink      */
  --ink-soft: #143a5e;
  --gold:    #0061a8;
  --gold-soft: #a8c018;
  --cream:   #f2f6f9;
  --line:    #dbe4ec;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .serif { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.01em; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1100ms cubic-bezier(.2,.7,.2,1), transform 1100ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 280ms; }
.reveal-delay-4 { transition-delay: 380ms; }
.reveal-delay-5 { transition-delay: 480ms; }
.reveal-delay-6 { transition-delay: 580ms; }

/* ---- Ken Burns ---- */
.ken-burns { position: absolute; inset: 0; overflow: hidden; }
.ken-burns > img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1.05) translate3d(-1%, 0, 0); }
  100% { transform: scale(1.16) translate3d(1.5%, -1.5%, 0); }
}

/* ---- Header ---- */
.site-header { transition: background-color 500ms ease, box-shadow 500ms ease, color 400ms ease, backdrop-filter 400ms ease; }
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(12,38,64,0.06), 0 12px 30px -20px rgba(12,38,64,0.18);
  color: var(--primary);
}
.site-header.is-scrolled .nav-link { color: #24384d; }
.site-header.is-scrolled .brand-line { color: var(--primary); }
.site-header.is-scrolled .brand-sub  { color: #6b7280; }
/* Auf Unterseiten (kein Hero) startet der Header direkt im Solid-Zustand */
.site-header.header-solid {
  background: #fff;
  box-shadow: 0 1px 0 rgba(12,38,64,0.06), 0 12px 30px -20px rgba(12,38,64,0.18);
  color: var(--primary);
}
.site-header.header-solid .nav-link { color: #24384d; }
.site-header.header-solid .brand-line { color: var(--primary); }
.site-header.header-solid .brand-sub  { color: #6b7280; }

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* ---- Dropdown (Rathaus) ---- */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; background: #fff; color: var(--primary);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  box-shadow: 0 30px 60px -25px rgba(12,38,64,0.28);
  opacity: 0; visibility: hidden; transition: opacity 250ms ease, transform 250ms ease;
  z-index: 60;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Unsichtbare Brücke über den 14px-Spalt: hält den Hover beim Wechsel Menüpunkt -> Dropdown */
.nav-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 20px; }
/* Sicherheit: Dropdown auch während des Hoverns interaktiv */
.nav-item:hover .nav-dropdown { pointer-events: auto; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; color: #24384d; transition: background 200ms ease, color 200ms ease;
}
.nav-dropdown a:hover { background: var(--cream); color: var(--gold); }
/* Große Dropdowns mehrspaltig (Mega-Menü) */
.nav-dropdown--mega2 { min-width: 520px; max-width: 92vw; column-count: 2; column-gap: 6px; }
.nav-dropdown--mega3 { min-width: 720px; max-width: 92vw; column-count: 3; column-gap: 6px; }
.nav-dropdown--mega2 a, .nav-dropdown--mega3 a { break-inside: avoid; padding-top: 9px; padding-bottom: 9px; }

/* Gruppiertes Mega-Menü (Oberkategorien mit Icon + untergeordneten Einträgen) */
.nav-dropdown.nav-mega { display: flex; align-items: flex-start; gap: 26px; min-width: auto; max-width: 94vw; padding: 22px 24px; }
.nav-mega .nav-group { min-width: 168px; }
.nav-mega .nav-group-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text);
  white-space: nowrap;
}
.nav-group-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--cream); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-mega .nav-group-list a { padding: 6px 8px; font-size: 13.5px; }
.nav-mega .nav-group-list a:hover { background: var(--cream); color: var(--gold); }

/* ---- Alert-/Breaking-News-Leiste ---- */
:root { --alert-h: 0px; }
#alertBar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--primary); color: #fff; }
header.site-header { top: var(--alert-h); }      /* Header rückt unter die Leiste (Spezifität schlägt Tailwind .top-0) */
main.pt-20 { padding-top: calc(6rem + var(--alert-h)); } /* Inhalt unter fixem Header+Leiste */
.alert-track { position: relative; }
.alert-item { display: none; align-items: center; gap: 12px; }
.alert-item.is-current { display: flex; }
.alert-label { flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.alert-label.warnung { background: var(--gold); color: #fff; }
.alert-label.sperrung { background: #c0392b; color: #fff; }
.alert-label.info { background: rgba(255,255,255,0.16); color: #fff; }
.alert-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-text a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.alert-text a:hover { color: #fff; }
#alertClose { flex-shrink: 0; opacity: 0.7; transition: opacity 200ms ease; }
#alertClose:hover { opacity: 1; }
/* Immer einzeilig -> konstante Leistenhöhe, kein Springen beim Rotieren */

/* WordPress Admin-Bar (nur eingeloggt): fixe Leiste + Header darunter versetzen */
body.admin-bar #alertBar { top: 32px; }
body.admin-bar .site-header { top: calc(var(--alert-h) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar #alertBar { top: 46px; }
  body.admin-bar .site-header { top: calc(var(--alert-h) + 46px); }
}

/* Hauptnavigation: nie umbrechen */
.site-header nav { flex-wrap: nowrap; }
.nav-link { white-space: nowrap; }

/* ---- Mobile-Nav ---- */
.mobile-nav { transition: opacity 350ms ease, visibility 350ms ease; }
.mobile-nav.is-open { opacity: 1; visibility: visible; }

/* ---- Seiten-Hero (Unterseiten) ---- */
.page-hero { position: relative; overflow: hidden; min-height: clamp(320px, 46vh, 500px) !important; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-vignette {
  background:
    linear-gradient(95deg, rgba(8,14,26,0.86) 0%, rgba(8,14,26,0.62) 35%, rgba(8,14,26,0.40) 70%, rgba(8,14,26,0.55) 100%),
    linear-gradient(180deg, rgba(8,14,26,0.45) 0%, rgba(8,14,26,0.20) 45%, rgba(8,14,26,0.72) 100%);
}

/* ---- Home-Hero ---- */
.hero-vignette {
  background:
    linear-gradient(95deg, rgba(8,14,26,0.78) 0%, rgba(8,14,26,0.55) 22%, rgba(8,14,26,0.22) 55%, rgba(8,14,26,0.10) 80%, rgba(8,14,26,0.20) 100%),
    linear-gradient(180deg, rgba(8,14,26,0.55) 0%, rgba(8,14,26,0.18) 30%, rgba(8,14,26,0.30) 65%, rgba(8,14,26,0.85) 100%),
    radial-gradient(140% 100% at 35% 55%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0.55) 100%);
}
.headline-split span {
  display: inline-block; opacity: 0; transform: translateY(28px);
  animation: rise 1100ms cubic-bezier(.2,.7,.2,1) forwards;
}
.headline-split span:nth-child(1) { animation-delay: 200ms; }
.headline-split span:nth-child(2) { animation-delay: 380ms; }
.headline-split span:nth-child(3) { animation-delay: 560ms; }
.headline-split span:nth-child(4) { animation-delay: 740ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue::after {
  content: ''; display: block; width: 1px; height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
  margin: 14px auto 0;
  animation: cueDrop 2.6s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0.2); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---- Themen-Kacheln ---- */
.topic-card { position: relative; overflow: hidden; isolation: isolate; }
.topic-card .topic-img { transition: transform 1400ms cubic-bezier(.2,.7,.2,1), filter 800ms ease; }
.topic-card:hover .topic-img { transform: scale(1.08); filter: brightness(0.85); }
.topic-card .topic-arrow { transition: transform 600ms cubic-bezier(.2,.7,.2,1), opacity 400ms ease; }
.topic-card:hover .topic-arrow { transform: translateX(8px); }
.topic-card .topic-overlay {
  background:
    linear-gradient(180deg, rgba(8,14,26,0.55) 0%, rgba(8,14,26,0.22) 28%, rgba(8,14,26,0.62) 58%, rgba(8,14,26,0.97) 100%),
    radial-gradient(120% 80% at 30% 100%, rgba(8,14,26,0.45) 0%, rgba(8,14,26,0) 62%);
}
.topic-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.parallax-vignette {
  background:
    linear-gradient(95deg, rgba(8,14,26,0.88) 0%, rgba(8,14,26,0.66) 30%, rgba(8,14,26,0.34) 65%, rgba(8,14,26,0.46) 100%),
    radial-gradient(120% 120% at 22% 50%, rgba(8,14,26,0.52) 0%, rgba(8,14,26,0) 60%),
    linear-gradient(180deg, rgba(8,14,26,0.45) 0%, rgba(8,14,26,0.12) 40%, rgba(8,14,26,0.6) 100%);
}
.news-vignette {
  background: linear-gradient(180deg, rgba(8,14,26,0.55) 0%, rgba(8,14,26,0.18) 32%, rgba(8,14,26,0) 50%);
}

/* ---- News-Karten ---- */
.news-card { transition: transform 600ms cubic-bezier(.2,.7,.2,1), box-shadow 600ms ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(12,38,64,0.22); }
.news-card .news-img { transition: transform 1400ms cubic-bezier(.2,.7,.2,1); }
.news-card:hover .news-img { transform: scale(1.06); }
.news-card .read-more { transition: gap 350ms ease; }
.news-card:hover .read-more { gap: 14px; }

/* ---- Parallax ---- */
.parallax-bg { background-attachment: fixed; background-size: cover; background-position: center; }
@media (max-width: 900px) { .parallax-bg { background-attachment: scroll; } }

/* ---- Eventliste ---- */
.event-row { transition: background-color 400ms ease, padding 400ms ease; }
.event-row:hover { background: var(--cream); }
.event-row:hover .event-arrow { transform: translateX(6px); }
.event-arrow { transition: transform 500ms cubic-bezier(.2,.7,.2,1); }

/* ---- Listen-/Download-Zeilen (Bekanntmachungen) ---- */
.doc-row { transition: background-color 350ms ease, border-color 350ms ease; }
.doc-row:hover { background: var(--cream); border-color: var(--gold-soft); }
.doc-row:hover .doc-arrow { transform: translateX(5px); }
.doc-arrow { transition: transform 450ms cubic-bezier(.2,.7,.2,1); }

/* ---- Personen-Karten ---- */
.person-card { transition: transform 500ms cubic-bezier(.2,.7,.2,1), box-shadow 500ms ease, border-color 400ms ease; }
.person-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(12,38,64,0.30); border-color: var(--gold-soft); }

/* ---- Service-/Dienst-Kacheln ---- */
.service-link { transition: color 250ms ease, transform 350ms ease; }
.service-link:hover { color: var(--gold); }
.service-link:hover .service-arrow { transform: translateX(4px); }
.service-arrow { transition: transform 400ms cubic-bezier(.2,.7,.2,1); }

/* Gold underline accent */
.gold-rule {
  display: inline-block; width: 56px; height: 1px;
  background: var(--gold); margin-right: 18px; vertical-align: middle;
}

/* CTA */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--gold); color: #fff; border-radius: 999px;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease, background-color 300ms ease;
}
.btn-gold:hover { background: #004f8a; transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0,97,168,0.7); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.6); color: #fff; border-radius: 999px;
  transition: background 300ms ease, border-color 300ms ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-ink {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--ink, #0c2640); color: #fff; border-radius: 999px;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease, background-color 300ms ease;
}
.btn-ink:hover { background: #143a5e; transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(12,38,64,0.6); }
.btn-ink svg { color: #a8c018; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid var(--line); color: var(--primary); border-radius: 999px;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}
.btn-outline:hover { background: var(--cream); border-color: var(--gold-soft); color: var(--gold); }

/* Prose (Fließtext auf Detailseiten) */
.prose-malsfeld { color: rgba(12,38,64,0.82); line-height: 1.75; font-size: 17px; }
.prose-malsfeld p { margin-bottom: 1.25rem; }
.prose-malsfeld h2 { font-size: 28px; margin: 2.5rem 0 1rem; color: var(--primary); }
.prose-malsfeld h3 { font-size: 21px; margin: 2rem 0 0.75rem; color: var(--primary); }
.prose-malsfeld ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.prose-malsfeld ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.prose-malsfeld ul li::before {
  content: ''; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px;
  background: var(--gold); border-radius: 999px;
}
.prose-malsfeld a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose-malsfeld a:hover { color: #004f8a; }

/* ---- FAQ / Accordion ---- */
.faq-item { transition: border-color 300ms ease; }
.faq-item.is-open { border-color: var(--gold-soft); }
.faq-trigger { cursor: pointer; }
.faq-icon { transition: transform 350ms cubic-bezier(.2,.7,.2,1); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); color: var(--gold); }
.faq-panel { overflow: hidden; max-height: 0; transition: max-height 420ms cubic-bezier(.2,.7,.2,1); }

/* ---- Filter / Suche (clientseitig, demonstriert WP-Verhalten) ---- */
.filter-hidden { display: none !important; }
.filter-chip { transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease; }
.filter-empty { display: none; }
.filter-empty.is-shown { display: block; }

/* =====================================================================
   Barrierefreiheit (WCAG 2.1 AA / BITV 2.0)
   ===================================================================== */
:root { --gold-text: #004a80; } /* dunkles Blau für Text auf Hell — Kontrast ~8:1 */

/* Sichtbarer Fokus auf allen interaktiven Elementen */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
  border-radius: 3px;
}

/* Gold-TEXT auf hellem Grund barrierefrei abdunkeln.
   Marken-Gold (#0061a8) bleibt für Flächen/große Headlines/gold-rule erhalten. */
.text-gold { color: var(--gold-text) !important; }
/* Auf dunklem Grund weiterhin helles Gold (überschreibt obiges) */
.bg-ink .text-gold, .bg-ink .text-goldSoft, [class*="bg-[#0"] .text-gold,
.text-goldSoft { color: #a8c018 !important; }

/* Dunkler Text auf hellem Gold (Buttons, Badges, Labels) = AA-konform */
.btn-gold { color: var(--primary); }
.btn-gold svg { color: var(--primary); }
.bg-gold { color: var(--primary) !important; }   /* Badges/Pills: ink statt weiß auf Gold */
.alert-label.warnung { color: var(--primary); }

/* Tastatur: Dropdown auch bei Fokus innerhalb des Menüpunkts öffnen */
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Skip-Link „Zum Inhalt springen" */
.skip-link {
  position: fixed; top: -80px; left: 12px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: top 200ms ease;
}
.skip-link:focus { top: 12px; }

/* Nur für Screenreader */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Tabellen (im prose-Inhalt) ---- */
.prose-malsfeld table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.75rem 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose-malsfeld thead th { text-align: left; background: var(--primary); color: #fff; font-weight: 500; font-family: 'Inter', sans-serif; padding: 12px 16px; font-size: 13px; letter-spacing: 0.02em; }
.prose-malsfeld td { padding: 11px 16px; border-top: 1px solid var(--line); color: rgba(12,38,64,0.82); vertical-align: middle; }
.prose-malsfeld tbody tr:nth-child(even) td { background: var(--cream); }
.prose-malsfeld td a { color: var(--gold-text, #004a80); }
.frakt-badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; padding: 2px 9px; border-radius: 999px; color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ken-burns > img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .headline-split span { opacity: 1; transform: none; animation: none; }
  .scroll-cue::after { animation: none; }
}

/* ===================== NEWS-SLIDER (Startseite) ===================== */
.news-slide { opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.news-slide.is-active { opacity: 1; pointer-events: auto; }
.news-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: rgba(255,255,255,.9); color: #0c2640;
  box-shadow: 0 6px 22px rgba(8,14,28,.25); transition: background .2s, transform .2s; z-index: 30;
}
.news-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.news-prev { left: 18px; }
.news-next { right: 18px; }
.news-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 9px; z-index: 30; }
.news-dot { width: 9px; height: 9px; border-radius: 9999px; background: rgba(255,255,255,.45); transition: background .2s, width .2s; }
.news-dot.is-active { background: #0061a8; width: 26px; }
@media (max-width: 640px) { .news-nav { display: none; } }

/* ===================== BEREICHS-SEKTIONEN (Bento) ===================== */
.area-tile { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.area-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -30px rgba(12,38,64,.45); }
.area-chip { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.area-chip:hover { background: #0061a8; color: #fff; border-color: #0061a8; }
.area-feature .ken-burns > img { animation-duration: 26s; }
.area-feature:hover .ken-burns > img { transform: scale(1.12); }
.area-tile--dark .nav-group-icon { background: rgba(255,255,255,0.1); color: #a8c018; }
.area-tile--dark.area-tile:hover { box-shadow: 0 26px 52px -30px rgba(0,0,0,0.6); }

/* Slider-Headline auf max. 2 Zeilen begrenzen */
.hero-slide-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Anrisstext im Slider: mobil auf 3 Zeilen begrenzen */
@media (max-width: 640px) {
  .hero-slide-title { -webkit-line-clamp: 3; }
  .hero-slide-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ===================== BARRIEREFREIHEIT: BEDIENHILFE ===================== */
.a11y-root { position: fixed; bottom: 18px; right: 18px; z-index: 60; }
.a11y-fab { width: 54px; height: 54px; border-radius: 50%; background: #0c2640; color: #a8c018; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 32px -10px rgba(8,14,26,.55); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.a11y-fab:hover { transform: translateY(-2px); background: #143a5e; }
.a11y-fab:focus-visible { outline: 3px solid #0061a8; outline-offset: 3px; }
.a11y-panel { position: absolute; bottom: 66px; right: 0; width: 286px; background: #fff; color: #0c2640; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 26px 60px -22px rgba(8,14,26,.5); padding: 16px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 12px; }
.a11y-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: #0c2640; width: 32px; height: 32px; border-radius: 8px; }
.a11y-close:hover { background: var(--cream); }
.a11y-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #004a80; margin-bottom: 7px; }
.a11y-seg { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.a11y-seg button { flex: 1; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; }
.a11y-seg button:hover { background: var(--cream); }
.a11y-zoomval { min-width: 56px; text-align: center; font-size: 13px; }
.a11y-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; background: none; border: none; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; color: #0c2640; text-align: left; }
.a11y-switch { width: 38px; height: 22px; border-radius: 999px; background: #c3cfd9; position: relative; transition: background .2s ease; flex: none; }
.a11y-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.a11y-toggle[aria-pressed="true"] .a11y-switch { background: #0061a8; }
.a11y-toggle[aria-pressed="true"] .a11y-switch::after { transform: translateX(16px); }
.a11y-link { display: block; margin-top: 12px; font-size: 13px; color: #004a80; text-decoration: underline; }
.a11y-reset { width: 100%; margin-top: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; }
.a11y-reset:hover { background: var(--cream); }
.a11y-toggle:focus-visible, .a11y-seg button:focus-visible, .a11y-reset:focus-visible, .a11y-link:focus-visible, .a11y-close:focus-visible { outline: 3px solid #0061a8; outline-offset: 2px; border-radius: 8px; }
@media (max-width: 480px) { .a11y-panel { width: calc(100vw - 36px); } }

/* Bedienhilfe-Modi */
html.a11y-zoom-1 { zoom: 1.12; }
html.a11y-zoom-2 { zoom: 1.25; }
html.a11y-underline a:not(.btn-gold):not(.btn-ink):not(.btn-ghost):not(.a11y-fab) { text-decoration: underline !important; text-underline-offset: 2px; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-readable-font body, html.a11y-readable-font .font-serif, html.a11y-readable-font h1, html.a11y-readable-font h2, html.a11y-readable-font h3 { font-family: Verdana, Arial, sans-serif !important; letter-spacing: .01em; }
/* Hoher Kontrast — Schwarz/Gelb (Behörden-Standard) */
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast *:not(img):not(svg):not(path):not(circle):not(rect):not(line):not(ellipse):not(polyline):not(polygon) {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  --tw-ring-color: #ffffff !important;
}
html.a11y-contrast img { filter: grayscale(.25) brightness(.45) !important; }
html.a11y-contrast a, html.a11y-contrast a *:not(svg) { color: #ffff00 !important; text-decoration: underline !important; }
html.a11y-contrast a svg { color: #ffff00 !important; }
html.a11y-contrast .btn-gold, html.a11y-contrast .btn-ink, html.a11y-contrast .btn-ghost { background: #ffff00 !important; border: 2px solid #ffff00 !important; }
html.a11y-contrast .btn-gold, html.a11y-contrast .btn-gold *, html.a11y-contrast .btn-ink, html.a11y-contrast .btn-ink *, html.a11y-contrast .btn-ghost, html.a11y-contrast .btn-ghost * { color: #000 !important; text-decoration: none !important; }
/* Bedienhilfe selbst klar lesbar halten */
html.a11y-contrast .a11y-fab { background: #000 !important; color: #ffff00 !important; border: 2px solid #ffff00 !important; }
html.a11y-contrast .a11y-fab svg { color: #ffff00 !important; }
html.a11y-contrast .a11y-panel { border: 2px solid #fff !important; }
html.a11y-contrast .a11y-switch { background: #555 !important; }
html.a11y-contrast .a11y-toggle[aria-pressed="true"] .a11y-switch { background: #ffff00 !important; }
html.a11y-contrast .a11y-switch::after { background: #fff !important; }

/* ===================== SUCH-OVERLAY & SUCHE ===================== */
.search-overlay { transition: opacity .25s ease, visibility .25s ease; }
.search-overlay.is-open { opacity: 1 !important; visibility: visible !important; }
.search-overlay:not(.is-open) { pointer-events: none; }
.malsfeld-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.malsfeld-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s, background .2s; }
.malsfeld-pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.malsfeld-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.malsfeld-pagination .page-numbers.dots { border: none; background: none; }

/* Direktlinks im Mega-Menü als eigene, hervorgehobene erste Spalte (Feature-Kachel) */
.nav-mega .nav-group--direct { min-width: 250px; padding-right: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.nav-direct-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px; border-radius: 16px; background: linear-gradient(158deg, #f6f9fb, #e8f0f6); border: 1px solid #d9e5ef; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.nav-direct-card:hover { transform: translateY(-2px); border-color: var(--gold-soft); box-shadow: 0 18px 36px -24px rgba(8,30,52, .55); background: linear-gradient(158deg, #f8fbfd, #e3edf4); }
.nav-direct-card .ndc-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #fff; border: 1px solid #d9e5ef; display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }
.nav-direct-card .ndc-body { display: flex; flex-direction: column; gap: 4px; }
.nav-direct-card .ndc-title { font-family: var(--font-serif, Georgia, serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.nav-direct-card .ndc-sub { font-size: 12.5px; color: #4f6170; line-height: 1.45; max-width: 26ch; }
.nav-direct-card .ndc-more { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.nav-direct-card .ndc-more svg { transition: transform .18s ease; }
.nav-direct-card:hover .ndc-more svg { transform: translateX(3px); }

/* ---- Sprungmarken (Anker-Bubbles) ---- */
.anchor-bubbles { display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-bubbles a {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none;
  background: #fff; color: var(--primary); border: 1px solid var(--line);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.anchor-bubbles a:hover,
.anchor-bubbles a:focus-visible { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Ziel unter dem fixen Header ausrichten */
[id^="abschnitt-"] { scroll-margin-top: calc(7rem + var(--alert-h)); }

/* =====================================================================
   Block-Baukasten: Rhythmus & Stilelemente
   Die Abschnittsabstände sind bewusst eng (24px). Struktur entsteht
   deshalb über Bänderung, Nummerierung und Rahmen statt über Leerraum.
   ===================================================================== */

/* --- Abschnitts-Nummerierung (rein per CSS, kein Template-Eingriff) --- */
.malsfeld-blocks { counter-reset: sect; }
.malsfeld-blocks .blk > section[id^="abschnitt-"] { counter-increment: sect; }
.malsfeld-blocks .blk > section[id^="abschnitt-"] .gold-rule { position: relative; }
.malsfeld-blocks .blk > section[id^="abschnitt-"] .gold-rule::after {
  content: counter(sect, decimal-leading-zero);
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--gold); opacity: 0.75;
}
.malsfeld-blocks .blk > section[id^="abschnitt-"] .gold-rule + h2 { margin-left: 30px; }

/* --- Getönte Bänder für datenlastige Abschnitte --- */
.blk-tabelle > section,
.blk-faq > section,
.blk-galerie > section { background: var(--cream); }
/* Direkt aufeinanderfolgende Bänder verschmelzen statt zu streifen */
.blk-tabelle + .blk-tabelle > section { padding-top: 0; }

/* Weiche Kante zwischen Band und Weißfläche */
.blk-tabelle > section, .blk-faq > section, .blk-galerie > section { position: relative; }

/* --- Tabellen --- */
.prose-malsfeld table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,38,64,0.04);
}
.prose-malsfeld thead th {
  background: var(--primary); color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: left; padding: 13px 18px; border: 0;
}
.prose-malsfeld tbody td {
  padding: 12px 18px; border: 0; border-top: 1px solid var(--line);
  font-size: 15px; color: #3a4152;
}
.prose-malsfeld tbody tr:nth-child(odd) td { background: #f8fafc; }
.prose-malsfeld tbody tr:hover td { background: var(--cream); }
.prose-malsfeld tbody td:first-child { font-weight: 500; color: var(--primary); }
/* Zahlenspalten rechtsbündig – zweite und folgende Spalten bei 2-Spalten-Tabellen */
.prose-malsfeld table tr > *:last-child:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .prose-malsfeld table { display: block; overflow-x: auto; }
  .prose-malsfeld thead th, .prose-malsfeld tbody td { white-space: nowrap; }
}

/* --- Bildbereich --- */
.bild-rahmen {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--cream);
}
.bild-rahmen > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bild-platzhalter {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 45%, var(--line));
  background:
    repeating-linear-gradient(135deg,
      rgba(0,97,168,0.045) 0 12px,
      rgba(0,97,168,0.00) 12px 24px),
    var(--cream);
  color: var(--gold);
}
.bild-platzhalter-inner { text-align: center; padding: 20px; }
.bild-platzhalter-inner > svg { opacity: 0.55; margin: 0 auto 10px; display: block; }
.bild-platzhalter-label {
  margin: 0; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.bild-platzhalter-motiv {
  margin: 7px auto 0; max-width: 30ch;
  font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--primary) 55%, #fff);
}
.bild-unterschrift {
  margin: 10px 2px 0; font-size: 13px; line-height: 1.5;
  color: color-mix(in srgb, var(--primary) 55%, #fff);
  border-left: 2px solid var(--gold-soft); padding-left: 10px;
}

/* --- Downloads: Dateityp-Kennzeichnung --- */
.doc-row { position: relative; }
.doc-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
.doc-row:hover::before { transform: scaleY(1); }

/* --- Infobox: farbiger Balken statt reiner Fläche --- */
.blk-infobox > section .rounded-2xl,
.blk-infobox > section .rounded-xl { border-left: 3px solid var(--gold); }

/* --- Erster Block nach dem Hero etwas luftiger --- */
.malsfeld-blocks > .blk:first-child > section { padding-top: 40px; }
@media (min-width: 1024px) { .malsfeld-blocks > .blk:first-child > section { padding-top: 52px; } }

/* =====================================================================
   Zuständigkeiten & Leistungen — gestapelte Liste statt Kachelraster
   ===================================================================== */
.leistungs-liste {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,38,64,0.04);
}
.leistungs-liste .lz {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  transition: background 200ms ease;
}
.leistungs-liste .lz:first-child { border-top: 0; }
.leistungs-liste .lz:hover { background: var(--cream); }

/* Goldene Kante fährt beim Hover von oben ein */
.leistungs-liste .lz::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}
.leistungs-liste .lz:hover::before { transform: scaleY(1); }

.lz-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px; background: var(--cream); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.leistungs-liste .lz:hover .lz-icon { background: var(--gold); border-color: var(--gold); color: #fff; }

.lz-text { min-width: 0; flex: 1; }
.lz-titel {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; line-height: 1.3; color: var(--primary);
  transition: color 200ms ease;
}
.leistungs-liste .lz:hover .lz-titel { color: var(--gold); }
.lz-lead {
  display: block; margin-top: 2px;
  font-size: 13.5px; line-height: 1.45;
  color: color-mix(in srgb, var(--primary) 58%, #fff);
}

/* Kategorie als dezente Spalte rechts – wie eine Tabellenspalte */
.lz-kat {
  flex: none; width: 150px; text-align: right;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 40%, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lz-pfeil { flex: none; color: color-mix(in srgb, var(--primary) 28%, #fff); transition: color 200ms ease, transform 240ms cubic-bezier(.2,.7,.2,1); }
.leistungs-liste .lz:hover .lz-pfeil { color: var(--gold); transform: translateX(3px); }

@media (max-width: 860px) { .lz-kat { display: none; } }
@media (max-width: 520px) {
  .leistungs-liste .lz { padding: 12px 14px; gap: 12px; }
  .lz-icon { width: 32px; height: 32px; border-radius: 8px; }
  .lz-titel { font-size: 15.5px; }
  .lz-lead { font-size: 12.5px; }
}

/* --- Einrichtungs-Karten: Kontaktzeilen mit Icon --- */
.ein-daten { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.ein-daten dd {
  margin: 0; display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; line-height: 1.5;
  color: color-mix(in srgb, var(--primary) 72%, #fff);
}
.ein-icon {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--cream); border: 1px solid var(--line);
  color: var(--gold);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.blk-einrichtungen a:hover .ein-icon,
.leistungs-liste a:hover .ein-icon { background: var(--gold); border-color: var(--gold); color: #fff; }

/* --- Einrichtungs-Karten mit Bildfläche --- */
.ein-karte {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,38,64,0.04);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.2,.7,.2,1);
}
.ein-karte:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 40px -26px rgba(12,38,64,0.35);
  transform: translateY(-2px);
}

.ein-bild {
  position: relative; display: block;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.ein-bild > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.ein-karte:hover .ein-bild > img { transform: scale(1.04); }

/* Platzhalter, solange kein Bild hinterlegt ist */
.ein-bild--leer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--gold);
  background:
    repeating-linear-gradient(135deg,
      rgba(0,97,168,0.05) 0 10px,
      rgba(0,97,168,0.00) 10px 20px),
    var(--cream);
}
.ein-bild--leer > svg { opacity: 0.5; }
.ein-bild-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); opacity: 0.85;
}

.ein-inhalt { display: block; padding: 18px 20px 20px; }
@media (max-width: 520px) { .ein-inhalt { padding: 14px 16px 16px; } }

/* =====================================================================
   Bild-Banner: vollbreites Hintergrundbild mit Text darüber
   ===================================================================== */
.bildbanner {
  position: relative;
  /* Aus dem 1100px-Raster ausbrechen, ohne horizontales Scrollen */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}
.bildbanner--flach  { min-height: clamp(220px, 26vh, 300px); }
.bildbanner--mittel { min-height: clamp(300px, 40vh, 440px); }
.bildbanner--hoch   { min-height: clamp(380px, 56vh, 600px); }

.bildbanner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* Schleier: sichert die Textlesbarkeit unabhängig vom Motiv */
.bildbanner-schleier {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,38,64,0.88) 0%, rgba(12,38,64,0.62) 45%, rgba(12,38,64,0.28) 100%),
    linear-gradient(180deg, rgba(12,38,64,0.30) 0%, rgba(12,38,64,0.10) 40%, rgba(12,38,64,0.45) 100%);
}

/* Platzhalter-Zustand: dunkel + Schraffur, damit heller Text lesbar bleibt */
.bildbanner--leer {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.035) 0 14px,
      rgba(255,255,255,0.00) 14px 28px),
    linear-gradient(135deg, var(--primary) 0%, var(--ink-soft) 100%);
}
.bildbanner--leer .bildbanner-schleier { background: none; }

.bildbanner-inhalt {
  position: relative;
  width: 100%; max-width: 1100px;
  margin: 0 auto; padding: 44px 24px;
}
@media (min-width: 1024px) { .bildbanner-inhalt { padding: 56px 48px; } }

.bildbanner-titel {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 42px); line-height: 1.1;
  margin: 0; color: #fff;
}
.bildbanner-text {
  margin-top: 14px; max-width: 60ch;
  font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.85);
}
.bildbanner-text p { margin: 0 0 10px; }
.bildbanner-text p:last-child { margin-bottom: 0; }
.bildbanner-text a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.bildbanner-text a:hover { color: #fff; }
.bildbanner-text strong { color: #fff; }

.bildbanner-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.bildbanner-hinweis {
  margin: 26px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.bildbanner-hinweis-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(168,192,24,0.4); border-radius: 999px; padding: 3px 9px;
}

/* --- Sprungmarken im Hero (heller Text auf dunklem Bild) --- */
.anchor-bubbles--hero { margin-top: 22px; }
.anchor-bubbles--hero a {
  padding: 8px 16px;
  font-size: 13.5px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.anchor-bubbles--hero a:hover,
.anchor-bubbles--hero a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
@media (max-width: 640px) {
  .anchor-bubbles--hero { gap: 8px; }
  .anchor-bubbles--hero a { padding: 7px 13px; font-size: 12.5px; }
}

/* --- Baugebiete-Übersicht --- */
.bg-karte {
  display: block; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(12,38,64,0.04);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.2,.7,.2,1);
}
a.bg-karte:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 36px -26px rgba(12,38,64,0.35);
  transform: translateY(-2px);
}
a.bg-karte:hover h3 { color: var(--gold); }
.bg-pfeil { color: color-mix(in srgb, var(--primary) 28%, #fff); transition: color 200ms ease, transform 240ms cubic-bezier(.2,.7,.2,1); }
a.bg-karte:hover .bg-pfeil { color: var(--gold); transform: translateX(3px); }

/* Vergeben: ausgegraut, nicht anklickbar */
.bg-karte--vergeben {
  background: #f8fafc;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}
.bg-karte--vergeben h3 { color: color-mix(in srgb, var(--primary) 45%, #fff); }

.bg-status {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.bg-status--frei { background: #edf7ee; color: #2f6b3a; border: 1px solid #cfe6d3; }
.bg-status--weg  { background: #f2f2f0; color: #7a7a76; border: 1px solid var(--line); }

/* --- Ansprechpartner als Liste (Block im Seiteninhalt) --- */
.personen-liste {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(12,38,64,0.04);
}
.personen-liste .pz {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.personen-liste .pz:first-child { border-top: 0; }
.personen-liste .pz:hover { background: var(--cream); }

.pz-avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 999px; object-fit: cover;
  border: 1px solid var(--line); background: var(--cream);
}
.pz-avatar--initialen {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-size: 16px; color: var(--gold);
}

.pz-name { flex: 1; min-width: 0; }
.pz-titel { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 17px; line-height: 1.3; color: var(--primary); }
.pz-funktion { display: block; margin-top: 1px; font-size: 13.5px; color: color-mix(in srgb, var(--primary) 55%, #fff); }

.pz-kontakt { flex: none; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; text-align: right; }
.pz-kontakt a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: color-mix(in srgb, var(--primary) 75%, #fff); }
.pz-kontakt a:hover { color: var(--gold); }
.pz-icon { color: var(--gold); flex: none; }
.pz-mail { word-break: break-all; }

@media (max-width: 720px) {
  .personen-liste .pz { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .pz-kontakt { width: 100%; align-items: flex-start; text-align: left; padding-left: 58px; }
}

/* =====================================================================
   Hotlines / Servicenummern – dunkle Karte mit Telefon-Icons
   ===================================================================== */
.hotlines {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 30px 30px 32px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0,97,168,0.16) 0%, rgba(0,97,168,0) 45%),
    linear-gradient(135deg, var(--ink-soft) 0%, var(--primary) 60%, #071a2e 100%);
  box-shadow: 0 24px 50px -30px rgba(12,38,64,0.55);
}
@media (min-width: 1024px) { .hotlines { padding: 36px 40px 40px; } }

.hotlines-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hotlines-icon {
  flex: none; width: 46px; height: 46px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(168,192,24,0.35); color: var(--gold-soft);
}
.hotlines-eyebrow { margin: 0 0 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.hotlines-titel { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; color: #fff; }

.hotlines-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px)  { .hotlines-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hotlines-grid { grid-template-columns: repeat(3, 1fr); } }

.hotline {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 18px 20px;
  transition: background 220ms ease, border-color 220ms ease;
}
.hotline:hover { background: rgba(255,255,255,0.08); border-color: rgba(168,192,24,0.4); }
.hotline-label { margin: 0; font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.hotline-hinweis { margin: 2px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.55); }

.hotline-tel {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 12px;
  font-family: 'Playfair Display', Georgia, serif; font-size: 18px; color: var(--gold-soft);
}
.hotline-tel:hover { color: #fff; }
.hotline-mail { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,0.75); }
.hotline-mail:hover { color: var(--gold-soft); }
.hotline-tel-icon { flex: none; color: var(--gold-soft); }

/* Hotlines: Adresse, Web-Link, Einzelkarte breiter */
.hotline-adresse { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.72); }
.hotline-web { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 13.5px; color: var(--gold-soft); }
.hotline-web:hover { color: #fff; }
/* Genau eine Nummer -> Karte über volle Breite, Kontakte nebeneinander */
.hotlines-grid:has(.hotline:only-child) { grid-template-columns: 1fr; }
.hotline:only-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 22px 26px; }
.hotline:only-child .hotline-label { width: 100%; font-size: 16px; }
.hotline:only-child .hotline-hinweis,
.hotline:only-child .hotline-adresse { width: 100%; margin-top: 0; }

/* ===== Live-Suche (Overlay-Dropdown) ===== */
.ls-results { margin-top: 12px; background: #fff; border-radius: 16px; box-shadow: 0 26px 64px -22px rgba(16,24,40,.55); overflow: hidden; max-height: 62vh; overflow-y: auto; display: none; }
.ls-results.on { display: block; }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .12s; }
.ls-item:last-of-type { border-bottom: 0; }
.ls-item:hover, .ls-item:focus { background: var(--cream); }
.ls-item .ls-type { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); background: rgba(168,192,24,.22); border-radius: 999px; padding: 4px 10px; min-width: 104px; text-align: center; }
.ls-item .ls-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-item.ls-boost { background: linear-gradient(90deg, rgba(168,192,24,.14), transparent 70%); }
.ls-item .ls-star { flex: none; color: var(--gold); font-size: 13px; }
.ls-more { display: block; text-align: center; padding: 13px; font-size: 13.5px; font-weight: 700; color: var(--gold); text-decoration: none; background: var(--cream); }
.ls-more:hover { color: var(--ink); }
.ls-empty { padding: 22px; text-align: center; color: #5b6670; font-size: 14px; }
