/* ===========================================
   R4P – HOME PAGE SECTIONS
   Hero, How it works, Peace band, Store teaser, Slogan, Mission, Leaderboard, CTA
   =========================================== */

/* ====== HERO ====== */
.hero {
    position: relative;
    background: var(--c-green);
    color: var(--c-white);
    min-height: 100vh;
    padding: calc(var(--nav-safe-top, 100px) + 48px) 0 80px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0 0 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(0, 0, 0, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats__item {
    padding: 20px var(--gutter);
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats__item:last-child {
    border-right: none;
}

.hero-stats__value {
    display: block;
    font-family: var(--ff-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--c-accent);
    line-height: 1.1;
}

.hero-stats__label {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.how-step {
    padding: 28px 20px;
    border: 1px solid rgba(11, 15, 11, 0.1);
    border-radius: var(--r-md);
    text-align: center;
}

.how-step__icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--c-accent);
    font-weight: 800;
}

.how-step h3 {
    font-size: 0.95rem;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.how-step p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--c-muted);
    line-height: 1.5;
}

.how__strava-box {
    margin-top: 40px;
    padding: 32px;
    background: #0b0f0b;
    color: #ffffff;
    border-radius: var(--r-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.how__strava-box p {
    margin: 0;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.78);
}

.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero__title {
    font-size: clamp(3.6rem, 14vw, 13rem);
    color: var(--c-accent);
    line-height: 0.88;
    letter-spacing: 0.005em;
    margin-bottom: 20px;
    text-shadow: 0 0 60px rgba(230, 255, 77, 0.12);
}

.hero__logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(8px, 2vh, 20px) auto clamp(20px, 4vh, 36px);
    padding: 0 16px;
    max-width: min(420px, 88vw);
}

.hero__logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(160px, 28vh, 280px);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.08));
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    letter-spacing: 0.02em;
}

