/**
 * LikeDennis — Startseite
 * Umsetzung des Design-Bundles: Vollbild, kein Scrollen, alles skaliert
 * über clamp()/vh/vw. Akzentfarbe zentral über --ld-accent austauschbar.
 */

:root {
    --ld-accent: #FF5C5C;

    --ld-bg: #0a0a0c;
    --ld-text: #f2f2f0;
    --ld-text-2: #d6d6dc;
    --ld-text-3: #b9b9c0;
    --ld-dim: #8b8b93;
    --ld-off: #66666e;
    --ld-off-2: #55555c;
    --ld-tab-off: #77777f;
    --ld-line: rgba(255, 255, 255, .08);
    --ld-live: #ff3b3b;
    --ld-twitch: #a970ff;
    --ld-cancelled: #9a5f63;

    --ld-ease: cubic-bezier(.22, 1, .36, 1);
    --ld-topspace: min(200px, 20vh);
}

/* ============================================================
   Grundlayout
   ============================================================ */

html, body {
    margin: 0;
    padding: 0;
    background: var(--ld-bg);
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--ld-text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ld-text); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--ld-accent); color: var(--ld-bg); }

.ld-root {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: var(--ld-bg);
    color: var(--ld-text);
}

[hidden] { display: none !important; }

.ld-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Hintergrund
   ============================================================ */

.ld-bg {
    position: absolute;
    inset: -8%;
    will-change: transform;
    transition: transform 1.2s var(--ld-ease);
}

.ld-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 30% 20%, #1c1430 0%, transparent 60%),
        radial-gradient(50% 70% at 75% 75%, #101a26 0%, transparent 65%),
        var(--ld-bg);
    animation: ldDrift 26s ease-in-out infinite;
}

.ld-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.ld-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(6, 6, 8, .82) 100%);
    pointer-events: none;
}

/* ============================================================
   Ecken-Links (LOGIN / DASHBOARD / LOGOUT / IMPRESSUM)
   ============================================================ */

.ld-corner {
    position: absolute;
    z-index: 3;
    display: flex;
    gap: clamp(16px, 2.4vw, 26px);
    opacity: 1;
    transition: opacity .45s ease;
    animation: ldIn 1.2s .4s backwards;
}

.ld-corner-top { top: clamp(18px, 3.4vh, 30px); right: clamp(20px, 3.4vw, 36px); }
.ld-corner-bottom { bottom: clamp(18px, 3.4vh, 30px); }
.ld-corner-right { right: clamp(20px, 3.4vw, 36px); }
.ld-corner-left { left: clamp(20px, 3.4vw, 36px); }

.ld-corner-link {
    font-size: 11px;
    letter-spacing: .3em;
    /* trailing letter-spacing ausgleichen, damit der Text optisch bündig sitzt */
    margin-right: -.3em;
    color: var(--ld-dim);
    padding: 4px 0;
    transition: color .4s;
}

