/* ============================================
   Gemeinde Berg am Starnberger See
   Municipal Website – Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-primary: #002244;
    --color-primary-dark: #001530;
    --color-primary-light: #003d6b;
    --color-accent: #002244;
    --color-accent-light: #b8d0e8;
    --color-text: #1a2733;
    --color-text-light: #3d5166;
    --color-text-muted: #4d6070;
    --color-bg: #FFFFFF;
    --color-bg-warm: #F8F6F3;
    --color-bg-cool: #EFF4F8;
    --color-border: #D8E4EE;
    --color-border-light: #EAF0F6;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,34,68,0.10);
    --shadow-lg: 0 8px 30px rgba(0,34,68,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --container-width: 1200px;
    --site-header-height: calc(72px * var(--a11y-font-scale, 1));
    --a11y-font-scale: 1;
    --transition: 0.25s ease;
    --contact-lines-label-width: 5.25rem;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Verhindert horizontalen Scroll durch ausgeblendete Mobile-Nav-Schublade
       und andere off-canvas Elemente. clip bricht position:sticky nicht. */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mobile-Sicherheit: sehr lange Worte / URLs umbrechen, damit kein
       horizontaler Scroll durch nicht-umbrechbaren Inhalt entsteht. */
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

.btn-primary {
    background: #1E3650;
    color: #fff;
    border-color: #1E3650;
}

.btn-primary:hover {
    background: #0F2238;
    border-color: #0F2238;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
    background: #0F2238;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #1E3650;
    border-color: #1E3650;
}

.btn-outline:hover {
    background: #1E3650;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline:focus-visible {
    background: #1E3650;
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--site-header-height);
    height: auto;
    gap: calc(32px * var(--a11y-font-scale, 1));
}

/* Überschreibt das globale .container-Padding (1.5rem) mit einem festen
   px-Wert — höhere Spezifität durch zwei Klassen, damit dies unabhängig
   von der Quellreihenfolge greift. Kein max-width: der Header soll die
   volle Bildschirmbreite nutzen, damit der Barrierefreiheit-Button auf
   jeder Bildschirmgröße wirklich rechtsbündig am Bildschirmrand sitzt
   (nicht nur am Rand des 1200px-Inhaltscontainers). */
.header-inner.container {
    max-width: 100%;
    padding: 0 calc(24px * var(--a11y-font-scale, 1));
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: calc(44px * min(var(--a11y-font-scale, 1), 1.2));
    width: auto;
}


/* Navigation */
.main-nav .nav-list {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: calc(14px * var(--a11y-font-scale, 1));
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-primary);
    background: var(--color-bg-cool);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
    background: var(--color-bg-cool);
}

/* Medium desktop widths: nav + logo + a11y-button don't all fit at full size,
   so trim non-essential width (a11y label, nav padding, header gap) before
   the logo is ever allowed to shrink. */
@media (max-width: 1300px) and (min-width: 769px) {
    .header-inner {
        gap: calc(16px * var(--a11y-font-scale, 1));
    }
    .nav-link {
        padding: 7px 8px;
        font-size: calc(13.6px * var(--a11y-font-scale, 1));
    }
    .main-nav .nav-list {
        gap: 1px;
    }
}

/* Vergrößerte Schrift: Navigation kann umbrechen, bleibt aber linksbündig */
@media (min-width: 769px) {
    html[class*="a11y-font-"] .main-nav .nav-list {
        flex-wrap: wrap;
        row-gap: calc(2px * var(--a11y-font-scale, 1));
    }

    /* Ab Stufe 1: Lange Dropdowns in 2 Spalten, damit nichts nach unten rausfällt */
    html[class*="a11y-font-"] .submenu:not(.submenu--short) {
        columns: 2;
        column-gap: 0;
        min-width: calc(480px * var(--a11y-font-scale, 1));
    }

    html[class*="a11y-font-"] .submenu li {
        break-inside: avoid;
    }
}

/* Kurze Submenüs: immer einspaltig */
.submenu--short {
    columns: 1 !important;
    min-width: calc(280px * var(--a11y-font-scale, 1));
}

/* Rechts ausgerichtete Submenüs: öffnen nach links statt rechts */
.submenu--right {
    left: auto;
    right: 0;
}

/* Zentriert unter dem Nav-Item öffnen */
.submenu--center {
    left: 50%;
    transform: translateX(-50%) translateY(6px);
}

.has-submenu:hover .submenu--center,
.has-submenu:focus-within .submenu--center {
    transform: translateX(-50%) translateY(0);
}

/* Ab Schriftgröße Stufe 3: L&W und F&S zentriert im Viewport
   direkt unter dem Header anzeigen */
html.a11y-font-3 [data-nav-item="rathaus"] .submenu,
html.a11y-font-4 [data-nav-item="rathaus"] .submenu,
html.a11y-font-3 [data-nav-item="leben"] .submenu,
html.a11y-font-4 [data-nav-item="leben"] .submenu,
html.a11y-font-3 .submenu--center,
html.a11y-font-4 .submenu--center {
    position: fixed;
    top: var(--site-header-height);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(6px);
}

html.a11y-font-3 [data-nav-item="rathaus"]:hover .submenu,
html.a11y-font-3 [data-nav-item="rathaus"]:focus-within .submenu,
html.a11y-font-4 [data-nav-item="rathaus"]:hover .submenu,
html.a11y-font-4 [data-nav-item="rathaus"]:focus-within .submenu,
html.a11y-font-3 [data-nav-item="leben"]:hover .submenu,
html.a11y-font-3 [data-nav-item="leben"]:focus-within .submenu,
html.a11y-font-4 [data-nav-item="leben"]:hover .submenu,
html.a11y-font-4 [data-nav-item="leben"]:focus-within .submenu,
html.a11y-font-3 .has-submenu:hover .submenu--center,
html.a11y-font-3 .has-submenu:focus-within .submenu--center,
html.a11y-font-4 .has-submenu:hover .submenu--center,
html.a11y-font-4 .has-submenu:focus-within .submenu--center {
    transform: translateX(-50%) translateY(0);
}

/* Chevron indicator for items with submenus */
.has-submenu > .nav-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.1rem;
}

.has-submenu:hover > .nav-link::after,
.has-submenu:focus-within > .nav-link::after {
    transform: rotate(225deg) translateY(-2px);
    opacity: 0.85;
}

/* ── Dropdown / Submenu ─────────────────────────── */
.submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: calc(280px * var(--a11y-font-scale, 1));
    background: #fff;
    border: 1px solid rgba(0, 34, 68, 0.12);
    border-top: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 34, 68, 0.16), 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
    z-index: 200;
    list-style: none;
}


.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: calc(0.55rem * var(--a11y-font-scale, 1)) calc(1.1rem * var(--a11y-font-scale, 1)) calc(0.55rem * var(--a11y-font-scale, 1)) calc(1rem * var(--a11y-font-scale, 1));
    font-size: calc(0.855rem * var(--a11y-font-scale, 1));
    color: var(--color-text-light);
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
    gap: 0.5rem;
}

.submenu a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary-light);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.submenu a:hover,
.submenu a:focus-visible {
    background: var(--color-bg-cool);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.submenu a:hover::before,
.submenu a:focus-visible::before {
    opacity: 1;
    transform: scale(1.3);
}

/* Active page link inside submenu */
.submenu a[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 600;
    border-left-color: var(--color-primary);
    background: var(--color-bg-cool);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: calc(12px * var(--a11y-font-scale, 1));
    margin-right: calc(-24px * var(--a11y-font-scale, 1));
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg-cool);
    border-radius: 100px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.search-form:focus-within {
    border-color: var(--color-primary-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.1);
}

.search-form input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.875rem;
    width: 140px;
    color: var(--color-text);
    font-family: var(--font-body);
}

.search-form input::placeholder {
    color: var(--color-text-muted);
}

.search-form--page {
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.35rem;
    border-radius: 50%;
    transition: all var(--transition);
}

.search-btn:hover {
    color: var(--color-primary);
    background: rgba(0, 34, 68, 0.08);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: calc(8px * var(--a11y-font-scale, 1));
    width: calc(44px * var(--a11y-font-scale, 1));
    height: calc(44px * var(--a11y-font-scale, 1));
    align-items: center;
    justify-content: center;
}

/* Hidden on desktop, shown only in mobile media query */
.submenu-toggle {
    display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: clamp(340px, 55vh, 560px);
    overflow: hidden;
    background: var(--color-primary-dark);
}

.hero--with-ki {
    height: auto;
    min-height: clamp(
        calc(380px * var(--a11y-font-scale, 1)),
        58vh,
        calc(560px * var(--a11y-font-scale, 1))
    );
    /* Antwortpanel muss Hero mitwachsen lassen — nicht abschneiden */
    overflow: visible;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
}

.hero-copy {
    max-width: 640px;
}

/* Abstand des entfernten hero-badge — restliche Hero-Elemente bleiben an Position */
.hero--with-ki .hero-copy {
    padding-top: calc(0.4rem + 0.4rem + 1rem + 0.8rem * 1.65);
}

/* Hero KI-Assistent — eine lange Eingabezeile */
.hero-ki {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.hero-ki__notice {
    margin: 0 0 0.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #fff;
    background: rgba(0, 40, 80, 0.72);
    border-radius: 0.5rem;
}

.hero-ki__notice a {
    color: #fff;
    text-decoration: underline;
}

.hero-ki__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 1.15rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 20, 40, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-ki__icon {
    flex-shrink: 0;
    display: flex;
    color: var(--color-primary);
    opacity: 0.85;
}

.hero-ki__bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    min-height: 48px;
    padding: 0;
}