.hero__kicker {
    font-family: var(--ff-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin: 0 0 clamp(12px, 2vh, 20px);
    position: relative;
    z-index: 2;
}

.hero__prose {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.hero__intro {
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.hero__intro p {
    margin: 0 0 1em;
}

.hero__intro p:last-child {
    margin-bottom: 0;
}

.hero__cta-block {
    margin-top: 36px;
    padding-top: 32px;
}

.hero__cta-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--c-accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1.05;
}

.hero__cta-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 24px;
}

.hero__cta-text p {
    margin: 0 0 0.85em;
}

.hero__cta-text p:last-child {
    margin-bottom: 0;
}

.hero__cta-btn {
    width: 100%;
    max-width: 320px;
}

.content-rule {
    border: none;
    height: 1px;
    margin: 36px 0 0;
    background: rgba(255, 255, 255, 0.14);
}

.prose {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.prose p {
    margin: 0 0 1em;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose--on-light {
    color: #2d3a33;
}

.section--light {
    background: var(--c-white);
    color: var(--c-text-dark);
}

/* ====== HOW (So funktioniert es) ====== */
.how {
    padding: 100px 0;
}

.how__body {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.how__btn {
    margin-top: 28px;
}

/* ====== FRIEDENSBAND ====== */
.peace-band {
    padding: 100px 0;
}

.peace-band__body {
    max-width: 640px;
    margin: 0 auto;
}

/* ====== HOME STORE TEASER ====== */
.home-store {
    padding: 100px 0;
}

.home-store__body {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.home-store__btn {
    margin-top: 28px;
}

/* ====== SLOGAN STRIP ====== */
.slogan-strip {
    padding: 72px 0;
    text-align: center;
}

.slogan-strip__inner {
    max-width: 720px;
    margin: 0 auto;
}

.slogan-strip__line {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 10px;
    line-height: 1.15;
}

.slogan-strip__line--accent {
    color: var(--c-accent);
    margin-bottom: 0;
    margin-top: 8px;
}

/* ====== CTA erweitert ====== */
.cta__actions {
    display: flex;
    justify-content: center;
    margin: 28px 0 8px;
}

.cta__newsletter-label {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.hero__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    max-width: 700px;
    margin: 0 auto;
}

.info-block {
    text-align: center;
}

.info-block__title {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--c-accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.info-block p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    margin-bottom: 8px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

/* ====== WORKOUT PLAN GUIDE ====== */
.workout {
    background: var(--c-white);
    padding: 70px 0 90px;
}

.workout__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.workout__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.workout__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--c-black);
    border-radius: 50%;
}

.workout__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--c-black);
    letter-spacing: -0.005em;
}

.workout__right {
    max-width: 460px;
}

.workout__right p {
    color: #2D3A33;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* ====== MISSION ====== */
.mission {
    padding: 120px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    padding: 36px 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.stat:hover {
    border-color: var(--c-accent);
    transform: translateY(-4px);
}

.stat__num {
    font-family: var(--ff-display);
    font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat__label {
    font-family: var(--ff-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* ====== LEADERBOARD (Kilometer) ====== */
.leaderboard {
    background: var(--c-off-white);
    padding: 120px 0;
}

.leaderboard__toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.leaderboard__tabs {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    background: var(--c-white);
    padding: 6px;
    border-radius: var(--r-pill);
    border: 1.5px solid #E8E8E0;
    gap: 6px;
}

.leaderboard__tabs-thumb {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: var(--r-pill);
    background: var(--c-green);
    pointer-events: none;
    will-change: transform, width, height;
    transition:
        transform 0.4s var(--ease-out),
        width 0.4s var(--ease-out),
        height 0.4s var(--ease-out);
}

.leaderboard__tab {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 22px;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.3s var(--ease-out);
}

.leaderboard__tab:hover:not(.is-active) {
    color: var(--c-text-dark);
}

.leaderboard__tab.is-active {
    color: var(--c-accent);
}

.leaderboard__panel {
    max-width: 720px;
    margin: 0 auto;
}

.leaderboard__table-wrap {
    background: var(--c-white);
    border-radius: var(--r-lg);
    border: 1.5px solid #E8E8E0;
    overflow: auto;
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.leaderboard__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leaderboard__table thead {
    background: var(--c-black);
    color: var(--c-white);
}

.leaderboard__table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.leaderboard__table th.leaderboard__th-km {
    text-align: right;
}

.leaderboard__table td {
    padding: 16px 20px;
    border-bottom: 1px solid #EEE;
    vertical-align: middle;
}

.leaderboard__table tbody tr:last-child td {
    border-bottom: none;
}

.leaderboard__rank {
    width: 72px;
}

.leaderboard__rank-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--r-pill);
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--c-off-white);
    color: var(--c-text-dark);
}

.leaderboard__row--top .leaderboard__rank-inner {
    background: var(--c-accent);
    color: var(--c-green);
}

.leaderboard__name {
    font-weight: 600;
    color: var(--c-text-dark);
}

.leaderboard__km {
    text-align: right;
    font-family: var(--ff-display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--c-green);
}

.leaderboard__note {
    margin-top: 18px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--c-muted);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== CTA / NEWSLETTER ====== */
.cta {
    padding: 120px 0;
    text-align: center;
}

.cta__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.cta .section-title {
    font-size: clamp(3rem, 9vw, 7rem);
    margin-bottom: 24px;
}

.newsletter {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 36px auto 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--c-line);
    border-radius: var(--r-pill);
}

.newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 18px;
    color: var(--c-white);
    font-size: 0.95rem;
    outline: none;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter__hint {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--c-accent);
    min-height: 1.2em;
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
    .hero {
        padding: calc(var(--nav-safe-top, 88px) + 32px) 0 60px;
        min-height: auto;
    }
    .workout__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero__info {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .mission,
    .how,
    .peace-band,
    .home-store,
    .slogan-strip,
    .leaderboard,
    .cta {
        padding: 80px 0;
    }
    .newsletter {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    .newsletter input {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--c-line);
        border-radius: var(--r-pill);
        padding: 14px 22px;
    }
    .stat {
        padding: 28px 12px;
    }
    .leaderboard__table th,
    .leaderboard__table td {
        padding: 12px 14px;
    }
    .leaderboard__km {
        font-size: 1rem;
    }
}