.ld-corner-link:hover { color: #fff; }
.ld-corner-bottom .ld-corner-link { color: var(--ld-off-2); opacity: .75; }

/* ============================================================
   Vertikale Struktur
   ============================================================ */

.ld-stack {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ld-spacer { height: var(--ld-topspace); flex: none; }

.ld-tabs {
    display: flex;
    gap: clamp(22px, 5vw, 46px);
    transition: opacity .5s ease, transform .55s var(--ld-ease);
    animation: ldUp .9s var(--ld-ease) backwards;
}

.ld-tab {
    font-size: 14px;
    letter-spacing: .28em;
    margin-right: -.28em;
    font-weight: 700;
    color: var(--ld-tab-off);
    border-bottom: 1px solid transparent;
    /* symmetrischer Rahmen, damit der Cursor mittig sitzt */
    border-top: 1px solid transparent;
    padding: 6px 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .4s, border-bottom-color .3s;
}

.ld-tab:hover { color: #fff; }
.ld-tab.is-active { color: #fff; border-bottom-color: #fff; }

.ld-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4d;
    animation: ldDot 1.6s ease-in-out infinite;
}

.ld-main {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 0;
    padding: clamp(10px, 2vh, 24px) 0;
    transition: opacity .45s ease;
}

.ld-footer {
    flex: none;
    display: flex;
    gap: clamp(22px, 4vw, 40px);
    padding-bottom: clamp(10px, 2.4vh, 32px);
    animation: ldIn 1.4s .6s both;
}

.ld-social {
    font-size: 9px;
    letter-spacing: .32em;
    color: var(--ld-off);
    transition: color .4s;
}

.ld-social:hover { color: #fff; }
.ld-social.is-accent { color: var(--ld-accent); }

/* Öffnen-Sequenz für Login/Impressum: Tabs nach oben raus, Rest ausblenden */
.ld-root.is-leaving .ld-tabs { opacity: 0; transform: translateY(-70px); }
.ld-root.is-leaving .ld-main,
.ld-root.is-leaving .ld-footer,
.ld-root.is-leaving .ld-corner { opacity: 0; }

/* ============================================================
   Wiederkehrende Bausteine
   ============================================================ */

/* Textlink mit Grundlinie; beim Hover wächst die Akzentlinie von links */
.ld-underline {
    padding-bottom: 5px;
    background-image:
        linear-gradient(rgba(242, 242, 240, .3), rgba(242, 242, 240, .3)),
        linear-gradient(var(--ld-accent), var(--ld-accent));
    background-repeat: no-repeat;
    background-position: left bottom, left bottom;
    background-size: 100% 1px, 0% 1px;
    transition: background-size .6s var(--ld-ease), letter-spacing .6s var(--ld-ease);
}

.ld-underline:hover { background-size: 0% 1px, 100% 1px; }

/* Erfasst der Fadenkreuz-Cursor ein Ziel, verschwinden dessen eigene Linien —
   der Rahmen des Cursors übernimmt die Markierung. */
.ld-underline.is-cursor-locked { background-size: 0% 1px, 0% 1px; }
.ld-tab.is-active.is-cursor-locked { border-bottom-color: transparent; }

.ld-back {
    font-size: 10px;
    letter-spacing: .3em;
    margin-right: -.3em;
    color: var(--ld-dim);
    padding: 4px 0;
    transition: color .4s;
    animation: ldUp .6s var(--ld-ease) both;
}

.ld-back:hover { color: #fff; }

.ld-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* Auf-/Zuklappen exakt auf Inhaltshöhe — nie über geschätzte max-height */
.ld-collapse {
    display: grid;
    grid-template-rows: 0fr;
    justify-items: center;
    width: 100%;
    transition: grid-template-rows .6s var(--ld-ease), opacity .45s ease;
}

.ld-collapse.is-open { grid-template-rows: 1fr; }
.ld-collapse > * { overflow: hidden; min-height: 0; }

/* ============================================================
   LIVE — live
   ============================================================ */

.ld-live-on {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    margin-top: clamp(6px, 1.6vh, 18px);
    animation: ldUp .8s var(--ld-ease) both;
}

.ld-player-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ld-player-box {
    height: 100%;
    aspect-ratio: 16 / 9;
    max-width: 88vw;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 0 40px color-mix(in srgb, var(--ld-accent) 24%, transparent),
        0 0 120px color-mix(in srgb, var(--ld-accent) 14%, transparent),
        0 24px 80px rgba(0, 0, 0, .55);
}

.ld-player {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Platzhalter vor der Einwilligung. Bewusst ohne jede externe Ressource:
   kein Vorschaubild von Twitch, keine fremden Schriften, nur eigenes CSS. */
.ld-consent {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vh, 18px);
    text-align: center;
    padding: clamp(16px, 3vh, 32px);
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(255, 255, 255, .05) 0%, transparent 70%),
        rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;
}

.ld-consent-channel {
    font-size: clamp(18px, 3.2vh, 30px);
    font-weight: 700;
    letter-spacing: .18em;
    margin-right: -.18em;
    color: var(--ld-text);
}

.ld-consent-note {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(11px, 1.6vh, 14px);
    font-weight: 300;
    line-height: 1.7;
    color: var(--ld-text-3);
    text-wrap: pretty;
}

.ld-consent-link {
    color: var(--ld-accent);
    border-bottom: 1px solid color-mix(in srgb, var(--ld-accent) 45%, transparent);
    transition: border-bottom-color .4s, color .4s;
}

.ld-consent-link:hover { color: #fff; border-bottom-color: #fff; }

.ld-consent-btn {
    font-size: clamp(11px, 1.6vh, 13px);
    letter-spacing: .3em;
    margin-right: -.3em;
    font-weight: 700;
    margin-top: clamp(2px, .8vh, 8px);
}

/* Im Empfehlungs-Player sitzt der Platzhalter im schon vorhandenen Rahmen */
.ld-watch-frame .ld-consent { border-radius: 0; }

.ld-open-twitch { font-size: 11px; letter-spacing: .26em; margin-right: -.26em; }
.ld-open-twitch:hover { letter-spacing: .32em; }

/* ============================================================
   LIVE — offline (Countdown, Promo-Player, Empfehlungen)
   ============================================================ */

.ld-live-off {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 18px);
    text-align: center;
    max-width: 92vw;
    animation: ldUp .8s var(--ld-ease) both;
}

.ld-cd-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 18px);
    opacity: 1;
    transition: opacity .45s ease .35s;
}

.ld-collapse:not(.is-open) .ld-cd-inner,
.ld-cd-inner.is-fading { opacity: 0; transition-delay: 0s; }

.ld-status {
    font-size: 10px;
    letter-spacing: .42em;
    margin-right: -.42em;
    color: var(--ld-dim);
    animation: ldUp .8s .15s var(--ld-ease) both;
}

.ld-countdown {
    font-weight: 700;
    font-size: clamp(44px, 11vw, 116px);
    line-height: 1;
    letter-spacing: .02em;
    animation: ldUp .8s .25s var(--ld-ease) both;
}

.ld-cd-colon { color: var(--ld-accent); animation: ldPulse 2s ease-in-out infinite; }

.ld-cd-units {
    display: flex;
    gap: clamp(34px, 9vw, 96px);
    font-size: 9px;
    letter-spacing: .3em;
    color: var(--ld-off);
    animation: ldUp .8s .35s var(--ld-ease) both;
}

.ld-next {
    font-size: clamp(13px, 1.6vw, 16px);
    color: var(--ld-text-3);
    font-weight: 300;
    margin-top: 6px;
    animation: ldUp .8s .45s var(--ld-ease) both;
}

.ld-offline-big {
    font-weight: 700;
    font-size: clamp(44px, 11vw, 116px);
    line-height: 1;
    letter-spacing: .06em;
    animation: ldUp .8s .25s var(--ld-ease) both;
}

.ld-watch-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 18px);
}

