/* sicherheit-faehre.css – Styles for ratgeber/sicherheit-faehre.html */

:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --safety-green: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1100;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: white;
    outline: 3px solid var(--warning-color);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--light-bg);
    border-radius: 4px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-header .lead {
    font-size: 1rem;
    opacity: 0.95;
}

/* Hero-CTA */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}
.btn-hero-primary:hover,
.btn-hero-primary:focus {
    background-color: var(--warning-color);
    color: var(--dark-color);
    border-color: var(--warning-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255,255,255,0.08);
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    margin-top: 0.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.cta-button-secondary:hover,
.cta-button-secondary:focus {
    background: #fff;
    color: var(--safety-green);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* TOC */
.toc {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.toc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

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

.toc li {
    margin-bottom: 0.4rem;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.toc a:hover {
    text-decoration: underline;
}

/* Main Content */
.content-area {
    padding: 0 0 3rem;
}

.content-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.content-section h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.success-box {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-left: 4px solid var(--safety-green);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fffaeb 100%);
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.danger-box {
    background: linear-gradient(135deg, #f8d7da 0%, #ffebee 100%);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Safety Features List */
.safety-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.safety-feature {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.safety-feature:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.safety-feature-icon {
    font-size: 1.5rem;
    color: var(--safety-green);
    flex-shrink: 0;
}

.safety-feature-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.safety-feature-content p {
    margin: 0;
    font-size: 0.9375rem;
    color: #6c757d;
}

/* Emergency Steps */
.emergency-steps {
    counter-reset: step-counter;
    margin: 1.5rem 0;
}

.emergency-step {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3.5rem;
}

.emergency-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--danger-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.emergency-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklist li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-bg);
    border-radius: 4px;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.checklist li i {
    color: var(--safety-green);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Table */
.table-responsive {
    margin: 1.5rem 0;
}

table {
    font-size: 0.9375rem;
}

table thead {
    background: var(--primary-color);
    color: white;
}

table tbody tr:hover {
    background: var(--light-bg);
}

/* Image with caption */
.content-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image figcaption {
    background: var(--light-bg);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Map */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* Sidebar */
.sidebar {
    margin-top: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-bg);
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.sidebar-link i {
    font-size: 1.125rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--safety-green) 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--safety-green);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: var(--safety-green);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header .lead {
        font-size: 1.125rem;
    }

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

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

/* Desktop Styles */
@media (min-width: 992px) {
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

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

    .sidebar {
        margin-top: 0;
        position: sticky;
        top: 80px;
        height: fit-content;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .sidebar, .cta-section, .skip-link, .toc {
        display: none;
    }

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