/* =====================================================================
   Mitgliederbereich – Redesign Oktober 2026
   Wird nach style.css geladen. Farben: Weiß, helles Petrol, Grün, Petrol.
   ===================================================================== */
:root {
    --weiss: #ffffff;
    --flaeche: #EDF3F4;
    --gruen: #8FB961;
    --gruen-hover: #A2CC74;
    --gruen-text: #4F7F2A;
    --petrol: #024751;
    --petrol-dark: #013038;
    --text-leise: #5E7F84;
    --linie: #DCE7E9;
    --schatten: 0 1px 2px rgba(2,71,81,.04), 0 6px 20px rgba(2,71,81,.06);
    --schatten-hover: 0 2px 4px rgba(2,71,81,.05), 0 12px 32px rgba(2,71,81,.10);
    --r-karte: 16px;
    --sidebar-breite: 264px;
}

body { font-family: "Outfit", system-ui, -apple-system, sans-serif; background: var(--weiss); color: var(--petrol); line-height: 1.55; }
.ti { line-height: 1; }
.inhalt a:hover, .nrc-sidebar a:hover, .nrc-mobilkopf a:hover, .popup a:hover { text-decoration: none; }
:where(.inhalt) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.inhalt) img { display: block; max-width: 100%; }

/* ===== Grundlayout ===== */
.app-layout { display: grid; grid-template-columns: var(--sidebar-breite) minmax(0, 1fr); min-height: 100vh; }
.main-content { margin-left: 0; padding-top: 0; min-width: 0; }
.inhalt { padding: 24px 40px 64px; max-width: 1240px; width: 100%; margin: 0 auto; }
.nrc-mobilkopf, .nrc-schleier { display: none; }

/* ===== Seitenleiste ===== */
.nrc-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--flaeche); padding: 24px 16px; display: flex; flex-direction: column; z-index: 90; }
.marke { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: var(--petrol); }
.marke img { width: 40px; height: 40px; }
.marke b { font-weight: 700; font-size: 14px; line-height: 1.1; letter-spacing: .6px; text-transform: uppercase; }
.profil-kachel { display: flex; align-items: center; gap: 12px; background: var(--weiss); border-radius: 14px; padding: 12px; margin-bottom: 8px; color: var(--petrol); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gruen); color: var(--petrol-dark); display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.profil-kachel strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.profil-kachel span { font-size: 13px; color: var(--text-leise); }
.nav-titel { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-leise); padding: 0 12px; margin: 18px 0 6px; }
.nav-punkt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 500; font-size: 15px; color: var(--petrol); transition: background .15s; }
.nav-punkt .ti { font-size: 20px; }
.nav-punkt:hover { background: rgba(255,255,255,.65); color: var(--petrol); }
.nav-punkt.aktiv { background: var(--weiss); box-shadow: var(--schatten); }
.nav-punkt.aktiv .ti { color: var(--gruen); }
.nav-punkt .zahl { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--weiss); border-radius: 999px; padding: 2px 8px; }
.nav-punkt.aktiv .zahl { background: var(--flaeche); }
.nav-punkt .extern { margin-left: auto; font-size: 15px; color: var(--text-leise); }
.sidebar-fuss { margin-top: auto; padding-top: 12px; }

/* ===== Suche ===== */
.kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.suche { position: relative; flex: 1; max-width: 380px; }
.suche input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--linie); background: var(--weiss); padding: 0 18px 0 46px; font: inherit; color: var(--petrol); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.suche input::placeholder { color: var(--text-leise); }
.suche input:focus { border-color: var(--gruen); box-shadow: 0 0 0 4px rgba(143,185,97,.18); }
.suche > .ti { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--text-leise); }
.treffer { position: absolute; top: 54px; left: 0; right: 0; background: var(--weiss); border-radius: 16px; box-shadow: var(--schatten-hover); padding: 8px; z-index: 30; max-height: 380px; overflow-y: auto; }
.treffer a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--petrol); }
.treffer a:hover { background: var(--flaeche); }
.treffer img, .treffer .ohne-bild { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; background: var(--flaeche); }
.treffer b { font-weight: 600; }
.treffer small { display: block; color: var(--text-leise); font-size: 12px; }
.treffer .leer { padding: 12px; color: var(--text-leise); font-size: 14px; }

