/* ==========================================================================
   ZV Usedom – Cassiopeia-Child „zvusedom“
   Nachbau der WP-Vorlage projectweb.zv-usedom.de (Theme „zvusedom“)
   ========================================================================== */

/* Inter lokal (kein Google-CDN) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-v12-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-v12-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-v12-latin-800.woff2") format("woff2"); }

/* Farben aus der Vorlage (WP-Presets) */
:root {
  --zv-blue: #0073c8;          /* Menüleiste (abgedunkelt für Kontrast 4,9:1 mit Weiß; Vorlage: #09a6eb) */
  --zv-blue-dark: #0b5ba2;     /* Links, Buttons, Linien */
  --zv-box-blau: #006fc0;      /* Kontrast 5,2:1 (Vorlage: #0087eb) */
  --zv-box-tuerkis: #25e6eb;
  --zv-box-grau: #98b0ad;
  --zv-grey: #f5f4f9;          /* Aktuelles-Box */
  --zv-grey-dark: #2d373b;     /* Text, Box-Buttons */
  --zv-red: #d3552d;

  --cassiopeia-color-primary: var(--zv-blue-dark);
  --cassiopeia-color-link: var(--zv-blue-dark);
  --cassiopeia-color-hover: var(--zv-blue);
  --cassiopeia-font-family-body: "Inter", system-ui, sans-serif;
  --cassiopeia-font-family-headings: "Inter", system-ui, sans-serif;
  --cassiopeia-font-weight-headings: 400;
  --link-color: var(--zv-blue-dark);
  --link-color-rgb: 11, 91, 162;
  --link-hover-color: #08467d;
  --body-color: var(--zv-grey-dark);
  --body-font-family: "Inter", system-ui, sans-serif;
  --body-font-size: 0.95rem;
}

