﻿/* ==========================================================
   Sprintdistanz PDF-Trainingsplan – Stylesheet (Präfix sp-)
   Einbinden: <link rel="stylesheet" href="/css/sprint-pdf.css" />
   Bootstrap 5 wird vorausgesetzt.
   ========================================================== */

.sp-page {
    --sp-primary: #0a5c8c;
    --sp-primary-dark: #063a59;
    --sp-accent: #00a88f;
    --sp-warn: #b45309;
    --sp-ink: #1d2a36;
    --sp-muted: #5b6b7a;
    --sp-surface: #f4f8fb;
    --sp-radius: 16px;
    --sp-shadow: 0 10px 30px rgba(6, 58, 89, 0.10);
    color: var(--sp-ink);
    line-height: 1.6;
}

    .sp-page h1,
    .sp-page h2,
    .sp-page h3 {
        letter-spacing: -0.01em;
        line-height: 1.2;
    }

    .sp-page section[id] {
        scroll-margin-top: 90px;
    }

/* ---------- Hero ---------- */
.sp-hero {
    background: linear-gradient(135deg, var(--sp-primary-dark) 0%, var(--sp-primary) 55%, var(--sp-accent) 130%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

    .sp-hero::after {
        content: "";
        position: absolute;
        right: -120px;
        top: -120px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        pointer-events: none;
    }

    .sp-hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
    }

    .sp-hero .lead {
        color: rgba(255, 255, 255, 0.92);
        max-width: 44rem;
    }

.sp-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sp-btn {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.sp-btn-light {
    background: #fff;
    color: var(--sp-primary-dark);
    border: 0;
}

    .sp-btn-light:hover,
    .sp-btn-light:focus {
        background: #eaf4fb;
        color: var(--sp-primary-dark);
    }

.sp-btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
}

    .sp-btn-ghost:hover,
    .sp-btn-ghost:focus {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

/* Fact card in hero */
.sp-facts {
    background: #fff;
    color: var(--sp-ink);
    border-radius: var(--sp-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
}

    .sp-facts h2 {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--sp-primary-dark);
        margin-bottom: 1rem;
    }

.sp-fact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e6edf3;
}

    .sp-fact-row:last-of-type {
        border-bottom: 0;
    }

.sp-fact-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--sp-surface);
    color: var(--sp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sp-fact-value {
    font-weight: 700;
    color: var(--sp-primary-dark);
    white-space: nowrap;
}

.sp-note {
    font-size: 0.85rem;
    color: var(--sp-muted);
    margin: 1rem 0 0;
}

/* ---------- Sticky section nav ---------- */
.sp-jumpnav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e3ebf1;
}

    .sp-jumpnav .nav-link {
        color: var(--sp-primary-dark);
        font-weight: 600;
        font-size: 0.92rem;
        padding: 0.65rem 0.85rem;
        white-space: nowrap;
        border-radius: 999px;
    }

        .sp-jumpnav .nav-link:hover,
        .sp-jumpnav .nav-link:focus {
            background: var(--sp-surface);
        }

/* ---------- Generic sections ---------- */
.sp-section {
    padding: 4rem 0;
}

.sp-section-alt {
    background: var(--sp-surface);
}

.sp-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sp-accent);
    margin-bottom: 0.5rem;
}

.sp-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--sp-primary-dark);
    margin-bottom: 0.75rem;
}

.sp-lead {
    font-size: 1.1rem;
    color: var(--sp-muted);
    max-width: 52rem;
}

.sp-center {
    text-align: center;
}

    .sp-center .sp-lead {
        margin-left: auto;
        margin-right: auto;
    }

/* Answer box (for search snippets / quick answer) */
.sp-answer {
    border-left: 5px solid var(--sp-accent);
    background: #fff;
    border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
    box-shadow: var(--sp-shadow);
    padding: 1.5rem 1.75rem;
    font-size: 1.05rem;
}

    .sp-answer p:last-child {
        margin-bottom: 0;
    }

/* ---------- Cards ---------- */
.sp-card {
    background: #fff;
    border: 1px solid #e3ebf1;
    border-radius: var(--sp-radius);
    box-shadow: 0 4px 14px rgba(6, 58, 89, 0.06);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .sp-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--sp-shadow);
    }

    .sp-card h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--sp-primary-dark);
        margin-bottom: 0.5rem;
    }

    .sp-card p:last-child {
        margin-bottom: 0;
    }

.sp-card-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--sp-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.sp-card-featured {
    border: 2px solid var(--sp-accent);
}