.ld-watch-close {
    font-size: 10px;
    letter-spacing: .3em;
    margin-right: -.3em;
    color: var(--ld-dim);
    padding: 4px 0;
    margin-top: clamp(4px, 1.6vh, 24px);
    transition: color .4s;
}

.ld-watch-close:hover { color: #fff; }

.ld-watch-frame {
    /* passt immer zwischen Tab-Leiste und Footer */
    height: min(clamp(192px, 41vh, 408px), max(130px, calc(100vh - var(--ld-topspace) - 260px)));
    aspect-ratio: 16 / 9;
    max-width: 92vw;
    background: var(--ld-bg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}

.ld-watch-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.ld-meanwhile {
    font-size: 10px;
    letter-spacing: .42em;
    margin-right: -.42em;
    color: var(--ld-off);
    margin-top: clamp(30px, 6vh, 58px);
    animation: ldUp .8s .5s var(--ld-ease) both;
}

/* Im Player-Modus rücken die Empfehlungen dicht an den Player */
.ld-live-off.is-watching .ld-meanwhile { margin-top: clamp(8px, 1.6vh, 16px); }

.ld-promos {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(18px, 3.4vw, 38px);
    margin-top: clamp(4px, 1vh, 10px);
    animation: ldUp .8s .55s var(--ld-ease) both;
}

.ld-promo { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.ld-promo-status {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .3em;
    margin-right: -.3em;
    height: 10px;
    line-height: 10px;
    color: var(--ld-off-2);
}

.ld-promo.is-live .ld-promo-status {
    color: var(--ld-live);
    animation: ldPulse 1.2s ease-in-out infinite;
}

.ld-promo-avatar {
    width: clamp(44px, 7.5vh, 64px);
    height: clamp(44px, 7.5vh, 64px);
    border-radius: 50%;
    background-color: #1a1a20;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, .14);
    transition: transform .45s var(--ld-ease), box-shadow .45s;
}

.ld-promo.is-live .ld-promo-avatar {
    border-color: var(--ld-live);
    box-shadow: 0 0 16px rgba(255, 59, 59, .55);
}

.ld-promo:hover .ld-promo-avatar { transform: scale(1.1); }

.ld-promo-name {
    font-size: 9px;
    letter-spacing: .22em;
    margin-right: -.22em;
    color: var(--ld-off);
    transition: color .4s;
}

.ld-promo.is-live .ld-promo-name { color: var(--ld-text); }

/* ============================================================
   PLAN
   ============================================================ */

.ld-plan {
    display: flex;
    flex-direction: column;
    width: min(680px, 88vw);
    height: 100%;
    min-height: 0;
    justify-content: stretch;
}

.ld-plan-row {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 4px;
    border-bottom: 1px solid var(--ld-line);
    opacity: 1;
    transition: opacity .35s ease;
    animation: ldUp .7s var(--d, 0s) var(--ld-ease) backwards;
}

.ld-plan.is-leaving .ld-plan-row:not(.is-opening) { opacity: 0; }

.ld-plan-left {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 18px);
    min-width: 0;
}

.ld-plan-arts { display: flex; gap: 6px; flex: none; }

.ld-plan-art {
    flex: none;
    width: clamp(25px, 5.2vh, 52px);
    aspect-ratio: 3 / 4;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, .05);
    background-size: cover;
    background-position: center;
}

.ld-plan-art.is-empty { opacity: .35; }

.ld-plan-metas {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    align-items: flex-end;
    text-align: right;
}

.ld-plan-day {
    font-size: clamp(15px, 2.6vh, 22px);
    font-weight: 400;
    color: #e6e6ea;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-plan-row.is-free .ld-plan-day { color: var(--ld-off-2); }
.ld-plan-row.is-today .ld-plan-day { color: #fff; font-weight: 600; }

.ld-plan-today-tag {
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--ld-accent);
    margin-left: 12px;
    vertical-align: 2px;
}

.ld-plan-meta {
    font-size: clamp(11px, 1.7vh, 15px);
    color: var(--ld-text-3);
    font-weight: 300;
    white-space: nowrap;
}

.ld-plan-row.is-free .ld-plan-meta { color: var(--ld-off-2); }

/* Abgesagt: gedimmt und leicht rot; der Titel selbst wird durchgestrichen */
.ld-cancelled { color: var(--ld-cancelled); }
.ld-cancelled s { text-decoration-thickness: 1px; }
.ld-plan-art.ld-cancelled-art { filter: grayscale(.7) brightness(.5); }

/* ============================================================
   PLAN — Tagesansicht
   ============================================================ */

.ld-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vh, 18px);
    text-align: center;
    height: 100%;
    min-height: 0;
    max-width: 92vw;
}

