/* /static/tour-classy.css */

/* 1. Breiteres Haupt-Grid analog zu den Hafen-Hubs (1200px statt 800px) */
.container.container-wide {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.tour-hero-container.hero-tall {
    height: 60vh;
    min-height: 420px;
    max-height: 680px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .tour-grid-wide {
        display: grid;
        grid-template-columns: 1.85fr 1fr;
        gap: 50px;
        align-items: start;
    }
}

/* 2. Lokale Guide-Box (Geologie, Flora, Fauna & Lokales Wissen) */
.local-expert-box {
    background: #fafafa;
    border: 1px solid #e2e5e8;
    border-left: 4px solid #164E36;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 35px 0;
}

.local-expert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #164E36;
    margin-bottom: 8px;
}

.local-expert-box h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #1a252f;
}

.local-expert-box p {
    margin: 0 0 12px 0;
    color: #444;
    font-size: 0.98rem;
}

.local-expert-box p:last-child {
    margin-bottom: 0;
}

/* 3. Full-Bleed Scrollytelling Route mit Multi-Image Slider */
.scrolly-route-section {
    background-color: #1a252f;
    color: #ffffff;
    margin: 60px 0;
    width: 100%;
    overflow: hidden;
}

.scrolly-route-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px 20px;
}

.scrolly-route-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8fa6b8;
    margin-bottom: 8px;
}

.scrolly-route-intro h2 {
    font-size: 2.2rem;
    margin: 0 0 12px 0;
    color: #ffffff;
    line-height: 1.2;
}

.scrolly-route-intro p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 780px;
    margin: 0;
}

/* Einzelne Etappe (Step Block) */
.scrolly-step {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.scrolly-media {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #121a21;
}

/* Multi-Slide Container innerhalb einer Etappe */
.scrolly-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.scrolly-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeSlide 0.35s ease-out;
}

.scrolly-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.scrolly-media picture,
.scrolly-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Bild-Unterschrift / Hinweis oben links auf dem Slide */
.slide-caption-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 4;
    background: rgba(18, 26, 33, 0.72);
    backdrop-filter: blur(6px);
    color: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

/* Interaktive Slider-Steuerung (Pfeile + animierte Punkte) */
.scrolly-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 26, 33, 0.78);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.scrolly-arrow {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.scrolly-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.scrolly-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scrolly-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.scrolly-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 10px;
}

/* Dezentes Pulsieren auf inaktiven Punkten, um zum Durchklicken zu animieren */
.scrolly-dot:not(.active)::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    animation: dotPulse 2.2s infinite ease-out;
}

@keyframes dotPulse {
    0% { transform: scale(0.8); opacity: 0.9; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* Mobile, Tablet & Foldable Ansicht (< 992px): 4:5 (800x1000) Bild oben, Text sauber darunter */
@media (max-width: 991px) {
    .scrolly-media {
        aspect-ratio: 4 / 5;
        max-height: 540px;
    }
    .scrolly-overlay {
        background: #1a252f;
        padding: 28px 20px 42px 20px;
    }
    .slide-caption-pill {
        top: auto;
        bottom: 14px;
        left: 14px;
        font-size: 0.75rem;
    }
    .scrolly-controls {
        top: auto;
        bottom: 14px;
        right: 14px;
    }
}

/* Desktop Kino-Ansicht (>= 992px): Bild Full-Bleed (16:9), obere 60% komplett klar! */
@media (min-width: 992px) {
    .scrolly-step {
        min-height: 700px;
        display: flex;
        align-items: flex-end;
    }
    .scrolly-media {
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .scrolly-media::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        /* Obere 55% komplett frei für maximale Leuchtkraft der Fotos */
        background: linear-gradient(
            to top,
            rgba(15, 22, 28, 0.94) 0%,
            rgba(22, 32, 42, 0.72) 28%,
            rgba(22, 32, 42, 0.18) 48%,
            rgba(0, 0, 0, 0) 62%
        );
    }
    .scrolly-overlay {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 90px 0 50px 0;
        pointer-events: none;
    }
    .scrolly-container {
        pointer-events: auto;
    }
    .slide-caption-pill {
        top: 28px;
        left: max(20px, calc((100vw - 1160px) / 2));
    }
    .scrolly-controls {
        top: 28px;
        right: max(20px, calc((100vw - 1160px) / 2));
    }
}

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

.scrolly-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .scrolly-grid {
        grid-template-columns: 5fr 7fr;
        gap: 50px;
        align-items: end;
    }
}

.scrolly-step-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #cbd5e1;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.scrolly-title h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.scrolly-desc p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #f1f5f9;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Micro-Specs Leiste unter jeder Etappe */
.scrolly-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

@media (min-width: 640px) {
    .scrolly-specs {
        grid-template-columns: repeat(4, 1fr);
    }
}

.scrolly-spec-item {
    display: flex;
    flex-direction: column;
}

.scrolly-spec-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.scrolly-spec-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

/* 4. Visuelle Safety & Grading Balken */
.grading-bars-section {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 50px;
}

.grading-bars-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 18px;
    margin-bottom: 28px;
}

.grading-bars-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a252f;
}

.grading-bars-header a {
    color: #164E36;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.grading-bars-header a:hover {
    text-decoration: underline;
}

.grading-bars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grading-bars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grading-bar-card h3 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: #1a252f;
}

.grading-bar-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #1a252f;
    border-radius: 4px;
}

.progress-fill.accent-green {
    background: #164E36;
}

.grading-bar-card p {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* 5. Inklusive / Nicht Inklusive & Vorbereitung (3-Spalten-Grid) */
.inc-prep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 900px) {
    .inc-prep-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.inc-box {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
}

.inc-box h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    color: #1a252f;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e5e8;
}

.inc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inc-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.94rem;
    color: #333;
    line-height: 1.45;
}

.inc-list li .icon-check {
    position: absolute;
    left: 0;
    top: 0;
    color: #164E36;
    font-weight: bold;
}

.inc-list li .icon-cross {
    position: absolute;
    left: 0;
    top: 0;
    color: #888;
    font-weight: bold;
}

/* 6. Ornithologie-Sektion (3er-Grid) */
.birding-section {
    background: #f8f9fa;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 55px;
}

.birding-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
    padding: 0;
    max-width: none;
}

@media (min-width: 768px) {
    .birding-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 7. Kompakte 4er-Galerie */
.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0 60px 0;
    padding: 0;
    max-width: none;
}

@media (min-width: 768px) {
    .gallery-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}