.hero-ki__bar input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.9;
}

.hero-ki__bar input:focus-visible {
    outline: none;
}

.hero-ki__bar:focus-within {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    border-color: #fff;
}

.hero-ki__submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-ki__submit:hover,
.hero-ki__submit:focus-visible {
    background: var(--color-primary-dark);
}

.hero-ki__messages {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    padding: 1rem 1.2rem 1.15rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 20, 40, 0.28);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
    max-width: 100%;
    /* Keine innere Scrollview — eine Antwort, Seite scrollt bei Bedarf */
    overflow: visible;
}

.hero-ki__messages:not(:empty) {
    display: block;
}

.hero-ki__messages[hidden] {
    display: none;
}

.ki-chat-msg {
    margin-bottom: 0.65rem;
}

.ki-chat-msg:last-child {
    margin-bottom: 0;
}

.ki-chat-msg--user {
    font-weight: 600;
    color: var(--color-primary);
}

.ki-chat-msg--system {
    color: var(--color-text);
}

.ki-chat-msg--system strong {
    color: var(--color-primary-dark);
}

.ki-chat-msg--loading {
    font-style: italic;
    opacity: 0.85;
    color: var(--color-text-light);
}

.ki-chat-quellen {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(0, 34, 68, 0.12);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.ki-chat-quellen__label {
    font-weight: 600;
    color: var(--color-text-light);
}

.ki-chat-quellen__link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 600;
}

.ki-chat-quellen__link:hover,
.ki-chat-quellen__link:focus-visible {
    color: var(--color-primary-dark);
}

.ki-chat-meta {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(0, 34, 68, 0.1);
}

.ki-chat-disclaimer {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.ki-chat-disclaimer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.ki-chat-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
}

.ki-chat-feedback__label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-right: 0.15rem;
}

.ki-chat-feedback__btn {
    appearance: none;
    border: 1px solid rgba(0, 34, 68, 0.22);
    background: rgba(0, 34, 68, 0.04);
    color: var(--color-primary);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    min-height: 36px;
}

.ki-chat-feedback__btn:hover,
.ki-chat-feedback__btn:focus-visible {
    background: rgba(0, 34, 68, 0.1);
    border-color: var(--color-primary);
    outline: none;
}

.ki-chat-feedback__thanks {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hero-ki__submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(30, 54, 80, 0.78) 0%,
        rgba(30, 54, 80, 0.45) 45%,
        rgba(30, 54, 80, 0.65) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 3rem 0 3.5rem;
}

.hero--with-ki .hero-overlay {
    /* Im Dokumentfluss, damit Antwort die Hero-Höhe mitzieht */
    position: relative;
    inset: auto;
    min-height: inherit;
    width: 100%;
    align-items: stretch;
    padding: calc(2.5rem * var(--a11y-font-scale, 1)) 0 calc(2.25rem * var(--a11y-font-scale, 1));
}

@media (max-width: 768px) {
    .hero--with-ki.is-ki-open .hero-copy .hero-desc {
        display: none;
    }

    .hero--with-ki.is-ki-open .hero-copy {
        padding-top: 0.5rem;
    }

    .hero--with-ki.is-ki-open .hero-title {
        font-size: clamp(1.55rem, 6vw, 2rem);
        margin-bottom: 0;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-weight: 400;
    opacity: 0.85;
    font-size: 0.72em;
}

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 480px;
    line-height: 1.55;
}

/* ============================================
   ALERT BAR
   ============================================ */
.alert-bar {
    background: #1E3650;
    color: #fff;
    padding: 0.85rem 0;
    font-size: 0.9rem;
}

.alert-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-bar__badge {
    flex-shrink: 0;
    background: #C0392B;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alert-bar__text {
    flex: 1;
    font-weight: 500;
}

.alert-bar__text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.alert-bar__text a:hover {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   TEASER GRID (inline hints, not nav duplicate)
   ============================================ */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.teaser-card {
    background: var(--color-bg-cool);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
}

.teaser-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.65rem;
}

.teaser-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.teaser-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.teaser-card__link:hover {
    text-decoration: underline;
}

.service-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.service-note a {
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   EVENTS (Veranstaltungen) — einheitliche Karte pro Event
   ============================================ */
.events-section {
    padding-top: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.events-grid--archive {
    grid-template-columns: repeat(2, 1fr);
}

.bekanntmachungen-intro {
    margin-bottom: 1.75rem;
}

.bekanntmachungen-intro .detail-block__text + .detail-block__text {
    margin-top: 0.5rem;
}

.bekanntmachungen-intro a {
    font-weight: 600;
    color: var(--color-primary);
}

.bekanntmachungen-intro a:hover {
    text-decoration: underline;
}

.announcement-card .event-card__content {
    gap: 0.65rem;
}

.announcement-card .event-card__excerpt {
    -webkit-line-clamp: 3;
}

.event-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.event-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
}

.event-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.event-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-primary);
}

.event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.event-card:hover .event-card__media img {
    transform: scale(1.06);
}

.event-card__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.72) 0%, rgba(0, 34, 68, 0.08) 55%, transparent 100%);
    z-index: 1;
}

.event-card__category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

.event-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    padding: 0.55rem 0.45rem;
    background: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 34, 68, 0.18);
    line-height: 1.1;
    text-align: center;
}

.event-badge__month {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.event-badge__day {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.12rem 0;
}

.event-badge__year {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.event-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.65rem 1.65rem;
}

.event-card__date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
}

.event-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.event-card__details {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-card__detail {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.event-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 0 1.1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: gap var(--transition);
}

.event-card:hover .event-card__cta {
    gap: 0.65rem;
}

/* Detail page meta block */
.event-meta {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-cool);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.event-meta div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem;
}

.event-meta dt {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.event-meta dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.inline-forms {
    margin-bottom: 0;
}

/* ============================================
   DISCOVER SECTION (thematic entry)
   ============================================ */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.discover-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    transition: all 0.35s ease;
    background: var(--color-primary);
}

.discover-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%);
    z-index: 1;
    transition: all 0.35s ease;
}

.discover-card:hover::before {
    background: linear-gradient(to top, rgba(30,54,80,0.85) 0%, rgba(30,54,80,0.3) 80%);
}

.discover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.discover-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.discover-card:hover .discover-card__bg {
    transform: scale(1.05);
}

.discover-card__body {
    position: relative;
    z-index: 2;
}

.discover-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.discover-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.discover-card__text {
    font-size: 0.8rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    line-height: 1.5;
}

.discover-card:hover .discover-card__text {
    opacity: 0.85;
    max-height: 60px;
    margin-top: 0.3rem;
}

.discover-card__arrow {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
    transition: all var(--transition);
}

.discover-card:hover .discover-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================
   HOME OVERVIEW (Startseite — Bildüberblick)
   ============================================ */
.home-overview {
    padding: 2.75rem 0 3.5rem;
    background: var(--color-bg-warm);
}

.home-overview__spotlight {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.75rem;
}

.home-overview__aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.home-overview__about {
    margin-bottom: 2.75rem;
}

.home-overview__block {
    margin-bottom: 2.75rem;
}

.home-overview__block:last-of-type {
    margin-bottom: 2rem;
}

.home-overview__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-overview__heading {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
}

.home-overview__head .home-overview__heading {
    margin-bottom: 0;
}

.home-overview__head-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.home-overview__head-link:hover {
    text-decoration: underline;
}

.home-overview__events {
    margin-top: 0;
}

.home-overview__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.home-overview__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.home-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-feature-card:hover,
.home-feature-card:focus-visible {
    color: var(--color-text);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    outline: none;
}

.home-feature-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.home-feature-card__img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.home-feature-card:hover .home-feature-card__img,
.home-feature-card:focus-visible .home-feature-card__img {
    transform: scale(1.03);
}

.home-feature-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.5rem 1.5rem;
    background: #fff;
}

.home-feature-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

.home-feature-card__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-light);
    flex: 1;
}

.home-feature-card__arrow {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.home-feature-card:hover .home-feature-card__arrow,
.home-feature-card:focus-visible .home-feature-card__arrow {
    transform: translateX(4px);
}

.overview-empty {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.overview-empty a {
    font-weight: 600;
    color: var(--color-primary);
}

/* Featured news */
.overview-news {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.overview-news:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.overview-news__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.overview-news__media {
    height: 220px;
    overflow: hidden;
    background: var(--color-bg-cool);
}

.overview-news__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.overview-news:hover .overview-news__media img {
    transform: scale(1.04);
}

.overview-news__body {
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.overview-news__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.overview-news__date {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.overview-news__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.overview-news__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-light);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overview-news__cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.overview-news--empty .overview-news__body {
    min-height: 12rem;
    justify-content: center;
}

/* BergBlick side card */
.overview-bergblick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
    flex: 1;
}

.overview-bergblick:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.overview-bergblick__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-right: 1px solid var(--color-border-light);
}

.overview-bergblick__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.overview-bergblick__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1.25rem 1.35rem;
}

.overview-bergblick__title {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.overview-bergblick__text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-text-light);
}

/* About Berg showcase band */
.overview-about {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) 3fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
}

.overview-about:hover,
.overview-about:focus-visible {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    outline: none;
}

.overview-about__media {
    position: relative;
    min-height: 12.5rem;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.overview-about__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 55%,
        rgba(255, 255, 255, 0.08) 100%
    );
    pointer-events: none;
}

.overview-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.45s ease;
}

.overview-about:hover .overview-about__media img,
.overview-about:focus-visible .overview-about__media img {
    transform: scale(1.04);
}

.overview-about__badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.overview-about__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 2rem 2.85rem;
}

.overview-about__copy {
    min-width: 0;
}

