/* Reisecheckliste Rostock -> Kopenhagen
   Print-optimierte Checkliste, externalisiert aus der Seite */

/* Print-optimierte Styles */
@media print {
    body {
        margin: 0;
        padding: 20px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .no-print {
        display: none !important;
    }
    .page-break {
        page-break-after: always;
    }
    .keep-together {
        page-break-inside: avoid;
    }
    .hero-section {
        background-color: #005D8A !important;
        -webkit-print-color-adjust: exact;
    }
    input[type="checkbox"] {
        appearance: none;
        width: 16px;
        height: 16px;
        border: 2px solid #005D8A;
        border-radius: 3px;
        margin-right: 12px;
        vertical-align: middle;
        print-color-adjust: exact;
    }
}

/* Modern Design System */
:root {
    --primary: #005D8A;
    --primary-light: #0074A8;
    --accent: #FF5722;
    --success: #28A745;
    --warning: #FFC107;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --border: #E9ECEF;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: white;
    font-size: 14px;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Action Bar (only visible on screen) */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.action-bar .home-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.action-bar .home-link:hover {
    text-decoration: underline;
}

.action-bar .action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    color: white;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '\2693';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.hero-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.route-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.route-info .city {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.route-info .arrow {
    font-size: 24px;
}

/* Primary Booking CTA under hero */
.booking-cta {
    background: #FFF4E6;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.booking-cta .cta-text {
    flex: 1;
    min-width: 220px;
}

.booking-cta .cta-text strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.booking-cta .cta-text span {
    font-size: 13px;
    color: var(--gray);
}

.booking-cta .btn {
    font-size: 14px;
    padding: 11px 20px;
}

/* Section Styles */
.section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    page-break-inside: avoid;
}

.section-header {
    background: var(--light);
    padding: 15px 20px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.section-header .subtitle {
    font-size: 13px;
    color: var(--gray);
    margin-top: 2px;
}

.section-content {
    padding: 20px;
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checklist-item:hover {
    background: #E8F4F8;
    transform: translateX(2px);
}

.checklist-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checklist-item input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checklist-item input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checklist-content {
    flex: 1;
}

.checklist-label {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--dark);
}

.checklist-hint {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.checklist-hint a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}

.checklist-hint a:hover {
    color: var(--primary-light);
}

/* Insider Tips */
.insider-tip {
    background: #FFF9E6;
    border-left: 4px solid var(--warning);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    page-break-inside: avoid;
}

.insider-tip .tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.insider-tip .tip-header::before {
    content: '\1F4A1';
    font-size: 18px;
}

/* Personal Note */
.personal-note {
    background: #E8F5E9;
    border-left: 4px solid var(--success);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
    page-break-inside: avoid;
    position: relative;
}

.personal-note .quote-author {
    text-align: right;
    margin-top: 8px;
    font-style: normal;
    font-size: 12px;
    color: var(--gray);
}

/* Important Info Box */
.info-box {
    background: #E3F2FD;
    border: 1px solid #1976D2;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    page-break-inside: avoid;
}

.info-box h3 {
    color: #1976D2;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h3::before {
    content: '\2139\FE0F';
    font-size: 18px;
}

.info-box a {
    color: #1976D2;
    font-weight: 600;
}

/* Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.price-item {
    background: var(--light);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.price-item .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-item .label {
    font-size: 12px;
    color: var(--gray);
}

/* Timeline */
.timeline {
    margin: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
}

.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-content {
    flex: 1;
    padding-top: 8px;
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--gray);
}

/* Map */
.map-wrapper {
    margin: 0 0 20px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.map-caption {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--gray);
    background: var(--light);
    border-top: 1px solid var(--border);
}

.map-caption a {
    color: var(--primary);
}

/* Related Links */
.related-links {
    background: var(--light);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.related-links h3 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 10px;
}

.related-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}

.related-links li {
    padding: 0;
}

.related-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 1px dotted transparent;
}

.related-links a::before {
    content: '\2192  ';
    color: var(--accent);
    font-weight: bold;
}

.related-links a:hover {
    border-bottom-color: var(--primary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer .logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

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

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

.footer .footer-nav {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 22px;
    }

    .route-info {
        flex-wrap: wrap;
    }

    .price-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 15px;
    }

    .hero-section {
        padding: 20px;
    }

    .section-header {
        padding: 12px 15px;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }
}