/* ===== Bausteine ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary, .btn-gruen { background: var(--gruen); color: var(--petrol-dark); box-shadow: 0 8px 20px rgba(143,185,97,.35); border: 0; }
.btn-primary:hover, .btn-gruen:hover { background: var(--gruen-hover); color: var(--petrol-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(143,185,97,.45); }
.btn-ghost, .btn-leise, .btn-secondary { background: var(--weiss); color: var(--petrol); border: 1px solid var(--linie); box-shadow: none; }
.btn-ghost:hover, .btn-leise:hover, .btn-secondary:hover { background: var(--weiss); color: var(--petrol); border-color: var(--gruen); }
.btn-sm, .btn-klein { padding: 9px 16px; font-size: 14px; }
.btn-completing { pointer-events: none; opacity: .7; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten); }
.ueberschrift { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.ueberschrift h2 { font-size: 22px; font-weight: 600; color: var(--petrol); }
.ueberschrift span { font-size: 14px; color: var(--text-leise); }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-leise); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-leise); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.balken { height: 6px; border-radius: 999px; background: var(--flaeche); overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: inherit; background: var(--gruen); transition: width .4s ease; }
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; width: 100%; height: 100%; }
.ring .ring-spur { stroke: #ffffff; }
.ring .ring-wert { stroke: var(--gruen); transition: stroke-dashoffset .5s ease; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; }
.zurueck { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-leise); margin-bottom: 18px; }
.zurueck:hover { color: var(--petrol); }
.daumen { position: relative; border-radius: 10px; overflow: hidden; background: var(--flaeche); flex: none; aspect-ratio: 16 / 9; }
.daumen img { width: 100%; height: 100%; object-fit: cover; }
.daumen-leer { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-leise); font-size: 22px; }
.hinweis { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--flaeche); margin-bottom: 20px; font-size: 15px; }
.hinweis .ti { font-size: 20px; }
.hinweis a { font-weight: 600; text-decoration: underline; color: var(--petrol); }

/* ===== Dashboard ===== */
.start { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; }
.start.einzeln { grid-template-columns: minmax(0, 1fr); }
.willkommen { background: var(--flaeche); border-radius: 22px; padding: 36px; display: flex; align-items: center; gap: 28px; min-height: 240px; }
.willkommen h1 { font-size: 34px; font-weight: 600; line-height: 1.15; margin-bottom: 8px; color: var(--petrol); }
.willkommen p { color: var(--text-leise); margin-bottom: 22px; max-width: 420px; }
.willkommen .knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.ring-block { margin-left: auto; text-align: center; }
.ring-block .ring b { font-size: 26px; }
.ring-block small { display: block; font-size: 13px; color: var(--text-leise); margin-top: 8px; }
.zuletzt { padding: 16px; display: flex; flex-direction: column; gap: 14px; border-radius: 22px; color: var(--petrol); transition: box-shadow .2s, transform .2s; }
.zuletzt:hover { box-shadow: var(--schatten-hover); transform: translateY(-2px); color: var(--petrol); }
.zuletzt .daumen { border-radius: 14px; }
.zuletzt h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 2px 0 6px; }
.zuletzt .unten { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kurse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kurs-karte { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; color: var(--petrol); }
a.kurs-karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-hover); color: var(--petrol); }
.kurs-karte .bild { aspect-ratio: 16 / 10; background: var(--flaeche); display: grid; place-items: center; overflow: hidden; position: relative; }
.kurs-karte .bild img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.kurs-karte .text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kurs-karte h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.kurs-karte p { color: var(--text-leise); font-size: 15px; }
.kurs-karte .status { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-leise); }
.kurs-karte .status.gruen { color: var(--gruen-text); }
.kurs-karte .btn { align-self: flex-start; margin-top: 4px; }
.kurs-karte.haupt { grid-column: span 2; flex-direction: row; }
.kurs-karte.haupt .bild { aspect-ratio: auto; width: 46%; flex: none; }
.kurs-karte.haupt .text { padding: 26px; justify-content: center; }
.kurs-karte.haupt h3 { font-size: 24px; }
.kurs-karte.zu .bild img { filter: grayscale(1) opacity(.45); }
.schloss { position: absolute; inset: 0; display: grid; place-items: center; }
.schloss i { width: 48px; height: 48px; border-radius: 50%; background: var(--weiss); display: grid; place-items: center; font-size: 22px; box-shadow: var(--schatten); }
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--flaeche); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* ===== Kursseite ===== */
.banner { background: var(--flaeche); border-radius: 22px; padding: 22px; display: flex; align-items: center; gap: 26px; }
.banner > img, .banner > .daumen { width: 220px; border-radius: 14px; flex: none; }
.banner > img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--weiss); padding: 8px; }
.banner h1 { font-size: 30px; font-weight: 600; line-height: 1.2; margin: 4px 0 6px; color: var(--petrol); }
.banner p { color: var(--text-leise); }
.banner .ring { margin-left: auto; margin-right: 10px; }
.banner .ring b { font-size: 24px; }
.weiter-leiste { margin-top: 20px; display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 18px; background: var(--weiss); border: 2px solid var(--gruen); color: var(--petrol); }
.weiter-leiste:hover { color: var(--petrol); box-shadow: var(--schatten); }
.weiter-leiste .daumen { width: 104px; }
.weiter-leiste h3 { font-size: 19px; font-weight: 600; }
.weiter-leiste .btn { margin-left: auto; }
.module { display: flex; flex-direction: column; gap: 14px; }
.modul-zeile { display: flex; align-items: center; gap: 20px; padding: 12px 22px 12px 12px; color: var(--petrol); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.modul-zeile:hover { transform: translateY(-2px); box-shadow: var(--schatten-hover); border-color: var(--gruen); color: var(--petrol); }
.modul-zeile .daumen { width: 168px; }
.modul-zeile .nr { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--petrol); }
.modul-zeile h3 { font-size: 20px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modul-zeile .mitte { flex: 1; min-width: 0; }
.modul-zeile .balken { margin-top: 10px; max-width: 320px; }
.herz { font-size: 12px; font-weight: 600; letter-spacing: .4px; background: var(--gruen); color: var(--petrol-dark); border-radius: 999px; padding: 3px 10px; }
.status-rund { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 24px; }
.status-rund.fertig { background: var(--flaeche); color: var(--gruen-text); }
.status-rund.start { border: 1.5px solid var(--linie); font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: border-color .15s; }
.status-rund.start .ti { font-size: 18px; }
a.modul-zeile:hover .status-rund.start { border-color: var(--gruen); }
.status-rund.zu { border: 1.5px solid var(--linie); color: var(--text-leise); }
.modul-zeile.zu { box-shadow: none; }
.modul-zeile.zu .daumen img { filter: grayscale(1) opacity(.5); }
.modul-zeile.zu h3, .modul-zeile.zu .meta { color: var(--text-leise); }
.freischaltung { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--petrol); background: var(--flaeche); border-radius: 999px; padding: 4px 12px; margin-top: 8px; }
.vorschau-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--petrol); margin: 8px 0 0 10px; text-decoration: underline; }
.leer-karte { text-align: center; padding: 48px 24px; }
.leer-karte .gross-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--flaeche); display: grid; place-items: center; font-size: 32px; margin: 0 auto 18px; }
.leer-karte h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; color: var(--petrol); }
.leer-karte p { color: var(--text-leise); max-width: 440px; margin: 0 auto 22px; }

