/*
Theme Name: FF Dirnbach
Theme URI: https://ff-dirnbach.at
Description: Webseite der Freiwilligen Feuerwehr Dirnbach
Version: 1.1.1
Author: FF Dirnbach
Text Domain: ff-dirnbach
*/

:root {
    --red: #C41E24;
    --red-dark: #9B1B20;
    --red-glow: #E63946;
    --red-soft: rgba(230, 57, 70, 0.08);
    --red-border: rgba(230, 57, 70, 0.15);
    --navy: #0F1D35;
    --navy-light: #1A2D4D;
    --white: #FFFFFF;
    --offwhite: #F7F8FA;
    --cream: #FAFBFD;
    --text: #1E2A3A;
    --text-light: #6B7A8D;
    --border: #E2E6EC;
    --shadow: 0 4px 24px rgba(15, 29, 53, 0.06);
    --shadow-lg: 0 12px 48px rgba(15, 29, 53, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

nav#navbar.scrolled {
    box-shadow: var(--shadow);
}

/* Push fixed nav below WordPress admin bar */
.admin-bar nav#navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar nav#navbar { top: 46px; } }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.nav-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--navy);
}

.nav-title span { color: var(--red); }

ul.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

ul.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

ul.nav-links a:hover { color: var(--red); }

ul.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

ul.nav-links a:hover::after { width: 100%; }

/* ── Dropdown ── */
ul.nav-links li { position: relative; }

ul.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1rem;
    list-style: none;
    z-index: 200;
}

ul.nav-links .sub-menu li a::after { display: none; }

ul.nav-links .sub-menu-inner {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 0.5rem 0;
}

ul.nav-links li:hover .sub-menu { display: block; }

ul.nav-links .sub-menu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 1px;
}

.nav-notruf {
    background: var(--red);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(196, 30, 36, 0.25);
}

.nav-notruf:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(196, 30, 36, 0.35);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    width: 28px;
    height: 2px;
    background: var(--navy);
    display: block;
    transition: all 0.3s ease;
}

.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(15, 29, 53, 0.04) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(15,29,53,0.15) 60px, rgba(15,29,53,0.15) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(15,29,53,0.15) 60px, rgba(15,29,53,0.15) 61px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red-soft);
    border: 1px solid var(--red-border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 4px;
    line-height: 0.95;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.hero h1 .highlight { color: var(--red); }

.hero-sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--red);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(196, 30, 36, 0.3);
}

.hero-cta:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 36, 0.4);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg { transform: translateX(4px); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    animation: fadeUp 1s ease-out 0.3s both;
}

.hero-stat { text-align: center; }

.hero-stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--red);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ===== SECTION GENERAL ===== */
section { padding: 6rem 2rem; }

.section-container { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    line-height: 1.05;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--red);
    margin-bottom: 2rem;
}

/* ===== GALLERY ===== */
.gallery {
    background: var(--offwhite);
    padding: 6rem 2rem;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 250px;
    gap: 12px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--navy);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(15, 29, 53, 0.9), transparent);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
    opacity: 1;
}

.caption-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red-glow);
    margin-bottom: 0.25rem;
}

.caption h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: white;
}

.caption p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.15rem;
}

