:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

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

/* Navigation */
.navbar {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Header with Background Image */
.page-header {
    background: linear-gradient(135deg, rgba(0,86,179,0.85) 0%, rgba(23,162,184,0.85) 100%),
                url('/images/ratgeber/erste-ueberfahrt/hafen-calais-terminal.jpg') center/cover no-repeat;
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    color: white;
}

/* Table of Contents */
.toc {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.toc h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

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

.toc li {
    padding: 0.25rem 0;
}

.toc a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Step Cards */
.step-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Alert Boxes */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

/* Tip Boxes */
.tip-box {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.tip-box h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Icon Lists */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: start;
    gap: 1rem;
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.icon-list .bi-check-circle {
    color: var(--success-color);
}

.icon-list .bi-x-circle {
    color: var(--danger-color);
}

/* Feature Boxes */
.feature-box {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.feature-box h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border-color);
}

/* Content Images */
.content-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* FAQ */
.faq-section .accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Skip Link */
.skip-link:focus {
    position: absolute;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    z-index: 1000;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, #cdfe-sticky-cta, .toc {
        display: none;
    }

    .step-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
