/* Spendenseite „Wir bringen euch zum Strahlen": Nachthimmel mit Lichterglanz */

@font-face {
    font-family: "Dosis";
    src: url("fonts/dosis-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --nacht: #0f0c09;
    --karte: #211a13;
    --karte-hell: #2b2219;
    --linie: rgba(242, 193, 78, 0.3);
    --linie-leise: rgba(251, 243, 226, 0.14);
    --gold: #f2c14e;
    --gold-hell: #ffe6a6;
    --gold-tief: #c48a22;
    --rot: #ff6b7a;
    --gruen: #4fd18b;
    --text: #fbf3e2;
    --text-leise: #cfc2aa;
    --auf-gold: #1d1404;
    --schrift-titel: "Dosis", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--nacht);
    color: var(--text);
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Lichtpunkte im Hintergrund, wie unscharfe Lichterketten bei Nacht */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 6% 30%, rgba(255, 230, 166, 0.1) 0, rgba(255, 230, 166, 0.05) 1.2rem, transparent 2.6rem),
        radial-gradient(circle at 95% 36%, rgba(255, 230, 166, 0.08) 0, rgba(255, 230, 166, 0.04) 1.6rem, transparent 3.4rem),
        radial-gradient(circle at 82% 82%, rgba(255, 230, 166, 0.07) 0, rgba(255, 230, 166, 0.03) 1rem, transparent 2.2rem),
        radial-gradient(circle at 12% 12%, rgba(242, 193, 78, 0.2), transparent 18rem),
        radial-gradient(circle at 88% 8%, rgba(229, 35, 63, 0.14), transparent 20rem),
        radial-gradient(circle at 72% 58%, rgba(242, 193, 78, 0.09), transparent 24rem),
        radial-gradient(circle at 18% 86%, rgba(79, 209, 139, 0.09), transparent 20rem),
        linear-gradient(180deg, #19130d 0%, #0f0c09 55%, #0c0a08 100%);
}

h1,
h2,
h3 {
    font-family: var(--schrift-titel);
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--gold-hell);
    text-underline-offset: 0.18em;
}

a:hover {
    color: #ffffff;
}

:focus-visible {
    outline: 3px solid var(--gold-hell);
    outline-offset: 3px;
    border-radius: 6px;
}

code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.92em;
    background: rgba(251, 243, 226, 0.1);
    padding: 0.1em 0.35em;
    border-radius: 5px;
    overflow-wrap: anywhere;
}

