/* ═══════════════════════════════════════════════════════════════
   FAHRPLAN SECTION — 4-step roadmap, 2×2 full-bleed grid
   ═══════════════════════════════════════════════════════════════ */

.fahrplan-section {
    padding-top: 5rem;
    padding-bottom: 0;
}

/* ── Grid: 2 columns, full width, no gap ── */
.fahrplan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .fahrplan-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Step block ── */
.fahrplan-step {
    position: relative;
    overflow: hidden;
}

.fahrplan-step-inner {
    padding: 4rem 3.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1024px) {
    .fahrplan-step-inner {
        padding: 3rem 2rem;
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .fahrplan-step-inner {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
}

/* ── Color variants ──────────────────────────────────────────
 * Light mode: orange/amber palette (--color-logo + amber-600)
 * Dark mode:  muted brand / slate
 * ──────────────────────────────────────────────────────────── */

.fahrplan-step--brand {
    background: #f69136;              /* logo orange */
}

.fahrplan-step--dark {
    background: #d97706;              /* amber-600, darker contrast */
}

.dark .fahrplan-step--brand {
    background: var(--color-brand-800, #1e3a5f);
}

.dark .fahrplan-step--dark {
    background: #1e293b;
}

/* ── Step number ── */
.fahrplan-num {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

@media (max-width: 640px) {
    .fahrplan-num {
        font-size: 3rem;
    }
}

/* ── Title ── */
.fahrplan-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .fahrplan-title {
        font-size: 1.375rem;
    }
}

/* ── Body text ── */
.fahrplan-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 460px;
    margin-bottom: 1.5rem;
}

/* ── Link / button ── */
.fahrplan-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
    align-self: flex-start;
}

.fahrplan-link:hover {
    background: rgba(255, 255, 255, 0.25);
    gap: 0.75rem;
    color: #ffffff;
}

/* ── Slide-in animations ──────────────────────────────────────
 * Uses the existing .reveal + .is-visible system from site.js.
 * Left blocks slide from -60px left, right from +60px right.
 * ──────────────────────────────────────────────────────────── */

.fahrplan-slide--left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fahrplan-slide--right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fahrplan-slide--left.is-visible,
.fahrplan-slide--right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger: second row starts slightly later */
.fahrplan-step:nth-child(3) { transition-delay: 0.05s; }
.fahrplan-step:nth-child(4) { transition-delay: 0.1s; }

/* ── Mobile: no slide, just fade up ── */
@media (max-width: 768px) {
    .fahrplan-slide--left,
    .fahrplan-slide--right {
        transform: translateY(70px);
    }

    .fahrplan-slide--left.is-visible,
    .fahrplan-slide--right.is-visible {
        transform: translateY(0);
    }
}
