/* seekrankheit.css – Styles for ratgeber/seekrankheit.html */

:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --wave-blue: #0077be;
    --calm-green: #00a86b;
}

* {
    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;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

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

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

.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 Section */
.hero-section {
    position: relative;
    color: white;
    padding: 0;
    overflow: hidden;
    min-height: 320px;
}

.hero-section img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,56,119,0.55) 0%, rgba(0,56,119,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-content h1 {
    font-size: clamp(1.4rem, 4.5vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(6px);
    font-size: 0.9rem;
}

/* TOC */
.toc {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

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

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

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

/* Section Headings */
main h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

main h2:first-of-type {
    margin-top: 0;
}

/* Interactive Risk Calculator */
.risk-calculator {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.risk-factor {
    padding: 0.75rem 1rem;
    margin: 0.4rem 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.risk-factor:hover {
    border-color: var(--primary-color);
    background: rgba(0,86,179,0.04);
}

.risk-factor.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.risk-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    display: none;
}

.risk-low {
    background: #d4edda;
    border: 2px solid var(--success-color);
    color: #155724;
}

.risk-medium {
    background: #fff3cd;
    border: 2px solid var(--accent-color);
    color: #856404;
}

.risk-high {
    background: #f8d7da;
    border: 2px solid var(--danger-color);
    color: #721c24;
}

/* Medicine Cards */
.medicine-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.medicine-card:hover {
    transform: translateX(3px);
}

.medicine-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-prescription {
    background: #ffe5e5;
    color: var(--danger-color);
}

.badge-otc {
    background: #e5f7e5;
    color: var(--success-color);
}

.badge-natural {
    background: #fff5e5;
    color: #d97706;
}

/* Ship Diagram */
.ship-diagram {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.ship-svg {
    max-width: 100%;
    height: auto;
}

.position-spot {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.position-spot:hover {
    transform: scale(1.15);
}

/* Tips Timeline */
.timeline {
    position: relative;
    padding: 1.5rem 0;
}

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

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 1.5rem;
}

.timeline-icon {
    position: absolute;
    left: 9px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Content Image */
.content-img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.img-credit {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: right;
    margin-bottom: 1rem;
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

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

/* Accordion */
.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

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

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

footer a:hover {
    color: white;
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section img {
        height: 240px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .risk-calculator,
    .ship-diagram {
        padding: 1rem;
    }

    .timeline-item {
        padding-left: 38px;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline-icon {
        left: 5px;
    }

    .map-container iframe {
        height: 260px;
    }
}

/* Print */
@media print {
    .navbar, footer, .risk-calculator, .map-container, .toc {
        display: none;
    }

    .medicine-card, .timeline-item {
        break-inside: avoid;
    }
}

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