/* =========================================
   GLOBAL LAYOUT – BODY / MAIN / FOOTER
   ========================================= */

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Bereich zwischen Header und Footer */
.site-main {
    flex: 1 0 auto;
    display: flex;            /* WICHTIG für .error-404 */
    flex-direction: column;
}

/* Header & Footer werden nicht gestreckt */
.site-header,
.footer {
    flex-shrink: 0;
}

/* =========================================
   NAVIGATION – MATERIAL / RED
   ========================================= */

/* Header-Bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #d43823; /* Feuerwehrrot */
    box-shadow: 0 2px 7px rgba(0,0,0,0.25);
}

/* Container */
.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-logo-text {
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1.2;
}

.nav-logo-text small {
    display: block;
    font-weight: 400;
    font-size: 0.62rem;
    opacity: 0.9;
}

/* =========================================
   BURGER-CHECKBOX (unsichtbar!)
   ========================================= */

/* Steuert das mobile Menü */
.nav-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Steuert mobile Submenus */
.nav-submenu-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* =========================================
   HAUPTNAVIGATION – DESKTOP
   ========================================= */

.nav-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

/* Links & Label (mit Submenu) einheitlich */
.nav-item a,
.nav-link-has-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.nav-item a:hover,
.nav-link-has-sub:hover {
    background: rgba(255,255,255,0.20);
    transform: translateY(-1px);
}

/* Aktiver Menüpunkt */
.nav-item.is-active > a {
    background: #fff;
    color: #d43823;
}

/* Parent-Navpunkt mit Submenu aktiv darstellen */
.nav-item.is-active > .nav-link-has-sub {
    background: #fff;
    color: #d43823;
}

/* Dropdown-Pfeil in Desktop */
.nav-link-has-sub .nav-arrow {
    display: inline-block;
    margin-left: 0.2rem;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-1px);
}

.nav-item.is-active > .nav-link-has-sub .nav-arrow {
    border-right-color: #d43823;
    border-bottom-color: #d43823;
}


/* Submenu (Desktop) */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    margin-top: 0.3rem;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    list-style: none;
    padding: 0;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 90;
}

.nav-submenu li a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 0;
    font-size: 0.88rem;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
}

.nav-submenu li a:hover {
    background: rgba(0,0,0,0.06);
}

.nav-submenu li.is-active > a {
    font-weight: 600;
    background: rgba(0,0,0,0.06);
}

/* Submenu öffnet auf Hover */
@media (min-width: 900px) {
    .nav-item-has-children:hover > .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* =========================================
   SPRACH-SWITCH
   ========================================= */

.nav-lang {
    flex-shrink: 0;
}

.lang-switch {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(0,0,0,0.18);
    border-radius: 5px;
    padding: 2px;
    min-width: 92px;
}

.lang-option {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.3rem;
    color: #f9fafb;
}

.lang-option.is-active {
    color: #d43823 !important;
}

.lang-thumb {
    position: absolute;
    z-index: 1;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.18s ease;
}

/* IT aktiv → Thumb nach rechts */
.lang-switch.is-it-active .lang-thumb {
    transform: translateX(100%);
}

/* =========================================
   BURGER-BUTTON
   ========================================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 5px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
    border-radius: 5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Burger X-Animation */
.nav-toggle-checkbox:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle-checkbox:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-toggle-checkbox:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   MOBILE NAVIGATION
   ========================================= */

@media (max-width: 1150px) {

    .nav-bar {
        justify-content: space-between;
    }

    /* Burger sichtbar */
    .nav-toggle {
        display: flex;
    }

    /* Mobile Menü */
    .nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #d43823;
        border-top: 1px solid rgba(255,255,255,0.3);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.4rem 0;
        gap: 0.3rem;
    }

    .nav-toggle-checkbox:checked ~ .nav-main {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
    }

    /* Mobile Haupt-Buttons: nicht volle Breite, Radius */
    .nav-item a,
    .nav-link-has-sub {
        display: block;
        width: calc(100% - 1.4rem);
        margin: 0.2rem auto;
        padding: 0.65rem 1rem;
        border-radius: 5px;
        background: rgba(255,255,255,0.08);
    }

    .nav-item a:hover,
    .nav-link-has-sub:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-1px);
    }

    /* Pfeil im Mobile-Menü ausblenden */
    .nav-link-has-sub .nav-arrow {
        display: none;
    }

    /* Mobile Submenu: kein eigener Hintergrund, nur Container */
    .nav-item-has-children .nav-submenu {
        display: none;
        position: static;
        background: transparent;   /* <--- WICHTIG: war rgba(...) */
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0.1rem 0;         /* etwas Luft nach oben/unten */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-submenu-checkbox:checked ~ .nav-submenu {
        display: block;
    }

    /* Mobile Submenu-Buttons: gleiche Optik wie Hauptbuttons */
    .nav-submenu li a {
        width: calc(100% - 1.4rem);
        margin: 0.15rem auto;
        padding: 0.6rem 1.4rem;
        border-radius: 5px;
        background: rgba(255,255,255,0.07);
        color: #fff;
        transition: background 0.15s ease, transform 0.15s ease;
    }

    .nav-submenu li a:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-1px);
    }

    .nav-submenu li.is-active > a {
        background: rgba(255,255,255,0.28);
        font-weight: 600;
    }

    /* Sprach-Switch zentriert */
    .nav-lang {
        margin: 0.5rem 1rem 0.2rem;
        display: flex;
        justify-content: center;
    }
}