/* ===== Modulseite und Lektionslisten ===== */
.lektionen { padding: 20px; }
.lektionen-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lektionen-kopf .symbol { width: 44px; height: 44px; border-radius: 50%; background: var(--gruen); color: var(--petrol-dark); display: grid; place-items: center; font-size: 21px; flex: none; }
.lektionen-kopf h2 { font-size: 18px; font-weight: 600; color: var(--petrol); }
.lektion-zeile { display: flex; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border: 1px solid var(--linie); border-radius: 14px; margin-top: 10px; color: var(--petrol); transition: border-color .15s, background .15s; }
.lektion-zeile:hover { border-color: var(--gruen); color: var(--petrol); }
.lektion-zeile .daumen { width: 112px; border-radius: 8px; }
.lektion-zeile h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.lektion-zeile .mitte { flex: 1; min-width: 0; }
.lektion-zeile.aktuell { background: var(--flaeche); border-color: var(--gruen); }
.haken { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--linie); display: grid; place-items: center; flex: none; font-size: 16px; color: transparent; transition: background .2s, border-color .2s; }
.haken.ja { background: var(--gruen); border-color: var(--gruen); color: var(--petrol-dark); }
.merk { color: var(--gruen); font-size: 18px; }

/* ===== Lektionsseite ===== */
.brotkrumen { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-leise); margin-bottom: 16px; }
.brotkrumen a { color: var(--text-leise); }
.brotkrumen a:hover { color: var(--petrol); }
.brotkrumen b { color: var(--petrol); font-weight: 600; }
.modul-leiste { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; background: var(--flaeche); border-radius: 18px; margin-bottom: 20px; }
.modul-leiste .daumen { width: 96px; border-radius: 10px; }
.modul-leiste h2 { font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--petrol); }
.modul-leiste .rechts { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.uebersicht-knopf { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 10px; border-radius: 10px; }
.uebersicht-knopf .ti { font-size: 22px; }
.uebersicht-knopf:hover { background: rgba(255,255,255,.7); }
.modul-leiste .ring b { font-size: 13px; }
.lektion-raster { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.lektion-raster.ohne-liste { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.lektion-haupt { padding: 24px; }
.lektion-haupt h1 { font-size: 26px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; color: var(--petrol); }
.lektion-haupt > .meta { margin-bottom: 18px; }
.video { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b1f22; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kein-video { border-radius: 14px; background: var(--flaeche); padding: 40px; text-align: center; color: var(--text-leise); }
.fortsetzen { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--flaeche); font-size: 15px; }
.fortsetzen button { font-size: 18px; color: var(--text-leise); }
.beschreibung { margin-top: 22px; font-size: 16px; line-height: 1.7; }
.beschreibung p + p { margin-top: 12px; }
.beschreibung a { color: var(--petrol); text-decoration: underline; word-break: break-word; }
.material { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--flaeche); color: var(--petrol); }
.material .symbol { width: 46px; height: 46px; border-radius: 50%; background: var(--weiss); display: grid; place-items: center; font-size: 22px; flex: none; }
.material h3 { font-size: 16px; font-weight: 600; }
.material p { font-size: 14px; color: var(--text-leise); }
.material .btn { margin-left: auto; }
.aktionen { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--linie); }
.icon-knopf { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss); color: var(--petrol); display: grid; place-items: center; font-size: 21px; transition: border-color .15s, background .15s; flex: none; cursor: pointer; }
.icon-knopf:hover { border-color: var(--gruen); }
.icon-knopf.an { background: var(--gruen); border-color: var(--gruen); color: var(--petrol-dark); }
.abschluss-leiste { margin-left: auto; display: flex; gap: 10px; }
.leiste-uebersicht, .nur-mobil { display: none; }
.nur-desktop, .nur-mobil { align-items: center; gap: 8px; }
.nur-desktop { display: inline-flex; }
.naechste { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 12px 18px 12px 12px; color: var(--petrol); }
.naechste .daumen { width: 120px; }
.naechste h3 { font-size: 17px; font-weight: 600; }
.naechste .ti-arrow-right { margin-left: auto; font-size: 22px; }
.naechste:hover { border-color: var(--gruen); color: var(--petrol); }
.seitenliste { padding: 18px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.seitenliste h2 { font-size: 16px; font-weight: 600; color: var(--petrol); }
.seitenliste .lektion-zeile { padding: 8px; gap: 10px; margin-top: 8px; }
.seitenliste .lektion-zeile .daumen { width: 72px; border-radius: 6px; }
.seitenliste .lektion-zeile h3 { font-size: 14px; }
.seitenliste .lektion-zeile .meta { font-size: 12px; }
.seitenliste .haken { width: 24px; height: 24px; font-size: 13px; }
.seitenliste .btn { width: 100%; margin-top: 14px; }

/* ===== Popup ===== */
.popup-hintergrund { position: fixed; inset: 0; background: rgba(1,48,56,.45); display: grid; place-items: center; padding: 20px; z-index: 1100; }
.popup-hintergrund[hidden] { display: none; }
.popup { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--weiss); border-radius: 22px; padding: 22px; }
.popup-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.popup-kopf h2 { font-size: 20px; font-weight: 600; color: var(--petrol); }

