/* Startseite */

body.is-home .app-main {
    min-height: 0;
}

body.is-home .app-footer {
    margin-top: 0;
}

.home {
    overflow-x: clip;
}

/* ---- Stage (Karte full-bleed, Text im Raster) ---- */
.stage {
    position: relative;
    width: 100%;
    max-width: none;
    height: min(62vh, 620px);
    min-height: 500px;
    margin: 0;
    border-radius: 0;
    border: 0;
    overflow: hidden;
    color: var(--color-text);
}

.stage__ui {
    position: relative;
    z-index: 2;
    width: min(var(--container-max), calc(100% - var(--page-pad-left) - var(--page-pad-right)));
    max-width: var(--container-max);
    height: 100%;
    margin-inline: auto;
    pointer-events: none;
}

.stage__map,
.stage__fallback {
    position: absolute;
    inset: 0;
}

.stage__canvas {
    width: 100%;
    height: 100%;
}

.stage .maplibregl-map {
    width: 100%;
    height: 100%;
}

.stage__fallback {
    background:
        radial-gradient(ellipse 70% 50% at 70% 40%, rgba(165, 200, 216, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(204, 176, 235, 0.4) 0%, transparent 55%),
        #d9e6ee;
}

.stage__blur,
.stage__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.stage__blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(
        90deg,
        #000 0%,
        #000 28%,
        rgba(0, 0, 0, 0.4) 46%,
        transparent 62%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        #000 0%,
        #000 28%,
        rgba(0, 0, 0, 0.4) 46%,
        transparent 62%
    );
}

.stage__veil {
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 0.48) 22%,
            rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.05) 52%,
            transparent 62%);
}

.stage__copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    padding: clamp(1.5rem, 4vh, 2.25rem) var(--card-pad) 2.5rem;
    pointer-events: none;
}

.stage__copy a,
.stage__copy .btn {
    pointer-events: auto;
}

.stage__place {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: var(--space-4);
    padding: 0.3em 0.8em;
    border-radius: var(--radius-pill);
    background: var(--color-bg-2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
    color: var(--color-text);
}

.stage__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(46, 158, 107, 0.22);
    animation: stage-pulse 2.2s ease-in-out infinite;
}

@keyframes stage-pulse {
    50% { transform: scale(0.85); opacity: 0.7; }
}

.stage__title {
    font-size: clamp(2.75rem, 6.5vw, 5.25rem);
    font-weight: var(--font-weight-black);
    line-height: 0.94;
    letter-spacing: var(--letter-display);
    margin-bottom: var(--space-4);
    color: #000;
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.9);
}

.stage__title em {
    font-style: italic;
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
}

.stage__lede {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: var(--line-height-base);
    color: rgba(0, 0, 0, 0.8);
    max-width: 34ch;
    margin-bottom: var(--space-5);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
}

.stage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.stage__actions .btn--ghost {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.stage__actions .btn--ghost:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.stage__count {
    font-size: var(--font-size-sm);
    color: rgba(0, 0, 0, 0.55);
}

.stage__count strong {
    color: var(--color-text);
    font-feature-settings: 'tnum';
}

.stage__feed {
    position: absolute;
    z-index: 2;
    right: var(--card-pad);
    bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: min(20.5rem, 36%);
    list-style: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.stage-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-line);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.stage-chip:hover {
    transform: translateX(-4px);
    box-shadow: var(--glass-shadow-lg);
}

.stage-chip__when {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--color-primary);
}

.stage-chip__title {
    font-weight: var(--font-weight-semi);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-chip__meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-soft);
}

.stage__more {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
    color: var(--color-text-soft);
    text-decoration: none;
}

.stage__more:hover { color: var(--color-text); }

.stage .maplibregl-ctrl-top-right {
    top: 12px;
    right: 12px;
}

/* ---- Timeline ---- */
.now,
.crew {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-y) var(--page-pad-right) var(--section-y-sm) var(--page-pad-left);
}

.now__head,
.crew__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.now__kicker {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.now__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: var(--font-weight-black);
    letter-spacing: var(--letter-display);
    line-height: var(--line-height-tight);
}

.now__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 2rem;
    padding: 0 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-line-2);
    background: #fff;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semi);
    letter-spacing: var(--letter-wide);
    color: var(--color-text-2);
    text-decoration: none;
    white-space: nowrap;
}

.now__all:hover {
    border-color: var(--color-line-3);
    color: var(--color-text);
    background: #fff;
}

.now__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-line);
}

.now-row {
    --now-hover-fade: clamp(2.5rem, 6.5vw, 5rem);
    position: relative;
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    gap: var(--space-5);
    align-items: center;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--color-line);
    text-decoration: none;
    color: inherit;
}

.now-row::before {
    content: '';
    position: absolute;
    inset: 0 calc(-1 * var(--now-hover-fade));
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.04) var(--now-hover-fade),
        rgba(0, 0, 0, 0.04) calc(100% - var(--now-hover-fade)),
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease-out);
}

.now-row:hover::before,
.now-row:focus-visible::before {
    opacity: 1;
}

.now-row__date {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.now-row__wd {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.now-row__day {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    letter-spacing: var(--letter-tight);
}

.now-row__time {
    font-size: var(--font-size-sm);
    color: var(--color-text-2);
    font-feature-settings: 'tnum';
}

.now-row__body { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }

.now-row__type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.15em 0.65em;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.now-row__type .bike-type-icon { width: 14px; height: 14px; }

.now-row__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.now-row__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-soft);
}

.now-row__people {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    font-feature-settings: 'tnum';
    line-height: 1;
}

.now-row__people span {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--color-text-soft);
    margin-top: 0.25rem;
}