/* =========================================
   HERO – STARTSEITE (Hero füllt Site-Main)
   ========================================= */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;

    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0.35)),
        url('/assets/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* füllt den verfügbaren Platz in .site-main */
    flex: 1 0 auto;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 20vh;   /* Text ins obere Drittel */
    padding-bottom: 3vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(212, 56, 35, 0.55),
        rgba(212, 56, 35, 0.55)
    ),
    rgba(0,0,0,0.25);
    backdrop-filter: brightness(0.9);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;

    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 sans-serif;
}

/* Haupttitel */
.hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Untertitel */
.hero-content h2 {
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.015em;
    opacity: 0.96;
    margin-top: 0.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* HERO – RESPONSIVE FEINTUNING */

@media (max-width: 1200px) {
    .hero {
        padding-top: 18vh;
    }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 17vh;
    }
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }
    .hero-content h2 {
        font-size: clamp(1.1rem, 3.2vw, 1.6rem);
    }
}

@media (max-width: 700px) {
    .hero {
        padding-top: 16vh;
    }
    .hero-content {
        padding: 0 1.2rem;
    }
    .hero-content h1 {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
        line-height: 1.2;
        letter-spacing: 0.03em;
    }
    .hero-content h2 {
        font-size: clamp(1rem, 4.2vw, 1.4rem);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 15vh;
    }
    .hero-content h1 {
        margin-bottom: 0.6rem;
    }
    .hero-content h2 {
        letter-spacing: 0.02em;
    }
}


/* =========================================
   FOOTER – MATERIAL / DARK
   ========================================= */

.footer {
    background: #1a1a1a;
    color: #ddd;
    padding: 2rem 0 1.6rem;
    border-top: 5px solid #d43823;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;

    display: grid;
    grid-template-columns: 1fr auto; /* Links + Icons */
    align-items: center;
    gap: 1rem;

    font-size: 0.9rem;
}

/* LINKS LINKS */
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem; /* vertikal | horizontal */
}

.footer-link {
    text-decoration: none;
    color: #e6e6e6;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-sep {
    opacity: 0.45;
}

/* SOCIAL RECHTS */
.footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ICONS (ca. 20px) */
.social-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5e5e5;
    transition: 0.2s ease;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* MOBIL */
@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* =========================================
   404 ERROR PAGE
   ========================================= */

.error-404 {
    width: 100%;
    flex: 1 0 auto;               /* füllt den Platz in .site-main */
    padding: 12vh 1rem;
    background: #d43823;          /* Feuerwehrrot */
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;          /* Inhalt vertikal zentriert */
    text-align: center;
}