body.zv {
  color: var(--zv-grey-dark);
  font-family: "Inter", system-ui, sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.zv a { color: var(--zv-blue-dark); }
body.zv h1, body.zv h2, body.zv h3, body.zv h4 { font-family: "Inter", sans-serif; color: var(--zv-grey-dark); }
body.zv h1, body.zv .page-header h1, body.zv .page-header h2 { font-size: 2.1rem; font-weight: 400; }

.zv-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.zv-header { background: #fff; z-index: 1020; }
.zv-branding { padding: 1rem 0; transition: padding .2s; }
.zv-logo-col .zv-logo { max-width: 100%; height: auto; max-height: 112px; width: auto; transition: max-height .2s; }
.zv-header-info { text-align: right; }
.zv-header-info .zv-portale { margin: 1rem 0 .5rem; }
.zv-header-info .zv-portale a,
.zv-header-info .zv-portale span.zv-label { white-space: nowrap; margin-left: .6rem; }
.zv-header-info .zv-portale a { color: var(--zv-blue-dark); font-weight: 600; text-decoration: none; }
.zv-header-info .zv-portale a:hover { text-decoration: underline; }
.zv-header-info .mod-finder,
.zv-header-info form { display: flex; justify-content: flex-end; }
.zv-header-info .mod-finder .awesomplete,
.zv-header-info .mod-finder__search { width: 20rem; max-width: 100%; }
.zv-header-info .mod-finder .input-group { flex-wrap: nowrap; }
.zv-header-info .mod-finder input { border-color: var(--zv-blue-dark); border-radius: .3rem 0 0 .3rem; }
.zv-header-info .mod-finder .btn { background: var(--zv-blue-dark); border-color: var(--zv-blue-dark); color: #fff; border-radius: 0 .313rem .313rem 0; }
.zv-header-info .mod-finder label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Hauptmenü ---------- */
.zv-nav { background: var(--zv-blue); }
.zv-nav .container-nav { padding-top: 0; padding-bottom: 0; }
.zv-nav .navbar-toggler { color: #fff; border: 0; padding: .5rem; font-size: 1.5rem; }
.zv-nav .navbar-toggler .icon-menu { color: #fff; }
.zv-nav .mod-menu { margin: 0; padding: 0; }
.zv-nav .metismenu.mod-menu .metismenu-item { padding: 0; }
.zv-nav .mod-menu > li > a,
.zv-nav .mod-menu > li > button,
.zv-nav .mod-menu > li > span {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem;
  display: inline-block;
  font-size: .95rem;
  background: transparent;
  border: 0;
}
.zv-nav .mod-menu a:hover,
.zv-nav .mod-menu a:focus,
.zv-nav .mod-menu .active > a,
.zv-nav .mod-menu .current > a { color: var(--zv-blue-dark); }
.zv-nav .mod-menu .active > a,
.zv-nav .mod-menu .current > a { font-weight: 600; }
.zv-nav .metismenu.mod-menu .mm-toggler { color: #fff; }
.zv-nav .metismenu.mod-menu .mm-collapse {
  background: var(--zv-blue);
  border-radius: 0 0 5px 5px;
  box-shadow: none;
  padding: .25rem 0;
}
.zv-nav .metismenu.mod-menu .mm-collapse a {
  color: #fff;
  text-transform: none;
  text-decoration: none;
  display: block;
  padding: .75rem 1.5rem;
}
.zv-nav .metismenu.mod-menu .mm-collapse li { padding: 0; }

@media (min-width: 992px) {
  .zv-nav .mod-menu { display: flex; justify-content: space-between; width: 100%; }
  .zv-nav .metismenu.mod-menu .mm-collapse { min-width: 240px; }
}

/* ---------- Slider ---------- */
.zv-banner { margin-bottom: 3rem; }
.zv-slider .carousel-item img { aspect-ratio: 1920 / 660; object-fit: cover; }
/* fließende Überblendung statt hartem Wechsel */
.zv-slider.carousel-fade .carousel-item { transition: opacity 1.2s ease-in-out; }
.zv-slider.carousel-fade .active.carousel-item-start,
.zv-slider.carousel-fade .active.carousel-item-end { transition: opacity 0s 1.2s; } /* altes Bild bleibt stehen, bis das neue ganz da ist */
/* Pause/Abspielen (WCAG 2.2.2) */
.zv-slider .zv-slider-toggle { position: absolute; z-index: 3; left: 1rem; bottom: 1rem; width: 2.5rem; height: 2.5rem; border: 2px solid #fff; border-radius: 50%; background: rgba(11, 91, 162, .85); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.zv-slider .zv-slider-toggle[hidden] { display: none; }
.zv-slider .zv-slider-toggle:hover { background: var(--zv-blue-dark); }
.zv-slider .zv-slider-toggle-icon { width: .75rem; height: .875rem; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.zv-slider .zv-slider-toggle.is-paused .zv-slider-toggle-icon { width: 0; height: 0; border-style: solid; border-width: .5rem 0 .5rem .8rem; border-color: transparent transparent transparent #fff; margin-left: .2rem; }
.zv-slider .carousel-caption { background: rgba(11, 91, 162, .7); border-radius: .313rem; bottom: 2rem; padding: .75rem 1.25rem; }
.zv-slider .zv-slider-title { font-weight: 600; margin: 0; font-size: 1.25rem; color: #fff; }

/* ---------- Inhalt ---------- */
.zv-main { flex: 1 0 auto; padding-top: 1.5rem; }
body.zv:not(.is-home) .zv-main { padding-top: 3rem; }
.zv-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.zv-component { flex: 1 1 0; min-width: 0; }
.zv-sidebar-left, .zv-sidebar-right { flex: 0 0 100%; }
@media (min-width: 992px) { .zv-sidebar-left, .zv-sidebar-right { flex: 0 0 25%; } }
.zv-component img { max-width: 100%; height: auto; }
.zv-component table { max-width: 100%; }
@media (max-width: 767.98px) {
  .zv-component table { display: block; overflow-x: auto; }
}

/* Aktuelles-Box (Modul-Klasse „zv-news“ bzw. Beitrag mit Klasse „zv-news“) */
.zv-news {
  background: var(--zv-grey);
  border-radius: .313rem;
  padding: 3rem;
  margin: 3rem 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.zv-news .zv-news-content { flex: 1 1 66%; min-width: 0; }
.zv-news .zv-news-figure { flex: 0 0 30%; text-align: center; }
.zv-news .zv-news-figure img { max-width: 100%; height: auto; }
@media (max-width: 767.98px) {
  .zv-news { flex-direction: column; padding: 1.5rem; }
  .zv-news .zv-news-figure { flex-basis: auto; align-self: center; max-width: 60%; }
}

/* ---------- Drei Boxen (Position bottom-a, Modulklassen) ---------- */
.zv-boxes { display: grid; grid-template-columns: 1fr; gap: 2rem; margin: 3rem 0 0; }
@media (min-width: 782px) { .zv-boxes { grid-template-columns: repeat(3, 1fr); } }
.zv-box {
  border-radius: .313rem;
  padding: 2em;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.zv-box h2, .zv-box h3, .zv-box .zv-box-title { font-size: 2.5rem; font-weight: 400; color: inherit !important; margin: 0 0 .5rem; }
.zv-box hr { border: 0; border-top: 1px solid currentColor; opacity: .5; margin: .75rem 0 1rem; }
.zv-box a { color: #fff; }
.zv-box .zv-box-button,
.zv-box .btn {
  display: block;
  margin: 1.5rem auto 0;
  background: var(--zv-grey-dark);
  color: #fff !important;
  border: 0;
  border-radius: .25rem;
  padding: .6rem 1rem;
  text-align: center;
  text-decoration: none;
  width: fit-content;
  min-width: 60%;
}
.zv-box .zv-box-button:hover, .zv-box .btn:hover { background: #000; }
.zv-box--blau { background: var(--zv-box-blau); }
.zv-box--tuerkis { background: var(--zv-box-tuerkis); color: #000; }
.zv-box--tuerkis a:not(.zv-box-button) { color: #000; }
.zv-box--grau { background: var(--zv-box-grau); }
.zv-box ul { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.zv-footer {
  flex-shrink: 0;
  margin-top: 6rem;
  padding: 6rem 0 40rem;
  border-top: .188rem solid var(--zv-blue-dark);
  background: #fff url("../images/footer-wellen.jpg") no-repeat center bottom;
  background-size: 1920px auto;
  color: var(--zv-grey-dark);
  font-size: .9rem;
}
@media (min-width: 1921px) { .zv-footer { background-size: 100% auto; } }
@media (max-width: 767.98px) { .zv-footer { padding: 3rem 0 16rem; background-size: 900px auto; } }
.zv-footer a { color: var(--zv-blue-dark); }
.zv-footer-logos .zv-logos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-evenly; align-items: center; padding: 1rem; }
.zv-footer-logos img { height: auto; max-width: 100%; }
.zv-footer-info { padding-top: 3rem; }
.zv-footer-info .row > div p { margin-bottom: .75rem; }
.zv-footer-copyright { text-align: center; margin-top: 3rem; padding-bottom: 3rem; }

/* Cassiopeia-Kartenstil in Seitenleisten etwas ruhiger */
body.zv .card { border-radius: .313rem; }
body.zv .btn-primary { background: var(--zv-blue-dark); border-color: var(--zv-blue-dark); }

/* Menü: Navbar-Breite, Desktop-Verteilung, mobile Untermenüs im Fluss */
.zv-nav .navbar { padding: 0; width: 100%; }
.zv-nav .navbar-collapse { width: 100%; }
.zv-nav .metismenu.mod-menu .metismenu-item.level-1 { padding: 0; }
.zv-nav .metismenu.mod-menu .metismenu-item > a:hover,
.zv-nav .metismenu.mod-menu .metismenu-item.active > a { text-decoration: none; }
.zv-nav .metismenu.mod-menu .mm-toggler { color: #fff; background: transparent; border: 0; padding: 1rem .5rem 1rem 0; }
@media (min-width: 992px) {
  .zv-nav .metismenu.menu-horizontal { justify-content: space-between; }
  .zv-nav .metismenu.mod-menu .mm-collapse { position: absolute; left: 0; }
}
@media (max-width: 991.98px) {
  .zv-nav .navbar { justify-content: flex-start; }
  .zv-nav .metismenu.mod-menu .metismenu-item { flex-wrap: wrap; }
  .zv-nav .metismenu.mod-menu .mm-collapse { position: static; box-shadow: none; width: 100%; background: rgba(0,0,0,.08); }
  .zv-header-info { text-align: left; }
  .zv-header-info .zv-portale a:first-of-type { margin-left: .3rem; }
  .zv-header-info .mod-finder, .zv-header-info form { justify-content: flex-start; }
}

/* Desktop: Untermenüs zusätzlich per Hover/Fokus öffnen (wie in der Vorlage) */
@media (min-width: 992px) and (hover: hover) {
  .zv-nav .metismenu.mod-menu li.level-1:hover > .mm-collapse,
  .zv-nav .metismenu.mod-menu li.level-1:focus-within > .mm-collapse { display: block; }
}

/* ---------- Sprungmarken (Ortsrecht/Formulare): Abstand für den Sticky-Header ---------- */
:root { --cassiopeia-scroll-margin-top: 230px; }
@media (max-width: 991.98px) { :root { --cassiopeia-scroll-margin-top: 310px; } }

/* Aktuelles-Box im Startseiten-Beitrag */
.zv-news h2 { color: var(--zv-blue-dark, #0b5ba2); font-weight: 800; margin-bottom: 1.5rem; }
.zv-news .zv-news-figure { align-self: flex-start; }
/* Alte Beiträge enthalten Floats: Blog-Einträge sauber untereinander */
.blog-item { display: flow-root; }

/* ==========================================================================
   Tabellen in Beiträgen (Altbestand mit Inline-Formatierung)
   Nur Darstellung: Der Inhalt bleibt unverändert und im Editor normal bearbeitbar.
   !important ist nötig, weil die alten Tabellen Farben/Abstände als style/bgcolor im HTML tragen.
   ========================================================================== */
.zv-component main table:not(.com-content-category__table) {
  width: 100% !important;
  max-width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse !important;
  border: 0 !important;
  background: #fff !important;
  color: var(--zv-grey-dark, #2d373b) !important;
  font-size: .95rem;
}
.zv-component main table:not(.com-content-category__table) tr { height: auto !important; background: transparent !important; }
.zv-component main table:not(.com-content-category__table) td,
.zv-component main table:not(.com-content-category__table) th {
  padding: .65rem .9rem !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #dde5ea !important;
  vertical-align: top;
  color: inherit !important;
}
.zv-component main table:not(.com-content-category__table) td *:not(a):not(a *),
.zv-component main table:not(.com-content-category__table) th * { color: inherit !important; }
.zv-component main table:not(.com-content-category__table) td p,
.zv-component main table:not(.com-content-category__table) th p { margin: 0 0 .35rem; }
.zv-component main table:not(.com-content-category__table) td p:last-child,
.zv-component main table:not(.com-content-category__table) th p:last-child { margin-bottom: 0; }

/* Überschriftzeilen: <th> sowie alte graue Kopfzellen (bgcolor #ccc) */
.zv-component main table:not(.com-content-category__table) th,
.zv-component main table:not(.com-content-category__table) td[bgcolor="#cccccc" i],
.zv-component main table:not(.com-content-category__table) td[bgcolor="#ccc" i] {
  background: var(--zv-blue-dark, #0b5ba2) !important;
  color: #fff !important;
  font-weight: 600;
  text-align: left;
  letter-spacing: .02em;
  border-bottom: 0 !important;
}
.zv-component main table:not(.com-content-category__table) th a,
.zv-component main table:not(.com-content-category__table) td[bgcolor="#cccccc" i] a { color: #fff !important; }

/* PDF-Symbole in Zellen auf Textlinie */
.zv-component main table:not(.com-content-category__table) td img[src*="pdf"] { vertical-align: middle; margin-right: .25rem; }

/* Schmale Bildschirme: breite Tabellen seitlich wischbar statt gequetscht */
@media (max-width: 767.98px) {
  .zv-component main table:not(.com-content-category__table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .9rem; }
  .zv-component main table:not(.com-content-category__table) td, .zv-component main table:not(.com-content-category__table) th { padding: .5rem .6rem !important; min-width: 7rem; }
}

/* ---------- Menü-Optimierung (Vorlage: Dropdown dunkelblau, ohne Pfeile auf Desktop) ---------- */
.zv-nav .metismenu.mod-menu .mm-collapse { background: var(--zv-blue-dark); }
.zv-nav .metismenu.mod-menu .mm-collapse a,
.zv-nav .metismenu.mod-menu .mm-collapse a:hover,
.zv-nav .metismenu.mod-menu .mm-collapse a:focus,
.zv-nav .metismenu.mod-menu .mm-collapse .current > a,
.zv-nav .metismenu.mod-menu .mm-collapse .active > a { color: #fff; }
/* Unterpunkte: Link über die volle Breite (li ist bei Metismenu flex → Link sonst nur so breit wie der Text) */
.zv-nav .metismenu.mod-menu .mm-collapse li > a { flex: 1 1 100%; width: 100%; }
.zv-nav .metismenu.mod-menu .mm-collapse a:hover,
.zv-nav .metismenu.mod-menu .mm-collapse a:focus-visible { background: rgba(255, 255, 255, .12); }
.zv-nav .metismenu.mod-menu .mm-collapse .current > a {
  font-weight: 600;
  box-shadow: inset 4px 0 0 var(--zv-box-tuerkis);
}
/* Aktiver Hauptmenüpunkt schwarz (Hover bleibt Logo-Dunkelblau) */
.zv-nav .metismenu.mod-menu > li.level-1.active > a,
.zv-nav .metismenu.mod-menu > li.level-1.current > a { color: #fff; }
.zv-nav .navbar-toggler:focus { box-shadow: none; }
.zv-nav .navbar-toggler:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (min-width: 992px) {
  .zv-nav .mod-menu > li > a,
  .zv-nav .mod-menu > li > span { padding: 1rem 1.1rem; }
  .zv-nav .mod-menu > li > span.nav-header { cursor: default; } /* Platzhalter-Überschrift ohne Link */
  .zv-nav .metismenu.mod-menu li.level-1:hover > a { color: #fff; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
  .zv-nav .metismenu.mod-menu .mm-collapse {
    min-width: 260px;
    padding: .4rem 0;
    border-radius: 0 0 .313rem .313rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  }
  .zv-nav .metismenu.mod-menu .mm-collapse a { padding: .65rem 1.5rem; line-height: 1.35; }
}
/* Geräte mit Maus: Untermenü öffnet per Hover/Tastaturfokus, Pfeil-Buttons ausblenden */
@media (min-width: 992px) and (hover: hover) {
  .zv-nav .metismenu.mod-menu li.level-1 > .mm-toggler { display: none; }
}

/* Mobil: ganze Zeile antippbar, Pfeil rechts, Untermenü dunkelblau eingerückt */
@media (max-width: 991.98px) {
  .zv-nav .metismenu.mod-menu { padding-bottom: .5rem; }
  /* Header ist sticky: offenes Menü in sich scrollbar, damit untere Punkte erreichbar bleiben */
  .zv-nav .navbar-collapse { max-height: calc(100vh - 20rem); max-height: calc(100dvh - 20rem); overflow-y: auto; overscroll-behavior: contain; }
  .zv-nav .metismenu.mod-menu li.level-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .25);
  }
  .zv-nav .metismenu.mod-menu li.level-1 > a,
  .zv-nav .metismenu.mod-menu li.level-1 > span { flex: 1 1 auto; padding: .85rem .25rem; }
  .zv-nav .metismenu.mod-menu li.level-1 > .mm-toggler { padding: .85rem 1rem; margin-left: auto; }
  .zv-nav .metismenu.mod-menu .mm-collapse {
    background: var(--zv-blue-dark);
    border-radius: .313rem;
    margin-bottom: .5rem;
  }
  .zv-nav .metismenu.mod-menu .mm-collapse a { padding: .65rem 1.25rem; }
}

/* Suche: Vorschlagsliste (Smart Search/awesomplete) linksbündig, nicht vom Header-Rechtsbündig erben */
.zv-header-info .awesomplete > ul { text-align: left; }

/* Kategorie-Blog: Seitentitel vom ersten Beitragstitel absetzen, Beiträge untereinander trennen */
.com-content-category-blog > .page-header h1 { margin-bottom: 1.5rem; }
.com-content-category-blog .blog-item + .blog-item { margin-top: 2rem; }

/* Kategorie-Listen (Förderungen, Wasserzeitung, Trinkwasserqualität …): schlichte Linkliste mit Pfeil */
.com-content-category__table { border: 0; margin: 0 0 2rem; --bs-table-striped-bg: transparent; --bs-table-hover-bg: transparent; }
.com-content-category__table > :not(caption) > * > * { border: 0; background: transparent; box-shadow: none; padding: 0; }
.com-content-category__table tbody tr { border-bottom: 1px solid #dde5ea; }
.com-content-category__table tbody tr:first-child { border-top: 1px solid #dde5ea; }
.com-content-category__table .list-title { font-weight: 400; }
.com-content-category__table .list-title a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem .25rem; color: var(--zv-grey-dark); text-decoration: none; font-weight: 500;
}
.com-content-category__table .list-title a::after {
  content: ""; flex: 0 0 .55rem; height: .55rem; margin-right: .4rem;
  border-top: 2px solid var(--zv-blue-dark); border-right: 2px solid var(--zv-blue-dark); transform: rotate(45deg);
  transition: transform .15s;
}
.com-content-category__table .list-title a:hover,
.com-content-category__table .list-title a:focus-visible { color: var(--zv-blue-dark); }
.com-content-category__table .list-title a:hover::after { transform: translateX(3px) rotate(45deg); }
.com-content-category .category-desc { margin-bottom: 1.5rem; }
.com-content-category .category-desc img { max-width: 100%; height: auto; }

/* Startseiten-Boxen gleich hoch: Grid streckt den Modul-Wrapper, die Box füllt ihn; Button sitzt unten */
.zv-boxes > * { display: flex; flex-direction: column; }
.zv-boxes .zv-box { flex: 1 1 auto; display: flex; flex-direction: column; }
.zv-boxes .zv-box { justify-content: flex-start; }
.zv-boxes .zv-box > div { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0; }
.zv-boxes .zv-box > div > p:last-child:has(.zv-box-button, .btn) { margin-top: auto; margin-bottom: 0; padding-top: .5rem; }

/* ---------- Barrierefreiheit (WCAG 2.1 AA / BITVO M-V) ---------- */
/* Hauptmenü: Hover/Fokus = Unterstrich, aktiver Punkt = fett + weiße Linie unten (nicht nur über Farbe erkennbar) */
.zv-nav .mod-menu > li > a:hover,
.zv-nav .mod-menu > li > a:focus { color: #fff; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.zv-nav .metismenu.mod-menu > li.level-1.active > a,
.zv-nav .metismenu.mod-menu > li.level-1.current > a { color: #fff; font-weight: 700; box-shadow: inset 0 -4px 0 #fff; }
/* Box „Sprechzeiten“: dunkle Schrift auf Grau (5,3:1) wie bei der türkisen Box */
.zv-box--grau { color: var(--zv-grey-dark); }
.zv-box--grau a:not(.zv-box-button) { color: var(--zv-grey-dark); }
/* Sichtbarer Tastatur-Fokus überall; auf dunklen Flächen weiß */
body.zv :focus-visible { outline: 3px solid var(--zv-blue-dark); outline-offset: 2px; box-shadow: none; }
body.zv .zv-nav :focus-visible,
body.zv .zv-box--blau :focus-visible,
body.zv .zv-slider :focus-visible,
body.zv .mm-collapse :focus-visible { outline-color: #fff; }
body.zv .zv-box .zv-box-button:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
body.zv .zv-box--blau .zv-box-button:focus-visible { outline-color: #fff; }
/* Sprunglink sichtbar und deutlich, sobald er per Tab erreicht wird */
.zv-skip:focus { outline: 3px solid var(--zv-blue-dark); color: var(--zv-blue-dark); font-weight: 600; text-decoration: underline; }
/* Metismenu setzt eigenen 1px-Punktrahmen → im Menü überschreiben (innen, damit er im Balken sichtbar bleibt) */
body.zv .zv-nav .metismenu.mod-menu a:focus-visible,
body.zv .zv-nav .metismenu.mod-menu button:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* Leere Eckzelle im Tabellenkopf ist <td> (keine Überschrift) – farblich wie die Kopfzeile */
.zv-component main table:not(.com-content-category__table) thead td { background: var(--zv-blue-dark, #0b5ba2) !important; border-bottom: 0 !important; }
/* Zwischenüberschriften im Fließtext (aus fett gesetzten Absätzen umgewandelt): ruhige Größe */
.com-content-article__body h2 { font-size: 1.35rem; font-weight: 700; margin: 1.75rem 0 .75rem; }
.com-content-article__body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
/* Joomla-Kennzeichnung „Versteckt“/„Unveröffentlicht“ (nur für Redakteure sichtbar): dunkle Schrift auf Gelb */
.badge.bg-warning.text-light { color: #000 !important; }

/* ---------- Kompakter Header (01.12.2026) ----------
   Desktop: Logo links, Portale + Suche in einer Zeile; beim Scrollen (js/user.js → .is-shrunk) Logo 48 px.
   Mobil/Tablet: Burger rechts neben dem Logo; beim Scrollen nur Logo + Burger. */
.zv-header-info .mod-finder .btn { font-size: 0; padding-left: .9rem; padding-right: .9rem; } /* nur Lupe; Text „Suchen“ bleibt für Screenreader */
.zv-header-info .mod-finder .btn .icon-search { font-size: 1rem; }
@media (min-width: 992px) {
  .zv-branding { padding: .6rem 0; }
  .zv-branding .row { flex-wrap: nowrap; }
  .zv-logo-col { flex: 0 0 auto; width: auto; }
  .zv-header-info { flex: 1 1 auto; width: auto; display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
  .zv-header-info .zv-portale { margin: 0; font-size: .9rem; }
  .zv-header-info .mod-finder .awesomplete, .zv-header-info .mod-finder__search { width: 15rem; }
  .zv-logo-col .zv-logo { max-height: 80px; }
  .zv-nav .mod-menu > li > a, .zv-nav .mod-menu > li > span { padding-top: .75rem; padding-bottom: .75rem; }
  .zv-header.is-shrunk .zv-branding { padding: .2rem 0; }
  .zv-header.is-shrunk .zv-logo { max-height: 48px; }
  .zv-header.is-shrunk .zv-header-info .zv-portale { font-size: .85rem; }
  .zv-header.is-shrunk .zv-header-info .mod-finder input,
  .zv-header.is-shrunk .zv-header-info .mod-finder .btn { padding-top: .25rem; padding-bottom: .25rem; }
  .zv-header.is-shrunk .zv-nav .mod-menu > li > a,
  .zv-header.is-shrunk .zv-nav .mod-menu > li > span { padding-top: .5rem; padding-bottom: .5rem; }
}
@media (max-width: 991.98px) {
  .zv-branding { padding: .5rem 0; }
  .zv-logo-col { padding-right: 4rem; }
  .zv-logo-col .zv-logo { max-height: 56px; }
  .zv-header-info { padding-bottom: .5rem; }
  .zv-header-info .zv-portale { margin: .4rem 0; font-size: .8rem; }
  .zv-header-info .zv-portale a, .zv-header-info .zv-portale span.zv-label,
  .zv-header-info .zv-portale a:first-of-type { margin-left: 0; margin-right: .6rem; }
  .zv-header-info .mod-finder, .zv-header-info .mod-finder__search { width: 100%; }
  .zv-header-info .mod-finder .awesomplete { flex: 1 1 auto; width: auto; }
  .zv-header-info .mod-finder .awesomplete > input.form-control { width: 100%; max-width: none; min-width: 0; }
  .zv-header-info .mod-finder input, .zv-header-info .mod-finder .btn { padding-top: .3rem; padding-bottom: .3rem; }
  /* Burger oben rechts im Header (Header ist sticky = Bezugsrahmen) */
  .zv-nav, .zv-nav .container-nav, .zv-nav .navbar, .zv-nav .mod-menu { position: static; }
  .zv-nav .navbar { min-height: 0; padding: 0; }
  .zv-nav .navbar-toggler { position: absolute; top: .6rem; right: .75rem; z-index: 5; width: 3rem; height: 3rem; background: var(--zv-blue); border-radius: .313rem; }
  .zv-header.is-shrunk .zv-branding { padding: .25rem 0; }
  .zv-header.is-shrunk .zv-logo { max-height: 40px; }
  .zv-header.is-shrunk .zv-header-info { display: none; }
  .zv-header.is-shrunk .zv-nav .navbar-toggler { top: .2rem; width: 2.6rem; height: 2.6rem; }
}
@media (max-width: 991.98px) {
  /* offenes Mobilmenü: Höhe passend zum kompakten Header (167 px) */
  .zv-nav .navbar-collapse { max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); }
}
/* Header ändert beim Scrollen seine Höhe: Scroll-Anchoring aus, sonst springt der Browser zurück über die Schwelle */
html { overflow-anchor: none; }
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet: Portale/Suche stehen neben dem Logo – Platz für den Burger rechts lassen */
  .zv-logo-col { padding-right: calc(var(--gutter-x, 1.5rem) * .5); }
  .zv-header-info { padding-right: 4.25rem; }
}
