:root {
    --primary: #005D8A;
    --primary-dark: #00456B;
    --secondary: #FFC107;
    --secondary-dark: #E6AD00;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
}

.site-header .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,93,138,0.85) 0%, rgba(0,69,107,0.9) 100%),
                url('/images/ostsee-wellen-faehrroute.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0;
    position: relative;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-status {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* TOC */
.toc-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.toc-container h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.toc-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Content Sections */
.content-section {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Weather Cards */
.weather-card {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.weather-card:hover {
    transform: translateY(-5px);
}

.weather-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.weather-detail-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.weather-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Sea Conditions */
.sea-condition {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.sea-condition.calm {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid #4CAF50;
}

.sea-condition.moderate {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE6B3 100%);
    border: 2px solid #FFC107;
}

.sea-condition.rough {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 2px solid #F44336;
}

/* Forecast Cards */
.forecast-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 100px 1fr 1fr 150px;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.forecast-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Author Note */
.author-note {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CC 100%);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.author-note-title {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Tips Section */
.tip-box {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.tip-box h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.2rem;
}

.highlight-box {
    background: #E3F2FD;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: var(--gray);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--light-gray);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--secondary);
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.link-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: block;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

.link-card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.link-card-desc {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Image with caption */
.content-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.content-image figcaption {
    font-size: 0.8rem;
    color: var(--gray);
    padding: 0.5rem 1rem;
    background: var(--light);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

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

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

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

.footer-links a:hover {
    color: var(--secondary);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.loading-spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

    .forecast-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

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

    .weather-temp {
        font-size: 2.5rem;
    }

    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
    }
}

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

    .content-section {
        padding: 1.25rem;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }
}