.breite {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.sprung {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 10;
    background: var(--gold);
    color: var(--auf-gold);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.sprung:focus {
    top: 12px;
    color: var(--auf-gold);
}

/* ---------- Kopf ---------- */

.lichterkette {
    height: 56px;
    background: url("img/lichterkette.svg") repeat-x center top / 240px 56px;
}

.kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
    padding-bottom: 8px;
}

.logo {
    display: inline-flex;
    background: #fff9ec;
    border-radius: 14px;
    padding: 6px 12px;
    box-shadow: 0 0 0 1px var(--linie), 0 6px 24px rgba(242, 193, 78, 0.18);
}

.logo img {
    display: block;
    height: 38px;
    width: auto;
}

.kopf__link {
    font-family: var(--schrift-titel);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---------- Bühne mit Spendenbox ---------- */

.buehne {
    display: grid;
    gap: 24px;
    padding-top: clamp(20px, 4vw, 44px);
    padding-bottom: clamp(32px, 6vw, 64px);
}

.dachzeile {
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 10px;
}

h1 {
    font-size: clamp(2.5rem, 9vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.005em;
}

.glanz {
    display: block;
    color: var(--gold);
    background: linear-gradient(100deg, #ffe6a6 0%, #f2c14e 45%, #ffdf8e 70%, #e0a53a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(242, 193, 78, 0.35));
}

.einleitung {
    font-size: 1.125rem;
    color: var(--text-leise);
    max-width: 34em;
    margin: 16px 0 0;
}

.spendenbox {
    background: linear-gradient(180deg, var(--karte-hell) 0%, var(--karte) 100%);
    border: 1px solid var(--linie);
    border-radius: 24px;
    padding: clamp(20px, 5vw, 30px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(242, 193, 78, 0.08);
    scroll-margin-top: 16px;
}

.spendenbox__titel {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.betraege {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.betraege legend,
.eigener label {
    display: block;
    padding: 0;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-leise);
}

.betraege__raster {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chip {
    position: relative;
    display: block;
    cursor: pointer;
}

.chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.chip span {
    display: block;
    text-align: center;
    padding: 13px 8px;
    border: 1.5px solid var(--linie);
    border-radius: 14px;
    background: rgba(251, 243, 226, 0.04);
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover span {
    border-color: var(--gold);
    background: rgba(242, 193, 78, 0.12);
}

.chip input:checked + span {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--auf-gold);
    box-shadow: 0 0 24px rgba(242, 193, 78, 0.35);
}

.chip input:focus-visible + span {
    outline: 3px solid var(--gold-hell);
    outline-offset: 3px;
}

.eigener {
    margin-top: 18px;
}

.eigener__feld {
    position: relative;
}

.eigener__feld input {
    width: 100%;
    font: inherit;
    font-family: var(--schrift-titel);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid var(--linie);
    border-radius: 14px;
    padding: 11px 48px 11px 16px;
    min-height: 54px;
}

.eigener__feld input::placeholder {
    color: #a39680;
    font-weight: 500;
    opacity: 1;
}

.eigener__feld input:focus-visible {
    outline: 3px solid var(--gold-hell);
    outline-offset: 2px;
    border-radius: 14px;
}

.eigener__feld input[aria-invalid="true"] {
    border-color: var(--rot);
}

.eigener__euro {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-leise);
    pointer-events: none;
}

.knopf {
    display: block;
    width: 100%;
    margin-top: 20px;
    min-height: 60px;
    padding: 14px 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffd978 0%, #f2c14e 55%, #e3aa32 100%);
    color: var(--auf-gold);
    font-family: var(--schrift-titel);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(242, 193, 78, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.knopf:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 38px rgba(242, 193, 78, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.knopf:active {
    transform: translateY(1px);
}

.knopf:disabled {
    cursor: not-allowed;
    background: #4a4034;
    color: #b3a691;
    box-shadow: none;
    filter: none;
}

.knopf--klein {
    width: auto;
    display: inline-block;
    margin-top: 0;
    min-height: 48px;
    padding: 10px 18px;
    font-size: 1.1rem;
    font-weight: 700;
}

.spendenbox__hinweis {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: var(--text-leise);
}

.spendenbox__hinweis strong {
    color: var(--text);
}

.spendenbox__zusage {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--linie-leise);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-hell);
}

.meldung {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.meldung--fehler {
    background: rgba(255, 107, 122, 0.12);
    border: 1px solid rgba(255, 107, 122, 0.55);
    color: #ffd9d4;
}

.meldung--einrichtung {
    background: rgba(242, 193, 78, 0.1);
    border: 1px dashed var(--gold);
    color: var(--text);
}

.meldung--einrichtung strong {
    display: block;
    color: var(--gold-hell);
}

.termine {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.termine li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid var(--linie-leise);
    border-radius: 999px;
    background: rgba(251, 243, 226, 0.04);
}

.termine__datum {
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.termine__ort {
    font-size: 0.98rem;
}

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

.abschnitt {
    padding-top: clamp(28px, 5vw, 48px);
    padding-bottom: clamp(28px, 5vw, 48px);
}

.abschnitt h2 {
    font-size: clamp(1.75rem, 5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.abschnitt__einleitung {
    color: var(--text-leise);
    margin-top: -10px;
    margin-bottom: 20px;
}

.schritte {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    counter-reset: schritt;
}

.schritte li {
    counter-increment: schritt;
    position: relative;
    padding: 18px 18px 18px 74px;
    border: 1px solid var(--linie-leise);
    border-radius: var(--radius);
    background: rgba(251, 243, 226, 0.035);
}

.schritte li::before {
    content: counter(schritt);
    position: absolute;
    left: 18px;
    top: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 0 18px rgba(242, 193, 78, 0.25);
}

.schritte h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.schritte p {
    margin: 0;
    color: var(--text-leise);
    font-size: 1rem;
}

/* ---------- Livestream ---------- */

.stream {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000000;
    border: 1px solid var(--linie);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.stream iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.stream__start {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000000;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.stream__start img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s, filter 0.2s;
}

.stream__start:hover img {
    filter: brightness(1.12);
}

.stream__start:focus-visible {
    outline-offset: -4px;
    border-radius: var(--radius);
}

/* Liegt genau über dem Play-Symbol, das schon im Vorschaubild steckt */
.stream__play {
    position: absolute;
    left: 50%;
    top: 48.6%;
    width: clamp(46px, 12%, 124px);
    aspect-ratio: 7 / 6;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 22%;
    background: linear-gradient(180deg, #ffd978, #e3aa32);
    color: var(--auf-gold);
    box-shadow: 0 0 0 2px rgba(15, 12, 9, 0.6), 0 0 40px rgba(242, 193, 78, 0.55);
}

.stream__play svg {
    width: 52%;
    height: 52%;
    margin-left: 4%;
}

.stream__beschriftung {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(15, 12, 9, 0.82);
    border: 1px solid var(--linie);
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
    white-space: nowrap;
}

.stream__hinweis {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--text-leise);
}

/* ---------- Verwendung ---------- */

.verwendung {
    display: grid;
    gap: 24px;
}

.verwendung__text p {
    max-width: 36em;
}

.verwendung blockquote {
    margin: 0 0 1em;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--gold);
    color: var(--gold-hell);
    font-size: 1.1rem;
    max-width: 34em;
}

.verwendung__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    align-content: start;
}

.verwendung__liste li {
    position: relative;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--linie-leise);
    border-radius: 14px;
    background: rgba(251, 243, 226, 0.035);
}

.verwendung__liste li::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 1.15em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px 2px rgba(242, 193, 78, 0.6);
}

.verwendung__liste li:nth-child(4n + 2)::before {
    background: var(--rot);
    box-shadow: 0 0 12px 2px rgba(255, 107, 122, 0.6);
}

.verwendung__liste li:nth-child(4n + 3)::before {
    background: var(--gruen);
    box-shadow: 0 0 12px 2px rgba(79, 209, 139, 0.6);
}

.verwendung__liste li:nth-child(4n + 4)::before {
    background: #6cb8ff;
    box-shadow: 0 0 12px 2px rgba(108, 184, 255, 0.6);
}

/* ---------- Fuß ---------- */

.fuss {
    margin-top: clamp(24px, 5vw, 48px);
    padding: 32px 0 40px;
    border-top: 1px solid var(--linie-leise);
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.98rem;
}

.fuss__gruss {
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--gold-hell);
    margin-bottom: 10px;
}

.fuss__hinweis {
    color: var(--text-leise);
    max-width: 44em;
}

.fuss__links {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.fuss__links a {
    display: inline-block;
    padding: 6px 0;
}

/* ---------- QR-Ansicht für den Stream ---------- */

.overlay__buehne {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px 16px;
}

.overlay--transparent {
    background: transparent;
}

.overlay--transparent::before {
    display: none;
}

.qrkarte {
    width: min(100%, 440px);
    padding: 22px 26px 24px;
    text-align: center;
    background: linear-gradient(180deg, #2b2219 0%, #17110c 100%);
    border: 2px solid var(--gold);
    border-radius: 28px;
    box-shadow: 0 0 60px rgba(242, 193, 78, 0.25);
}

.qrkarte__titel {
    margin: 0 0 14px;
    font-family: var(--schrift-titel);
    font-weight: 800;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.1;
    color: var(--gold);
    text-shadow: 0 0 24px rgba(242, 193, 78, 0.45);
}

.qrkarte__code {
    background: #ffffff;
    border-radius: 16px;
    padding: 4px;
    color: #110e0b;
}

.qrkarte__code canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    image-rendering: pixelated;
}

.qrkarte__adresse {
    margin: 16px 0 2px;
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: clamp(1.05rem, 4.6vw, 1.4rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.qrkarte__text {
    margin: 0;
    color: var(--text-leise);
    font-size: 1rem;
}

.overlay__hilfe {
    width: min(100%, 440px);
    font-size: 0.95rem;
    color: var(--text-leise);
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 480px) {
    .betraege__raster {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 700px) {
    .schritte {
        grid-template-columns: repeat(3, 1fr);
    }

    .schritte li {
        padding: 72px 20px 20px;
    }

    .schritte li::before {
        left: 20px;
        top: 18px;
    }

    .verwendung__liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 940px) {
    .logo img {
        height: 46px;
    }

    .buehne {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        grid-template-areas:
            "text    box"
            "termine box";
        grid-template-rows: auto 1fr;
        column-gap: 56px;
        row-gap: 28px;
        align-items: start;
    }

    .buehne__text {
        grid-area: text;
        padding-top: 28px;
    }

    .spendenbox {
        grid-area: box;
    }

    .termine {
        grid-area: termine;
    }

    .verwendung {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
