/* Vereinstakt – Marketing-Seiten im Stil „Flutlicht“: Licht von oben, Bilder der App, ein Raster aus feinen Linien und
   der Smaragd als einziger Akzent. Nur Farb-Tokens aus site.css, damit helles und dunkles Design dieselben Regeln teilen. */

:root {
    --wide: 1280px;
    --pad: clamp(16px, 4vw, 48px);
    --glow: color-mix(in srgb, var(--accent) 14%, transparent);
    --shadow: 0 40px 80px -40px rgb(4 10 24 / 0.35);
    --stretch: 86%;
}

:root[data-theme="dark"] {
    --shadow: 0 40px 90px -30px rgb(0 0 0 / 0.8);
}

.marketing main {
    overflow-x: clip;
}

/* Kopfleiste und Fuß auf denselben Rändern wie der Inhalt. */
.marketing .bar,
.marketing .site-foot {
    padding-inline: max(var(--pad), (100% - var(--wide)) / 2 + var(--pad));
}

.accent {
    color: var(--accent);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: var(--step-small);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lead {
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: var(--step-lead);
    line-height: 1.45;
}

.text-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.text-link::after {
    content: " →";
}

@media (hover: hover) and (pointer: fine) {
    .text-link:hover {
        text-decoration: underline;
    }
}

/* ---------- Abschnitte ---------- */

.block {
    max-width: calc(var(--wide) + 2 * var(--pad));
    margin: 0 auto;
    padding: var(--section) var(--pad);
    border-top: 1px solid var(--line);
}

.block h2,
.close h2 {
    font-size: var(--step-head);
    font-weight: 700;
    font-stretch: var(--stretch);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 18px;
}

.block-head {
    margin-bottom: clamp(32px, 4vw, 56px);
}

/* ---------- Einstieg: Licht von oben, die App läuft ins Dunkel aus ---------- */

.hero {
    position: relative;
    padding: clamp(28px, 5vw, 64px) var(--pad) 0;
    background: radial-gradient(70% 55% at 50% 0%, var(--glow), transparent 70%);
}

.hero-text {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
    max-width: var(--wide);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 1.2rem + 7.2vw, 7.25rem);
    font-weight: 750;
    font-stretch: 84%;
    letter-spacing: -0.035em;
    line-height: 0.92;
}

.hero h1 .accent {
    display: block;
}

.hero-side p {
    margin-bottom: 24px;
    color: var(--ink-soft);
    font-size: var(--step-lead);
    line-height: 1.45;
}

.hero-stage {
    position: relative;
    max-width: var(--wide);
    margin: clamp(40px, 6vw, 72px) auto 0;
}

.hero-shot {
    width: 84%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-shot img,
.hero-phone img {
    width: 100%;
    height: auto;
}

.hero-phone {
    position: absolute;
    right: 1%;
    top: 12%;
    width: 21%;
    margin: 0;
    filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45));
}

.hero-stage::after {
    content: "";
    position: absolute;
    left: calc(var(--pad) * -1);
    right: calc(var(--pad) * -1);
    bottom: -1px;
    height: 34%;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-text {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-shot {
        width: 92%;
    }

    .hero-stage {
        padding-bottom: 10vw;
    }

    .hero-phone {
        width: 25%;
        top: 6%;
        right: 0;
    }
}

/* ---------- Zahlenleiste ---------- */

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: var(--wide);
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.facts > div {
    padding: 28px var(--pad) 32px;
    border-left: 1px solid var(--line);
}

.facts > div:first-child {
    border-left: 0;
}

.facts dt {
    margin-bottom: 4px;
    font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
    font-weight: 700;
    font-stretch: var(--stretch);
    letter-spacing: -0.02em;
}

.facts dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--step-small);
}

