/* Kurs-Web – Oberfläche im Aussehen von netfieldcms.com (Thomas, 04.12.2026): Rot aus dem Logo, Schwarz, Neon-Raster,
   Überschriften Handel Gothic, Text Quicksand (Schriften aus /assets/fonts der Webseite). Knöpfe dunkler rot wegen Kontrast. */
@font-face { font-family: "Handel Gothic"; src: url("/assets/fonts/handelgothic.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/assets/fonts/quicksand-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
    --grund: #060607;
    --flaeche: #0f0f12;
    --flaeche-2: #18181c;
    --linie: rgba(238, 96, 89, .2);
    --text: #f1eeee;
    --leise: #a8a2a2;
    --akzent: #cc3b33;
    --akzent-2: #ee6059;
    --akzent-zart: rgba(238, 96, 89, .14);
    --neon: rgba(238, 96, 89, .06);
    --gut: #3fbf8a;
    --radius: 12px;
    --seite: 340px;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root {
        --grund: #f7f5f5;
        --flaeche: #ffffff;
        --flaeche-2: #f4efef;
        --linie: rgba(204, 59, 51, .2);
        --text: #1d1a1a;
        --leise: #6f6767;
        --akzent: #cc3b33;
        --akzent-2: #b3231c;
        --akzent-zart: rgba(204, 59, 51, .10);
        --neon: rgba(204, 59, 51, .075);
        --gut: #1f9d6c;
        color-scheme: light;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    background: linear-gradient(var(--neon) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--neon) 1px, transparent 1px) 0 0 / 32px 32px, var(--grund);
    background-attachment: fixed;
    color: var(--text);
    font: 15px/1.55 Quicksand, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
h1, h2 { line-height: 1.25; margin: 0; font-family: "Handel Gothic", Quicksand, sans-serif; font-weight: 400; letter-spacing: .02em; }
button { font: inherit; cursor: pointer; }
.leise { color: var(--leise); }
[hidden] { display: none !important; }

.marke-icon {
    display: inline-block; width: 30px; height: 30px; border-radius: 50%; flex: none;   /* Löwe aus dem Netfield-Logo */
    background: #0b0b0d url("/media/brand/logo-s240.webp") center/100% no-repeat; box-shadow: 0 0 0 1px var(--akzent), 0 0 14px -4px var(--akzent-2);
}

/* ---------- Knöpfe ---------- */
button, .knopf {
    border: 0; border-radius: 999px; padding: .55em 1.2em;
    background: var(--akzent); color: #fff; font-weight: 600;
    transition: background .15s, opacity .15s;
}
button:hover { background: var(--akzent-2); }
button:disabled { opacity: .35; cursor: default; background: var(--akzent); }
.knopf-leise { background: transparent; color: var(--text); border: 1px solid var(--linie); font-weight: 500; }
.knopf-leise:hover { background: var(--flaeche-2); }
.knopf-leise:disabled { background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------- Anmeldung ---------- */
.anmeldung {
    display: grid; place-items: center; padding: 24px;
    background: radial-gradient(1200px 600px at 20% -10%, var(--akzent-zart), transparent 60%), var(--grund);
}
.anmelde-karte {
    width: 100%; max-width: 420px; background: var(--flaeche); border: 1px solid var(--linie);
    border-radius: 18px; padding: 36px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.marke { display: flex; align-items: center; gap: 10px; color: var(--leise); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.anmelde-karte h1 { font-size: 24px; margin-bottom: 6px; }
.anmelde-karte form { display: grid; gap: 14px; margin-top: 22px; }
.anmelde-karte label { display: grid; gap: 6px; font-size: 13px; color: var(--leise); }
.anmelde-karte input {
    font: inherit; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--linie);
    border-radius: 10px; padding: 11px 13px;
}
.anmelde-karte button { margin-top: 6px; padding: 12px; }
.fehler { background: rgba(224, 69, 69, .12); color: #ff8a8a; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (prefers-color-scheme: light) { .fehler { color: #b3261e; } }

/* ---------- Kopf ---------- */
.kurs { display: flex; flex-direction: column; overflow: hidden; }
.kopf {
    display: flex; align-items: center; gap: 18px; padding: 10px 18px;
    background: var(--flaeche); border-bottom: 1px solid var(--linie); flex: none;
}
.kopf-titel { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.kurs-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menue-knopf { display: none; background: transparent; color: var(--text); padding: 4px 10px; font-size: 20px; }
.fortschritt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--leise); white-space: nowrap; }
.fortschritt-balken { width: 120px; height: 6px; border-radius: 3px; background: var(--flaeche-2); overflow: hidden; }
.fortschritt-balken span { display: block; height: 100%; width: 0; background: var(--gut); transition: width .3s; }
.kopf-knoepfe { display: flex; gap: 8px; }
.kopf-knoepfe form { margin: 0; }
.kopf-knoepfe button { padding: .4em 1em; font-size: 14px; }

/* ---------- Rahmen ---------- */
.rahmen { flex: 1; display: grid; grid-template-columns: var(--seite) 1fr; min-height: 0; }
.inhalt { overflow-y: auto; border-right: 1px solid var(--linie); background: var(--flaeche); padding: 10px 0 30px; }
.buehne { overflow-y: auto; padding: 28px clamp(16px, 4vw, 48px) 60px; }
.ansicht { max-width: 1100px; margin: 0 auto; }

/* ---------- Inhaltsverzeichnis ---------- */
.modul { border-bottom: 3px solid color-mix(in srgb, var(--akzent-2) 45%, transparent); }   /* dicke Trennlinie zwischen den Modulen (Thomas, 04.12.2026) */
.modul:last-child { border-bottom: 0; }
.modul-kopf {
    width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; text-align: left;
    background: transparent; color: var(--text); border-radius: 0; padding: 14px 18px; font-weight: 500;
}
.modul-kopf:hover { background: var(--flaeche-2); }
.modul-nr {
    grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--flaeche-2); color: var(--leise); font-weight: 700; font-size: 14px;
}
.modul.offen .modul-nr { background: var(--akzent-zart); color: var(--akzent); }
.modul.fertig .modul-nr { background: rgba(63, 191, 138, .15); color: var(--gut); }
.modul-name { font-weight: 650; font-size: 14px; }
.modul-meta { grid-column: 2; font-size: 12px; color: var(--leise); }
.modul-pfeil { grid-row: 1 / span 2; grid-column: 3; color: var(--leise); transition: transform .2s; }
.modul.offen .modul-pfeil { transform: rotate(90deg); }
.lektionen { list-style: none; margin: 0; padding: 0 0 8px; display: none; }
.modul.offen .lektionen { display: block; }
.lektion {
    width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; text-align: left;
    background: transparent; color: var(--text); border-radius: 0; padding: 9px 18px 9px 26px; font-weight: 400; font-size: 14px;
    border-left: 3px solid transparent;
}
.lektion:hover { background: var(--flaeche-2); }
.lektion.aktiv { background: var(--akzent-zart); border-left-color: var(--akzent); }
.lektion-haken {
    width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--linie);
    display: grid; place-items: center; font-size: 11px; color: transparent;
}
.lektion.gesehen .lektion-haken { background: var(--gut); border-color: var(--gut); color: #fff; }
.lektion-dauer { color: var(--leise); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.lektion-prozent { display: block; color: var(--akzent-2); text-align: right; }   /* angefangene Lektion: wie viel schon gesehen */
.lektion-pdf { color: var(--leise); font-size: 12px; }

/* ---------- Lektion ---------- */
.lektion-kopf { margin-bottom: 18px; }
.lektion-modul { color: var(--akzent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.lektion-titel { font-size: clamp(20px, 2.4vw, 28px); }
.player {
    position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.player video { width: 100%; height: 100%; display: block; background: #000; }
.lektion-leiste { display: flex; gap: 10px; align-items: center; margin: 16px 0 30px; flex-wrap: wrap; }
.lektion-leiste .weiter { margin-left: auto; }
.gesehen-knopf { background: transparent; color: var(--leise); border: 1px solid var(--linie); font-weight: 500; }
.gesehen-knopf:hover { background: var(--flaeche-2); }
.gesehen-knopf[aria-pressed="true"] { color: var(--gut); border-color: var(--gut); background: rgba(63, 191, 138, .08); }

section h2 { font-size: 16px; margin: 0 0 12px; }
/* Bereiche über und unter dem Video als eigene Karten mit roter Kante (Thomas, 04.12.2026: „alles besser voneinander absetzen“) */
.lektion-block {
    margin-bottom: 18px; padding: 18px 20px 20px; border-radius: var(--radius);
    background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--akzent);
}
.lektion-block h2 { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--akzent-2); margin-bottom: 14px; }
.block-icon {
    flex: none; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center;
    background: var(--akzent-zart); color: var(--akzent-2); font-size: 10px; font-weight: 800; letter-spacing: .02em;
}
.lektion-text { font-size: 16px; line-height: 1.6; margin: 0 0 16px; max-width: 72ch; color: var(--text); }
.punkte-titel { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 0 0 8px; }
.lektion-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; max-width: 72ch; }
.lektion-punkte li { position: relative; padding-left: 24px; line-height: 1.45; }
.lektion-punkte li::before {
    content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 2px;
    background: var(--akzent); transform: rotate(45deg);
}
.modul-ziel { color: var(--text); margin: 0 0 14px; max-width: 72ch; line-height: 1.55; }
.modul-unterlagen h2 { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--leise); }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.karte {
    display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; text-decoration: none;
    color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); transition: border-color .15s, transform .15s;
}
.karte:hover { border-color: var(--akzent); transform: translateY(-1px); }
.karte-icon {
    flex: none; width: 36px; height: 44px; border-radius: 6px; background: var(--akzent-zart); color: var(--akzent);
    display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.karte-titel { font-size: 14px; font-weight: 550; line-height: 1.3; }
.karte-meta { font-size: 12px; color: var(--leise); }
.leer { color: var(--leise); font-size: 14px; }

.unterlagen-alle .modul-block { margin: 26px 0; }
.unterlagen-alle h2 { color: var(--leise); font-weight: 600; }
.unterlagen-alle h2 b { color: var(--text); }

/* ---------- Schmal ---------- */
@media (max-width: 900px) {
    .menue-knopf { display: block; }
    .fortschritt-balken { width: 60px; }
    .kopf-knoepfe [data-ansicht] { display: none; }
    .rahmen { grid-template-columns: 1fr; }
    .inhalt {
        position: fixed; top: 57px; bottom: 0; left: 0; width: min(92vw, var(--seite)); z-index: 10;
        transform: translateX(-102%); transition: transform .25s; visibility: hidden;
    }
    .kurs.menue-offen .inhalt { transform: none; visibility: visible; box-shadow: 10px 0 40px rgba(0,0,0,.4); }
    .buehne { padding-top: 18px; }
}
@media (max-width: 560px) {
    .kurs-name { font-size: 14px; }
    .fortschritt-text { display: none; }
    .lektion-leiste .zurueck { display: none; }
}

/* Link zurück zur Kursseite der Webseite (unter dem Anmeldeformular) */
.zurueck-link { margin: 18px 0 0; text-align: center; font-size: 14px; }
.zurueck-link a { color: var(--akzent-2); }

/* ---------- Passwort mit Auge (Thomas, 04.12.2026: Passwort beim Tippen sehen; Kurs-Anmeldung und Verwaltung) ---------- */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 46px !important; }
.pw-auge { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 32px; padding: 0; border-radius: 8px;
    background: transparent; color: var(--leise); }
.pw-auge:hover { background: var(--flaeche-2); color: var(--text); }
.pw-auge::before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.pw-auge[aria-pressed="true"] { color: var(--akzent-2); }
.pw-auge[aria-pressed="true"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
.pw-auge:focus-visible { outline-offset: 0; }

/* Zugangsdaten selbst ändern, aufklappbar unter der Anmeldung (Thomas, 04.12.2026) */
.zugang-aendern { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--linie); }
.zugang-aendern summary { cursor: pointer; font-size: 14px; color: var(--akzent-2); }
.zugang-aendern[open] summary { margin-bottom: 4px; }
.zugang-aendern form { margin-top: 14px; }
.zugang-aendern small { font-size: 11px; opacity: .8; }
.zugang-aendern .fehler { margin-top: 12px; }

/* „Mein Zugang“ im Kurs: Mini-Verwaltung mit Name und Passwort ändern (Thomas, 04.12.2026) */
.kopf-knoepfe .konto-knopf { display: inline-block; white-space: nowrap; }
.kopf-knoepfe button { white-space: nowrap; }
.konto-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.konto-zahlen div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.konto-zahlen b { font: 700 20px/1.2 Quicksand, sans-serif; color: var(--akzent-2); overflow-wrap: anywhere; }
.konto-zahlen span { font-size: 13px; color: var(--leise); }
.konto-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; max-width: 560px; }
.konto-karte h2 { font-size: 18px; margin-bottom: 6px; }
.konto-form { display: grid; gap: 14px; margin-top: 16px; }
.konto-form label { display: grid; gap: 6px; font-size: 13px; color: var(--leise); }
.konto-form small { font-size: 11px; opacity: .8; }
.konto-form input { font: inherit; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px; padding: 11px 13px; }
.konto-form button[type="submit"] { justify-self: start; padding: 11px 22px; }
.gut-meldung { background: rgba(63, 191, 138, .12); color: var(--gut); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (max-width: 900px) { .kopf-knoepfe .konto-knopf { padding: .4em .7em; } }
@media (max-width: 480px) { .kopf { gap: 10px; padding: 10px 12px; } .kopf-knoepfe { gap: 6px; } .kopf-knoepfe button { padding: .4em .65em; font-size: 13px; } .fortschritt-balken { display: none; } }
