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

:root {
    --color-primary: #1a3a6b;
    --color-primary-light: #2a5298;
    --color-primary-dark: #0f2344;
    --color-accent: #e63946;
    --color-accent-hover: #c62d39;
    --color-bg: #f8f9fb;
    --color-bg-alt: #eef1f6;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    /* Multi-layer shadows (more modern, softer) */
    --shadow-xs: 0 1px 2px rgba(15, 35, 68, 0.04);
    --shadow-sm: 0 1px 2px rgba(15, 35, 68, 0.04), 0 1px 3px rgba(15, 35, 68, 0.06);
    --shadow-md: 0 2px 4px rgba(15, 35, 68, 0.04), 0 4px 16px rgba(15, 35, 68, 0.08);
    --shadow-lg: 0 4px 8px rgba(15, 35, 68, 0.06), 0 12px 32px rgba(15, 35, 68, 0.12);
    --shadow-xl: 0 8px 16px rgba(15, 35, 68, 0.08), 0 24px 48px rgba(15, 35, 68, 0.15);
    --shadow-hover: 0 8px 16px rgba(15, 35, 68, 0.08), 0 20px 40px rgba(15, 35, 68, 0.14);
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a3a6b 0%, #2a5298 100%);
    --gradient-accent: linear-gradient(135deg, #e63946 0%, #c62d39 100%);
    --gradient-subtle: linear-gradient(135deg, #f8f9fb 0%, #eef1f6 100%);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* ===== Scroll-to-top Button ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 9px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px 2px 0 0;
}

.nav-link.active {
    font-weight: 600;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--color-text);
    border-radius: 6px;
    transition: background var(--transition);
}

.dropdown-content a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adac-badge {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.adac-badge:hover {
    transform: scale(1.06);
    background: var(--color-bg-alt);
}

.adac-badge-img {
    height: 38px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 30% 110%, rgba(42, 82, 152, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
    margin-top: 72px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 38px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    /* hyphenation off — soft hyphens werden so verhindert */
    hyphens: none;
    -webkit-hyphens: none;
}
.hero-subtitle .nobreak {
    white-space: nowrap;
    display: inline-block;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    line-height: 1;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(230,57,70,0.25), 0 2px 4px rgba(230,57,70,0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230,57,70,0.35), 0 4px 8px rgba(230,57,70,0.2);
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,58,107,0.25);
}

/* ===== Sections ===== */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--gradient-subtle);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 48px;
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== Event Cards ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.event-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.event-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: rgba(26,58,107,0.15);
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(26,58,107,0.25);
    z-index: 2;
}

.event-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 24px 14px;
    background: var(--gradient-subtle);
    border-right: 1px solid var(--color-border);
}

.event-card-date .day {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.event-card-date .month {
    font-size: 0.72rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-body {
    padding: 24px 26px;
    flex: 1;
    min-width: 0;
}

.event-card-body h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    padding-right: 110px; /* place für badge */
}

.event-card-body h3 a {
    color: var(--color-text);
    transition: color var(--transition);
}

.event-card-body h3 a:hover {
    color: var(--color-primary);
}

.event-card-body p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin-bottom: 14px;
}

.event-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    letter-spacing: 0.2px;
    transition: all var(--transition);
}

.event-card:hover .tag {
    background: rgba(26,58,107,0.08);
    border-color: rgba(26,58,107,0.2);
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 16px 0 24px;
    line-height: 1.7;
}

.feature-list {
    margin-bottom: 32px;
}

.feature-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 0 0 4px 4px;
    transition: transform var(--transition-slow);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(26,58,107,0.15);
}