.overview-about__meta {
    display: flex;
    flex-direction: column;
}

.overview-about__title {
    margin: 0 0 0.25rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

.overview-about__subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--color-text-light);
}

.overview-about__text {
    margin: 0;
    max-width: 52rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text);
}

.overview-about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
    gap: 0.65rem;
    margin: 0;
    max-width: 28rem;
}

.overview-about__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 0.55rem;
    text-align: center;
    background: var(--color-bg-cool);
    border-radius: var(--radius-md);
}

.overview-about__stat strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

.overview-about__stat span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--color-text-light);
}

.overview-about__cta {
    position: absolute;
    right: 2rem;
    bottom: 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.overview-about:hover .overview-about__cta,
.overview-about:focus-visible .overview-about__cta {
    transform: translateX(4px);
}

/* Online services */
.overview-service {
    position: relative;
    display: block;
    padding: 1.5rem 1.75rem 1.5rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
}

.overview-service:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.overview-service__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.overview-service__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
    padding-right: 1.5rem;
}

.overview-service__arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-primary);
    opacity: 0.5;
    transition: transform var(--transition), opacity var(--transition);
}

.overview-service:hover .overview-service__arrow {
    opacity: 1;
    transform: translate(4px, -50%);
}

.home-overview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.home-overview__meta a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.home-overview__meta a:hover {
    color: var(--color-primary);
}

.home-overview .discover-grid {
    margin-top: 0;
}

.home-overview .discover-card {
    min-height: 200px;
}

@media (max-width: 1024px) {
    .home-overview__features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FEATURED NEWS
   ============================================ */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.news-featured {
    grid-row: span 2;
    background: #fff;
    border: 12px solid var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.news-featured:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-featured__image {
    height: 260px;
    overflow: hidden;
    background: var(--color-bg-cool);
}

.news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-featured:hover .news-featured__image img {
    transform: scale(1.03);
}

.news-featured__body {
    padding: 1.75rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-featured .news-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-featured__title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.news-featured__title a {
    color: var(--color-text);
}

.news-featured__title a:hover {
    color: var(--color-primary);
}

.news-featured__excerpt {
    font-size: 0.925rem;
    color: var(--color-text-light);
    line-height: 1.65;
    flex: 1;
}

.news-featured__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.news-featured__link:hover {
    gap: 0.65rem;
}

.news-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-compact {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.bekanntmachungen-preview__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.bekanntmachungen-preview__more {
    margin: 0;
    text-align: right;
}

.bekanntmachungen-preview__more a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.bekanntmachungen-preview__more a:hover {
    text-decoration: underline;
}

.article-back {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.news-compact__excerpt {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-compact:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.news-compact__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-cool);
}

.news-compact__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-compact__body {
    flex: 1;
    min-width: 0;
}

.news-compact .news-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.news-compact__title {
    font-size: 0.925rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--color-text);
}

.news-compact__title a {
    color: var(--color-text);
}

.news-compact__title a:hover {
    color: var(--color-primary);
}

/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip {
    padding: 5rem 0;
    background: var(--color-bg-warm);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.about-text h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.about-fact {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.about-fact__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.about-fact__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 0.15rem;
}

/* ============================================
   CONTACT STRIP (pre-footer)
   ============================================ */
.contact-strip {
    background: var(--color-primary);
    color: #fff;
    padding: 2.5rem 0;
}

.contact-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-strip__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-strip__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-strip__label {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-strip__value {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-strip__value a {
    color: #fff;
}

.contact-strip__value a:hover {
    opacity: 0.85;
}

/* ============================================
   QUICK ACCESS (dark prominent strip)
   ============================================ */
.quick-access {
    background: var(--color-primary-dark);
    position: relative;
    z-index: 10;
}

.quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.6rem 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.quick-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.quick-item:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: inset 0 -4px 0 0 #fff;
}

.quick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.quick-item:hover .quick-icon {
    transform: scale(1.15);
}

.quick-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: inherit;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.015em;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-accent);
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-section {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border-light);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-card-image {
    height: 160px;
    overflow: hidden;
    background: var(--color-bg-cool);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.03);
}

.news-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.news-title a {
    color: var(--color-text);
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   BERGBLICK (Mitteilungsblatt)
   ============================================ */
.bergblick-banner {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--color-bg-cool);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    border: 1px solid var(--color-border);
}

.bergblick-content {
    flex: 1;
}

.bergblick-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.bergblick-text {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bergblick-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 200px;
    width: auto;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    display: block;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-arrow {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: transform var(--transition);
}

.service-card:hover .service-arrow {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-contact {
    font-size: 0.9rem;
}

.footer-contact li {
    margin-bottom: 0.3rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--color-accent-light);
}

.hours-table {
    font-size: 0.85rem;
    width: 100%;
}

.hours-table td {
    padding: 0.3rem 0;
    vertical-align: top;
}

.hours-table td:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding-right: 1rem;
    white-space: nowrap;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: 4px;
}

.footer-bank {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-bank p {
    margin-bottom: 0.75rem;
}

.footer-bank strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SUBPAGE: PAGE HERO
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 3rem 0 3.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -5%;
    top: -30%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.page-hero .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.page-hero .breadcrumb a:hover {
    color: #fff;
}

.page-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.page-hero__top .breadcrumb {
    margin-bottom: 0;
}

.breadcrumb__label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    margin-right: 0.35rem;
}

.page-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
}

.page-hero__back:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.page-hero .page-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-hero .page-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    line-height: 1.6;
}

.page-hero__emergency {
    margin-top: 1.5rem;
}

.page-hero__emergency-link {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: #fff;
    border-left: 4px solid #C0392B;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.page-hero__emergency-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.page-hero__emergency-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #C0392B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero__emergency-number {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.06em;
    line-height: 1;
}

/* ============================================
   SUBPAGE: ON-PAGE NAV TILES
   ============================================ */
.page-nav {
    margin-top: -1.75rem;
    position: relative;
    z-index: 10;
    padding-bottom: 0.5rem;
}

.page-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.page-nav-tile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.page-nav-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
    color: var(--color-primary);
}

.page-nav-tile .tile-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-bg-cool);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.page-nav-tile:hover .tile-icon {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   SUBPAGE: HUB SECTIONS (Full-width bands)
   ============================================ */
.hub-section {
    padding: 3.5rem 0;
}

.hub-section--warm {
    background: var(--color-bg-warm);
}

.hub-section--cool {
    background: var(--color-bg-cool);
}

.hub-section--white {
    background: #fff;
}

.hub-section__header {
    margin-bottom: 2rem;
}

.hub-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.015em;
    margin-bottom: 0.35rem;
}

.hub-section__subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    max-width: 640px;
}

/* ============================================
   SUBPAGE: TOPIC CARDS
   ============================================ */
.topic-grid {
    display: grid;
    gap: 1.25rem;
}

.topic-grid--2 { grid-template-columns: repeat(2, 1fr); }
.topic-grid--3 { grid-template-columns: repeat(3, 1fr); }
.topic-grid--4 { grid-template-columns: repeat(4, 1fr); }

.topic-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.hub-section--warm .topic-card,
.hub-section--cool .topic-card {
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   HUB PAGE: STICKY GLIEDERUNG (Rathaus etc.)
   ============================================ */
.hub-page-layout {
    display: grid;
    grid-template-columns:
        minmax(1.5rem, 1fr)
        minmax(13rem, 16rem)
        minmax(0, var(--container-width))
        minmax(1.5rem, 1fr);
    column-gap: 2rem;
    align-items: start;
    padding-bottom: 0;
}

.hub-page-sidebar {
    grid-column: 1 / 3;
    position: relative;
    align-self: stretch;
    margin-right: -2rem;
    padding-right: 2rem;
    background: #fff;
    z-index: 2;
}

.hub-page-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: #fff;
}

.hub-page-toc {
    position: sticky;
    top: calc(var(--site-header-height) + 1.25rem);
    max-height: calc(100vh - var(--site-header-height) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 1.25rem;
    padding-left: 2.5rem;
    z-index: 1;
}

.hub-page-nav {
    max-width: 13rem;
}

.hub-page-content {
    grid-column: 3;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hub-page-nav__label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.hub-page-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: hub-nav;
}

.hub-page-nav__list > li {
    margin: 0;
}

.hub-page-nav__link {
    display: block;
    position: relative;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.15rem;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.hub-page-nav__link:hover,
.hub-page-nav__link:focus-visible {
    color: var(--color-primary);
    background: var(--color-bg-cool);
    outline: none;
}

.hub-page-nav__link.is-active {
    color: var(--color-primary);
    background: var(--color-bg-cool);
    border-left-color: transparent;
}
.hub-page-nav__link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    border-radius: 0;
}

.hub-page-nav__link--external {
    font-size: 0.8rem;
}

/* Verschachtelte Gliederung (z.B. Hintergrund-Themen unter Windenergie) */
.hub-page-nav__sublist {
    list-style: none;
    margin: 0 0 0.3rem 0;
    padding: 0 0 0 0.5rem;
    border-left: 1px solid var(--color-border-light);
}

.hub-page-nav__sublink {
    display: block;
    padding: 0.28rem 0.55rem 0.28rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-light);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -0.5rem;
}

.hub-page-nav__sublink:hover,
.hub-page-nav__sublink:focus-visible {
    color: var(--color-primary);
    background: var(--color-bg-cool);
    border-left-color: var(--color-primary);
    outline: none;
}
.hub-page-nav__sublist > li {
    margin: 0;
}
.hub-page-nav__sublist .hub-page-nav__link {
    padding: 0.32rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 400;
}