.error-404-inner {
    max-width: 650px;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.error-404 h2 {
    font-size: 1.8rem;
    margin-top: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.error-404 p {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.error-404-back {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 1.6rem;
    background: #fff;
    color: #d43823;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.15s ease;
}

.error-404-back:hover {
    background: #f6f6f6;
    transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 600px) {
    .error-404 h1 {
        font-size: 4rem;
    }
    .error-404 h2 {
        font-size: 1.4rem;
    }
    .error-404 p {
        font-size: 1rem;
    }
}

/* =========================================
   BASE: PAGE LAYOUT & TYPO
   ========================================= */

/* 1. Seiten-Wrapper: Hintergrund, Höhe, Padding */
.page-wrapper {
    background: #f5f5f5;
    min-height: calc(100vh - 160px);
    padding: 2.5rem 0 3rem;
}


/* 2. Innerer Container: max-width 1200, zentriert, einheitliches Padding */
.page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


.content-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 3. Header / Titel / Untertitel */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
    color: #111827;

    /* NEU: saubere Umbrüche + Begrenzung */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.6rem;      /* kleiner aber kräftig */
        letter-spacing: 0.04em; /* weniger Tracking für bessere Lesbarkeit */
        line-height: 1.25;
    }
}

.page-title-smaller {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 2rem 0 0.7rem;
    color: #111827;
}

.page-subtitle {
    max-width: 850px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4b5563;
}


/* 4. Generische Typografie */
.page-content {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #333;
}

.meta-text {
    font-size: 0.85rem;
	margin-top: 0.6rem;
    color: #6b7280;
}


/* =========================================
   BASE: CARDS & ACCORDIONS
   ========================================= */

/* Normale Karte */
.card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Optionale Variante mit Border */
.card--bordered {
    border: 1px solid #e5e7eb;
}

/* Card-Header (Titel in der Box) */
.card-header {
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111827;
    background: #f9fafb;
}

/* Card-Body */
.card-body {
    padding: 1rem 1.4rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #111827;
}

.accordion-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.06);
}

.accordion-card .accordion-card-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .28s ease, opacity .22s ease;
}

.accordion-card.is-open .accordion-card-body {
    max-height: 1000px; /* ausreichend groß wählen */
    opacity: 1;
}

.accordion-card-item {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.06);
}

.accordion-card-header {
    width: 100%;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

.accordion-card-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.accordion-card-header-top {
    font-size: 0.78rem;
    color: #6b7280;
}

.accordion-card-date {
    font-variant-numeric: tabular-nums;
}

.accordion-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
}

.accordion-card-header-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.accordion-card-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.16rem 0.65rem;
    border-radius: 5px;
    border: 1px solid rgba(220,38,38,0.15);
    background: rgba(220,38,38,0.06);
}

.accordion-card-pill-level {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
}