.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: 2 / 3; }
.gallery-item:nth-child(6) { grid-column: 3 / 5; grid-row: 2 / 3; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    gap: 0.75rem;
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.gp-1 { background: linear-gradient(135deg, #1a2d4d 0%, #2a4570 50%, #c41e24 100%); }
.gp-2 { background: linear-gradient(135deg, #c41e24 0%, #6b1a1a 100%); }
.gp-3 { background: linear-gradient(135deg, #0f1d35 0%, #1a3a5c 100%); }
.gp-4 { background: linear-gradient(135deg, #2a4570 0%, #1a2d4d 100%); }
.gp-5 { background: linear-gradient(135deg, #9b1b20 0%, #c41e24 50%, #e63946 100%); }
.gp-6 { background: linear-gradient(135deg, #1a2d4d 0%, #0f1d35 50%, #c41e24 100%); }

.gallery-upload-hint {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-upload-hint strong { color: var(--red); }

/* ===== ÜBER UNS ===== */
.about {
    background: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

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

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

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

.about-fact {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.about-fact:hover {
    border-color: var(--red-border);
    background: var(--red-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.about-fact-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.about-fact-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--navy);
    letter-spacing: 1px;
}

.about-fact-label {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== EINSÄTZE ===== */
.einsaetze {
    background: var(--offwhite);
    position: relative;
}

.einsaetze::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.einsatz-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2rem;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

a.einsatz-item {
    text-decoration: none;
    color: inherit;
}

.einsatz-item {
    display: grid;
    grid-template-columns: 120px 100px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.einsatz-item:hover {
    background: var(--red-soft);
    padding-left: 2.5rem;
}

.einsatz-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

.einsatz-type {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    text-align: center;
}

.einsatz-type.brand {
    background: rgba(230, 57, 70, 0.1);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.einsatz-type.technik {
    background: rgba(180, 130, 20, 0.08);
    color: #9A7B15;
    border: 1px solid rgba(180, 130, 20, 0.2);
}

.einsatz-type.uebung {
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.einsatz-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
}

.einsatz-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.einsatz-item:hover .einsatz-arrow {
    transform: translateX(4px);
    color: var(--red);
}

.einsatz-more {
    text-align: center;
    margin-top: 2rem;
}

.einsatz-more a {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.einsatz-more a:hover { gap: 1rem; }

/* ===== TERMINE ===== */
.termine {
    background: var(--navy);
    color: white;
    position: relative;
}

.termine .section-label { color: var(--red-glow); }
.termine .section-title { color: white; }

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

.termin-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.termin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.termin-card:hover::before { transform: scaleY(1); }

.termin-card:hover {
    border-color: rgba(230, 57, 70, 0.2);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-4px);
}

.termin-date-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.termin-day {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--red-glow);
    line-height: 1;
}

.termin-month {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.termin-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.termin-desc {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    line-height: 1.6;
}

.termin-time {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red-glow);
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand h3 span { color: var(--red-glow); }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--red-glow);
    flex-shrink: 0;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.notruf-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--red-glow);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 1.25rem;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 250px 250px;
    }
    .gallery-item:nth-child(1) { grid-column: 1 / 3; }
    .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
    .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2; }
    .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: 3; }
    .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: 3; }
    .gallery-item:nth-child(6) { display: none; }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .termine-grid { grid-template-columns: 1fr; }
    .einsatz-item {
        grid-template-columns: 1fr auto;
        gap: 0.25rem 0.75rem;
        padding: 1.25rem 1.5rem;
    }
    .einsatz-date  { grid-column: 1 / -1; }
    .einsatz-type  { grid-column: 1 / -1; justify-self: start; }
    .einsatz-arrow { align-self: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats { gap: 1.5rem; }
    ul.nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .gallery-grid {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding: 0 1.5rem 1rem;
        margin: 0 -1.5rem;
        grid-template-columns: unset;
        grid-template-rows: unset;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item:nth-child(n) {
        flex: 0 0 82%;
        max-width: 82%;
        height: 260px;
        scroll-snap-align: start;
        grid-column: unset;
        grid-row: unset;
        display: block;
    }

    /* Mobile menu open state */
    nav#navbar.menu-open ul.nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    /* Mobile submenu — inline, toggled by tap */
    ul.nav-links .sub-menu {
        position: static;
        transform: none;
        padding-top: 0;
        padding-left: 1rem;
        display: none;
    }
    ul.nav-links li.has-dropdown.open .sub-menu { display: block; }
    ul.nav-links .sub-menu-inner {
        background: none;
        border: none;
        box-shadow: none;
        padding: 0.25rem 0;
    }
    ul.nav-links .sub-menu li a {
        padding: 0.4rem 0;
        color: var(--text-light);
        font-size: 0.8rem;
    }
}

/* ── Legal pages (Impressum / Datenschutz) ──────────────────────────────────── */
.legal-page {
    background: var(--offwhite);
    min-height: 100vh;
    padding: 6rem 1.5rem 4rem;
}
.legal-page-inner {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}
.legal-page h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--red);
    margin: 1.25rem 0 0.5rem;
}
.legal-page p,
.legal-page li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
}
.legal-page ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}
.legal-page ul li { margin-bottom: 0.3rem; }
.legal-page a { color: var(--red); text-decoration: underline; }
.legal-page a:hover { color: var(--navy); }
.legal-page code {
    background: var(--border);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
}
.legal-back { margin-top: 3rem; }
.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.footer-bottom a:hover { color: #fff; }
