/* Schriften lokal (kein Google-Server nötig) */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* =========================================================
   FARBEN & SCHRIFTEN – wie auf taschengeldclub.de
   ========================================================= */
:root {
    --cream:   #F7F2EA;
    --ink:     #141414;
    --muted:   #4F4A40;
    --line:    #E3DCCF;
    --lime:    #DBFE53;
    --lime-deep: #CBEF3A;
    --lilac:   #E4D6FF;
    --purple:  #BC94FF;
    --peach:   #FFB985;
    --karte:   #FFFDF9;
    --body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Instrument Serif", "Times New Roman", Georgia, serif;
    --gutter:  clamp(16px, 4vw, 40px);
    --radius:  22px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; }
.innen { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%;
    background: var(--lime); color: var(--ink);
    border: 0; border-radius: 999px;
    padding: 14px 24px; font: inherit; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
    cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--lime-deep); }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 5; background: var(--cream); border-bottom: 1px solid var(--line); }
.kopf .innen { display: flex; justify-content: space-between; align-items: center; height: 66px; max-width: 1180px; }
.marke { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.logout {
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    background: var(--lime); padding: 9px 16px; border-radius: 999px; text-decoration: none;
}
.logout:hover { background: var(--lime-deep); }

/* ---------- Login ---------- */
.login { flex: 1; width: 100%; display: grid; place-items: center; align-content: center; padding: 40px var(--gutter); }
.login-box {
    background: var(--karte); width: min(420px, 100%);
    padding: 40px 34px; border-radius: var(--radius);
    border: 1px solid var(--line);
    text-align: center;
}
.login-box h1 { font-size: 2.6rem; margin-bottom: 6px; }
.login-box .unter { color: var(--muted); margin: 0 0 28px; }
.login-box label { display: block; text-align: left; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.login-box input {
    width: 100%; padding: 13px 18px; font: inherit; background: #fff;
    border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px;
}
.login-box input:focus { outline: 2px solid var(--purple); border-color: transparent; }
.fehler { background: #FFE3D1; color: #7a2d00; padding: 10px 14px; border-radius: 14px; font-size: .92rem; text-align: left; }
.klein { font-size: .88rem; color: var(--muted); margin: 20px 0 0; }
.zurueck { text-align: center; font-size: .9rem; }

/* ---------- Kurs ---------- */
.kurs { padding-top: 56px; padding-bottom: 64px; flex: 1; }
.intro { margin-bottom: 36px; }
.intro h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.intro p { color: var(--muted); margin-top: 0; max-width: 560px; }
.fortschritt { display: flex; align-items: center; gap: 14px; font-size: .88rem; color: var(--muted); margin-top: 20px; }
.balken { flex: 1; max-width: 260px; height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--purple); transition: width .3s; }

.modul { background: var(--karte); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.modul summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modul summary::-webkit-details-marker { display: none; }
.modul summary::after {
    content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%;
    background: var(--lilac); display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
}
.modul[open] summary::after { content: "–"; background: var(--lime); }
.modul summary h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin: 0; }
.lektionen { padding: 0 26px 10px; }

.lektion { border-top: 1px solid var(--line); padding: 24px 0; }
.lektion h3 { font-size: 1.45rem; }
.lektion .text { color: var(--muted); }
.lektion.fertig h3::after {
    content: "erledigt"; font-family: var(--body); font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; background: var(--lime); padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); margin: 14px 0 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
    position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
    background: var(--ink); color: var(--cream); font: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.video-start .play {
    width: 68px; height: 68px; border-radius: 50%; background: var(--lime); color: var(--ink);
    display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; transition: transform .2s;
}
.video-start:hover .play { transform: scale(1.08); }
.video-start > span:nth-child(2) { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.video-start small { opacity: .6; font-size: .78rem; padding: 0 16px; text-align: center; }

.downloads { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.downloads a {
    display: inline-block; padding: 10px 18px; border-radius: 999px;
    background: var(--lilac); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.downloads a:hover { background: var(--purple); }

.erledigt { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); cursor: pointer; margin-top: 6px; }
.erledigt input { width: 18px; height: 18px; accent-color: var(--ink); }
.hilfe { text-align: center; color: var(--muted); margin-top: 44px; }

/* ---------- Footer ---------- */
.fuss { border-top: 1px solid var(--line); padding: 26px 0; font-size: .82rem; color: var(--muted); }
.fuss .innen { max-width: 1180px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Logo (Bild von der Homepage, gerade) ---------- */
.logo-link { display: block; line-height: 0; }
.logo-klein { height: 46px; width: auto; display: block; }
.logo-titel { margin: 0 0 18px; line-height: 0; }
.logo-gross { width: min(260px, 80%); height: auto; }

/* ---------- Paket & Extras ---------- */
.paket { display: inline-block; margin-left: 8px; background: var(--lilac); color: var(--ink); padding: 3px 10px; border-radius: 999px; letter-spacing: .06em; }
.modul.extra { background: var(--lilac); border-color: var(--purple); }
.tag-extra { font-family: var(--body); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--purple); padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.modul > .lektionen > .erledigt { display: flex; border-top: 1px solid var(--line); padding: 18px 0 14px; margin: 0; font-weight: 700; color: var(--ink); }
.modul.fertig summary h2::after {
    content: "erledigt"; font-family: var(--body); font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; background: var(--lime); padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}

/* ---------- Widerrufs-Button im Footer ---------- */
.fuss .wr-btn { display: inline-block; background: var(--purple); color: var(--ink); font-weight: 700; font-size: .74rem; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none; padding: .85em 1.3em; border-radius: 999px; }
.fuss .wr-btn:hover { background: #a97ff5; color: var(--ink); text-decoration: none; }

/* ---------- Gesperrte Extras mit Upgrade (nur Papier) ---------- */
.gesperrt-innen { padding: 26px; }
.gesperrt h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin: 0 0 10px; }
.gesperrt-liste { margin: 0 0 22px; padding-left: 1.2em; color: var(--muted); }
.gesperrt-liste li { margin: 4px 0; }
.upgrade-btn { width: auto; }
.video.eigen video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--ink); }

/* ---------- Noch nicht freigeschaltet ---------- */
.modul.zu { background: transparent; border-style: dashed; }
.zu-innen { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.modul.zu h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin: 0; color: var(--muted); }
.zu-datum { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--line); padding: 5px 12px; border-radius: 999px; }
p.zu-datum { display: inline-block; margin: 0; }

/* ---------- Wartebereich bis zum Kursstart ---------- */
.warte-karte { background: var(--lime); border-radius: var(--radius); padding: 32px 30px; margin-bottom: 18px; }
.warte-karte h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 8px; }
.warte-karte p { margin: 0 0 22px; max-width: 560px; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown div { background: var(--cream); border-radius: 18px; padding: 14px 18px; min-width: 92px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.countdown span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.warte-block { background: var(--karte); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.warte-block h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); }
.checkliste { list-style: none; padding: 0; margin: 6px 0 10px; }
.checkliste li { border-top: 1px solid var(--line); }
.checkliste li:first-child { border-top: 0; }
.checkliste label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.checkliste input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--purple); }
.checkliste li.fertig span { text-decoration: line-through; color: var(--muted); }
.warte .klein { margin-top: 6px; }

/* ---------- Geschenkgutschein ---------- */
.gutschein { background: var(--lilac); border-color: var(--purple); }
.gutschein p { margin: 0 0 6px; max-width: 560px; }
.gutschein .downloads a { background: var(--lime); }
.gutschein .downloads a:hover { background: var(--lime-deep); }
