/* Mitgliederbereich der Käufer: Startseite „Meine Kurse“, Konto, Anmeldung (die Kursansicht selbst kommt aus mitglied.css) */
body { background: var(--paper); }

/* Kopfleiste */
.mz-kopf { background: var(--night); color: #EEF2FB; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(238, 242, 251, .08); }
.mz-kopf-innen { max-width: 1120px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; gap: .7rem; }
.mz-kopf img { height: 26px; width: auto; }
.mz-kopf b { font: 700 1rem var(--f-display); letter-spacing: -.01em; }
.mz-kopf nav { margin-left: auto; display: flex; gap: .4rem; }
.mz-kopf nav a, .mz-kopf nav button { color: #EEF2FB; background: transparent; border: 1px solid rgba(238, 242, 251, .22); border-radius: 999px;
  padding: .4rem 1rem; min-height: 44px; font: 600 .95rem var(--f-body); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }

/* Begrüßung mit „Weitermachen“ */
.mz-held { background: radial-gradient(900px 420px at 85% -20%, rgba(58, 116, 255, .35), transparent 60%),
  radial-gradient(700px 380px at 0% 0%, rgba(2, 45, 127, .9), transparent 70%), var(--night); color: #EEF2FB; }
.mz-held-innen { max-width: 1120px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 16px clamp(2rem, 5vw, 3.5rem); }
.mz-gruss { font: 600 .95rem var(--f-body); color: var(--sky); margin: 0 0 .5rem; }
.mz-held h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -.025em; line-height: 1.08; margin: 0 0 .75rem; max-width: 18ch; }
.mz-held-unter { font-size: 1.1rem; color: #C3CCE2; max-width: 46ch; margin: 0 0 2rem; }

.mz-weiter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: rgba(255, 255, 255, .06); border: 1px solid rgba(238, 242, 251, .12);
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.mz-weiter-bildlink { display: block; }
.mz-weiter-bild { position: relative; height: 100%; min-height: 240px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--akzent, var(--electric)), var(--navy)); color: #fff; font: 700 1.5rem/1.2 var(--f-display); text-align: center; padding: 1.5rem; }
.mz-weiter-bild:has(img) { padding: 0; }
.mz-weiter-nr { position: absolute; left: 1.25rem; bottom: .5rem; font: 800 clamp(4rem, 10vw, 7rem)/1 var(--f-display); letter-spacing: -.04em; color: rgba(255, 255, 255, .16); }
.mz-weiter-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mz-play { position: absolute; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  display: grid; place-items: center; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.mz-play::after, .mz-knopf-play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--night); margin-left: 5px; }
.mz-weiter-text { padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; gap: .55rem; }
.mz-auge { font: 700 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--sky); margin: 0; }
.mz-weiter h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 0; color: #fff; }
.mz-weiter-meta { color: #A3AECB; margin: 0; }
.mz-bald { color: #F5C08A; margin: .25rem 0 0; }
.mz-knopf { align-self: flex-start; margin-top: .75rem; display: inline-flex; align-items: center; gap: .65rem; min-height: 52px; padding: .8rem 1.5rem .8rem 1.1rem;
  background: #fff; color: var(--night); border-radius: 999px; font: 700 1.05rem var(--f-body); text-decoration: none; box-shadow: 0 8px 24px rgba(58, 116, 255, .35);
  transition: transform .2s, box-shadow .2s; }
.mz-knopf-play { width: 30px; height: 30px; border-radius: 50%; background: var(--electric); display: grid; place-items: center; }
.mz-knopf-play::after { border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.mz-weiter-fortschritt { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; color: #A3AECB; }
.mz-weiter-fortschritt .mz-balken { flex: 1; max-width: 260px; background: rgba(238, 242, 251, .15); }

/* Inhalt */
.mz-inhalt { max-width: 1120px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) 16px 3rem; }
.mz-abschnitt { font-size: 1.4rem; letter-spacing: -.015em; margin: 0 0 1.25rem; }
.mz-kurse { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mz-karte { position: relative; background: var(--karte); border: 1px solid var(--linie); border-radius: 20px; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(11, 22, 51, .05), 0 10px 30px rgba(11, 22, 51, .07);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.mz-karte-bild { position: relative; }
.mz-bild { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: #fff; font: 700 1.35rem/1.2 var(--f-display); letter-spacing: -.01em;
  text-align: center; padding: 1.25rem; background: radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .22), transparent 50%), linear-gradient(135deg, var(--akzent, var(--electric)), var(--navy)); }
.mz-bild:has(img) { padding: 0; background: var(--navy); }
.mz-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mz-status { position: absolute; left: 12px; top: 12px; font: 700 .78rem var(--f-body); padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.mz-status.neu { background: var(--electric); color: #fff; }
.mz-status.fertig { background: #1F7A52; color: #fff; }
.mz-status.bald { background: rgba(5, 10, 24, .75); color: #EEF2FB; }
.mz-text { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.mz-text h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.01em; }
.mz-unter { margin: 0; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mz-zahlen { margin: 0; color: var(--ink-muted); font-size: .9rem; }
.mz-balken { height: 6px; border-radius: 99px; background: var(--linie); overflow: hidden; }
.mz-balken span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--electric), #6E9BFF); border-radius: 99px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.mz-karte-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--paper); color: var(--navy); font-weight: 700; text-decoration: none; }
.mz-karte-link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }  /* ganze Karte klickbar */
.mz-karte-link:focus-visible { outline: none; }
.mz-karte:has(.mz-karte-link:focus-visible) { outline: 3px solid var(--electric); outline-offset: 3px; }
.mz-karte.gesperrt .mz-bild { filter: saturate(.4); }

.mz-tipps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mz-tipps li { background: var(--karte); border: 1px solid var(--linie); border-radius: 16px; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.mz-tipps li span { color: var(--ink-muted); font-size: .95rem; }
.mz-leer { text-align: center; max-width: 34rem; margin: 1rem auto; }
.mz-leer p { color: var(--ink-muted); }
.mz-schmal { max-width: 560px; }
.mz-zurueck { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.mz-schmal form { background: var(--karte); border: 1px solid var(--linie); border-radius: 16px; padding: 1.25rem; }

/* Anmeldung */
.anmelde-karte h1 { font-size: 1.6rem; letter-spacing: -.02em; }
.anmelde-karte .leise { margin-top: -.25rem; }
.pw-huelle { position: relative; }
.pw-huelle input { padding-right: 5.5rem; }
.pw-zeigen { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: .3rem .7rem; border-radius: 8px;
  background: transparent; color: var(--navy); font-size: .9rem; border: 0; }

/* Kursansicht: ganze Höhe */
#app > .mb { min-height: 100vh; }

@media (hover: hover) {
  .mz-kopf nav a:hover, .mz-kopf nav button:hover { background: rgba(238, 242, 251, .1); }
  .mz-weiter-bildlink:hover img { transform: scale(1.03); }
  .mz-weiter-bildlink:hover .mz-play { transform: scale(1.08); }
  .mz-knopf:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(58, 116, 255, .45); }
  .mz-karte:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 22, 51, .05), 0 20px 50px rgba(11, 22, 51, .12); }
  .mz-karte:hover .mz-bild img { transform: scale(1.04); }
  .mz-karte:hover .mz-karte-link { background: var(--navy); color: #fff; }
  .pw-zeigen:hover { background: var(--paper); }
}
@media (max-width: 760px) {
  .mz-weiter { grid-template-columns: 1fr; }
  .mz-weiter-bild { min-height: 0; }
  .mz-knopf { align-self: stretch; justify-content: center; }
  .mz-kurse { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mz-kopf b { font-size: .95rem; }
  .mz-kopf nav a, .mz-kopf nav button { padding: .4rem .75rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mz-karte, .mz-bild img, .mz-weiter-bild img, .mz-play, .mz-knopf, .mz-balken span { transition: none; }
}

/* Fuß mit Rechtstexten (aus Backoffice → Einstellungen) */
.mb-recht { max-width: 60rem; margin: 2rem auto 1.5rem; padding: 0 1rem; color: #5b6478; font-size: .875rem; text-align: center; }
.mb-recht-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25rem 1.25rem; margin: 0 0 .5rem; }
.mb-recht a { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: .35rem 0; }
.mb-recht-hinweis { margin: 0 auto; max-width: 42rem; line-height: 1.5; }
.anmelde-karte p.klein { margin: .5rem 0 0; }
.anmelde-karte p.klein a { display: inline-block; padding: .65rem 0; }

/* Fuß erst unterhalb des sichtbaren Bereichs – nichts springt beim Laden (CLS) */
#app { min-height: 100vh; min-height: 100dvh; }

/* Logo und Home führen zur Übersicht; Kurse aus dem Gesamtangebot (noch nicht gekauft) */
.mz-logo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; margin-left: -.25rem; border-radius: 8px; }
.mz-heim { display: inline-flex; align-items: center; gap: .4rem; }
.mz-haus { width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: url("bilder/haus.svg") center / contain no-repeat; mask: url("bilder/haus.svg") center / contain no-repeat; }
.mz-kopf nav a[aria-current="page"] { background: rgba(238, 242, 251, .14); border-color: transparent; }
.mz-abschnitt-unter { color: var(--grau, #5b6478); margin: -.75rem 0 1.5rem; }
.mz-status.zu { background: rgba(5, 10, 24, .78); color: #EEF2FB; }
.mz-zu .mz-bild { filter: saturate(.55) brightness(.9); }
.mz-zu .mz-karte-link { background: transparent; color: var(--navy); border: 1px solid var(--linie); }
.vorschau-band select { margin-left: .3rem; min-height: 36px; padding: .2rem .5rem; border-radius: 8px; border: 1px solid #d9c48a; background: #fff; font: inherit; }
@media (max-width: 600px) { .mz-kopf b { display: none; } }

/* Kurse „In Vorbereitung“: ausgegraut, nicht anklickbar */
.mz-bald { background: #F1F3F8; box-shadow: none; }
.mz-bald h3, .mz-bald .mz-unter, .mz-bald .mz-zahlen { color: #5A6478; }
.mz-bald .mz-bild { filter: grayscale(1) brightness(.95); }
.mz-bald:hover { transform: none; box-shadow: none; }
/* Gesperrte Kurse: Schloss über dem Bild */
.mz-schloss { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.mz-schloss svg { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: rgba(5, 10, 24, .62); fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 8px 24px rgba(5, 10, 24, .35); }
@media (hover: hover) { .mz-zu:hover .mz-schloss svg { background: var(--electric); } }
/* Anmeldung: kostenloses Konto */
.anmelde-neu { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); text-align: center; }
.anmelde-neu p { margin: 0 0 .75rem; color: var(--ink-muted, #5A6478); }
.knopf-zweit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--navy); color: var(--navy); font-weight: 600; text-decoration: none; }
.knopf-zweit:hover, .knopf-zweit:focus-visible { background: var(--navy); color: #fff; }
.feld-haken { display: flex; align-items: flex-start; gap: .6rem; }
.feld-haken input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--navy); }
.feld-haken label { margin: 0; font-weight: 400; line-height: 1.45; }
.mz-karte-knoepfe { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mz-karte-knoepfe .mz-karte-link { margin-top: 0; }
.mz-kaufen { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px;
  background: var(--electric); color: #fff; font-weight: 600; text-decoration: none; }
.mz-kaufen:hover, .mz-kaufen:focus-visible { background: var(--navy); color: #fff; }