/* ===== Seiten-Banner (Lesezeichen, Material) ===== */
.seiten-banner { background: var(--flaeche); border-radius: 22px; padding: 26px 28px; display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.seiten-banner .symbol { width: 54px; height: 54px; border-radius: 50%; background: var(--gruen); color: var(--petrol-dark); display: grid; place-items: center; font-size: 26px; flex: none; }
.seiten-banner h1 { font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--petrol); }
.seiten-banner p { color: var(--text-leise); }
.material-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.material-liste .material { margin: 0; background: var(--weiss); border: 1px solid var(--linie); align-items: flex-start; }
.material-liste .material .symbol { background: var(--flaeche); }
.material-liste .material .btn { align-self: center; }
.leer-zustand { text-align: center; padding: 56px 24px; }
.leer-zustand svg { margin: 0 auto 22px; display: block; }
.leer-zustand h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; color: var(--petrol); }
.leer-zustand p { color: var(--text-leise); max-width: 420px; margin: 0 auto 22px; }

/* ===== Countdown nach Videoende ===== */
.countdown { position: fixed; right: 24px; bottom: 24px; z-index: 1050; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 520px; background: var(--weiss); border: 2px solid var(--gruen); border-radius: 18px; padding: 14px 16px; box-shadow: var(--schatten-hover); color: var(--petrol); }
.countdown-text { flex: 1; min-width: 180px; }
.countdown-text strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
@media (max-width: 640px) { .countdown { left: 12px; right: 12px; bottom: 12px; } .countdown .btn { flex: 1; } }