.stat-card:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.stat-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* ===== Nennungen Grid ===== */
.nennungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.nennung-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.nennung-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nennung-card:hover {
    border-color: rgba(26,58,107,0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.nennung-card:hover::before {
    opacity: 1;
}

.nennung-icon {
    font-size: 2rem;
}

.nennung-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    padding: 4px;
    background: var(--color-bg-alt);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.nennung-card:hover .nennung-logo {
    border-color: var(--color-primary-light);
    transform: scale(1.05);
}

.nennung-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    line-height: 1.3;
}

.nennung-meta {
    font-size: 0.72rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.3;
    margin-top: -4px;
}

/* ===== Footer ===== */
.footer {
    background:
        radial-gradient(ellipse at top, rgba(42, 82, 152, 0.2) 0%, transparent 60%),
        var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 0;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo .logo-title {
    color: #fff;
}

.footer-logo .logo-subtitle {
    color: rgba(255,255,255,0.6);
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 16px;
    color: rgba(255,255,255,0.6);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

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

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        overflow-y: auto;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .adac-badge {
        display: none;
    }

    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section {
        padding: 60px 0;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

/* ===== Nachruf ===== */
.nachruf-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 800px;
}

.nachruf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.nachruf-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.nachruf-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.nachruf-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 16px;
}

.nachruf-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.nachruf-card p:last-child {
    margin-bottom: 0;
}

/* ===== Nennliste / Nennungsanzeiger ===== */
.nennliste-status {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffca28;
    border-left: 4px solid #ffa000;
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nennliste-status p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

.status-ausgebucht {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(230,57,70,0.3);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nennliste-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    background: var(--color-surface);
}

.nennliste-table thead {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
}

.nennliste-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nennliste-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.nennliste-table tbody tr {
    transition: background 0.15s ease;
}

.nennliste-table tbody tr:hover {
    background: rgba(26,58,107,0.03);
}

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

.nennliste-table td:first-child {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.82rem;
}

.status-paid {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #d4edda;
    color: #155724;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-paid::before {
    content: '✓';
    font-size: 0.65rem;
}

.status-incomplete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3cd;
    color: #856404;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-incomplete::before {
    content: '○';
    font-size: 0.6rem;
}

.status-complete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #d4edda;
    color: #155724;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-complete::before {
    content: '✓';
    font-size: 0.65rem;
}

/* ===== Page Hero (Unterseiten) ===== */
.page-hero {
    background:
        radial-gradient(ellipse at 30% 110%, rgba(42, 82, 152, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
    padding: 140px 0 80px;
    margin-top: 72px;
    min-height: 320px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== Article Cards ===== */
.article-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
}

.article-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.article-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 24px 0 8px;
}

.article-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.article-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-bg-alt);
    padding: 6px 14px;
    border-radius: 20px;
}

.article-downloads {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.article-downloads h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.download-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 8px 4px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.download-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===== Archive Grid ===== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.archive-year {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.archive-year h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-bg-alt);
}

.archive-year ul li {
    padding: 6px 0;
}

.archive-year ul li a {
    font-size: 0.88rem;
    color: var(--color-text-light);
    transition: color var(--transition);
}

.archive-year ul li a:hover {
    color: var(--color-primary);
}

/* ===== Board Grid ===== */
.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.board-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.board-avatar {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.board-avatar-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.board-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.board-card p {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* ===== Org Badges ===== */
.org-badges {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.org-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 32px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.org-badge strong {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.org-badge span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    border: 3px solid var(--color-bg-alt);
    border-radius: 50%;
}

.timeline-year {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-bg-alt);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== Nennungen Detail ===== */
.nennungen-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nennung-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow var(--transition);
}

.nennung-detail-card:hover {
    box-shadow: var(--shadow-md);
}

.nennung-detail-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.nennung-detail-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    padding: 8px;
}

.nennung-detail-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.nennung-detail-body p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.contact-info-card > p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
}

.contact-item a {
    color: var(--color-primary);
    transition: color var(--transition);
}

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

.contact-icon {
    font-size: 1.1rem;
}

/* ===== Legal Content ===== */
.legal-content {
    max-width: 800px;
}

.legal-content .article-card h2 {
    margin-top: 32px;
}

.legal-content .article-card h2:first-child {
    margin-top: 0;
}

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

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

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

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 50px;
        min-height: 260px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .nennung-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .org-badges {
        flex-direction: column;
    }
}

/* ===== Nennung Card Active ===== */
.nennung-card-active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(26,58,107,0.03), rgba(42,82,152,0.06));
    box-shadow: 0 0 0 3px rgba(26,58,107,0.12), 0 4px 16px rgba(26,58,107,0.08);
}

.nennung-card-active::before {
    opacity: 1;
}

.nennung-card-active .nennung-logo {
    border-color: var(--color-primary);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-light);
    font-size: 1rem;
    background: var(--color-surface);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
}

/* ===== Nennungs-Formular Bereich ===== */
.nennung-detail-section .article-card {
    border: 2px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.nennung-detail-section .article-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

#nennFormular .form-row .form-group > label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#nennFormular .form-group input,
#nennFormular .form-group textarea,
#nennFormular .form-group select {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#nennFormular .form-group input:focus,
#nennFormular .form-group textarea:focus,
#nennFormular .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
}

#nennFormular .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

#nennFormular button[type="submit"] {
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

#nennFormular button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,107,0.2);
}

#nennungSuccess {
    border-radius: var(--radius-sm) !important;
    border-left: 4px solid #28a745 !important;
}

#nennungFormExternal .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
}

.foto-upload {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.foto-upload:hover,
.foto-upload.drag-over {
    border-color: var(--color-primary-light);
    background: rgba(26,58,107,0.02);
}

.foto-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    color: var(--color-text-light);
    text-align: center;
}

.foto-upload-placeholder svg {
    opacity: 0.5;
}

.foto-upload-placeholder span {
    font-size: 0.88rem;
    font-weight: 500;
}

.foto-upload-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.foto-upload-preview {
    position: relative;
    padding: 12px;
    display: flex;
    justify-content: center;
    background: var(--color-bg-alt);
}