/* Buchstaben-Gliederung (vereine.html) */
.hub-page-nav__list--letters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.hub-page-nav__list--letters > li {
    margin: 0;
}
.hub-page-nav__list--letters .hub-page-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.25rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
}
.hub-page-nav__list--letters .hub-page-nav__link:hover,
.hub-page-nav__list--letters .hub-page-nav__link:focus-visible {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.hub-page-nav__list--letters .hub-page-nav__link.is-active {
    background: var(--color-bg-cool);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.hub-page-nav__back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--color-primary);
    text-decoration: none;
}
.hub-page-nav__back:hover {
    text-decoration: underline;
}

/* Interaktiver Info-Kasten (rundes Design) */
.info-callout {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg, 1rem);
    background: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.info-callout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}
.info-callout__text {
    margin: 0 0 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}
.info-callout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Routen-/Wegstationen (z.B. Klöster am Jakobsweg) */
.stations {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}
.stations__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.3rem;
}
.stations__num {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 34, 68, 0.12);
}
.stations__name {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}
.stations__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--color-primary-light);
    z-index: 1;
}
@media (max-width: 640px) {
    .stations {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .stations__item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.85rem;
        padding: 0.5rem 0;
        min-height: 2.4rem;
    }
    .stations__name {
        margin-top: 0;
    }
    .stations__item:not(:last-child)::after {
        top: 2.4rem;
        bottom: -0.5rem;
        left: 1.2rem;
        right: auto;
        width: 2px;
        height: auto;
    }
}

/* Ausgerichtete Definitionsliste (z.B. Öffnungszeiten) */
.deflist {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 0.25rem 1rem;
    margin: 0;
}
.deflist dt {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}
.deflist dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9rem;
}
@media (max-width: 480px) {
    .deflist {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
    .deflist dd { color: var(--color-text-light); }
}

.hub-page {
    overflow-x: clip;
}

.hub-page-content .hub-section {
    scroll-margin-top: calc(var(--site-header-height) + 1rem);
    position: relative;
    background: transparent;
}

.hub-page-content .hub-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: calc(50% - 50vw);
    z-index: -1;
}

.hub-page-content .hub-section--warm::before {
    background: var(--color-bg-warm);
}

.hub-page-content .hub-section--cool::before {
    background: var(--color-bg-cool);
}

.hub-page-content .hub-section--white::before {
    background: #fff;
}

.hub-page-content .hub-section .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.topic-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-bg-cool);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.topic-card:hover .topic-card__icon {
    background: var(--color-primary);
    color: #fff;
}

.topic-card.is-clickable {
    cursor: pointer;
}

.topic-card.is-clickable:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light), var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.topic-card__title {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.topic-card__text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    flex: 1;
}

.topic-card__arrow {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.topic-card__arrow + .topic-card__arrow {
    margin-top: 0.35rem;
}

a.topic-card:hover .topic-card__arrow {
    transform: translateX(4px);
}

.topic-card--highlight {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 1px var(--color-accent-light);
}

/* Nicht-klickbare Karte: kein Hover-Effekt, kein Cursor-Pointer */
.topic-card--static {
    cursor: default;
}

/* Wahl-Archiv: Gruppen innerhalb der statischen Karte */
.wahl-archiv {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.wahl-archiv__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.wahl-archiv .topic-card__actions {
    margin-top: 0;
}

/* Größere Abstände auf der eigenen Archiv-Seite */
.wahl-archiv--page {
    gap: 1.5rem;
}

.wahl-archiv--page .wahl-archiv__label {
    font-size: 0.8rem;
}

.topic-card--static:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.topic-card--static:hover .topic-card__icon {
    background: var(--color-bg-cool);
    color: var(--color-primary);
}

/* Datei-Links innerhalb einer statischen Karte (z. B. mehrere PDFs) */
.topic-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.topic-card__filelink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--color-bg-cool);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.topic-card__filelink svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.topic-card__filelink:hover,
.topic-card__filelink:focus-visible {
    background: var(--color-primary);
    color: #fff;
}

.topic-card__filelink:hover svg,
.topic-card__filelink:focus-visible svg {
    opacity: 1;
}

.topic-card__filelink:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* ============================================
   GEMEINDLICHE EINRICHTUNGEN: Facility Grid
   ============================================ */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.facility-card {
    grid-column: span 2;
}

.facility-card--wide {
    grid-column: span 3;
}

@media (max-width: 900px) {
    .facility-grid {
        grid-template-columns: 1fr;
    }
    .facility-card,
    .facility-card--wide {
        grid-column: auto;
    }
}


/* ============================================
   SUBPAGE: CTA BANNER
   ============================================ */
.cta-banner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.cta-banner__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-banner__body {
    flex: 1;
}

.cta-banner__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cta-banner__text {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.cta-banner .btn {
    flex-shrink: 0;
}

.cta-banner__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1.5px;
    white-space: nowrap;
    z-index: 1;
}

/* Terminbuchung – Anliegenliste */
.termin-service-list {
    display: grid;
    gap: 1rem;
}

.termin-service {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}

.termin-service__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.termin-service__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
}

.termin-service__meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.termin-service__meta-item--price {
    font-weight: 700;
    color: var(--color-text);
}

.termin-service__list {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.5;
}

.termin-service__list li {
    margin-bottom: 0.2rem;
}

.termin-service__action {
    margin: 0;
}

.termin-service__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.termin-service__link:hover,
.termin-service__link:focus-visible {
    color: var(--color-primary-dark);
}

.cta-banner__link:hover,
.cta-banner__link:focus-visible {
    color: #fff;
    opacity: 0.92;
    text-decoration-thickness: 2px;
    outline: none;
}

.cta-banner__link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
    border-radius: 2px;
}

.btn-white {
    background: #fff;
    color: #1E3650;
    border-color: #fff;
    font-weight: 700;
}

.btn-white:hover {
    background: #F0EDE8;
    color: #0F2238;
    border-color: #F0EDE8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-white:focus-visible {
    background: #F0EDE8;
    color: #0F2238;
    outline-color: var(--color-primary-light);
}

/* ============================================
   SUBPAGE: EMERGENCY GRID
   ============================================ */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 0.85rem;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    text-align: left;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}

.emergency-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.emergency-card--highlight {
    border-color: #C0392B;
    background: #FFF5F5;
}

.emergency-card--highlight:hover {
    border-color: #A93226;
}

.emergency-card__number {
    flex: 0 0 auto;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.emergency-card--highlight .emergency-card__number {
    color: #C0392B;
}

.emergency-card__label {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.emergency-card__sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ============================================
   SUBPAGE: EMBEDDED MAP
   ============================================ */
.map-embed {
    width: 100%;
    height: 420px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-cool);
    position: relative;
}

.map-embed.leaflet-container {
    height: 420px;
}

.map-embed--loading::before {
    content: 'Karte wird geladen …';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    z-index: 1;
}

.map-embed--error {
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.map-embed__error {
    margin: 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.map-embed .leaflet-tile-pane img,
.map-embed .leaflet-marker-pane img,
.map-embed img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
}

.map-embed__credit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.map-marker {
    background: transparent;
    border: 0;
}

.map-marker span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 34, 68, 0.35);
}

.map-embed .leaflet-popup-content {
    margin: 0.65rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}

/* Zoom-Steuerung (+/−) */
.map-embed .leaflet-control-zoom {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 34, 68, 0.18);
}
.map-embed .leaflet-control-zoom a {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text) !important;
    background: #fff;
    border-bottom: 1px solid var(--color-border-light);
}
.map-embed .leaflet-control-zoom a:last-child {
    border-bottom: 0;
}
.map-embed .leaflet-control-zoom a:hover {
    background: var(--color-bg-warm);
    color: var(--color-primary) !important;
}

/* Legende der Sportstätten-Kategorien */
.map-legend {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 34, 68, 0.18);
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 12rem;
}
.map-legend__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--color-text);
}
.map-legend__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}
.map-legend__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text);
}
.map-legend__dot {
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 34, 68, 0.35);
}
@media (max-width: 560px) {
    .map-legend { display: none; }
}

/* ============================================
   SUBPAGE: DETAIL BLOCKS
   ============================================ */
.detail-block {
    border-left: 3px solid var(--color-primary-light);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hub-section--warm .detail-block,
.hub-section--cool .detail-block {
    box-shadow: var(--shadow-sm);
}

.detail-block__title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.detail-block__text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.detail-block__text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Klickbare detail-block-Karte (z. B. Archiv & Bücherei auf leben.html) */
.detail-block--link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.detail-block--link:hover,
.detail-block--link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-primary);
    outline: none;
}

.detail-block--link:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary-light), var(--shadow-md);
}

.detail-block__arrow {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--color-primary);
}

.detail-block--link:hover .detail-block__arrow {
    color: var(--color-primary-dark);
}

/* ============================================
   INLINE NEWSPAPER FIGURE (Geschichte)
   Kleines, vom Text umflossenes Bild mit Caption
   ============================================ */
.detail-block:has(.history-fig) {
    display: flow-root;
}