/* ===== Hinweis unten ===== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--petrol); color: var(--weiss); padding: 12px 20px; border-radius: 999px; font-size: 15px; z-index: 300; box-shadow: var(--schatten-hover); max-width: calc(100% - 32px); text-align: center; }

/* ===== Bestehende Seiten (Profil, Admin) im neuen Rahmen ===== */
.page-header { background: transparent; border: 0; padding: 32px 40px 8px; }
.page-header h1 { font-size: 28px; font-weight: 600; color: var(--petrol); }
.page-header p { color: var(--text-leise); font-size: 15px; }
.page-body { padding: 20px 40px 56px; }
.card { border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten); }
.card-header { color: var(--petrol); font-weight: 600; border-bottom-color: var(--linie); }
.form-group label { color: var(--petrol); }
.form-group input, .form-group select, .form-group textarea { border-color: var(--linie); border-radius: 12px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gruen); }
.stat-card { border: 1px solid var(--linie); border-radius: var(--r-karte); }
.stat-card .stat-value { color: var(--petrol); }

/* ===== Login, Passwort vergessen, Passwort setzen ===== */
.anmeldung { background: var(--weiss); }
.anmeldung a:hover { text-decoration: none; }
.anmeldung-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.anmeldung-bild { background: var(--flaeche); padding: 40px 48px; display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.anmeldung-gruss { margin-top: auto; max-width: 460px; }
.anmeldung-gruss h2 { font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--petrol); margin-bottom: 14px; }
.anmeldung-gruss p { font-size: 17px; color: var(--text-leise); }
.anmeldung-produkt { width: 100%; max-width: 560px; margin-bottom: auto; border-radius: 18px; background: var(--weiss); padding: 18px; box-shadow: var(--schatten); }
.anmeldung-seite { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; }
.anmeldung-box { width: 100%; max-width: 420px; margin: auto 0; }
.anmeldung-marke-mobil { display: none; }
.anmeldung-box h1 { font-size: 32px; font-weight: 600; line-height: 1.15; color: var(--petrol); margin-bottom: 8px; }
.anmeldung-unter { color: var(--text-leise); margin-bottom: 26px; }
.anmeldung-symbol { width: 60px; height: 60px; border-radius: 50%; background: var(--flaeche); color: var(--petrol); display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; }
.anmeldung .form-group { margin-bottom: 18px; }
.anmeldung .form-group label { font-size: 14px; font-weight: 600; color: var(--petrol); margin-bottom: 6px; }
.anmeldung .form-group input { height: 50px; padding: 0 16px; font-size: 16px; color: var(--petrol); border: 1px solid var(--linie); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.anmeldung .form-group input:focus { border-color: var(--gruen); box-shadow: 0 0 0 4px rgba(143,185,97,.18); }
.anmeldung .form-group input::placeholder { color: #9BB3B6; }
.anmeldung-label-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.anmeldung-label-zeile a { font-size: 14px; font-weight: 500; color: var(--text-leise); margin-bottom: 6px; }
.anmeldung-label-zeile a:hover { color: var(--petrol); }
.anmeldung .form-check { color: var(--text-leise); font-size: 14px; margin: 0 0 22px; }
.anmeldung .form-check input[type="checkbox"] { accent-color: var(--gruen); width: 18px; height: 18px; }
.anmeldung-knopf { width: 100%; padding: 15px 22px; font-size: 16px; }
.anmeldung .alert { border-radius: 12px; font-size: 15px; }
.anmeldung-zurueck { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 15px; color: var(--text-leise); }
.anmeldung-zurueck:hover { color: var(--petrol); }
.anmeldung-hinweis { margin-top: 24px; border-radius: 12px; background: var(--flaeche); padding: 14px 16px; font-size: 13px; line-height: 1.55; color: var(--text-leise); }
.anmeldung-hinweis p + p { margin-top: 8px; }
.anmeldung-kauf { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--text-leise); }
.anmeldung-kauf a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--petrol); }
.anmeldung-kauf a:hover { color: var(--gruen-text); }
.anmeldung-recht { margin-top: 32px; font-size: 13px; color: var(--text-leise); display: flex; gap: 8px; }
.anmeldung-recht a { color: var(--text-leise); }
.anmeldung-recht a:hover { color: var(--petrol); }
@media (max-width: 900px) {
    .anmeldung-raster { grid-template-columns: minmax(0, 1fr); }
    .anmeldung-bild { display: none; }
    .anmeldung-seite { padding: 28px 20px 20px; justify-content: flex-start; }
    .anmeldung-box { margin: 0; }
    .anmeldung-marke-mobil { display: flex; padding: 0 0 36px; }
    .anmeldung-box h1 { font-size: 28px; }
}

