/* ===== CSS VARIABLEN ===== */
:root {
    --primary: #005D8A;
    --primary-dark: #00456B;
    --primary-light: #E8F4F8;
    --secondary: #FFC107;
    --secondary-dark: #E6AD00;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --gradient-primary: linear-gradient(135deg, #005D8A 0%, #00456B 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0,93,138,0.92) 0%, rgba(0,69,107,0.95) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== GRUNDLEGENDES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header .nav-link {
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0 0.15rem;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-nav {
    background: var(--white);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li::after {
    content: "\203A";
    margin-left: 0.5rem;
    color: var(--gray);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--gray);
}

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

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3.5rem 0 5rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--light) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.toc h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--primary-dark);
    font-family: 'Source Sans 3', sans-serif;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.toc a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.content-section h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-section h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ===== EMERGENCY BOX ===== */
.emergency-box {
    background: linear-gradient(135deg, #DC3545 0%, #b02a37 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.emergency-box h2 {
    color: var(--white);
    border-bottom: 3px solid rgba(255,255,255,0.4);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.emergency-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: 0.1em;
    margin: 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.emergency-box p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.emergency-box .small-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== INFO BOXES ===== */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: #FFF8E6;
    border-color: var(--warning);
}

.info-box.success {
    background: #E8F5E9;
    border-color: var(--success);
}

.info-box.danger {
    background: #FDEDED;
    border-color: var(--danger);
}

.info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== NUMBERS TABLE ===== */
.numbers-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.numbers-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.numbers-table th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.numbers-table th:last-child {
    border-radius: 0 var(--border-radius) 0 0;
}

.numbers-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: middle;
}

.numbers-table tbody tr:hover {
    background: var(--primary-light);
}

.numbers-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--border-radius);
}

.numbers-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--border-radius) 0;
}

.numbers-table .phone-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
    white-space: nowrap;
}

.numbers-table .phone-number a {
    color: var(--primary);
    text-decoration: none;
}

.numbers-table .phone-number a:hover {
    text-decoration: underline;
}

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== PHONE LINK CARDS ===== */
.phone-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
    display: block;
}

.phone-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--dark);
}

.phone-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.phone-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Source Sans 3', sans-serif;
}

.phone-card .card-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Source Sans 3', sans-serif;
}

.phone-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0.5rem 0 0;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.faq-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

.faq-content {
    padding: 0;
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 2rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question[aria-expanded="true"] {
    background: var(--primary-light);
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
    color: var(--gray);
    line-height: 1.7;
}

.faq-answer.show {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.site-footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Source Sans 3', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 0 4rem;
    }

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

    .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 0 3.5rem;
    }

    .emergency-number {
        font-size: 3rem;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 1rem;
        right: 1rem;
    }

    .numbers-table {
        font-size: 0.85rem;
    }

    .numbers-table th, .numbers-table td {
        padding: 0.75rem 0.5rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-answer.show {
        padding: 0 1.25rem 1.25rem;
    }

    .toc {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

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

    .content-section h2 {
        font-size: 1.3rem;
    }

    .emergency-number {
        font-size: 2.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

/* ===== PRINT STYLES ===== */
@media print {
    .site-header, .back-to-top, .site-footer, .toc {
        display: none;
    }

    .hero {
        background: var(--primary) !important;
        padding: 2rem 0;
    }

    .emergency-box {
        border: 3px solid #DC3545;
        color: #000;
        background: #fff !important;
    }

    .emergency-box h2, .emergency-box .emergency-number {
        color: #DC3545;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
