/* ===== 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);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero), url('https://rostockgedser.de/images/scandlines-berlin_800_600.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0 6rem;
    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;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.hero-feature svg {
    flex-shrink: 0;
}

/* ===== BOOKING BOX ===== */
.booking-box {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.booking-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-display {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-amount small {
    font-size: 1rem;
    font-weight: 400;
}

.price-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    border: none;
    color: var(--dark);
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== 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;
}

/* ===== BENEFIT CARDS ===== */
.benefit-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark);
}

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

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
}

.benefit-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    font-family: 'Source Sans 3', sans-serif;
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ===== 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-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

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

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

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

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

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

.price-highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== SCHEDULE TABLE ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.schedule-item {
    background: var(--primary-light);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.schedule-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== 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 {
    padding: 0 2rem 1.5rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== DESTINATION CARDS ===== */
.destination-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.destination-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.destination-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.destination-card h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    font-family: 'Source Sans 3', sans-serif;
}

.destination-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0 0 1rem;
    flex-grow: 1;
}

.destination-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-gray);
}

.destination-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== 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: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== STICKY BOOKING BUTTON ===== */
.booking-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.booking-float a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: var(--transition);
}

.booking-float a:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 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);
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-highlight {
    background: var(--primary-light);
}

.check-green {
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== 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: "›";
    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);
}

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

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

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

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

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

.timeline-time {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 0 5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .booking-box {
        margin-top: -3rem;
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 0 4rem;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .hero-feature {
        width: 100%;
    }
    
    .booking-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .booking-float a {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 1rem;
        left: 1rem;
    }
    
    .price-table, .comparison-table {
        font-size: 0.85rem;
    }
    
    .price-table th, .price-table td,
    .comparison-table th, .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 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, .booking-float, .back-to-top, .site-footer {
        display: none;
    }
    
    .hero {
        background: var(--primary) !important;
        padding: 2rem 0;
    }
    
    .booking-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== FAQ ANSWER ANIMATION ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

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

@media (max-width: 768px) {
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-answer.show {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ===== 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);
}

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

.map-container iframe,
.map-container #ferry-map {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===== IMAGE CREDITS ===== */
.image-credit {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
}