/* ===== Tablet ===== */
@media (max-width: 1180px) {
    .lektion-raster { grid-template-columns: minmax(0, 1fr); }
    .seitenliste { display: none; }
    .kurse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
    .app-layout { grid-template-columns: minmax(0, 1fr); }
    .nrc-sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 290px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--schatten-hover); z-index: 1000; }
    .menue-offen .nrc-sidebar { transform: none; }
    .menue-offen .nrc-schleier { display: block; }
    .nrc-schleier { position: fixed; inset: 0; background: rgba(1,48,56,.4); z-index: 950; }
    .nrc-mobilkopf { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 10px 16px; border-bottom: 1px solid var(--linie); }
    .nrc-mobilkopf .marke { padding: 0; }
    .nrc-mobilkopf .marke img { width: 34px; height: 34px; }
    .nrc-mobilkopf .marke b { font-size: 13px; }
    .menue-knopf { width: 44px; height: 44px; border-radius: 50%; background: var(--flaeche); color: var(--petrol); display: grid; place-items: center; font-size: 22px; border: 0; cursor: pointer; }
    .inhalt { padding: 20px 24px 56px; }
    .page-header { padding: 24px 24px 4px; }
    .page-body { padding: 16px 24px 48px; }
    .start { grid-template-columns: minmax(0, 1fr); }
    .zuletzt { flex-direction: row; align-items: center; }
    .zuletzt .daumen { width: 42%; }
    .zuletzt .text { flex: 1; min-width: 0; }
}