.ld-day-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.6vh, 16px);
}

.ld-day-art {
    height: clamp(120px, 28vh, 260px);
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, .05);
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    animation: ldUp .7s .1s var(--ld-ease) both;
}

.ld-day-meta {
    font-size: clamp(11px, 1.7vh, 14px);
    letter-spacing: .2em;
    color: var(--ld-accent);
    animation: ldUp .7s .2s var(--ld-ease) both;
}

.ld-day-title {
    font-size: clamp(26px, 5vh, 44px);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.1;
    animation: ldUp .7s .3s var(--ld-ease) both;
}

.ld-day-desc {
    font-size: clamp(13px, 1.9vh, 16px);
    color: var(--ld-text-3);
    font-weight: 300;
    line-height: 1.65;
    max-width: 520px;
    text-wrap: pretty;
    animation: ldUp .7s .4s var(--ld-ease) both;
}

/* Mehrere Streams an einem Tag: alles eine Stufe kleiner, damit es passt */
.ld-day.is-multi { gap: clamp(6px, 1.4vh, 14px); }
.ld-day.is-multi .ld-day-art { height: clamp(80px, 17vh, 150px); }
.ld-day.is-multi .ld-day-title { font-size: clamp(20px, 3.4vh, 30px); }
.ld-day.is-multi .ld-day-desc { font-size: clamp(12px, 1.6vh, 14px); }
.ld-day.is-multi .ld-day-entry + .ld-day-entry { padding-top: clamp(8px, 1.6vh, 18px); border-top: 1px solid var(--ld-line); }