.accordion-card-toggle-icon {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.accordion-card-item.is-open .accordion-card-toggle-icon {
    transform: rotate(-135deg) translateY(1px);
    border-color: #4b5563;
}

/* Body vom Accordion */
.accordion-card-body {
    display: none;
    border-top: 1px solid rgba(15,23,42,0.06);
    background: #f9fafb;
}
.accordion-card-item.is-open .accordion-card-body {
    display: block;
}
.accordion-card-body-inner {
    padding: 0.9rem 1.1rem 1.1rem;
    font-size: 0.86rem;
    color: #111827;
}
.accordion-card-body-inner p {
    margin: 0.1rem 0;
}
.accordion-card-body-inner p strong {
    font-weight: 600;
}

.accordion-card-body-inner img.accordion-card-image {
    width: 100%;       /* füllt die Breite */
    height: auto;      /* wächst beliebig in der Höhe → kein Beschnitt */
    display: block;
    object-fit: contain; /* optional – Bild wird nie beschnitten */
    margin: 0 auto;
}




/* =========================================
   CARDS: SPEZIFISCHE KOMPONENTEN
   ========================================= */

.page-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-card-media img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.page-card-body {
    padding: 1rem 1.6rem 1.4rem;
}

.page-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Impressum-Block → Card */
.page-block {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    padding: 1.4rem 1.75rem 1.5rem;
    margin-bottom: 1.4rem;
}

.page-block-title {
    font-size: 0.98rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111827;
    margin: 0 0 0.8rem;
}

.page-block p {
    margin: 0.2rem 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: #1f2933;
}

/* =========================================
   DL-"TABELLEN" (2 SPALTEN, EINHEITLICH)
   ========================================= */

.dl-table {
    margin: 0;
    padding: 0;
}

.dl-row {
    display: flex;
    gap: 1.5rem;     /* einheitlich 2-Spalten-Layout */
    padding: 0.45rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
}

.dl-row:last-child {
    border-bottom: none;
}

.dl-row dt {
    min-width: 140px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.dl-row dd {
    margin: 0;
    flex: 1;
    color: #111827;
}

/* Mapping: Impressum-DL auf dl-table-Standard */
.page-dl {
    margin: 0;
    padding: 0;
}

.page-row {
    display: flex;
    gap: 0.6rem;
    font-size: 0.94rem;
    line-height: 1.6;
    padding: 0.1rem 0;
}

.page-row dt {
    min-width: 145px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.page-row dd {
    margin: 0;
    color: #111827;
}

.page-card-details {
    margin: 0 0 0.8rem;
}

.page-card-detail-row {
    display: flex;
    gap: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-card-detail-row dt {
    font-weight: 600;
    white-space: nowrap;
}

.page-card-detail-row dd {
    margin: 0;
}

/* Mapping: Chronik-"Tabellen" werden später auf DL umgebaut,
   bis dahin behalten sie Table-Layout, aber angeglichenes Design */

.page-table-wrapper {
    margin-top: 1.5rem;
}

.page-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.page-table thead {
    background: #e5e7eb;
}

.page-table th,
.page-table td {
    padding: 0.7rem 1rem;
    vertical-align: top;
}

.page-th-date {
    width: 120px;
    font-weight: 700;
    text-align: left;
}

.page-th-name {
    width: 250px;
    font-weight: 700;
    text-align: left;
}

.page-th-event {
    text-align: left;
}

.page-year {
    font-weight: 700;
    white-space: nowrap;
}

.page-row-alt {
    background: #f9fafb;
}

/* =========================================
   GRIDS & LISTEN
   ========================================= */

.accordion-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.page-card-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;
}

@media (min-width: 900px) {
    .page-card-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

.page-photo {
    margin-top: 2.5rem;
}

.page-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.page-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.page-photo-grid .page-photo {
    flex: 1 1 calc(33.333% - 1rem);
}

.page-photo-grid img {
    width: 100%;
    height: 260px;              /* Einheitliche Höhe */
    object-fit: cover;          /* Schneidet sauber zu */
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.page-photo-caption {
    text-align: center;
    font-size: .9rem;
    margin-top: .5rem;
    color: #444;
}

/* Mobile: Bilder untereinander */
@media (max-width: 768px) {
    .page-photo-grid .page-photo {
        flex: 1 1 100%;
    }
    
    .page-photo-grid img {
        height: 220px;
    }
}


/* =========================================
   RESPONSIVE BREAKPOINTS – VEREINHEITLICHT
   ========================================= */


/* 768px: mobiles Layout, Padding, DL-Spalten umbrechen */
@media (max-width: 768px) {
    /* Inneres Padding vereinheitlichen */
    .content-header {
        padding: 0 1rem;
    }

    /* Accordion-Kopf mobil */
    .accordion-card-header {
        align-items: flex-start;
    }

    .accordion-card-header-meta {
        align-items: flex-start;
    }

    /* DL-Row bricht auf 1 Spalte */
    .dl-row,
    .page-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .dl-row dt,
    .page-row dt {
        min-width: 0;
    }

    /* Chronik-Tabelle schmaler */
    .page-th-date {
        width: 90px;
    }
}

/* Datenschutz-Auflistungen */
.dataconsent-list {
    list-style: disc;          /* klassische Bullet-Points */
    padding-left: 1.4rem;      /* schön eingerückt */
    margin: 0.6rem 0 1.2rem;   /* Abstand oben/unten wie der restliche Text */
}

.dataconsent-list li {
    margin: 0.25rem 0;         /* etwas Luft zwischen den Zeilen */
    line-height: 1.6;          /* gleiche Typo wie der Rest */
    color: #111827;            /* gleiche Textfarbe wie Absatz */
}

@media (max-width: 800px) {
    .footer {
        padding: 1.2rem 0 0.8rem;   /* vorher 2rem / 1.6rem → deutlich reduziert */
    }

    .footer-inner {
        gap: 0.7rem;               /* weniger Abstand zwischen Links & Icons */
    }

    .footer-links {
        gap: 0.4rem 1rem;          /* enger, damit der Footer weniger Höhe bekommt */
    }

    .footer-social {
        gap: 0.6rem;               /* Icons etwas näher zusammen */
    }
}