/* ===== Handy ===== */
@media (max-width: 640px) {
    .inhalt { padding: 16px 16px 48px; }
    .page-header { padding: 20px 16px 0; flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 24px; }
    .page-body { padding: 16px 16px 40px; }
    .kopf { margin-bottom: 18px; }
    .suche { max-width: none; }
    .willkommen { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 0; }
    .willkommen h1 { font-size: 27px; }
    .willkommen p { margin-bottom: 22px; }
    .ring-block { margin: 0; display: flex; align-items: center; gap: 12px; text-align: left; order: -1; }
    .ring-block .ring { width: 72px !important; height: 72px !important; }
    .ring-block .ring b { font-size: 18px; }
    .ring-block small { margin: 0; font-size: 15px; }
    .willkommen .knoepfe { width: 100%; }
    .willkommen .knoepfe .btn { flex: 1; }
    .zuletzt { flex-direction: column; align-items: stretch; }
    .zuletzt .daumen { width: 100%; }
    .zuletzt .unten .btn { flex: 1; }
    .kurse { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .kurs-karte.haupt { grid-column: auto; flex-direction: column; }
    .kurs-karte.haupt .bild { width: 100%; aspect-ratio: 16 / 10; }
    .kurs-karte.haupt .text { padding: 18px; }
    .kurs-karte.haupt h3 { font-size: 21px; }
    .ueberschrift { margin: 32px 0 14px; }
    .ueberschrift h2 { font-size: 20px; }
    .banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; position: relative; }
    .banner > img, .banner > .daumen { width: 100%; }
    .banner h1 { font-size: 24px; }
    .banner .ring { position: absolute; right: 26px; top: 26px; margin: 0; background: var(--weiss); border-radius: 50%; width: 76px !important; height: 76px !important; box-shadow: var(--schatten-hover); }
    .banner .ring .ring-spur { stroke: var(--flaeche); }
    .banner .ring b { font-size: 17px; }
    .weiter-leiste { flex-wrap: wrap; gap: 12px; }
    .weiter-leiste .daumen { width: 88px; }
    .weiter-leiste > div:not(.daumen) { flex: 1; min-width: 0; }
    .weiter-leiste h3 { font-size: 17px; }
    .weiter-leiste .btn { width: 100%; margin: 0; }
    .modul-zeile { gap: 14px; padding: 10px 12px 10px 10px; align-items: flex-start; }
    .modul-zeile .daumen { width: 104px; }
    .modul-zeile h3 { font-size: 17px; }
    .modul-zeile .meta { font-size: 13px; }
    .modul-zeile .balken { display: none; }
    .status-rund { width: 40px; height: 40px; font-size: 19px; align-self: center; }
    .status-rund.start { font-size: 0; gap: 0; }
    .freischaltung { font-size: 13px; }
    .vorschau-link { margin-left: 0; display: flex; }
    .lektionen { padding: 14px; }
    .lektion-zeile { gap: 12px; padding: 8px 10px 8px 8px; }
    .lektion-zeile .daumen { width: 92px; }
    .lektion-zeile h3 { font-size: 15px; }
    .lektion-zeile .meta { font-size: 13px; }
    .lektion-zeile .btn { display: none; }
    .brotkrumen { font-size: 13px; }
    .modul-leiste { gap: 12px; padding: 10px; }
    .modul-leiste .daumen { display: none; }
    .modul-leiste h2 { font-size: 16px; }
    .modul-leiste .rechts { gap: 8px; }
    .lektion-haupt { padding: 0; border: 0; box-shadow: none; }
    .lektion-haupt h1 { font-size: 22px; }
    .video { border-radius: 12px; }
    .material { flex-wrap: wrap; }
    .material .btn { width: 100%; margin: 0; }
    .aktionen { flex-wrap: wrap; }
    .abschluss-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--linie); box-shadow: 0 -6px 20px rgba(2,71,81,.06); }
    .abschluss-leiste.ohne-uebersicht { grid-template-columns: minmax(0, 1fr); }
    .abschluss-leiste .btn { width: 100%; padding: 13px 14px; }
    .abschluss-leiste .btn-gruen:hover { transform: none; }
    .abschluss-leiste .abhaken:has(.nur-mobil) { background: var(--gruen); border-color: var(--gruen); color: var(--petrol-dark); box-shadow: 0 8px 20px rgba(143,185,97,.35); }
    .leiste-uebersicht { display: inline-flex; }
    .nur-desktop { display: none; }
    .nur-mobil { display: inline-flex; }
    body.vollbild .abschluss-leiste { display: none; }
    .seite-lektion .inhalt { padding-bottom: 110px; }
    .seite-lektion .countdown { bottom: 84px; }
    .seite-lektion .toast { bottom: 96px; }
    .naechste .daumen { width: 92px; }
    .naechste h3 { font-size: 16px; }
    .seiten-banner { padding: 20px; }
    .seiten-banner h1 { font-size: 22px; }
    .material-liste { grid-template-columns: minmax(0, 1fr); }
    .popup { padding: 18px; border-radius: 18px; }
}