/* ============================================================
   EVENTS
   ============================================================ */

.ld-events { display: flex; flex-direction: column; width: min(680px, 88vw); }

.ld-event {
    display: flex;
    gap: clamp(16px, 3vw, 34px);
    align-items: baseline;
    padding: clamp(12px, 2.2vh, 20px) 4px;
    border-bottom: 1px solid var(--ld-line);
    animation: ldUp .7s var(--d, 0s) var(--ld-ease) both;
}

.ld-event-when {
    flex: none;
    width: clamp(86px, 12vw, 120px);
    font-size: clamp(10px, 1.3vw, 12px);
    color: var(--ld-dim);
    font-weight: 300;
    line-height: 1.7;
}

.ld-event-body { display: flex; flex-direction: column; gap: 4px; flex: 1; text-align: left; }

.ld-event-title {
    font-size: clamp(16px, 2.1vw, 20px);
    font-weight: 600;
    letter-spacing: .01em;
    align-self: flex-start;
    transition: color .4s;
}

.ld-event-title:hover { color: var(--ld-accent); }

.ld-event-desc {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--ld-text-3);
    font-weight: 300;
    text-wrap: pretty;
}

.ld-event-place {
    flex: none;
    font-size: 9px;
    letter-spacing: .3em;
    margin-right: -.3em;
    color: var(--ld-accent);
}

.ld-empty {
    font-size: 10px;
    letter-spacing: .42em;
    margin-right: -.42em;
    color: var(--ld-off);
    animation: ldUp .8s .15s var(--ld-ease) both;
}

/* ============================================================
   Artikelansicht (Events + Seiten)
   ============================================================ */

.ld-article {
    display: flex;
    flex-direction: column;
    width: min(620px, 88vw);
    gap: clamp(12px, 2.4vh, 22px);
    text-align: center;
    align-items: center;
}

.ld-article-title {
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.15;
    animation: ldUp .7s .1s var(--ld-ease) both;
}

.ld-article-meta {
    font-size: 11px;
    color: var(--ld-accent);
    letter-spacing: .14em;
    animation: ldUp .7s .2s var(--ld-ease) both;
}

.ld-article-p {
    font-size: clamp(13px, 1.7vw, 16px);
    color: var(--ld-text-2);
    font-weight: 300;
    line-height: 1.7;
    text-wrap: pretty;
    animation: ldUp .7s var(--d, 0s) var(--ld-ease) both;
}

/* ============================================================
   INFO
   ============================================================ */

.ld-infos {
    display: flex;
    flex-direction: column;
    width: min(600px, 88vw);
    gap: clamp(18px, 3.4vh, 32px);
    text-align: center;
}

.ld-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: ldUp .7s var(--d, 0s) var(--ld-ease) both;
}

.ld-info-title { font-size: 10px; letter-spacing: .34em; margin-right: -.34em; color: var(--ld-accent); }

.ld-info-text {
    font-size: clamp(13px, 1.7vw, 16px);
    color: var(--ld-text-2);
    font-weight: 300;
    line-height: 1.65;
    text-wrap: pretty;
}