.history-fig {
    float: right;
    width: 220px;
    max-width: 45%;
    margin: 0.2rem 0 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.history-fig--left {
    float: left;
    margin: 0.2rem 1.25rem 0.75rem 0;
}

.history-fig img {
    width: 100%;
    height: auto;
    display: block;
}

.history-fig figcaption {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .history-fig,
    .history-fig--left {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem;
    }
}

/* Schritt-Screenshots (Bauleitplanung-Anleitung) */
.step-fig {
    display: block;
    max-width: 640px;
    margin: 0.5rem 0 1.25rem;
    border: 1px solid var(--color-border, #e3e3e3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.step-fig img {
    width: 100%;
    height: auto;
    display: block;
}
.is-article .step-fig + .step-fig,
.is-article p + .step-fig {
    margin-top: 0.5rem;
}

/* ============================================
   GLOBAL: CONTACT LINES
   Ausgerichtete Kontaktzeilen (Label | Wert)
   ============================================ */
.contact-lines {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.contact-lines__row {
    display: grid;
    grid-template-columns: var(--contact-lines-label-width) 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.contact-lines__label {
    font-weight: 600;
    color: var(--color-text);
}

.contact-lines a {
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-lines a:hover {
    color: var(--color-primary);
}

/* ============================================
   KULTURSPAZIERGANG – Schatzkarten-Etappen
   ============================================ */
.kp-map {
    position: relative;
    background:
        radial-gradient(ellipse at top left, rgba(255,255,255,0.45), transparent 60%),
        linear-gradient(135deg, #F4E9CE 0%, #EFE0BE 100%);
    border: 1px solid #D8C49A;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem 3.25rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.kp-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(90,74,47,0.07) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
}

.kp-compass {
    position: absolute;
    top: 1.1rem;
    right: 1.5rem;
    width: 66px;
    height: 66px;
    opacity: 0.45;
    pointer-events: none;
}

.kp-intro {
    position: relative;
    max-width: 44rem;
    margin-bottom: 2.5rem;
    color: #5A4A2F;
    font-size: 0.95rem;
    line-height: 1.7;
}

.kp-intro strong {
    color: #4A3A22;
}

.kp-trail {
    position: relative;
    margin-left: 2.25rem;
    padding-left: 2.75rem;
}

.kp-trail::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    bottom: 4.5rem;
    width: 0;
    border-left: 3px dashed #B69B62;
}

.kp-etappe {
    position: relative;
    margin-bottom: 1.75rem;
}

.kp-etappe__badge {
    position: absolute;
    left: -2.75rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #6B4F1E;
    color: #F4E9CE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 0 4px #F4E9CE, 0 0 0 5px #B69B62;
    z-index: 1;
}

.kp-etappe__card {
    background: #FBF5E6;
    border: 1px solid #D8C49A;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.4rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.kp-etappe__title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #5A4A2F;
    margin: 0 0 0.2rem;
}

.kp-etappe__orte {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #725526;
    margin-bottom: 0.85rem;
}

.kp-stations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1.1rem;
}

.kp-station {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #5A4A2F;
}

.kp-station svg {
    flex: 0 0 auto;
    margin-top: 0.18rem;
    color: #9B6B2E;
}

.kp-finis {
    position: relative;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
}

.kp-finis__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #6B4F1E;
    color: #F4E9CE;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 0 0 5px #F4E9CE, 0 0 0 6px #B69B62;
}

.kp-finis__label {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #6B4F1E;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .kp-stations {
        grid-template-columns: 1fr;
    }
    .kp-trail {
        margin-left: 0.5rem;
        padding-left: 2.25rem;
    }
    .kp-etappe__badge {
        left: -2.25rem;
    }
    .kp-compass {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   GLOBAL: ORG CARDS (Einrichtungen, Verbände)
   ============================================ */
.org-grid {
    display: grid;
    gap: 1.25rem;
}

.org-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.org-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.org-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.org-card__location {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.org-card__section-title {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
}

.org-card .contact-lines__row {
    grid-template-columns: 7.25rem 1fr;
}

.org-card .detail-block__text {
    margin: 0;
    font-size: 0.9rem;
}

.org-card .detail-block__text + .detail-block__text {
    margin-top: 0.65rem;
}

.org-card__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.org-card--wide-labels .contact-lines__row {
    grid-template-columns: 9.5rem 1fr;
}

.org-card--emergency {
    border-color: var(--color-border);
    background: var(--color-bg-cool);
}

.org-card--emergency .org-card__title {
    border-bottom: none;
    padding-bottom: 0;
}

.org-card--emergency .org-card__emergency {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.04em;
}

.org-card--span-2 {
    grid-column: 1 / -1;
    max-width: 20rem;
}

/* ============================================
   SUBPAGE: LINK LIST
   ============================================ */
.link-list {
    display: grid;
    gap: 0.5rem;
}

.link-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
}

.hub-section--white .link-list__item {
    background: var(--color-bg-cool);
    border-color: transparent;
}

.link-list__item:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
    padding-left: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.link-list__item::before {
    content: '\2192';
    color: var(--color-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.link-list--nested {
    margin-top: 0.35rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--color-border-light);
}

.satzungen-intro .detail-block__text + .detail-block__text {
    margin-top: 0.85rem;
}

/* ============================================
   SUBPAGE: TWO-COLUMN CONTENT
   ============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.two-col--wide-left {
    grid-template-columns: 1.5fr 1fr;
}

.two-col--wide-right {
    grid-template-columns: 1fr 1.5fr;
}

/* ============================================
   HUB: SERVICE & FORMULARE SPLIT
   ============================================ */
.service-hub {
    align-items: stretch;
}

.service-hub__panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.service-hub__title {
    margin: 0 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--color-text);
}

.service-hub__panel .link-list {
    flex: 1;
}

.service-hub__footer {
    margin: 1.1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.service-hub__cta {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--color-primary);
    text-decoration: none;
}

.service-hub__cta:hover,
.service-hub__cta:focus-visible {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.service-hub__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.service-hub__cards .topic-card {
    flex: 1;
}

.service-portal-teaser {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.service-portal-teaser__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--color-bg-cool);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-portal-teaser__body {
    flex: 1;
    min-width: 0;
}

.service-portal-teaser__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--color-text);
}

.service-portal-teaser__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.service-portal-teaser__btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .service-portal-teaser {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-portal-teaser__btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   SUBPAGE: CONTACT CARD (large)
   ============================================ */
.contact-card-lg {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-card-lg__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card-lg address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.contact-row svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-row a {
    color: var(--color-text);
    font-weight: 500;
}

.contact-row a:hover {
    color: var(--color-primary);
}

/* ============================================
   SUBPAGE: MAP PLACEHOLDER
   ============================================ */
.map-placeholder {
    background: var(--color-bg-cool);
    border-radius: var(--radius-md);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
}

/* ============================================
   SERVICE PORTAL
   ============================================ */
.service-portal-intro {
    margin-bottom: 2rem;
    padding: 1.35rem 1.5rem;
    background: var(--color-bg-cool);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.service-portal-intro__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .service-portal-intro__layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
        gap: 2rem;
    }
}

.service-portal-intro__heading {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.service-portal-intro__steps {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-portal-intro__steps li + li {
    margin-top: 0.4rem;
}

.service-portal-intro__note {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.service-portal-intro__lead {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
}

.service-portal-intro__aside {
    padding-top: 0.15rem;
}

@media (min-width: 768px) {
    .service-portal-intro__aside {
        padding: 0.5rem 0 0 1.5rem;
        border-left: 1px solid var(--color-border);
    }
}

.service-portal-intro__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.service-portal-intro__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.service-portal-jump {
    margin-bottom: 1.75rem;
}

.service-portal-jump__label {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.service-portal-jump__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-portal-jump__link {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    text-decoration: none;
    background: var(--color-bg-cool);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.service-portal-jump__link:hover,
.service-portal-jump__link:focus-visible {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    outline: none;
}

.service-portal-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 900px) {
    .service-portal-grid {
        columns: 2;
        column-gap: 2rem;
    }

    .service-portal-category {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

.service-portal-category__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    scroll-margin-top: calc(var(--site-header-height) + 1.25rem);
}

.service-portal-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .service-portal-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-portal-items--single {
        grid-template-columns: 1fr;
    }

    .service-portal-items--single .service-portal-item {
        max-width: calc(50% - 0.5rem);
    }
}

.service-portal-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--color-bg-white, #fff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.service-portal-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.service-portal-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.35;
    flex: 1 1 14rem;
}

.service-portal-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.service-portal-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
}

.service-portal-badge--online {
    background: rgba(0, 90, 160, 0.12);
    color: var(--color-primary);
}

.service-portal-badge--download {
    background: rgba(120, 80, 0, 0.12);
    color: #7a5200;
}

.service-portal-item__bullets {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--color-text-light);
    font-size: 0.925rem;
    line-height: 1.5;
}

.service-portal-item__bullets li + li {
    margin-top: 0.35rem;
}

.service-portal-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.service-portal-item__btn {
    font-size: 0.875rem;
}

.service-portal-item__btn--download::before {
    content: "↓ ";
}

/* ============================================
   SUBPAGE: OPENING HOURS (Verwaltung, Rathaus)
   ============================================ */
.opening-hours-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.opening-hours-card__header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.opening-hours-card__title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
}

/* ============================================
   TELEFONLISTE / MITARBEITER-TABELLE
   ============================================ */
.staff-search {
    margin-bottom: 1.25rem;
}

.staff-search__wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 480px;
}

.staff-search__icon {
    position: absolute;
    left: 0.85rem;
    color: var(--color-text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.staff-search__input {
    width: 100%;
    padding: 0.65rem 3rem 0.65rem 2.6rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.staff-search__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.1);
}

.staff-search__input::placeholder {
    color: var(--color-text-muted);
}

.staff-search__count {
    position: absolute;
    right: 0.85rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 560px;
}

.staff-table thead th {
    padding: 0.65rem 1rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background: var(--color-bg-cool);
    border-bottom: 2px solid var(--color-border);
    text-align: left;
    white-space: nowrap;
}

.staff-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
    vertical-align: top;
}

.staff-table tbody td a {
    color: var(--color-primary);
    text-decoration: none;
}

.staff-table tbody td a:hover {
    text-decoration: underline;
}

.staff-table tbody td small {
    font-size: 0.8em;
    color: var(--color-text-muted);
}

.staff-table tbody tr:last-child td {
    border-bottom: none;
}

.staff-table tbody tr:hover td {
    background: var(--color-bg-cool);
}

.staff-table__highlight td {
    background: rgba(0, 34, 68, 0.04);
}

.staff-table__highlight:hover td {
    background: rgba(0, 34, 68, 0.07) !important;
}

.staff-table__role {
    font-size: 0.8em;
    color: var(--color-primary);
    font-weight: 600;
}

.staff-table__letter-row td {
    padding: 0.4rem 1rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-bg-cool);
    border-bottom: 1px solid var(--color-border-light);
    border-top: 2px solid var(--color-border-light);
}

.staff-table__letter-row:first-child td {
    border-top: none;
}

.opening-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.opening-hours-table thead th {
    padding: 0.55rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.opening-hours-table thead th:last-child {
    text-align: right;
}

.opening-hours-table tbody th[scope="row"] {
    padding: 0.75rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    vertical-align: top;
    width: 38%;
}

.opening-hours-table tbody td {
    padding: 0.75rem 1.25rem;
    font-size: 0.925rem;
    text-align: right;
    vertical-align: top;
    color: var(--color-text-light);
}

.opening-hours-table tbody tr:nth-child(odd) {
    background: var(--color-bg-cool);
}

.opening-hours-table tbody tr.is-today th[scope="row"] {
    font-weight: 700;
}

.opening-hours-time {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}

.opening-hours-time + .opening-hours-time {
    margin-top: 0.15rem;
}

.opening-hours-card__hint a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.season-hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.season-hours-panel + .season-hours-panel {
    border-left: 1px solid var(--color-border);
}

.season-hours-panel__title {
    margin: 0;
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    background: var(--color-bg-cool);
    border-bottom: 1px solid var(--color-border);
}

.two-col + .opening-hours-card {
    margin-top: 1.25rem;
}

.waste-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.waste-types-list li {
    padding: 0.35rem 0.75rem;
    background: var(--color-bg-cool);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.waste-types-list + .detail-block__text {
    margin-top: 0.85rem;
}

.map-embed--static {
    padding: 0;
    height: 320px;
}

.map-embed--static iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.opening-hours-status {
    color: var(--color-text-muted);
    font-style: italic;
}

.opening-hours-card__hint {
    margin: 0;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.55;
    border-top: 1px solid var(--color-border);
}

/* ============================================
   SUBPAGE: HOURS TABLE (standalone)
   ============================================ */
.hours-table-standalone {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.hours-table-standalone th[scope="col"] {
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: left;
    background: var(--color-primary);
    color: #fff;
}

.hours-table-standalone th[scope="row"] {
    padding: 0.85rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--color-text);
    width: 35%;
    text-align: left;
    vertical-align: top;
}

.hours-table-standalone td {
    padding: 0.85rem 1.25rem;
    font-size: 0.925rem;
}

.hours-table-standalone tr:nth-child(even) {
    background: var(--color-bg-cool);
}

.hours-table-standalone td:last-child {
    color: var(--color-text-light);
}

.hours-table-standalone .closed {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ============================================
   SUBPAGE: BANK INFO
   ============================================ */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bank-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.bank-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.bank-card__row {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.bank-card__row span {
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================
   INFO TABLE
   ============================================ */
.info-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}

.info-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.info-table tbody tr:nth-child(even) {
    background: var(--color-bg-cool);
}

.info-table tbody tr:hover {
    background: var(--color-bg-warm);
}

/* Time chips (Fahrplan) */
.time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.time-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--color-bg-cool);
    border: 1px solid var(--color-border);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}
.info-table td .time-chips {
    justify-content: flex-start;
}

/* Aligned definition lists (Ausstiegsstellen, Linien) */
.stop-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}
.stop-card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
}
.hub-section--cool .stop-card,
.hub-section--warm .stop-card {
    border-color: transparent;
}
.stop-card__name {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.stop-card__info {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.stop-list,
.line-list {
    display: grid;
    grid-template-columns: minmax(7rem, auto) 1fr;
    gap: 0.5rem 1rem;
    margin: 0.5rem 0 0;
    align-items: start;
}
.stop-list dt,
.line-list dt {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}
.stop-list dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}
.line-list dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5;
}
.line-list dt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    height: fit-content;
}
@media (max-width: 600px) {
    .stop-list,
    .line-list {
        grid-template-columns: 1fr;
        gap: 0.15rem 0;
    }
    .stop-list dt,
    .line-list dt {
        margin-top: 0.4rem;
    }
    .line-list dt {
        margin-top: 0.5rem;
    }
}

/* School connection list (Anbindung Schulen) */
.school-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 0;
}
.school-entry {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.hub-section--cool .school-entry,
.hub-section--warm .school-entry {
    border-color: transparent;
}
.school-entry__name {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.school-entry__info {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}
@media (max-width: 600px) {
    .school-list {
        grid-template-columns: 1fr;
    }
}

/* Contact cards (Ansprechpartner) */
.contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
}
.hub-section--cool .contact-card,
.hub-section--warm .contact-card {
    border-color: transparent;
}
.contact-card__name {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.contact-card__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0.15rem 0;
}
.contact-card__label {
    font-weight: 600;
    color: var(--color-text);
    width: 6.5rem;
    min-width: 6.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.contact-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.contact-card a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .contact-list {
        grid-template-columns: 1fr;
    }
}

/* Institution cards (Kitas, Schulen, Ansprechpartner) */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
}
.inst-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
    .inst-grid,
    .inst-grid--2 {
        grid-template-columns: 1fr;
    }
}
.inst-card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.hub-section--cool .inst-card,
.hub-section--warm .inst-card {
    border-color: transparent;
}
.inst-card__name {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.inst-card__sub {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.4;
}
.inst-card__desc {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.55;
}
.inst-grid--single {
    grid-template-columns: 1fr;
}
.inst-grid--single .inst-card {
    padding: 1.25rem 1.5rem;
}
.inst-grid--single .inst-card__name {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.inst-grid--single .inst-card__desc {
    margin-bottom: 0.85rem;
}
/* Karten in einem Grid auf gleiche Zeilenhöhe ausrichten
   (Beschreibung wird gestreckt, folgende Zeilen rücken ans untere Ende) */
.inst-grid--align .inst-card__desc {
    flex: 1 1 auto;
}
.inst-card__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0.1rem 0;
}
.inst-card__label {
    font-weight: 600;
    color: var(--color-text);
    width: 7rem;
    min-width: 7rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.inst-card a {
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-word;
}
.inst-card a:hover {
    text-decoration: underline;
}

/* Suchfeld Vereine */
.vereine-search {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.vereine-search__field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}
.vereine-search__icon {
    flex-shrink: 0;
    color: var(--color-text-light);
    display: inline-flex;
}
.vereine-search__input {
    flex: 1 1 auto;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: 0.55rem 2.2rem 0.55rem 0.9rem;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-cool);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.vereine-search__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.12);
    background: #fff;
}
.vereine-search__clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1.3rem;
    line-height: 1;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.vereine-search__clear:hover {
    background: var(--color-bg-cool);
    color: var(--color-text);
}
.vereine-search__clear.is-visible {
    display: inline-flex;
}
.vereine-search__status {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-light);
    min-height: 1.1rem;
}
.vereine-search.is-filtering ~ .hub-section .inst-card {
    /* keine visuelle Änderung; nur Hook */
}
.hub-section.is-search-empty {
    display: none;
}