.sp-pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--sp-surface);
    color: var(--sp-primary-dark);
    margin-bottom: 0.75rem;
}

.sp-pill-accent {
    background: var(--sp-accent);
    color: #fff;
}

.sp-muted-small {
    font-size: 0.875rem;
    color: var(--sp-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ---------- Download table ---------- */
.sp-download {
    background: #fff;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

.sp-download-head {
    background: linear-gradient(90deg, var(--sp-primary-dark), var(--sp-primary));
    color: #fff;
    padding: 1.5rem 1.75rem;
}

    .sp-download-head h3 {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 0.25rem;
    }

    .sp-download-head p {
        margin: 0;
        opacity: 0.92;
    }

.sp-download table {
    margin-bottom: 0;
}

.sp-download th,
.sp-download td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.sp-download thead th {
    background: #eef5fa;
    color: var(--sp-primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 0;
}

.sp-btn-download {
    background: var(--sp-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

    .sp-btn-download:hover,
    .sp-btn-download:focus {
        background: #008f7a;
        color: #fff;
    }

.sp-weeks {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--sp-muted);
    font-weight: 600;
}

.sp-disclaimer {
    font-size: 0.9rem;
    color: var(--sp-muted);
    margin-top: 1.25rem;
}

/* ---------- Upsell block ---------- */
.sp-upsell {
    background: linear-gradient(135deg, var(--sp-primary-dark), var(--sp-primary));
    color: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--sp-shadow);
}

    .sp-upsell h2 {
        font-weight: 800;
        font-size: clamp(1.5rem, 2.6vw, 2rem);
    }

    .sp-upsell p {
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 0;
    }

/* ---------- Checklist ---------- */
.sp-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sp-check li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 0.6rem;
    }

        .sp-check li::before {
            content: "\2713";
            position: absolute;
            left: 0;
            top: 0;
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 50%;
            background: var(--sp-accent);
            color: #fff;
            font-size: 0.8rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* ---------- Comparison table ---------- */
.sp-compare {
    background: #fff;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

    .sp-compare thead th {
        background: var(--sp-primary-dark);
        color: #fff;
        border: 0;
        padding: 1rem 1.25rem;
    }

    .sp-compare td,
    .sp-compare th[scope="row"] {
        padding: 0.9rem 1.25rem;
        vertical-align: middle;
    }

    .sp-compare tbody th {
        background: #f8fbfd;
        color: var(--sp-primary-dark);
    }

    .sp-compare .sp-current {
        background: #e6f7f4;
        font-weight: 700;
    }

/* ---------- Warning ---------- */
.sp-warning {
    background: #fff8eb;
    border: 1px solid #f3d9a4;
    border-left: 5px solid var(--sp-warn);
    border-radius: var(--sp-radius);
    padding: 1.25rem 1.5rem;
    color: #5c3b0b;
}

    .sp-warning strong {
        color: var(--sp-warn);
    }

/* ---------- Related links ---------- */
.sp-related {
    display: block;
    text-decoration: none;
    color: var(--sp-ink);
    height: 100%;
}

    .sp-related:hover,
    .sp-related:focus {
        color: var(--sp-ink);
    }

        .sp-related:hover .sp-card,
        .sp-related:focus .sp-card {
            transform: translateY(-3px);
            box-shadow: var(--sp-shadow);
        }

    .sp-related .sp-card h3 {
        color: var(--sp-primary);
    }

.sp-related-arrow {
    font-weight: 700;
    color: var(--sp-accent);
}

/* ---------- FAQ ---------- */
.sp-faq .accordion-item {
    border: 1px solid #e3ebf1;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.sp-faq .accordion-button {
    font-weight: 700;
    color: var(--sp-primary-dark);
    background: #fff;
    padding: 1.1rem 1.25rem;
}

    .sp-faq .accordion-button:not(.collapsed) {
        background: var(--sp-surface);
        color: var(--sp-primary-dark);
        box-shadow: none;
    }

    .sp-faq .accordion-button:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 168, 143, 0.25);
    }

.sp-faq .accordion-body {
    color: var(--sp-ink);
    padding: 0 1.25rem 1.25rem;
}

/* ---------- Ads ---------- */
.sp-ad {
    max-width: 960px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    min-height: 90px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .sp-hero {
        padding: 2.5rem 0 3rem;
    }

    .sp-section {
        padding: 3rem 0;
    }

    .sp-upsell {
        padding: 1.75rem;
    }

    .sp-download th,
    .sp-download td {
        padding: 0.8rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-card,
    .sp-related .sp-card {
        transition: none;
    }
}