/* ============================================================
   LOGIN / IMPRESSUM
   ============================================================ */

.ld-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.6vh, 24px);
    text-align: center;
    padding: 0 24px;
}

.ld-overlay .ld-back { font-size: 12px; }
.ld-overlay.is-leaving { opacity: 0; transition: opacity .4s ease; }

.ld-overlay-title {
    font-size: clamp(36px, 6.5vh, 58px);
    font-weight: 700;
    letter-spacing: .04em;
    margin-right: -.04em;
    line-height: 1;
    animation: ldUp .7s .08s var(--ld-ease) both;
}

.ld-imprint .ld-overlay-title { font-size: clamp(30px, 5.4vh, 48px); }
.ld-imprint { gap: clamp(12px, 2.2vh, 20px); }

.ld-form-wrap {
    width: min(384px, 86vw);
    margin-top: clamp(4px, 1vh, 10px);
    animation: ldUp .7s .16s var(--ld-ease) both;
}

.ld-login-form { display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 24px); }

.ld-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    color: var(--ld-text);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 16px;
    letter-spacing: .16em;
    text-align: center;
    padding: 12px 4px;
    outline: none;
    transition: border-bottom-color .4s;
}

/* Fokus über echtes CSS lösen, nicht über JS-State */
.ld-input:focus { border-bottom-color: var(--ld-accent); }
.ld-input::placeholder { color: var(--ld-off-2); letter-spacing: .22em; }

.ld-submit {
    /* kein background-Shorthand — das würde die Unterstrich-Grafik
       aus .ld-underline wieder löschen */
    background-color: transparent;
    border: none;
    align-self: center;
    color: var(--ld-text);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3em;
    margin-right: -.3em;
    padding: 7px 0;
    margin-top: 5px;
}

.ld-login-error {
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--ld-accent);
    max-width: min(430px, 86vw);
    line-height: 1.6;
    animation: ldUp .5s var(--ld-ease) both;
}

.ld-login-success { color: var(--ld-text-2); }

.ld-or {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: .3em;
    margin-right: -.3em;
    color: var(--ld-off);
    margin-top: clamp(2px, .8vh, 8px);
    animation: ldUp .7s .4s var(--ld-ease) both;
}

.ld-or i { display: block; width: 54px; height: 1px; background: rgba(255, 255, 255, .14); }

.ld-oauth {
    display: flex;
    gap: clamp(22px, 4vw, 36px);
    animation: ldUp .7s .48s var(--ld-ease) both;
}

.ld-oauth-btn {
    font-size: 13px;
    letter-spacing: .26em;
    padding: 12px 24px 12px calc(24px + .26em);
    border: 1px solid;
    border-radius: 2px;
    transition: border-color .4s, box-shadow .4s, color .4s;
}

.ld-oauth-twitch { color: var(--ld-twitch); border-color: rgba(169, 112, 255, .55); }
.ld-oauth-twitch:hover { border-color: var(--ld-twitch); box-shadow: 0 0 18px rgba(169, 112, 255, .35); color: #c9a6ff; }
.ld-oauth-google { color: var(--ld-text); border-color: rgba(255, 255, 255, .5); }
.ld-oauth-google:hover { border-color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .25); }

.ld-login-note {
    font-size: 12px;
    letter-spacing: .2em;
    margin-right: -.2em;
    color: var(--ld-accent);
    max-width: min(430px, 86vw);
    line-height: 1.7;
    margin-top: clamp(4px, 1.2vh, 12px);
    animation: ldUp .7s .56s var(--ld-ease) both;
}

.ld-imprint-blocks {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.2vh, 20px);
    max-width: min(520px, 88vw);
    animation: ldUp .7s .16s var(--ld-ease) both;
}

.ld-imprint-block { display: flex; flex-direction: column; gap: 4px; }

.ld-imprint-label { font-size: 10px; letter-spacing: .34em; margin-right: -.34em; color: var(--ld-accent); }