/* Service badges (Rentenleistungen) */
.svc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.65rem;
}
.svc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}
.svc-badge--antrag {
    background: var(--color-bg-warm);
    color: var(--color-text);
}
.svc-badge--beratung {
    background: var(--color-bg-cool);
    color: var(--color-text);
}

/* Sub-group headings within a section */
.subgroup-title {
    margin: 1.5rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-border-light);
}
.subgroup-title:first-child {
    margin-top: 0;
}

/* Highlighted fact box (z.B. Betreuungsgeld) */
.fact-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.75rem 0 0;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.fact-box__item {
    display: flex;
    flex-direction: column;
}
.fact-box__value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}
.fact-box__label {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-top: 0.15rem;
}

/* Timeline (z.B. Aktuelles zur Energiewende) */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--color-border-light);
}
.timeline__item {
    position: relative;
    margin: 0 0 1.5rem 1.25rem;
    padding: 0 0 0 1.25rem;
}
.timeline__item:last-child {
    margin-bottom: 0;
}
.timeline__item::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--color-border-light);
}
.timeline__date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
.timeline__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}
.timeline__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 760px;
}
@media (max-width: 640px) {
    .timeline__item {
        margin-left: 1rem;
        padding-left: 1rem;
    }
}

/* ============================================
   ARTICLE / PROSE (z. B. Windenergie)
   Lesefreundliche Typografie für lange 1:1-Texte,
   ohne den Wortlaut zu verändern.
   ============================================ */