@media (max-width: 760px) {
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts > div:nth-child(3) {
        border-left: 0;
    }

    .facts > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

/* ---------- Eine Woche im Verein: links die Rolle, rechts der Plan als Stück App ---------- */

.week-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.week-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.ctl {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.ctl input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ctl span {
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink-soft);
    font-size: var(--step-small);
    font-weight: 500;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ctl input:checked + span {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: none;
    font-weight: 600;
}

.ctl input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.ctl-switch span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
    vertical-align: 1px;
}

.ctl-switch input:checked + span::before {
    background: currentColor;
}

@media (hover: hover) and (pointer: fine) {
    .ctl:hover input:not(:checked) + span {
        color: var(--ink);
        box-shadow: inset 0 0 0 1px var(--ink-soft);
    }
}

.week-view {
    padding: 8px clamp(18px, 2.4vw, 28px) 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.week-who {
    padding: 16px 0 10px;
    color: var(--ink-soft);
    font-size: var(--step-small);
}

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

.day {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.day.is-new {
    animation: day-in 420ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 50ms);
}

@keyframes day-in {
    from { opacity: 0; transform: translateY(8px); }
}

.day-name {
    color: var(--accent);
    font-size: var(--step-small);
    font-weight: 700;
    padding-top: 2px;
}

.day-body {
    display: grid;
    gap: 3px;
    justify-items: start;
}

.day-body strong {
    font-weight: 600;
}

.day-body span {
    color: var(--ink-soft);
    font-size: var(--step-small);
}

.day-act {
    margin-top: 8px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font: inherit;
    font-size: var(--step-small);
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.day-act:active {
    transform: scale(0.97);
}

.day-act[aria-pressed="true"] {
    background: var(--accent);
    color: var(--accent-ink);
}

.week-hint {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: var(--step-small);
}

@media (max-width: 900px) {
    .week-panel {
        grid-template-columns: 1fr;
    }
}

/* ---------- Für alle im Verein: Rollen im Linienraster, das Platztor als Stimmungsbild ---------- */

.roles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    counter-reset: role;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.roles li {
    padding: 26px 24px 30px;
    background: var(--bg);
    counter-increment: role;
}

.roles li::before {
    content: counter(role, decimal-leading-zero);
    color: var(--accent);
    font-size: var(--step-small);
    font-weight: 600;
}

.roles h3 {
    margin: 32px 0 10px;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.roles p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.mood {
    position: relative;
    height: clamp(260px, 30vw, 380px);
    margin: 28px 0 0;
    overflow: hidden;
    border-radius: 14px;
}

.mood img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.mood::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgb(7 13 26 / 0.92) 0%, rgb(7 13 26 / 0.55) 45%, rgb(7 13 26 / 0) 75%);
}

.mood figcaption {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 30rem;
    padding: 0 clamp(20px, 3vw, 40px);
    color: #eef3f6;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    font-weight: 500;
    line-height: 1.35;
}

.mood figcaption .accent {
    color: #34d399;
}

@media (max-width: 1000px) {
    .roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .mood::before {
        background: linear-gradient(0deg, rgb(7 13 26 / 0.92) 10%, rgb(7 13 26 / 0.3) 70%);
    }

    .mood figcaption {
        align-items: flex-end;
        padding-bottom: 24px;
    }
}

/* ---------- Was drin ist: abwechselnde Zeilen ---------- */

.feat {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(32px, 4vw, 52px) 0;
    border-top: 1px solid var(--line);
}

.block-head + .feat {
    border-top: 0;
    padding-top: 0;
}

.feat.flip {
    grid-template-columns: 1.25fr 0.75fr;
}

.feat.flip .feat-text {
    order: 2;
}

.feat h3 {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    font-stretch: var(--stretch);
    letter-spacing: -0.02em;
}

.feat p {
    margin-bottom: 14px;
    color: var(--ink-soft);
}

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

.feat li {
    position: relative;
    padding: 5px 0 5px 22px;
}

.feat li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 10px;
    height: 2px;
    background: var(--accent);
}

.feat-shot {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feat-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(24px, 3vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.5;
}

.chips strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: var(--step-body);
    font-weight: 600;
}

@media (max-width: 900px) {
    .feat,
    .feat.flip {
        grid-template-columns: 1fr;
    }

    .feat.flip .feat-text {
        order: 0;
    }

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

/* ---------- Video ---------- */

.film {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.film-video {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #070d1a;
}

.film-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.film h2 {
    font-size: var(--step-title);
}

.film .lead {
    font-size: var(--step-body);
}

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

/* ---------- Start: der Fortschrittsbalken, Breiten nach dem Aufwand ---------- */

.steps-bar {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps-bar li {
    flex: var(--grow) 1 0;
    min-width: 0;
    padding-top: 18px;
    border-top: 3px solid var(--line);
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.5;
}

.steps-bar li:last-child {
    border-top-color: var(--accent);
}

.steps-bar strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: var(--step-body);
    font-weight: 600;
}

@media (max-width: 760px) {
    .steps-bar {
        flex-direction: column;
        gap: 22px;
    }
}

/* ---------- Abschluss: Licht von unten ---------- */

.close {
    padding: var(--section) var(--pad);
    border-top: 1px solid var(--line);
    background: radial-gradient(50% 70% at 50% 100%, var(--glow), transparent 70%);
    text-align: center;
}

.close h2 {
    font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
}

.close .lead {
    margin: 0 auto 32px;
}

.close .actions {
    justify-content: center;
}

.news-teaser {
    margin-top: clamp(24px, 3vw, 40px);
    max-width: 68ch;
    color: var(--ink-soft);
    font-size: var(--step-body);
    line-height: 1.5;
}

.news-teaser strong { color: var(--accent); }
.news-teaser a { color: var(--ink); font-weight: 600; }