.ld-imprint-text {
    font-size: clamp(12px, 1.7vh, 15px);
    color: var(--ld-text-2);
    font-weight: 300;
    line-height: 1.7;
    text-wrap: pretty;
}

.ld-imprint-block:last-child .ld-imprint-text { color: var(--ld-dim); }

/* Aufzählungen im gepflegten Text (Zeilen mit *, - oder •) */
.ld-list { display: block; margin: 8px 0; }

.ld-li { display: flex; gap: .7em; text-align: left; }
.ld-li::before { content: '·'; color: var(--ld-accent); flex: none; }

/* Leerzeile zwischen Absätzen */
.ld-gap { display: block; height: .9em; }

/* Die Datenschutzerklärung ist zu lang für einen Bildschirm. Die Seite selbst
   scrollt weiterhin nie — nur dieser Block, mit weichen Kanten oben und unten
   und ohne sichtbare Scrollleiste. */
.ld-privacy { justify-content: flex-start; padding-top: clamp(40px, 9vh, 90px); }
.ld-privacy .ld-imprint-block:last-child .ld-imprint-text { color: var(--ld-text-2); }

.ld-privacy-scroll {
    width: min(560px, 88vw);
    max-height: calc(100vh - clamp(150px, 26vh, 250px));
    overflow-y: auto;
    padding: 6px 4px 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
    animation: ldUp .7s .16s var(--ld-ease) both;
}

.ld-privacy-scroll::-webkit-scrollbar { width: 0; height: 0; }
.ld-privacy-scroll .ld-imprint-blocks { max-width: none; width: 100%; animation: none; }

/* Gliederungsebene: eine Überschrift ohne eigenen Text trennt die
   folgenden Unterpunkte sichtbar ab. */
.ld-privacy .ld-imprint-block.is-heading { margin-top: clamp(10px, 1.8vh, 18px); }
.ld-privacy .ld-imprint-block.is-heading:first-child { margin-top: 0; }
.ld-privacy .ld-imprint-block.is-heading .ld-imprint-label {
    color: var(--ld-text);
    letter-spacing: .26em;
    margin-right: -.26em;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ld-line);
}
.ld-privacy-scroll .ld-imprint-text { text-align: left; }
.ld-privacy-scroll .ld-imprint-label { text-align: left; }

/* ============================================================
   Custom Cursor
   ============================================================ */

.target-cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.target-cursor-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.target-cursor-corner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    will-change: transform;
}

.corner-tl { transform: translate(-150%, -150%); border-right: none; border-bottom: none; }
.corner-tr { transform: translate(50%, -150%); border-left: none; border-bottom: none; }
.corner-br { transform: translate(50%, 50%); border-left: none; border-top: none; }
.corner-bl { transform: translate(-150%, 50%); border-right: none; border-top: none; }

/* Systemcursor erst ausblenden, wenn der eigene wirklich läuft */
@media (pointer: fine) {
    html.ld-cursor-on * { cursor: none !important; }
}

/* ============================================================
   Animationen
   ============================================================ */

@keyframes ldUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ldIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ldDrift {
    0% { transform: translate3d(-4%, -3%, 0) scale(1.15) rotate(0deg); }
    50% { transform: translate3d(4%, 3%, 0) scale(1.22) rotate(2deg); }
    100% { transform: translate3d(-4%, -3%, 0) scale(1.15) rotate(0deg); }
}

@keyframes ldPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

@keyframes ldDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.8); }
}

/* ============================================================
   Barrierefreiheit & kleine Viewports
   ============================================================ */

:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .ld-bg { transition: none; }
}

/* Auf schmalen Geräten bleibt oben weniger Luft, damit alles hineinpasst */
@media (max-width: 620px) {
    :root { --ld-topspace: min(120px, 13vh); }
    .ld-tab { font-size: 12px; letter-spacing: .2em; margin-right: -.2em; }
    .ld-tabs { gap: clamp(14px, 5vw, 30px); }
    .ld-event { gap: 14px; }
    .ld-event-when { width: 74px; }
    .ld-event-place { display: none; }
    .ld-oauth { flex-direction: column; align-items: center; gap: 14px; }
}