.is-article .detail-block {
    padding: 1.5rem 1.75rem 2.25rem;
    border-left-width: 4px;
}
.is-article .detail-block + .detail-block {
    margin-top: 1.25rem;
}
.is-article .detail-block > p,
.is-article .detail-block__text {
    font-size: 0.975rem;
    line-height: 1.72;
    color: var(--color-text);
    margin: 0 0 0.9rem;
    text-wrap: pretty;
    hyphens: auto;
}
.is-article .detail-block > *:last-child {
    margin-bottom: 0;
}
.is-article .detail-block > p strong,
.is-article .detail-block__text strong {
    color: var(--color-text);
    font-weight: 700;
}
.is-article .detail-block > h3.detail-block__title,
.is-article .detail-block > h4.detail-block__title {
    font-size: 1.08rem;
    font-weight: 750;
    color: var(--color-primary-dark);
    margin: 1.2rem 0 0.55rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--color-primary);
    line-height: 1.3;
    text-wrap: balance;
}
.is-article .detail-block > h3.detail-block__title:first-child,
.is-article .detail-block > h4.detail-block__title:first-child {
    margin-top: 0;
}
/* Zwischenüberschriften im Artikel (promoted h4/h3 ohne detail-block__title) */
.is-article .detail-block > h3:not(.detail-block__title),
.is-article .detail-block > h4:not(.detail-block__title) {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 1.5rem 0 0.55rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--color-primary);
    line-height: 1.3;
    text-wrap: balance;
}
.is-article .detail-block > h3:not(.detail-block__title):first-child,
.is-article .detail-block > h4:not(.detail-block__title):first-child {
    margin-top: 0;
}
.is-article .detail-block > h3:not(.detail-block__title) + p,
.is-article .detail-block > h4:not(.detail-block__title) + p {
    margin-top: 0;
}
.is-article .detail-block ul,
.is-article .detail-block ol {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}
.is-article .detail-block ul {
    list-style: disc;
}
.is-article .detail-block ol {
    list-style: decimal;
}
.is-article .detail-block ul li,
.is-article .detail-block ol li {
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    padding-left: 0.15rem;
}
.is-article .detail-block ul li::marker,
.is-article .detail-block ol li::marker {
    color: var(--color-primary);
    font-weight: 700;
}
.is-article .detail-block a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.is-article .detail-block a:hover {
    color: var(--color-primary);
}
.is-article .info-table {
    margin: 0.5rem 0 1.25rem;
    max-width: 100%;
}
.is-article .info-table td p {
    margin: 0;
    font-size: 0.95rem;
}

/* Timeline als Karten-Zeitstrahl mit Datums-Pills */
.is-article .timeline {
    border-left-color: var(--color-primary-light);
    margin-left: 0;
}
.is-article .timeline__item {
    position: relative;
    margin: 0 0 1.5rem 1.5rem;
    padding: 0 0 0 1.25rem;
    border-bottom: 0;
}
.is-article .timeline__item:last-child {
    margin-bottom: 0;
}
/* größerer, edlerer Punkt auf dem Strahl */
.is-article .timeline__item::before {
    left: -1.95rem;
    top: 1.05rem;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--color-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-primary-light), 0 2px 6px rgba(0,0,0,0.12);
}
.is-article .timeline__body {
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.is-article .timeline__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.is-article .timeline__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.7rem;
    text-wrap: balance;
}
.is-article .timeline__text {
    font-size: 0.965rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: none;
}
.is-article .timeline__text p {
    margin: 0 0 0.8rem;
    max-width: none;
}
.is-article .timeline__text p:last-child {
    margin-bottom: 0;
}
.is-article .timeline__text a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.is-article .timeline__text ul,
.is-article .timeline__text ol {
    margin: 0 0 0.8rem;
    padding-left: 1.15rem;
}
.is-article .timeline__text ul {
    list-style: disc;
}
.is-article .timeline__text ol {
    list-style: decimal;
}
.is-article .timeline__text li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}
.is-article .timeline__text li::marker {
    color: var(--color-primary);
}
@media (max-width: 640px) {
    .is-article .timeline__item {
        margin-left: 1.1rem;
        padding-left: 1rem;
    }
    .is-article .timeline__item::before {
        left: -1.55rem;
    }
}