/* ---- Discipline lanes ---- */
.lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    max-width: var(--container-max);
    margin: var(--section-y-sm) auto 0;
    padding-inline: var(--page-pad-left) var(--page-pad-right);
}

.lane {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    min-height: 0;
    padding: var(--card-pad);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-line);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.lane:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow);
}

.lane--road { background: var(--color-bg-sky); }
.lane--gravel { background: var(--color-bg-blush); }
.lane--mtb { background: var(--color-bg-lilac); }

.lane__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: var(--space-1);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
}

.lane__title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: var(--font-weight-black);
    letter-spacing: var(--letter-display);
    line-height: var(--line-height-tight);
    margin-bottom: 0;
    max-width: none;
}

.lane__text {
    color: var(--color-text-2);
    max-width: none;
    margin-bottom: var(--space-2);
    flex: 1;
}

.lane__go {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    color: var(--color-primary);
}

.lane__bike {
    width: 20px;
    height: auto;
    margin: 0;
    opacity: 0.95;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out);
}

.lane:hover .lane__bike {
    transform: translateX(2px);
}

/* ---- Clubs ---- */
.crew .club-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crew .club-grid > li { min-width: 0; }
.crew .club-grid .club-card { height: 100%; }

/* ---- Closer ---- */
.close {
    max-width: var(--container-max);
    margin: var(--section-y-sm) auto var(--section-y);
    padding-inline: var(--page-pad-left) var(--page-pad-right);
    padding-block: 3.75rem 5.75rem;
    background: transparent;
    color: inherit;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.close__inner {
    position: relative;
    overflow: visible;
    max-width: none;
    margin: 0;
    min-height: 22.5rem;
    padding: clamp(2rem, 5vw, 3.25rem);
    padding-right: min(48%, 28rem);
    border-radius: var(--radius-2xl);
    background: var(--color-bg-dark);
    color: #fff;
}

.close__copy {
    position: relative;
    z-index: 1;
    max-width: 36rem;
}

.close__visual {
    position: absolute;
    right: 4rem;
    bottom: -26%;
    height: 158%;
    width: auto;
    z-index: 2;
    pointer-events: none;
}

.close__visual img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.32));
}

.close__kicker {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-wider);
    text-transform: uppercase;
    color: var(--color-yellow);
    margin-bottom: var(--space-3);
}

.close__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-black);
    letter-spacing: var(--letter-display);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-3);
}

.close__text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.72);
    max-width: 42ch;
    margin-bottom: var(--space-6);
}

.close__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.close__ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.close .btn--primary {
    background: #fff;
    color: var(--color-bg-dark);
    border-color: #fff;
}

.close .btn--primary:hover {
    background: var(--color-bg-sky);
    border-color: var(--color-bg-sky);
}

.close .btn--ghost:hover {
    background: #fff;
    color: var(--color-bg-dark);
    border-color: #fff;
}

/* ---- Motion ---- */
@media (prefers-reduced-motion: no-preference) {
    .stage__title,
    .stage__lede,
    .stage__actions,
    .stage__place,
    .stage__count {
        animation: stage-in 0.85s var(--ease-out) both;
    }
    .stage__place { animation-delay: 0.05s; }
    .stage__title { animation-delay: 0.12s; }
    .stage__lede { animation-delay: 0.22s; }
    .stage__actions { animation-delay: 0.32s; }
    .stage__count { animation-delay: 0.4s; }

    .stage-chip {
        animation: stage-chip-in 0.7s var(--ease-out) both;
    }
    .stage__feed li:nth-child(1) .stage-chip { animation-delay: 0.45s; }
    .stage__feed li:nth-child(2) .stage-chip { animation-delay: 0.55s; }
    .stage__feed li:nth-child(3) .stage-chip { animation-delay: 0.65s; }
}

@keyframes stage-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes stage-chip-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .stage__live { animation: none; }
    .lane:hover .lane__bike { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .stage__feed {
        width: min(18rem, 42vw);
    }

    .close__inner {
        padding-right: min(42%, 22rem);
        min-height: 18rem;
    }

    .close__visual {
        right: 4rem;
        height: 140%;
        bottom: -20%;
    }
}

@media (max-width: 760px) {
    .stage {
        height: auto;
        min-height: 0;
        max-height: none;
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }

    .stage__ui {
        height: auto;
        width: min(var(--container-max), calc(100% - var(--page-pad-left) - var(--page-pad-right)));
    }

    .stage__map {
        position: relative;
        height: 46vh;
        min-height: 260px;
    }

    .stage__veil {
        background: none;
    }

    .stage__blur {
        display: none;
    }

    .stage__copy {
        margin: 0;
        padding: var(--card-pad);
        max-width: none;
        background: var(--color-bg-3);
    }

    .stage__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }

    .stage__feed {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        padding: 0 var(--card-pad) var(--card-pad);
        pointer-events: auto;
    }

    .stage__more { display: none; }

    .stage .maplibregl-ctrl-top-right { display: none; }

    .now-row {
        grid-template-columns: 4.6rem minmax(0, 1fr);
        gap: var(--space-3);
    }

    .now-row__people { display: none; }

    .lanes,
    .crew .club-grid { grid-template-columns: 1fr; }

    .lane,
    .close__inner { border-radius: var(--radius-lg); }

    .close {
        padding-block: 0 7.5rem;
    }

    .close__inner {
        min-height: 0;
        padding-right: clamp(2rem, 5vw, 3.25rem);
        padding-bottom: 8.75rem;
    }

    .close__visual {
        right: 2.5rem;
        bottom: -34%;
        height: 16.75rem;
    }

    .stage__actions,
    .close__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stage__actions .btn,
    .close__actions .btn { width: 100%; }
}