.foto-upload-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.foto-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.foto-remove-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.1);
}

/* ===== Admin Panel ===== */
.admin-login-card {
    max-width: 500px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: var(--color-bg-alt);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.admin-tab {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: none;
    color: var(--color-text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.admin-tab:hover {
    color: var(--color-text);
}

.admin-tab.active {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.admin-subsection h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.admin-event-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.admin-event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    cursor: pointer;
    gap: 8px;
}
.admin-event-card-header:hover {
    background: var(--color-bg);
}
.admin-event-card-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}
.admin-event-card-body {
    padding: 16px;
    display: none;
}
.admin-event-card.open .admin-event-card-body {
    display: block;
}

.admin-event-row {
    margin-bottom: 8px;
}

.admin-input-sm {
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    width: 100%;
    background: var(--color-surface);
    color: var(--color-text);
}

.admin-input-sm:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-delete {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-accent);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.btn-delete:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.save-confirm {
    display: inline-block;
    margin-left: 12px;
    color: #155724;
    font-weight: 600;
    font-size: 0.9rem;
}

select.admin-input-sm {
    appearance: auto;
}

/* Admin form styling for vorstand page */
#adminPanel .form-group select {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
    appearance: auto;
}

#adminPanel .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .event-card {
        flex-direction: column;
    }

    .event-card-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 16px 24px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
}

/* ===== Hero Video / Media ===== */
.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video-bg video,
.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
}

.hero-video-bg iframe {
    border: 0;
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(15, 35, 68, 0.05);
    pointer-events: auto;
}

.hero-video-bg.yt-hidden {
    visibility: hidden;
}

.hero-video-bg.yt-visible {
    visibility: visible;
}

.hero-video-fadein {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--color-primary, #0f2344);
    opacity: 1;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

.hero-video-fadein.fade-out {
    opacity: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 68, 0.3);
    z-index: 3;
    pointer-events: auto;
}

.hero-mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}
.hero-mute-btn:hover {
    background: rgba(0,0,0,0.7);
}

.hero.has-video .hero-content {
    z-index: 5;
}

.hero.has-video .hero-overlay {
    z-index: 4;
    pointer-events: none;
}

/* Page-Hero Video Support (Unterseiten) */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero.has-video .hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.page-hero.has-video .hero-video-bg video,
.page-hero.has-video .hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 178vh;
    min-width: 100%;
    height: 100vh;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
}

.page-hero.has-video .hero-video-bg::before,
.page-hero.has-video .hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 1;
    pointer-events: none;
}