/* Glossar als saubere Zweispalter-Karte */
.is-article .deflist {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 0.55rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.is-article .deflist dt {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}
.is-article .deflist dd {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 0 0.55rem;
}
.is-article .deflist dd:last-of-type {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .is-article .deflist {
        grid-template-columns: 1fr;
        gap: 0.2rem 0;
    }
    .is-article .deflist dt {
        margin-top: 0.6rem;
    }
    .is-article .deflist dt:first-child {
        margin-top: 0;
    }
}

/* Section-Titel balancesetzt */
.is-article .hub-section__title {
    text-wrap: balance;
}

/* Bilder im Artikel (nicht die floateden Figuren) */
.is-article .detail-block p img,
.is-article .timeline__text p img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.is-article .detail-block p:has(> img),
.is-article .timeline__text p:has(> img) {
    text-align: center;
    margin: 1rem 0;
}
.is-article .history-fig img {
    margin: 0;
}

/* Beispiel-Callout (z. B. Windgeschwindigkeit) */
.is-article .example-callout {
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 0 0 1rem;
}
.is-article .example-callout p {
    margin: 0;
    font-size: 0.965rem;
    line-height: 1.7;
}
.is-article .example-callout em {
    font-style: italic;
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Download-Liste */
.is-article .download-list {
    margin-top: 0.5rem;
}
.is-article .download-list .link-list__label {
    flex: 1 1 auto;
}
.is-article .download-list .link-list__size {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg-warm);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.is-article .download-list .link-list__item::before {
    content: '\1F4C4';
    font-size: 1rem;
}

/* Kontakt-Karte (Beteiligung) */
.is-article .contact-card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 1.25rem;
}
.is-article .contact-card__head {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}
.is-article .contact-card__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}
.is-article .contact-card__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem 2rem;
}
.is-article .contact-card__row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}
.is-article .contact-card__row:last-child {
    margin-bottom: 0;
}
.is-article .contact-card__icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--color-primary);
}
.is-article .contact-card__row a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.is-article .contact-card__label {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
}
.is-article .contact-card__value {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
}
@media (max-width: 640px) {
    .is-article .contact-card__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topic-grid--3,
    .topic-grid--4,
    .org-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-overview__spotlight {
        grid-template-columns: 1fr;
    }

    .overview-about {
        grid-template-columns: 1fr;
    }

    .overview-about__media {
        min-height: 11rem;
    }

    .overview-about__body {
        padding: 1.35rem 1.5rem 2.75rem;
    }

    .overview-about__cta {
        right: 1.5rem;
        bottom: 1.35rem;
    }

    .overview-about__stats {
        max-width: 100%;
    }

    .home-overview__services {
        grid-template-columns: 1fr;
    }

    .home-overview__features {
        grid-template-columns: 1fr;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-row: auto;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-strip__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col,
    .two-col--wide-left,
    .two-col--wide-right {
        grid-template-columns: 1fr;
    }

    .season-hours-grid {
        grid-template-columns: 1fr;
    }

    .season-hours-panel + .season-hours-panel {
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .hub-page-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1.5rem 0;
    }

    .hub-page-sidebar {
        grid-column: 1;
        align-self: start;
        margin-right: 0;
        padding-right: 0;
        background: transparent;
    }

    .hub-page-sidebar::before {
        display: none;
    }

    .hub-page-toc,
    .hub-page-content {
        grid-column: 1;
    }

    .hub-page-toc {
        position: static;
        max-height: none;
        overflow: visible;
        padding-top: 1rem;
        padding-left: 0;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .hub-page-nav {
        max-width: none;
    }

    .hub-page-content .hub-section::before {
        left: 50%;
        right: auto;
        width: 100vw;
        transform: translateX(-50%);
    }

    .hub-page-nav__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .hub-page-nav__link {
        margin-bottom: 0;
        padding: 0.4rem 0.7rem;
        border-left: none;
        border: 1px solid var(--color-border);
        border-radius: 99px;
        font-size: 0.78rem;
    }

    .hub-page-nav__link.is-active {
        border-color: var(--color-primary);
    }
}

/* Mittlere Desktop-Breiten (769–1150px): Logo + volle Navigation + a11y-Button
   passen nicht mehr nebeneinander, ohne das Logo zu quetschen oder etwas
   abzuschneiden. Statt zu quetschen, nutzen wir hier bereits das mobile
   Hamburger-Menü (identische Regeln wie unten im Mobile-Block). */
@media (max-width: 1150px) and (min-width: 769px) {
    .main-nav {
        position: fixed;
        top: var(--site-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 0.75rem 1.25rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid var(--color-border-light);
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-link {
        padding: 0.9rem 0.25rem;
        font-size: 1rem;
        justify-content: space-between;
    }

    .has-submenu > .nav-link::after {
        display: none;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        height: 52px;
        width: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--color-text-light);
        z-index: 1;
        transition: color 0.18s ease;
        border-radius: var(--radius-sm);
    }

    .submenu-toggle:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: -2px;
    }

    .submenu-toggle svg {
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .has-submenu.is-open > .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .has-submenu.is-open > .submenu-toggle {
        color: var(--color-primary);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--color-accent-light);
        border-top: none;
        border-radius: 0;
        padding: 0;
        background: var(--color-bg-cool);
        display: none;
        margin: 0 0 0.5rem 0.5rem;
    }

    .submenu::before {
        display: none;
    }

    .has-submenu.is-open > .submenu {
        display: block;
    }

    .submenu a {
        padding: 0.65rem 1rem;
        font-size: 0.925rem;
        border-left: none;
    }

    .submenu a:hover,
    .submenu a:focus-visible {
        padding-left: 1rem;
        background: rgba(0, 34, 68, 0.06);
        border-left: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    html.a11y-font-2 .header-inner.container,
    html.a11y-font-3 .header-inner.container,
    html.a11y-font-4 .header-inner.container {
        padding-left: calc(12px * var(--a11y-font-scale, 1));
        padding-right: calc(12px * var(--a11y-font-scale, 1));
        gap: calc(8px * var(--a11y-font-scale, 1));
    }

    html.a11y-font-2 .header-actions,
    html.a11y-font-3 .header-actions,
    html.a11y-font-4 .header-actions {
        margin-right: calc(-12px * var(--a11y-font-scale, 1));
    }

    .main-nav {
        position: fixed;
        top: var(--site-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 0.75rem 1.25rem 2rem;
        /* Nach links ausweichen (translateX(-100%)): ein negativer Versatz
           bläht den rechten Scrollbereich nicht auf, so dass fixed-Elemente
           wie der Nach-oben-Button korrekt am Viewportrand bleiben. */
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid var(--color-border-light);
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-link {
        padding: 0.9rem 0.25rem;
        font-size: 1rem;
        justify-content: space-between;
    }

    /* On mobile the ::after chevron is handled by .submenu-toggle instead */
    .has-submenu > .nav-link::after {
        display: none;
    }

    /* Mobile accordion toggle button */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        height: 52px;
        width: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--color-text-light);
        z-index: 1;
        transition: color 0.18s ease;
        border-radius: var(--radius-sm);
    }

    .submenu-toggle:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: -2px;
    }

    .submenu-toggle svg {
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .has-submenu.is-open > .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .has-submenu.is-open > .submenu-toggle {
        color: var(--color-primary);
    }

    /* Mobile submenu: collapsed by default */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--color-accent-light);
        border-top: none;
        border-radius: 0;
        padding: 0;
        background: var(--color-bg-cool);
        display: none;
        margin: 0 0 0.5rem 0.5rem;
    }

    .submenu::before {
        display: none;
    }

    .has-submenu.is-open > .submenu {
        display: block;
    }

    .submenu a {
        padding: 0.65rem 1rem;
        font-size: 0.925rem;
        border-left: none;
    }

    .submenu a:hover,
    .submenu a:focus-visible {
        padding-left: 1rem;
        background: rgba(0, 34, 68, 0.06);
        border-left: none;
    }

    .menu-toggle {
        display: flex;
    }

    .search-form {
        display: none;
    }

    .quick-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .teaser-grid {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .events-grid--archive {
        grid-template-columns: 1fr;
    }

    .event-meta div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .hero {
        height: auto;
        min-height: 300px;
    }

    .hero--with-ki {
        min-height: auto;
    }

    .hero-overlay {
        padding: 2rem 0 2.5rem;
    }

    .discover-grid {
        grid-template-columns: 1fr;
    }

    .discover-card {
        min-height: 180px;
    }

    .news-compact {
        flex-direction: column;
        gap: 0.75rem;
    }

    .bekanntmachungen-preview__list {
        grid-template-columns: 1fr;
    }

    .news-compact__image {
        width: 100%;
        height: 140px;
    }

    .contact-strip__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .topic-grid--2,
    .topic-grid--3,
    .topic-grid--4,
    .org-grid--2 {
        grid-template-columns: 1fr;
    }

    .org-card--span-2 {
        max-width: none;
    }

    .page-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero {
        padding: 2rem 0 2.5rem;
    }

    .hub-section {
        padding: 2.5rem 0;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
    }

    .bergblick-banner {
        flex-direction: column-reverse;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quick-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-item:nth-child(2)::after {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* ============================================
   MOBILE: Breite Tabellen scrollbar machen (Fallback, falls Inhalt
   trotz umbrechbarem Text zu breit ist)
   ============================================ */
@media (max-width: 640px) {
    .info-table,
    .hours-table-standalone,
    .is-article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   MOBILE: Label/Wert-Zeilen untereinander stapeln
   (verhindert große Lücken bei schmalem Viewport)
   ============================================ */
@media (max-width: 600px) {
    .contact-lines__row,
    .org-card .contact-lines__row,
    .deflist {
        grid-template-columns: 1fr;
        gap: 0.1rem 0;
        align-items: start;
    }
    .contact-lines__label,
    .deflist dt {
        font-size: 0.76rem;
        color: var(--color-text-muted);
        margin-top: 0.45rem;
        letter-spacing: 0.02em;
    }
    .deflist dd {
        font-size: 0.92rem;
    }
    /* inst-card: Label/Wert untereinander statt fixer 7rem-Spalte */
    .inst-card__row {
        flex-direction: column;
        gap: 0.05rem;
    }
    .inst-card__label {
        width: auto;
        min-width: 0;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--color-text-muted);
    }
}

/* ============================================
   MOBILE: doppeltes Padding bei Hub-Pages entfernen
   (hub-page-layout hat bereits 1.5rem Padding; das .container
    innerhalb des Inhalts würde sonst nochmal 1.5rem addieren)
   ============================================ */
@media (max-width: 900px) {
    .hub-page-content .hub-section .container,
    .hub-page-content .container {
        padding-left: 0;
        padding-right: 0;
    }
    /* detail-block etwas weniger Seitenpadding auf Mobil für mehr Lesefläche */
    .hub-page-content .detail-block {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

/* Flex-/Grid-Children dürfen schrumpfen (verhindert Overflow durch
   nicht-umbrechbaren Inhalt in Karten, Listen etc.) */
.link-list__item,
.org-card,
.topic-card,
.inst-card,
.detail-block,
.contact-card,
.phase-card {
    min-width: 0;
}
.link-list__label,
.link-list__item > span,
.contact-lines__row > * {
    min-width: 0;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .site-header,
    .quick-access,
    .alert-bar,
    .menu-toggle,
    .search-form,
    .skip-link {
        display: none;
    }

    .site-footer {
        background: #fff;
        color: #000;
        border-top: 2px solid #000;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ============================================
   NACH-OBEN-BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--color-primary-light);
    transform: translateY(0) scale(1.06);
    outline: none;
}

.back-to-top:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary-light), var(--shadow-md);
}

@media (max-width: 480px) {
    .back-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media print {
    .back-to-top {
        display: none;
    }
}

/* ============================================
   MELDEPORTAL FORM
   ============================================ */
.melde-form {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}
.melde-form__hint {
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
}
.melde-form__hint span {
    color: var(--color-primary);
    font-weight: 700;
}
.melde-form__group {
    border: none;
    padding: 0;
    margin: 0 0 1.1rem;
}
.melde-form__group legend {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    padding: 0;
}
.melde-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
    font-size: 0.92rem;
    color: var(--color-text);
    cursor: pointer;
}
.melde-form__radio input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.melde-form__row {
    display: grid;
    gap: 1.1rem 1.5rem;
    margin-bottom: 1.1rem;
}
.melde-form__row--2 {
    grid-template-columns: 1fr 1fr;
}
.melde-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}
.melde-form__field:last-of-type {
    margin-bottom: 0;
}
.melde-form__field label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}
.melde-form__req {
    color: var(--color-primary);
    font-weight: 700;
}
.melde-form__field input[type="text"],
.melde-form__field input[type="email"],
.melde-form__field input[type="file"],
.melde-form__field textarea {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    box-sizing: border-box;
}
.melde-form__field textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.55;
}
.melde-form__field input:focus,
.melde-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.melde-form__field input[type="file"] {
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
    color: var(--color-text-light);
}
.melde-form__help {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.5;
}
.melde-form__captcha {
    background: var(--color-bg-warm);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem 1.1rem;
    margin-top: 0.25rem;
}
.melde-form__captcha input[type="text"] {
    max-width: 12rem;
}
.melde-form__actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .melde-form__row--2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PHASEN-GRID (Kommunale Wärmeplanung)
   ============================================ */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
}
.phase-card {
    background: var(--color-bg-cool);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
}
.phase-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.phase-card h5 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}
.phase-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text);
}
@media (max-width: 600px) {
    .phase-grid {
        grid-template-columns: 1fr;
    }
}

/* Schlüssel-Wert Tabelle (Projekt-Steckbrief) */
.info-table.kv-table {
    margin: 1rem 0 0;
    max-width: 42rem;
}
.info-table.kv-table th {
    width: 11rem;
    background: var(--color-bg-warm);
    color: var(--color-text);
    font-weight: 600;
    vertical-align: top;
    white-space: nowrap;
}
.info-table.kv-table td {
    color: var(--color-text);
}
.info-table.kv-table tbody tr:nth-child(even) {
    background: #fff;
}

/* Artikel-Figure (Bild + Caption) */
.article-fig {
    margin: 1.25rem 0;
    text-align: center;
}.article-fig img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.article-fig figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Zweispaltiger Block: Projekt-Steckbrief + Förderlogo */
.kwp-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin: 0.5rem 0 1.25rem;
}
.kwp-split__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.kwp-split__fig {
    display: flex;
    align-items: center;
    justify-content: center;
}
.kwp-split__link {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}
.kwp-split__fig .article-fig {
    margin: 0;
    width: 100%;
}
.kwp-split__fig .article-fig img {
    max-height: 13rem;
    object-fit: contain;
    border: 1px solid var(--color-border-light);
    padding: 0.5rem;
    background: #fff;
}

/* Quellen-/Literaturliste */
.is-article .detail-block ul.source-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    columns: 1;
}
.is-article .detail-block ul.source-list li {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-light);
    padding: 0.3rem 0 0.3rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed var(--color-border-light);
    break-inside: avoid;
    margin-bottom: 0;
}
.is-article .detail-block ul.source-list li::marker {
    content: "";
}
.is-article .detail-block ul.source-list li:last-child {
    border-bottom: none;
}
.is-article .detail-block ul.source-list li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.7rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
}
@media (min-width: 760px) {
    .is-article .detail-block ul.source-list {
        columns: 2;
        column-gap: 2rem;
    }
}
@media (max-width: 720px) {
    .kwp-split {
        grid-template-columns: 1fr;
    }
    .kwp-split__fig .article-fig img {
        max-height: none;
    }
}