.page-hero.has-video .hero-video-bg::before {
    left: 0;
    background: linear-gradient(to right, var(--color-primary-dark) 0%, rgba(15,35,68,0.6) 40%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.page-hero.has-video .hero-video-bg::after {
    right: 0;
    background: linear-gradient(to left, var(--color-primary-dark) 0%, rgba(15,35,68,0.6) 40%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.page-hero.has-video > .container {
    position: relative;
    z-index: 5;
}

/* ===== News Feed (Aktuelles) ===== */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}

.news-post {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.news-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(26,58,107,0.15);
}

.news-post-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.news-post-avatar {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--color-bg-alt);
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid var(--color-border);
}

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

.news-post-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

.news-post-date {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.news-post-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.news-post-badge.news { background: #dbeafe; color: #1e40af; }
.news-post-badge.nachruf { background: #1e293b; color: #cbd5e1; }
.news-post-badge.event { background: #dcfce7; color: #166534; }
.news-post-badge.info { background: #fef3c7; color: #92400e; }

.news-post-body {
    padding: 0 20px 16px;
}

.news-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.news-post-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 8px;
}

.news-post-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.news-post-text p {
    margin-bottom: 8px;
}

.news-post-text p:last-child {
    margin-bottom: 0;
}

.news-post-image {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.news-post-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.news-post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Admin: News Post Editor ===== */
.admin-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-post-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    position: relative;
}

.admin-post-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin-post-item-header h4 {
    margin: 0;
    font-size: 0.95rem;
}

.admin-post-actions {
    display: flex;
    gap: 6px;
}

.admin-post-actions button {
    padding: 4px 10px;
    font-size: 0.78rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.admin-post-actions button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.admin-post-actions .btn-delete-post:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Admin Image Upload */
.admin-img-upload {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    background: var(--color-bg-alt);
}

.admin-img-upload.dragover {
    border-color: var(--color-primary);
    background: rgba(26, 58, 107, 0.05);
}

.admin-img-upload-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.admin-img-upload-text .btn-sm {
    padding: 4px 12px;
    font-size: 0.78rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-img-upload-text .btn-sm:hover {
    background: var(--color-primary);
    color: #fff;
}

.admin-img-preview {
    margin-bottom: 8px;
}

.admin-img-remove {
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-size: 0.78rem;
    padding: 4px 8px;
}

.admin-img-remove:hover {
    text-decoration: underline;
}

/* ===== Admin: Hero Editor ===== */
.admin-hero-preview {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-sm);
    padding: 32px 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.admin-hero-preview h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.admin-hero-preview p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ===== Admin: Rich Editor ===== */
.admin-editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.admin-editor-toolbar button {
    padding: 4px 10px;
    font-size: 0.82rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.admin-editor-toolbar button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.admin-editor-content {
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--color-surface);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s;
}

.admin-editor-content:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.admin-editor-content b,
.admin-editor-content strong { font-weight: 700; }

.admin-editor-content a { color: var(--color-primary); text-decoration: underline; }

/* ===== Roadbook (VFM themed) ===== */
.roadbook-page {
    min-height: 100vh;
    background: var(--color-bg);
}

.roadbook-app {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: calc(100vh - 72px);
}

.rb-sidebar {
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    padding: 0 0 40px;
    box-shadow: 1px 0 0 rgba(15,35,68,0.03);
}

.rb-sidebar-title {
    background: var(--gradient-primary);
    padding: 20px 18px 16px;
    color: #fff;
    position: relative;
}
.rb-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.rb-sidebar-title h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.rb-sidebar-title p {
    margin: 0;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.rb-sidebar-body {
    padding: 20px 18px 10px !important;
}

.rb-sidebar .slabel {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 24px 0 10px;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(26,58,107,0.06) 0%, transparent 100%);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 4px 4px 0;
}
.rb-sidebar .slabel:first-of-type {
    margin-top: 0;
}

.rb-sidebar label.fl {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 12px 0 4px;
    font-weight: 600;
}

.rb-sidebar input,
.rb-sidebar select,
.rb-sidebar textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition);
}

.rb-sidebar input:hover,
.rb-sidebar select:hover,
.rb-sidebar textarea:hover {
    border-color: rgba(26,58,107,0.3);
}

.rb-sidebar input:focus,
.rb-sidebar select:focus,
.rb-sidebar textarea:focus {
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
}

.rb-sidebar .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rb-sidebar .btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 9px 14px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: none;
}

.rb-sidebar .btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26,58,107,0.1);
}

.rb-sidebar .btn-gold {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.rb-sidebar .btn-gold:hover {
    background: var(--color-primary-light);
}

.rb-posten-item {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
}

.rb-posten-item:hover {
    border-color: rgba(26,58,107,0.25);
    box-shadow: 0 2px 8px rgba(15,35,68,0.06);
}

.rb-posten-item.sel {
    border-color: var(--color-primary);
    background: rgba(26,58,107,0.02);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1), 0 2px 8px rgba(26,58,107,0.08);
}

.rb-posten-item .pnr {
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-primary);
    position: absolute;
    right: 10px;
    top: 8px;
}

.rb-posten-item .del-btn {
    position: absolute;
    right: 10px;
    bottom: 8px;
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
}

.rb-posten-item .del-btn:hover {
    opacity: 1;
}

.rb-main {
    overflow-y: auto;
    padding: 100px 30px 30px;
    background: var(--color-bg);
}

.rb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--color-bg-alt);
    border-radius: 10px;
    width: fit-content;
}

.rb-tab {
    padding: 9px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--color-text-light);
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 7px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rb-tab:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.6);
}

.rb-tab.active {
    color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgba(15,35,68,0.08), 0 1px 2px rgba(15,35,68,0.06);
    font-weight: 700;
}

.rb-sym-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.rb-sym-cat {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    background: none;
}

.rb-sym-cat:hover,
.rb-sym-cat.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.rb-sym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
}

.rb-sym-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--color-surface);
}

.rb-sym-cell:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.rb-sym-cell.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(26,58,107,0.2);
}

.rb-sym-cell svg {
    width: 72px;
    height: 72px;
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.rb-sym-cell span {
    font-size: 0.68rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.2;
}

.rb-preview-card {
    background: #ffffff;
    color: #1a1208;
    border-radius: var(--radius-sm);
    max-width: 820px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.rb-preview-card .bk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 2.5px solid #333;
}

.rb-preview-card .bk-title {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.rb-preview-card .bk-sub {
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: #888;
}

.rb-preview-card .bk-meta {
    font-size: 0.68rem;
    text-align: right;
    line-height: 1.6;
}

.rb-preview-card .bk-crew {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 2.5px solid #333;
    font-size: 0.72rem;
}

.rb-preview-card .bk-crew div {
    padding: 6px 12px;
    border-right: 1px solid #ccc;
}

.rb-preview-card .bk-crew div:last-child {
    border-right: none;
}

.rb-preview-card .bk-crew .cl {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
}

.rb-preview-card .rb-table {
    width: 100%;
    border-collapse: collapse;
}

.rb-preview-card .rb-table th {
    background: #333;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 10px;
    text-align: left;
}

.rb-preview-card .rb-table td {
    border-bottom: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: middle;
    font-size: 0.78rem;
}

.rb-preview-card .rb-table tr:nth-child(even) td {
    background: #f8f8f8;
}

.rb-preview-card .td-nr {
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    width: 36px;
}

.rb-preview-card .td-sym {
    width: 72px;
    text-align: center;
}

.rb-preview-card .td-sym svg {
    width: 60px;
    height: 60px;
}

.rb-preview-card .td-km {
    width: 56px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.rb-preview-card .td-desc {
    min-width: 140px;
}

.rb-preview-card .td-bem {
    font-size: 0.72rem;
    color: var(--color-accent);
    font-style: italic;
}

.rb-preview-card .bk-footer {
    padding: 10px 20px;
    border-top: 2.5px solid #333;
    font-size: 0.68rem;
    display: flex;
    justify-content: space-between;
}

.rb-preview-card .bk-footer .bem-f {
    color: var(--color-accent);
    font-style: italic;
    max-width: 65%;
}

/* Sidebar toggle (mobile only) */
.rb-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-sidebar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.rb-toggle-icon {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.rb-sidebar-collapsed .rb-toggle-icon {
    transform: rotate(-135deg);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .rb-sidebar-toggle {
        display: flex;
    }
    .rb-sidebar-collapsed .rb-sidebar-body {
        display: none;
    }
    .roadbook-app {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .rb-sidebar {
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 2px solid var(--color-primary);
        padding: 16px 14px 24px;
        max-height: none;
    }
    .rb-sidebar-collapsed {
        padding-bottom: 16px;
    }
    .rb-main {
        padding: 16px 10px;
        min-height: 70vh;
    }
    .rb-tabs {
        margin-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .rb-tabs::-webkit-scrollbar { display: none; }
    .rb-tab {
        padding: 8px 12px;
        font-size: 0.72rem;
        white-space: nowrap;
    }
    .rb-sidebar .row2 {
        grid-template-columns: 1fr;
    }
    .rb-map-container {
        margin: 0 -10px;
    }
    .rb-map-toolbar {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }
    .rb-map-toolbar span {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 6px;
    }
    .rb-map-tool {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
    #rbMap {
        height: 350px !important;
    }
    .rb-map-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .rb-map-actions span {
        width: 100%;
        margin-left: 0 !important;
    }
    .se-container {
        flex-direction: column;
    }
    .se-workspace {
        flex-direction: column;
        align-items: center;
    }
    .se-props {
        width: 100%;
        padding: 12px;
    }
    #seCanvas {
        max-width: 100%;
        height: auto;
    }
    .rb-sym-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    }
    .rb-preview-card {
        padding: 16px 10px;
        font-size: 0.8rem;
    }
    .rb-preview-card table {
        font-size: 0.7rem;
    }
    .rb-preview-card table th,
    .rb-preview-card table td {
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    .rb-sidebar {
        padding: 12px 10px 20px;
    }
    .rb-sidebar h2 {
        font-size: 1.1rem !important;
    }
    .rb-sidebar .btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
    .rb-main {
        padding: 12px 6px;
    }
    #rbMap {
        height: 280px !important;
    }
    .rb-map-toolbar {
        padding: 6px;
    }
    .rb-map-tool {
        font-size: 0.68rem;
        padding: 5px 8px;
    }
}

/* ===== BB Muster Etappe Bar ===== */
.bk-etappe-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: var(--color-primary, #1a3a6b);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bk-etappe-page { flex: 0 0 auto; }
.bk-etappe-name { flex: 1; text-align: center; font-size: 0.85rem; letter-spacing: 2px; }
.bk-etappe-zk { flex: 0 0 auto; }

.bb-page { page-break-after: always; }
.bb-page:last-of-type { page-break-after: auto; }

/* BB Table layout */
.rb-preview-card .bb-table th.th-total,
.rb-preview-card .bb-table td.td-total {
    width: 60px;
    text-align: right;
    font-family: 'Courier New', monospace;
    padding-right: 10px;
}

.rb-preview-card .bb-table th.th-split,
.rb-preview-card .bb-table td.td-split {
    width: 60px;
    text-align: right;
    font-family: 'Courier New', monospace;
    padding-right: 10px;
    border-right: 2px solid #333;
}

.rb-preview-card .bb-table th.th-sym,
.rb-preview-card .bb-table td.td-sym {
    width: 80px;
    text-align: center;
}

.rb-preview-card .bb-table th.th-desc {
    text-align: left;
}

.rb-preview-card .bb-table th .th-unit {
    display: block;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.7;
}

.rb-preview-card .td-desc-bb {
    min-width: 160px;
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Street name boxes */
.bb-street {
    display: inline-block;
    border: 1.5px solid #333;
    padding: 1px 6px;
    margin: 2px 2px;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 2px;
    background: #fff;
}

/* Bemerkung in description cell */
.bb-bemerkung {
    margin-top: 4px;
    font-size: 0.7rem;
    font-style: italic;
    color: var(--color-accent, #c0392b);
}

/* Special marker rows (WP, DK, ZK) */
.rb-preview-card .bb-special td {
    background: #f8e8e0 !important;
    border-bottom: 2px solid var(--color-accent, #c0392b);
}

/* Footer right */
.bk-footer-right {
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Symbol Editor ===== */
.se-container {
    max-width: 900px;
}

.se-toolbar-row {
    background: var(--color-bg-alt, #f5f7fa);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 16px;
}

.se-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.se-tool-group {
    display: inline-flex;
    gap: 2px;
    padding: 0 6px;
    border-right: 1px solid var(--color-border);
}
.se-tool-group:last-child {
    border-right: none;
}

.se-tool {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 34px;
}

.se-tool:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.se-tool:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.se-tool.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.se-workspace {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

#seCanvas {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: crosshair;
    flex-shrink: 0;
    touch-action: none;
}

#seCanvas.tool-select {
    cursor: default;
}
#seCanvas.tool-eraser {
    cursor: not-allowed;
}

.se-color-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.se-color-row input[type="color"] {
    width: 40px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
}
.se-color-presets {
    display: flex;
    gap: 3px;
}
.se-color-preset {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s;
}
.se-color-preset:hover {
    transform: scale(1.2);
    border-color: var(--color-primary);
}
.se-color-preset.active {
    box-shadow: 0 0 0 2px var(--color-primary);
}

#seSelInfo {
    padding: 6px 8px;
    background: var(--color-bg-alt, #f5f7fa);
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
}
#seSelInfo:empty {
    display: none;
}

.se-shortcut-modal-content table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}
.se-shortcut-modal-content td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--color-border);
}
.se-shortcut-modal-content kbd {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.85em;
}

.se-props {
    flex: 1;
    min-width: 180px;
}

.se-props label.fl {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 8px 0 2px;
    font-weight: 600;
}

.se-props input[type="range"] {
    width: 120px;
    vertical-align: middle;
}

.se-custom-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    margin-bottom: 4px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.se-custom-preview {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.se-custom-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
}

.se-custom-item .del-btn {
    position: static;
    font-size: 12px;
}

/* ===== Map Tab ===== */
.rb-map-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 8px 0;
}

.rb-map-tool {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.rb-map-tool:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.rb-map-tool.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.rb-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
}

.rb-map-marker-icon {
    background: transparent;
    border: none;
}

/* Filter für nolabels-Karten — Kontrast + Sättigung für klarere Straßen/Wälder */
.rb-map-vivid .leaflet-tile-pane .leaflet-layer img.leaflet-tile {
    filter: saturate(1.4) contrast(1.1);
}
.rb-map-topo-vivid .leaflet-tile-pane .leaflet-layer img.leaflet-tile {
    filter: saturate(1.5) contrast(1.15) brightness(0.98);
}

/* Ortsnamen-Labels für "Nur Ortsnamen"-Modus */
.rb-place-label {
    background: none !important;
    border: none !important;
}
.rb-place-label span {
    color: #1a3a6b;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-shadow:
        -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
        -1px 0 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, 0 1px 0 #fff,
        0 0 6px rgba(255,255,255,0.9);
    white-space: nowrap;
    pointer-events: none;
    display: inline-block;
    transform: translate(-50%, -50%);
}
.rb-place-city span { font-size: 1rem; font-weight: 800; letter-spacing: 0.2px; }
.rb-place-town span { font-size: 0.9rem; font-weight: 700; }
.rb-place-village span { font-size: 0.78rem; font-weight: 600; color: #2a3f5f; }
.rb-place-hamlet span { font-size: 0.7rem; font-weight: 500; color: #555; }

.rb-measure-label {
    background: none !important;
    border: none !important;
}
.rb-posten-extra {
    margin-top: 6px;
    border-top: 1px dashed var(--color-border);
    padding-top: 6px;
}
.rb-posten-extra > summary {
    cursor: pointer;
    font-size: 0.72rem;
    color: var(--color-text-light);
    padding: 4px 0;
    font-weight: 600;
    user-select: none;
}
.rb-posten-extra > summary:hover {
    color: var(--color-primary);
}
.rb-posten-extra[open] > summary {
    color: var(--color-primary);
}

.rb-measure-label span {
    background: #27ae60;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.rb-map-marker {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

/* ===== Roadbook v2: Toasts, Modals, Drag, Status Bar ===== */

/* Top action bar (header buttons row above sidebar) */
.rb-action-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.rb-action-bar .rb-act-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    font-size: 15px;
    transition: all var(--transition);
    padding: 0;
}

.rb-action-bar .rb-act-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(26,58,107,0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26,58,107,0.12);
}

.rb-action-bar .rb-act-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rb-action-bar .rb-act-spacer {
    flex: 1;
}

.rb-action-bar .rb-save-status {
    font-size: 0.72rem;
    color: var(--color-text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 6px;
}

.rb-action-bar .rb-save-status.saving {
    color: #b58410;
}

.rb-action-bar .rb-save-status.saved {
    color: #1d7c3d;
}

.rb-save-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* Search box */
.rb-search-box {
    position: relative;
    margin-bottom: 10px;
}

.rb-search-box input {
    width: 100%;
    padding-left: 30px !important;
    font-size: 0.78rem !important;
}

.rb-search-box::before {
    content: '⌕';
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--color-text-light);
    pointer-events: none;
    line-height: 1;
}

.rb-search-box .rb-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    line-height: 1;
}

.rb-search-box .rb-search-clear:hover {
    color: var(--color-accent);
}

/* Posten list with drag handle */
.rb-posten-item {
    cursor: default;
}

.rb-posten-item.dragging {
    opacity: 0.4;
}

.rb-posten-item.drag-over-top {
    box-shadow: 0 -3px 0 0 var(--color-primary);
}

.rb-posten-item.drag-over-bottom {
    box-shadow: 0 3px 0 0 var(--color-primary);
}

.rb-drag-handle {
    cursor: grab;
    color: var(--color-text-light);
    padding: 2px 4px;
    user-select: none;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    transition: background var(--transition);
}

.rb-drag-handle:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.rb-drag-handle:active {
    cursor: grabbing;
}

.rb-posten-item.hidden-by-search {
    display: none !important;
}

/* Posten item: compact and detailed views */
.rb-posten-list.compact .rb-posten-item .rb-posten-fields,
.rb-posten-list.compact .rb-posten-item .rb-posten-mv {
    display: none;
}

.rb-posten-list.compact .rb-posten-item {
    padding: 6px 10px;
    margin-bottom: 4px;
}

.rb-posten-list.compact .rb-posten-summary {
    display: flex !important;
}

.rb-posten-summary {
    display: none;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    font-size: 0.74rem;
    line-height: 1.2;
}

.rb-posten-summary .rb-ps-line1 {
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb-posten-summary .rb-ps-line2 {
    font-size: 0.68rem;
    color: var(--color-text-light);
}

/* View mode toggle */
.rb-view-toggle {
    display: inline-flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-left: auto;
}

.rb-view-toggle button {
    background: var(--color-surface);
    border: none;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--color-text-light);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.rb-view-toggle button.active {
    background: var(--color-primary);
    color: #fff;
}

/* Status bar at bottom of sidebar */
.rb-status-bar {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--color-text-light);
    z-index: 4;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.02);
}

.rb-status-bar .rb-stat {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 4px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-weight: 500;
}

.rb-status-bar .rb-stat:hover {
    border-color: rgba(26,58,107,0.2);
}

.rb-status-bar .rb-stat strong {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85em;
}

/* Toast notifications */
.rb-toast-container {
    position: fixed;
    top: 88px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
    max-width: 360px;
}

.rb-toast {
    background: var(--color-surface);
    color: var(--color-text);
    border-left: 4px solid var(--color-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    font-size: 0.85rem;
    line-height: 1.4;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: rb-toast-in 0.25s ease;
    opacity: 1;
    transition: opacity 0.4s, transform 0.4s;
}

.rb-toast.rb-toast-out {
    opacity: 0;
    transform: translateX(20px);
}

.rb-toast.success { border-left-color: #1d7c3d; }
.rb-toast.error { border-left-color: var(--color-accent, #c0392b); }
.rb-toast.warn { border-left-color: #d18b1c; }
.rb-toast.info { border-left-color: var(--color-primary); }

.rb-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    border-radius: 50%;
    margin-top: 1px;
}

.rb-toast.success .rb-toast-icon { background: #1d7c3d; }
.rb-toast.error .rb-toast-icon { background: var(--color-accent, #c0392b); }
.rb-toast.warn .rb-toast-icon { background: #d18b1c; }
.rb-toast.info .rb-toast-icon { background: var(--color-primary); }

.rb-toast-body { flex: 1; min-width: 0; }

.rb-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0 0 4px;
    margin-top: 1px;
}

.rb-toast-close:hover { color: var(--color-text); }

@keyframes rb-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Modal dialog */
.rb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 68, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: rb-fade-in 0.18s ease;
}

@keyframes rb-fade-in { from { opacity: 0; } to { opacity: 1; } }

.rb-modal {
    background: var(--color-surface);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: rb-modal-in 0.22s ease;
}

@keyframes rb-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rb-modal-large { max-width: 720px; }

.rb-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.rb-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 4px;
}

.rb-modal-close:hover { color: var(--color-text); }

.rb-modal-body {
    padding: 20px 24px;
    color: var(--color-text);
}

.rb-modal-body p { margin: 0 0 12px; }
.rb-modal-body p:last-child { margin-bottom: 0; }

.rb-modal-body label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 4px;
}

.rb-modal-body input[type="text"],
.rb-modal-body input[type="number"],
.rb-modal-body select,
.rb-modal-body textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.88rem;
    padding: 8px 12px;
    outline: none;
}

.rb-modal-body input:focus,
.rb-modal-body select:focus,
.rb-modal-body textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.rb-modal-footer {
    padding: 14px 24px 20px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.rb-modal-footer .btn {
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rb-modal-footer .btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.rb-modal-footer .btn.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.rb-modal-footer .btn.btn-primary:hover {
    background: var(--color-primary-light);
    color: #fff;
}

.rb-modal-footer .btn.btn-danger {
    background: var(--color-accent, #c0392b);
    color: #fff;
    border-color: var(--color-accent, #c0392b);
}

/* Keyboard shortcut help table */
.rb-shortcut-table {
    width: 100%;
    border-collapse: collapse;
}

.rb-shortcut-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.rb-shortcut-table td:first-child { width: 40%; }

.rb-kbd {
    display: inline-block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 2px 7px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    margin-right: 3px;
}

/* Recent symbols strip */
.rb-recent-symbols {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px 0 10px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--color-border);
    -webkit-overflow-scrolling: touch;
}

.rb-recent-symbols::-webkit-scrollbar { height: 4px; }
.rb-recent-symbols::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.rb-recent-cell {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.rb-recent-cell svg {
    width: 100%;
    height: 100%;
}

.rb-recent-cell:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.rb-recent-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 4px 4px;
}

/* Symbol cell favorite star */
.rb-sym-cell {
    position: relative;
}

.rb-sym-fav {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-border);
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

.rb-sym-fav:hover { color: #d4a017; }
.rb-sym-fav.active { color: #d4a017; }

/* Empty state */
.rb-empty {
    text-align: center;
    padding: 30px 16px;
    color: var(--color-text-light);
    font-size: 0.85rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.rb-empty-icon {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 8px;
}

.rb-empty-cta {
    margin-top: 10px;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 6px 12px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.rb-empty-cta:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Etappe selector chip */
.rb-etappe-chip {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

/* Page break checkbox */
.rb-pagebreak-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 4px;
    cursor: pointer;
    user-select: none;
}

.rb-pagebreak-toggle input { width: auto !important; }

/* Map info bar (route distance, marker count) */
.rb-map-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 10px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-text-light);
    align-items: center;
}

.rb-map-info strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Address search */
.rb-map-search {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 360px;
}

.rb-map-search input {
    width: 100%;
    padding: 6px 28px 6px 28px;
    font-size: 0.78rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
}

.rb-map-search input:focus {
    border-color: var(--color-primary);
}

.rb-map-search::before {
    content: '⌕';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--color-text-light);
    pointer-events: none;
}

.rb-map-search-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 14px;
    padding: 4px 6px;
}

.rb-map-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rb-map-search-result {
    padding: 8px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
}

.rb-map-search-result:hover {
    background: var(--color-bg-alt);
}

.rb-map-search-result:last-child { border-bottom: none; }

/* Etappe list editor in modal */
.rb-etappe-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rb-etappe-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.rb-etappe-row input {
    flex: 1;
}

.rb-etappe-row .rb-etappe-del {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-accent, #c0392b);
    cursor: pointer;
    padding: 4px 10px;
    font-size: 14px;
}

.rb-etappe-row .rb-etappe-del:hover {
    background: var(--color-accent, #c0392b);
    color: #fff;
}

/* Mobile adjustments for new elements */
@media (max-width: 900px) {
    .rb-toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .rb-action-bar {
        flex-wrap: wrap;
        padding: 6px 10px;
    }
    .rb-status-bar {
        flex-wrap: wrap;
        padding: 6px 10px;
        font-size: 0.66rem;
    }
    .rb-modal {
        max-height: 95vh;
    }
}

@media print {
    .header, .rb-sidebar, .rb-tabs, .no-print {
        display: none !important;
    }
    .roadbook-app {
        display: block !important;
    }
    .rb-main {
        padding: 0 !important;
    }
    .rb-preview-card {
        box-shadow: none;
        max-width: 100%;
        border-radius: 0;
    }
    .bb-page {
        page-break-after: always;
    }
    .bb-page:last-of-type {
        page-break-after: avoid;
    }
    .bk-etappe-bar {
        background: #1a3a6b !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .rb-preview-card .bb-table th {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .rb-preview-card .bb-special td {
        background: #f8e8e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .bk-footer {
        page-break-before: avoid;
    }
    @page {
        margin: 10mm;
    }
}
