/* Gestaltung detlevreich.com – ein Blau, eine Kontrastfarbe, viel Weissraum. */

:root {
    --blue: #003057;
    --blue-deep: #001f3a;
    --blue-soft: #e8eef4;
    --accent: #fabd6b;
    --accent-strong: #f5a53a;
    --accent-ink: #2b1a00;
    --ink: #0d1b2a;
    --muted: #5a6878;
    --line: #dfe5ec;
    --bg: #ffffff;
    --bg-tint: #f4f6f9;
    --radius: 18px;
    --radius-small: 10px;
    --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 12px 32px -12px rgba(13, 27, 42, .18);
    --wrap: 1160px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Für die wählbaren Themen (themes.css): Flächen von Karten, Eingabefelder, Textfarbe von Links, Kopfleiste. */
    --surface: #ffffff;
    --field: #ffffff;
    --link: var(--blue);
    --header-bg: rgba(255, 255, 255, .88);
    --font-head: var(--font);
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

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

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; color: var(--link); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
    padding: 8px 14px; border-radius: 999px; text-decoration: none;
    font-size: .95rem; font-weight: 500; color: var(--ink);
}
.nav a:hover { background: var(--bg-tint); }
.nav a[aria-current] { background: var(--blue-soft); color: var(--link); }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.link-quiet {
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
    font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.link-quiet:hover { color: var(--ink); }
.cart-link {
    position: relative; display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 999px; color: var(--link); background: var(--blue-soft);
}
.cart-link__count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700;
}

/* --- Knöpfe -------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
    font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
    transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-strong); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- Bühne --------------------------------------------------------------- */

.hero {
    color: #fff;
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(250, 189, 107, .22), transparent 60%),
        linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.hero__inner {
    display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center;
    padding-block: clamp(56px, 9vw, 112px);
}
.hero--compact .hero__inner { padding-block: clamp(48px, 7vw, 88px); }
.hero--compact .hero__inner:has(.hero__text:only-child) { grid-template-columns: minmax(0, 780px); }
.eyebrow {
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 18px;
}
.eyebrow--dark { color: var(--muted); margin-bottom: 8px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .82); margin-top: 20px; max-width: 58ch; }
/* drop-shadow statt box-shadow: freigestellte Bilder (PNG) bekommen den Schatten an ihrer Kontur. */
.hero__portrait img {
    width: 100%; max-height: 460px; object-fit: contain; border-radius: 28px;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .45));
}

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

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--bg-tint); }
.section--flush { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.page-head .lead { color: var(--muted); margin-top: 10px; }
.link-arrow { font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-back { display: inline-block; margin-bottom: 20px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.link-back::before { content: "← "; }
.link-back:hover { color: var(--ink); }

/* --- Einstiege auf der Startseite ---------------------------------------- */

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entry {
    display: flex; flex-direction: column; gap: 10px; padding: 28px;
    border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.entry:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.entry h2 { font-size: 1.25rem; }
.entry p { color: var(--muted); margin: 0; font-size: .97rem; }
.entry__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.entry__more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--link); }
.entry__more::after { content: " →"; }
.entry--strong { background: var(--blue); border-color: var(--blue); color: #fff; }
.entry--strong p, .entry--strong .entry__kicker { color: rgba(255, 255, 255, .75); }
.entry--strong .entry__more { color: var(--accent); }

/* --- Produkte ------------------------------------------------------------ */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; text-decoration: none; }
/* Die Buchbilder haben einen weissen Hintergrund: weisse Karte mit feinem Rahmen, damit kein Bildrand sichtbar wird. */
.product-card__cover {
    position: relative; aspect-ratio: 4 / 5;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
/* Das Bild füllt die Fläche innerhalb des Rands und wird ganz gezeigt – mittig, nie angeschnitten, egal welches Format. */
.product-card__cover img {
    position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain;
    transition: transform .25s ease;
}
.product-card:hover .product-card__cover { border-color: #c5d0dc; box-shadow: var(--shadow); }
.product-card:hover .product-card__cover img { transform: scale(1.02); }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 4px 0; }
.tag {
    align-self: flex-start; padding: 3px 10px; border-radius: 999px;
    background: var(--blue-soft); color: var(--link); font-size: .75rem; font-weight: 600;
}
.price { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.price--large { font-size: 1.6rem; margin-block: 14px 22px; }

.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
    font-size: .9rem; font-weight: 500; text-decoration: none; background: var(--surface);
}
.chip:hover { border-color: var(--blue); }
.chip[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }

.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product__cover {
    position: sticky; top: 92px; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px);
    background: #fff; border: 1px solid var(--line); border-radius: 28px;
}
.product__cover img { max-height: 520px; width: auto; }
.product__info h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }
.buy { display: flex; gap: 12px; margin-bottom: 14px; }
.qty input, .cart-line__qty input {
    width: 76px; height: 100%; min-height: 48px; padding: 0 12px; text-align: center;
    border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--field);
}
.formats { margin-top: 28px; display: grid; gap: 8px; }
.formats__label { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.format {
    display: flex; justify-content: space-between; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-small); text-decoration: none; font-weight: 500;
}
.format:hover { border-color: var(--blue); }
.prose { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }

/* --- Warenkorb ----------------------------------------------------------- */

.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cart__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 110px; gap: 18px; align-items: center;
    padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cart-line__cover { width: 64px; height: 84px; object-fit: contain; }
.cart-line__title { display: flex; flex-direction: column; gap: 2px; }
.cart-line__title a { font-weight: 600; text-decoration: none; }
.cart-line__title a:hover { text-decoration: underline; }
.cart-line__qty { display: flex; align-items: center; gap: 14px; }
.cart-line__qty input { min-height: 42px; }
.cart-line__total { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary {
    position: sticky; top: 92px; display: grid; gap: 18px; padding: 28px;
    background: var(--bg-tint); border-radius: var(--radius);
}
.summary h2 { font-size: 1.2rem; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .link-quiet { justify-self: center; }

.empty, .notice {
    display: grid; gap: 14px; justify-items: start; max-width: 620px; padding: 36px;
    background: var(--bg-tint); border-radius: var(--radius);
}
.empty p, .notice p { margin: 0; }

/* --- Kurs- und Webinarseite ---------------------------------------------- */

.module-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.module p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.module__no {
    display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px;
    border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem;
}
/* Ablauf: Schritte an einer durchgehenden Linie (Baustein «Nummerierte Punkte», Darstellung «Ablauf») */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--process-steps, 4), minmax(0, 1fr)); gap: 0 28px; }
.process__step { position: relative; padding-top: 68px; }
.process__no {
    position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
    background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--bg);
}
.section--tint .process__no { box-shadow: 0 0 0 6px var(--bg-tint); }
.process__step::before { content: ""; position: absolute; top: 21px; left: 0; right: -28px; height: 2px; background: var(--line); }
.process__step:last-child::before { right: auto; width: 44px; }
.process__step:last-child .process__no { background: var(--accent); color: var(--accent-ink); }
.process { row-gap: 40px; }
.process--c3 .process__step:nth-child(3n)::before, .process--c4 .process__step:nth-child(4n)::before { right: 0; }
.process h3 { margin: 0; font-size: 1.08rem; hyphens: auto; }
.process p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) {
    .process { grid-template-columns: minmax(0, 1fr); gap: 0; row-gap: 0; }
    .process__step { padding: 0 0 28px 64px; min-height: 44px; }
    .process__step:last-child { padding-bottom: 0; }
    .process__step::before, .process__step:last-child::before { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
    .process__step:last-child::before { display: none; }
    .process__body { padding-top: 9px; }
}
/* Themenliste: Überschrift links, rechts die Punkte untereinander an einer senkrechten Linie */
.agenda { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 64px; align-items: start; }
.agenda .section__head { margin: 0; }
.agenda__list { list-style: none; margin: 0; padding: 0; }
.agenda__list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 22px; align-items: start; padding-bottom: 26px; }
.agenda__list li:last-child { padding-bottom: 0; }
.agenda__list li::before { content: ""; position: absolute; top: 44px; bottom: 0; left: 21px; width: 2px; background: var(--line); }
.agenda__list li:last-child::before { display: none; }
.agenda__list .process__no { position: static; box-shadow: none; }
.agenda__list li:last-child .process__no { background: var(--accent); color: var(--accent-ink); }
.agenda__list h3 { margin: 0; padding-top: 9px; font-size: 1.15rem; line-height: 1.35; }
.agenda__list p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .agenda { grid-template-columns: minmax(0, 1fr); } }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.feature-list li { display: grid; gap: 2px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list span { color: var(--muted); font-size: .95rem; }
.offer {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--blue-soft);
}
.offer p { margin: 12px 0 0; }
.offer__buy { display: grid; gap: 14px; justify-items: start; }
.signup {
    display: grid; gap: 14px; padding: 28px; border-radius: var(--radius);
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.signup h2 { font-size: 1.3rem; }
.signup label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.signup input {
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font: inherit;
}
.signup .small { margin: 0; color: var(--muted); }

/* --- Fuss ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-footer__nav a:hover { color: var(--ink); }

/* --- Kundenbereich: bewusst schlicht ------------------------------------- */

.konto { background: var(--bg-tint); }
.konto-bar {
    display: flex; align-items: center; gap: 32px; padding: 0 24px; min-height: 60px;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.konto-bar > * { white-space: nowrap; flex: none; }
.konto-bar nav { display: flex; gap: 4px; margin-right: auto; }
.konto-bar nav a {
    padding: 6px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500;
    text-decoration: none; color: var(--muted);
}
.konto-bar nav a[aria-current] { background: var(--blue-soft); color: var(--link); }

.course { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.course__nav { padding: 28px 20px; background: var(--surface); border-right: 1px solid var(--line); }
.course__title { margin: 0 0 14px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.progress { height: 6px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 999px; background: var(--accent-strong); }
.course__nav > .small { margin: 8px 0 22px; }
.course-module { border-top: 1px solid var(--line); }
.course-module summary {
    display: flex; align-items: center; gap: 12px; padding: 14px 4px;
    font-weight: 600; font-size: .96rem; cursor: pointer; list-style: none;
}
.course-module summary::-webkit-details-marker { display: none; }
.course-module__no {
    display: grid; place-items: center; width: 24px; height: 24px; flex: none;
    border-radius: 999px; background: var(--bg-tint); color: var(--muted); font-size: .78rem;
}
.course-module[open] .course-module__no { background: var(--blue); color: #fff; }
.course-module ul { list-style: none; margin: 0 0 12px; padding: 0; }
.course-module li a {
    display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius-small);
    text-decoration: none; font-size: .93rem; color: var(--muted);
}
.course-module li a:hover { background: var(--bg-tint); color: var(--ink); }
.course-module li a[aria-current] { background: var(--blue-soft); color: var(--link); font-weight: 600; }
.check { width: 16px; height: 16px; flex: none; border-radius: 999px; border: 1.5px solid #b9c4d0; }
.check--done {
    border-color: var(--blue); background: var(--blue)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.course__main { width: min(880px, 100% - 48px); margin-inline: auto; padding-block: 40px 64px; }
.course__main h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }
.player {
    display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius);
    background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: rgba(255, 255, 255, .85);
}
.materials { margin-top: 32px; padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.materials h2 { font-size: 1.05rem; margin-bottom: 8px; }
.materials ul { list-style: none; margin: 0; padding: 0; }
.materials li + li { border-top: 1px solid var(--line); }
.materials a { display: flex; justify-content: space-between; padding: 14px 0; text-decoration: none; font-weight: 500; }
.materials a:hover { color: var(--link); }
.course__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

/* --- Schmale Bildschirme ------------------------------------------------- */

@media (max-width: 900px) {
    .hero__inner, .product, .cart, .offer, .course { grid-template-columns: minmax(0, 1fr); }
    .hero__portrait { max-width: 320px; }
    .entry-grid, .module-grid, .feature-list { grid-template-columns: minmax(0, 1fr); }
    .product__cover, .summary { position: static; }
    .product__cover img { max-height: 340px; }
    /* Auf dem Handy zuerst die Lektion, darunter die Kursübersicht. */
    .course__main { order: -1; }
    .course__nav { border-right: 0; border-top: 1px solid var(--line); }
    .course { min-height: 0; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .site-header__inner { flex-wrap: wrap; gap: 0 12px; padding-block: 10px; }
    .brand { margin-right: auto; }
    .nav { order: 3; width: 100%; margin: 6px 0 0 -10px; overflow-x: auto; }
    /* «Anmelden» bzw. «Mein Konto» bleibt auch am Handy sichtbar, rechts neben dem Namen. */
    .site-header__actions { gap: 12px; }
    .site-header__actions .link-quiet { font-size: .95rem; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .product-card__cover img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
    .cart-line { grid-template-columns: 52px minmax(0, 1fr) auto; }
    .cart-line__qty { grid-column: 2 / -1; grid-row: 2; }
    .cart-line__total { grid-column: 3; grid-row: 1; }
    .konto-bar { gap: 12px; padding: 0 16px; overflow-x: auto; }
    .buy { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* --- Bausteine ----------------------------------------------------------- */

.wrap--narrow { width: min(760px, 100% - 32px); }
.prose--plain { margin-top: 18px; padding-top: 0; border-top: 0; max-width: none; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.hero__inner--form { grid-template-columns: 1.25fr .75fr; }

.entry h3 { font-size: 1.25rem; }
.entry-grid--2 { grid-template-columns: repeat(2, 1fr); }
.entry-grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__image { width: 100%; border-radius: 28px; }
.split--small { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
.split--small.split--reverse { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.figure { margin-block: 0; }
.figure img { width: 100%; border-radius: 28px; }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { margin: 0; padding: 28px; background: var(--surface); border-radius: var(--radius); display: grid; gap: 18px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote figcaption { display: grid; font-size: .9rem; }
.quote figcaption span { color: var(--muted); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; font-weight: 600; cursor: pointer; }
.faq .prose--plain { margin: 0 0 18px; }

.offer__note { font-weight: 600; color: var(--link); }
.signup--flat { box-shadow: none; }
.hp { position: absolute; left: -9999px; }
.form-error { margin: 0; padding: 10px 14px; border-radius: var(--radius-small); background: #fdecec; color: #8a1c1c; font-size: .92rem; }

/* Nur für die angemeldete Verwaltung sichtbar. */
.admin-strip { padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-size: .88rem; text-align: center; }
.admin-hint--box { margin: 0 0 14px; font-size: .82rem; line-height: 1.45; }
.admin-hint--box strong { display: block; }
.admin-hint--box form { margin-top: 8px; }
.admin-hint--box select { width: 100%; margin-top: 4px; padding: 6px 8px; font: inherit; }
.admin-hint { margin: 24px 0; padding: 12px 16px; border: 1.5px dashed var(--accent-strong); border-radius: var(--radius-small); font-size: .9rem; }

@media (max-width: 900px) {
    .split, .hero__inner--form, .entry-grid--2, .entry-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .split--reverse > :first-child { order: 0; }
}

[id] { scroll-margin-top: 88px; }

/* --- Kursbereich mit echten Inhalten -------------------------------------- */

.konto-page { width: min(960px, 100% - 32px); margin: 40px auto 80px; display: grid; gap: 24px; }
.konto-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.course-card { display: grid; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.course-card:hover { border-color: var(--blue); }
.course-card img, .course-card__blank { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.course-card__blank { display: block; background: linear-gradient(160deg, var(--blue), var(--blue-deep)); }
a.course__title { display: block; color: inherit; text-decoration: none; margin-bottom: 18px; }
.course-module__empty { margin: 0 0 12px 36px; }
.pill-draft { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 600; }
video.player { width: 100%; display: block; background: #000; }
/* Bild einer Lektion: nie grösser als das Original (sonst wird es unscharf), Hochformat bleibt handlich. */
.course__image { display: block; width: auto; height: auto; max-width: 100%; max-height: 560px; border-radius: var(--radius); margin-bottom: 8px; }
.course__image--small { max-width: min(100%, 260px); }
.course__image--medium { max-width: min(100%, 480px); }
.course__image--full { width: 100%; max-height: none; }
.course__main--video { display: grid; gap: 20px; align-content: start; }
.course__main--video h1 { margin-bottom: 0; }
.course__main--video .konto-card h2 { font-size: 1.2rem; margin-bottom: 12px; }
.course__main--video .player { border-radius: var(--radius-small); max-height: 60vh; }
.course-lesson > .check { flex: none; margin: 0 9px; } /* gleiche Breite wie der Abhak-Knopf der Lektionen (34 px) */
.course__main .prose--plain { margin-top: 28px; max-width: 68ch; }

/* --- Webinar-Anmeldung und Kontaktformular --------------------------------- */

.slots { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.slots legend { font-size: .88rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.signup .slots label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font-weight: 500; font-size: .95rem; cursor: pointer; }
.slots label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.slots input { accent-color: var(--link); width: 18px; height: 18px; padding: 0; }
.contact { padding: 0; margin-top: 20px; background: none; }
.contact textarea { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font: inherit; resize: vertical; }
.contact .btn { justify-self: start; }
.contact__intro { margin-top: 12px; color: var(--muted); }

/* --- Kasse und Bestellung --------------------------------------------------- */

.summary__country label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.summary select, .checkout select, .checkout input[type=text], .checkout input[type=email] {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font: inherit; background: var(--field); color: var(--ink);
}
.summary__total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.summary__total dt { color: var(--ink) !important; font-weight: 600; }
.summary__vat { font-size: .85rem; }
.summary__vat dd { font-weight: 400 !important; color: var(--muted); }
.summary__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.summary__items li { display: flex; justify-content: space-between; gap: 16px; }
.summary__items li > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

.checkout { display: grid; gap: 24px; max-width: 620px; }
/* Anmelden mit Code */
.code-input { font-size: 1.6rem !important; font-weight: 700; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 14px 0 0; }
/* Learning Community: Teilnehmende teilen selbst etwas */
.btn--small { padding: 8px 16px; font-size: .88rem; }
.composer { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.composer__main { flex: 1; min-width: 0; display: grid; gap: 12px; }
.composer textarea { width: 100%; min-height: 52px; padding: 8px 0; border: 0; outline: 0; font: inherit; line-height: 1.5; background: transparent; color: var(--ink); resize: none; }
.composer [hidden] { display: none !important; }
.composer__video { display: grid; gap: 10px; }
.composer__video p { margin: 0; }
.composer__consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-small); background: #fff8ec; font-size: .92rem; cursor: pointer; }
.composer__consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--link); }
.composer__progress { display: grid; gap: 6px; }
.composer__progress progress { width: 100%; height: 8px; accent-color: var(--accent-strong); }
.composer__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.composer__add { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; margin-left: -10px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--link); cursor: pointer; }
.composer__add:hover { background: var(--blue-soft); }
.composer__add small { font-weight: 400; color: var(--muted); }
.composer__actions .btn { margin-left: auto; }
.composer .form-error { margin: 0; }
/* Teilen-Feld: eine schmale Zeile, die sich beim Hineinklicken öffnet */
.composer:not(.is-open) { align-items: center; padding: 10px 14px; border-radius: 999px; }
.composer:not(.is-open) > .feed__avatar { width: 32px; height: 32px; font-size: .8rem; }
.composer:not(.is-open) .composer__main { display: flex; align-items: center; gap: 8px; }
.composer:not(.is-open) textarea { flex: 1; min-height: 0; height: 28px; padding: 2px 0; overflow: hidden; white-space: nowrap; }
.composer:not(.is-open) .composer__actions { flex: none; padding: 0; border: 0; }
.composer:not(.is-open) .composer__actions .btn, .composer:not(.is-open) .composer__add small, .composer:not(.is-open) .composer__add span { display: none; }
.composer:not(.is-open) .composer__add { margin: 0; padding: 6px; }
/* Filter über den Beiträgen */
.feed__filter { display: flex; flex-wrap: wrap; gap: 6px; }
.feed__filter button { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: border-color .12s ease, color .12s ease, background-color .12s ease; }
.feed__filter button:hover { color: var(--ink); border-color: var(--muted); }
.feed__filter button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.feed__none { margin: 0; }
.feed__post[hidden] { display: none; }
.feed__older.is-filtered > summary { display: none; }
/* Angepinnt */
.feed__post--pinned { border-color: var(--accent-strong); box-shadow: inset 3px 0 0 var(--accent-strong); }
.feed__pin { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 -4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, #2b1a00); opacity: .75; }
/* Kommentare: eigener, einklappbarer Bereich unter dem Beitrag */
.feed__thread { display: grid; gap: 10px; margin: 2px -22px -20px; padding: 12px 22px 16px; border-top: 1px solid var(--line); background: var(--bg-tint); border-radius: 0 0 var(--radius) var(--radius); }
.feed__thread .feed__comments { display: block; padding: 0; border: 0; }
.feed__comments > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); }
.feed__comments > summary::-webkit-details-marker { display: none; }
.feed__comments > summary:hover { color: var(--ink); }
.feed__toggle::after { content: "anzeigen"; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.feed__comments[open] .feed__toggle::after { content: "einklappen"; }
.feed__list { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 10px; }
.feed__thread .feed__comment { display: flex; align-items: flex-start; gap: 10px; padding: 0; background: none; }
.feed__avatar--small { width: 28px; height: 28px; font-size: .74rem; margin-top: 2px; }
.feed__bubble { flex: 1; min-width: 0; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; }
.feed__bubble p { margin: 0; }
.feed__comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 2px; }
.feed__comment-head form { margin: 0 0 0 auto; }
.feed__thread .feed__reply textarea { background: var(--surface); border-radius: 999px; padding: 9px 16px; min-height: 40px; }
.feed__spinner { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: feed-spin .9s linear infinite; }
@keyframes feed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .feed__spinner { animation: none; } }
@media (max-width: 560px) { .composer > .feed__avatar { display: none; } }
.feed .feed__avatar--member { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.feed__head .feed__own { margin-left: auto; }
.feed__waiting { margin: 0; padding: 14px 16px; border-radius: var(--radius-small); background: var(--bg-tint); color: var(--muted); font-size: .92rem; }
.feed__legal { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.feed__empty { margin: 0 0 8px; }
/* Modulseite im Kurs und der Modultitel als Link in der Seitenleiste */
a.course-module__title { color: inherit; text-decoration: none; }
a.course-module__title:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a.course-module__title[aria-current] { color: var(--link); }
.module-lessons h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.module-lessons a { justify-content: flex-start; }
.module-lessons a > span { display: inline-flex; align-items: center; gap: 12px; }
/* Datei-Symbol bei Downloads im Kurs: Blatt in der Hauptfarbe, Schildchen in der Akzentfarbe (folgt dem Farbthema) */
.file-icon { flex: none; width: 44px; height: auto; overflow: visible; transition: transform .15s ease; }
.file-icon__paper { fill: var(--surface, #fff); stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; }
.file-icon__fold { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; }
.file-icon__tag { fill: var(--accent); }
.file-icon__label { fill: var(--accent-ink); font: 800 8px/1 var(--font); letter-spacing: .04em; }
.materials a.materials__file { align-items: center; justify-content: flex-start; gap: 16px; padding: 16px 0; }
.materials__name { flex: 1; min-width: 0; }
.materials a.materials__file:hover .file-icon { transform: translateY(-2px); }
/* Lektion «Deine Fragen»: Live-Coaching zum Modul mit Fragefeld */
.module-question { display: grid; gap: 18px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); }
.module-question p { margin: 0; }
.module-question__date { display: flex; align-items: center; gap: 16px; }
.module-question__date > span:last-child { display: grid; gap: 2px; }
.module-question__date strong { font-size: 1.12rem; }
.module-question__date a { margin-top: 4px; font-size: .92rem; }
.module-question__form { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.module-question__form h2 { margin: 0; font-size: 1.1rem; }
.module-question__form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font: inherit; background: var(--field); color: var(--ink); resize: vertical; }
.module-question__form .btn { justify-self: start; }
/* Live-Störer: rotes Zeichen mit pulsierendem Punkt, grosses Datum – nur solange ein Live-Termin ansteht */
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: #e02d3c; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1; vertical-align: middle; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }
.entry--live { border: 2px solid var(--accent-strong); background: #fff8ec; box-shadow: var(--shadow); }
.entry--live:hover { border-color: var(--accent-strong); }
.entry__live-photo { position: relative; display: block; margin: calc(-1 * var(--entry-pad, 28px)) calc(-1 * var(--entry-pad, 28px)) 8px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue); }
.entry__live-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.entry__live-photo .live-badge { position: absolute; top: 16px; left: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.entry__live-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.entry__date { display: grid; gap: 4px; margin: 10px 0 6px; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.entry__date strong { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; color: var(--blue); }
.entry--live p { color: var(--ink); }
.entry__cta { margin-top: auto; align-self: flex-start; }
.entry--live h3 { margin-top: 4px; }
.hero__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 6px 0 18px; }
.hero__date strong { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; color: var(--accent); }
.hero__date span { font-size: 1.15rem; font-weight: 600; color: #fff; }
/* Anmeldung zum Live-Webinar: der eine Termin als Datumsblatt statt einer Zeitauswahl */
.signup__date { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-small); background: var(--bg-tint); }
.signup__date-day { display: grid; place-items: center; min-width: 58px; padding: 8px 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.signup__date-day small { margin-top: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.signup__date > span:last-child { display: grid; gap: 2px; color: var(--ink); }
.signup__date > span:last-child small { color: var(--muted); font-size: .85rem; }
/* Kurskauf: Wahl der Währung (nur wenn das Angebot einen Euro-Preis hat) */
.currency-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.currency-switch__label { margin-right: 6px; font-size: .88rem; font-weight: 600; }
.currency-switch a { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; background: var(--field); }
.currency-switch a small { font-weight: 400; color: var(--muted); }
.currency-switch a[aria-current] { border-color: var(--blue); background: var(--blue); color: #fff; }
.currency-switch a[aria-current] small { color: rgba(255, 255, 255, .8); }
.buybox__euro a { color: inherit; }
.checkout fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cart > * { min-width: 0; }
.checkout select { text-overflow: ellipsis; }
.checkout__trust { display: none; }
.checkout legend { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; padding: 0; }
.checkout label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.checkout small { font-weight: 400; }
.checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout__row--zip { grid-template-columns: 130px 1fr; }
.checkout__terms { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: .95rem !important; }
.checkout__terms input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--link); }
.checkout .btn { justify-self: start; }
.checkout .form-error p { margin: 0; }
.order { display: grid; gap: 20px; }
.order .materials { margin-top: 0; }
.order .materials p { margin: 0; }
.order .materials a span:first-child { min-width: 0; }

@media (max-width: 640px) {
    .checkout__row { grid-template-columns: minmax(0, 1fr); }
    .checkout__row--zip { grid-template-columns: 110px minmax(0, 1fr); }
    .checkout .btn { justify-self: stretch; }
}
/* Kasse auf dem Handy: zuerst kurz, was bestellt wird, dann die Angaben; die Kaufgründe stehen beim Knopf. */
@media (max-width: 900px) {
    .cart--checkout { gap: 28px; }
    .cart--checkout .summary { order: -1; padding: 20px; gap: 14px; }
    .cart--checkout .summary .trust { display: none; }
    .cart--checkout .checkout { max-width: none; }
    .checkout__trust { display: block; }
}

/* Mehrere Textabschnitte hintereinander (AGB, Datenschutz) rücken zusammen. */
.section--text:not(.section--tint) + .section--text:not(.section--tint) { padding-top: 0; margin-top: calc(-1 * clamp(8px, 3vw, 40px)); }
.section--text h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.privacy-note { margin: 0; color: var(--muted); }
.privacy-note a { color: inherit; }
.hero .privacy-note, .signup .privacy-note { color: var(--muted); }

/* Anfrageformular */
.split--top { align-items: start; }
.signup.contact { padding: 28px; background: var(--surface); margin-top: 0; }
.signup.contact input[type=text], .signup.contact input[type=email], .signup.contact input[type=tel] { width: 100%; }

/* --- Kundenkonto ------------------------------------------------------------- */

.konto-page { align-content: start; }
.konto-page--narrow { width: min(520px, 100% - 32px); }
.konto-page section { display: grid; gap: 14px; }
.konto-page h2 { font-size: 1.2rem; }
.konto-card { display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.konto-card h1 { font-size: 1.5rem; }
.konto-card p { margin: 0; }
.konto-card label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.konto-card input, .konto-card select, .konto-card textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font: inherit; background: var(--field); }
.konto-card small { font-weight: 400; }
.konto-card .btn { justify-self: start; }
.konto-card .btn--block { justify-self: stretch; }
.konto-flash, .konto-note { margin: 0; padding: 12px 20px; background: #e6f4ea; color: #14532d; font-weight: 500; }
.konto-note { border-radius: var(--radius-small); }
.konto-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.konto-list li + li { border-top: 1px solid var(--line); }
.konto-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; text-decoration: none; }
.konto-list a:hover { color: var(--link); }
.order-card header, .order-card footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.order-card header div { display: grid; }
.order-card ul { margin: 0; padding-left: 1.1em; }
.order-card footer { justify-content: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.order-card footer a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
.konto-question { padding: 12px 14px; background: var(--bg-tint); border-radius: var(--radius-small); }
.course-card .progress { margin-top: 4px; }
.course__done { display: flex; align-items: center; gap: 16px; }
.materials li a br + * { font-weight: 400; }

.summary__account { display: grid; gap: 6px; }
.summary__account p { margin: 0; }
.summary__account .link-quiet { justify-self: start; text-align: left; }

.checkout .slots label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-small); font-weight: 400; font-size: 1rem; cursor: pointer; }
.checkout .slots label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

.calendar-links { margin: 14px 0 0; font-size: .9rem; }
.calendar-links a { color: var(--link); }

/* --- Kursbereich: Video zur Auswertung --------------------------------------- */
.course__extra {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-small); font-size: .92rem; font-weight: 600; text-decoration: none;
}
.course__extra:hover { border-color: var(--blue); }
.konto-page--video { width: min(680px, 100% - 32px); }
.konto-page--video .prose--plain { max-width: none; }
.konto-page--video .player { border-radius: var(--radius-small); max-height: 60vh; }
.video-upload [data-step] { display: grid; gap: 14px; }
.video-upload [data-step][hidden] { display: none; }
.video-upload [data-step="choose"] { justify-items: start; }
.video-upload__label { font-weight: 600; }
.video-upload__confirm { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff8ec; border: 1px solid var(--accent); border-radius: var(--radius-small); font-weight: 500 !important; font-size: .95rem !important; cursor: pointer; }
.video-upload__confirm input { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--link); }
.video-upload__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.video-upload progress { width: 100%; height: 10px; accent-color: var(--accent-strong); }
.feedback { display: grid; gap: 8px; padding: 18px 20px; background: var(--blue-soft); border-radius: var(--radius-small); }
.feedback .prose--plain { margin: 0; }
.video-upload .btn:disabled { opacity: .45; cursor: not-allowed; }
.materials--first { margin-top: 0; }
.check--date { border-radius: 4px; border-color: var(--accent-strong); }
.materials .calendar-links a { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.signup .signup__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .88rem; }
.signup__check input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--blue); }

/* --- Verkaufsbox eines Kurses: blaues Band, heller Kasten mit Preis und grossem Knopf ------------------- */
.btn--big { padding: 16px 32px; font-size: 1.05rem; }
.buyband {
    padding-block: clamp(48px, 7vw, 96px); color: #fff;
    background: radial-gradient(820px 460px at 88% 0%, rgba(250, 189, 107, .26), transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.buybox { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.buybox__text h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.buybox__lead { margin: 16px 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .85); max-width: 52ch; }
.buybox__card {
    display: grid; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: #fff; color: #0d1b2a;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
}
.buybox__card p { margin: 0; }
.buybox__name { font-weight: 600; color: #5a6878; }
.buybox__price { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #003057; font-variant-numeric: tabular-nums; }
.buybox__sub { color: #5a6878; font-size: .95rem; margin-top: -6px !important; }
.buybox__card .btn--accent { margin-top: 6px; box-shadow: 0 12px 24px -10px rgba(245, 165, 58, .9); }
.buybox__deadline { font-weight: 600; font-size: .92rem; text-align: center; color: #7a4a00; }
.buybox__guarantee, .summary__guarantee { padding: 10px 14px; border-radius: 10px; background: #e6f4ea; color: #14532d; font-size: .9rem; font-weight: 500; }
.buybox__card .trust { color: #5a6878; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.benefits li { position: relative; padding-left: 32px; }
.benefits li::before {
    content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 999px; background: var(--accent)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232b1a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.benefits--light { margin-top: 26px; font-size: 1.05rem; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.trust li { position: relative; padding-left: 20px; }
.trust li::before { content: "✓"; position: absolute; left: 0; color: #1f8f4d; font-weight: 700; }
.buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px 24px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--blue-deep); color: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .2);
}
.buybar[hidden] { display: none; }
.buybar .btn { padding: 10px 22px; }

/* --- Warenkorb und Kasse ------------------------------------------------------------ */
.steps-bar { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--muted); counter-reset: step; }
.steps-bar li { display: flex; align-items: center; gap: 8px; counter-increment: step; }
.steps-bar li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--blue-soft); font-size: .75rem; font-weight: 700; }
.steps-bar li + li { padding-left: 10px; border-left: 1px solid var(--line); }
.steps-bar li[aria-current] { color: var(--ink); font-weight: 600; }
.steps-bar li[aria-current]::before { background: var(--blue); color: #fff; }
.steps-bar li.is-done::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }
.steps-bar a { color: inherit; }
.summary__items .summary__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.summary__item img { width: 40px; height: 52px; object-fit: contain; background: #fff; border-radius: 4px; }
.summary--course { gap: 16px; }
.summary__image { width: 100%; border-radius: var(--radius-small); }
.summary--course .benefits { font-size: .95rem; }
@media (max-width: 900px) { .buybox { grid-template-columns: minmax(0, 1fr); } }
.summary dd { white-space: nowrap; }

/* --- Kursbereich: abhaken in der Seitenleiste, Stand je Modul -------------------------------- */
.course-module__title { flex: 1; min-width: 0; }
.course-module__count { flex: none; font-size: .75rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.course-module__no--done {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232b1a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 80% no-repeat !important;
}
.course-lesson { display: flex; align-items: center; gap: 2px; }
.course-lesson form { flex: none; display: grid; place-items: center; width: 34px; height: 34px; }
.course-lesson a { flex: 1; min-width: 0; padding-left: 6px !important; }
.check--button { padding: 0; cursor: pointer; transition: border-color .12s ease, transform .12s ease; }
.check--button:hover { border-color: var(--blue); transform: scale(1.15); }
.check--button:not(.check--done) { background: transparent; }

/* --- Blog ---------------------------------------------------------------- */

.blog-head { color: #fff; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); padding-block: clamp(44px, 7vw, 80px); }
.blog-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius, 18px); background: var(--surface, #fff); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 30, 60, .12); }
.blog-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-tint); }
.blog-card__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.blog-card__body strong { font-size: 1.12rem; line-height: 1.3; }
.blog-card__meta { font-size: .8rem; color: var(--muted); }
.blog-card__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.blog-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.blog-card--lead img { height: 100%; }
.blog-card--lead .blog-card__body { align-content: center; padding: 32px; }
.blog-card--lead strong { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.blog-post__head { max-width: 860px; padding-top: clamp(32px, 5vw, 56px); }
.blog-post__head h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; }
.blog-post__meta { color: var(--muted); font-size: .92rem; }
.blog-post__body { max-width: 860px; margin: 28px auto 0; font-size: 1.08rem; line-height: 1.7; }
.blog-post__body::after { content: ""; display: block; clear: both; }
.blog-post__body .blog-post__figure { float: right; width: min(42%, 340px); margin: 6px 0 22px 36px; shape-outside: margin-box; }
.blog-post__figure img { width: 100%; border-radius: var(--radius, 18px); box-shadow: 0 18px 40px rgba(0, 30, 60, .18); }
.blog-post__body > p:first-of-type { font-size: 1.18rem; line-height: 1.6; }
.blog-post__body h2 { margin: 1.6em 0 .5em; font-size: 1.45rem; line-height: 1.3; }
.blog-post__body h3 { margin: 1.4em 0 .4em; font-size: 1.2rem; }
.blog-post__body figure { margin: 1.6em 0; }
.blog-post__body figure img { width: 100%; border-radius: 12px; }
.blog-post__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-style: italic; }
.blog-author { max-width: 860px; margin: 40px auto 0; padding: 20px 24px; border-radius: 14px; background: var(--bg-tint); }
.blog-author p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.blog-more__title { margin-bottom: 20px; }
.blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.blog-cta h2 { margin-bottom: 8px; }
.blog-cta p { max-width: 56ch; color: var(--muted); }
.blog-cta .actions { margin-top: 0; }
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-card--lead { grid-template-columns: minmax(0, 1fr); }
    .blog-card--lead img { aspect-ratio: 16 / 10; object-position: top; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-post__body .blog-post__figure { float: none; width: min(100%, 420px); margin: 0 auto 26px; }
}

/* --- Produkt: mehrere Bilder ---------------------------------------------- */
.product__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product__thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--surface, #fff); overflow: hidden; cursor: pointer; }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: none; filter: none; border-radius: 0; }
.product__thumb[aria-current] { border-color: var(--blue); }

/* --- Gratis-Downloads ------------------------------------------------------ */

.magnet__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.magnet__points li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .9); }
.magnet__points li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.magnet__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.magnet__inner .magnet__points li { color: var(--ink); }
.magnet__lead { margin-top: 14px; font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.magnet__image { margin-top: 26px; max-width: 320px; width: 100%; border-radius: var(--radius); }
.magnet__contents { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding-bottom: clamp(40px, 6vw, 72px); margin-top: -12px; }
.magnet__area { display: grid; gap: 4px; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); color: #fff; }
.section .magnet__area { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.magnet__no { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.magnet__note { font-size: .88rem; opacity: .75; }
.magnet__area ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.magnet__area li { display: flex; justify-content: space-between; gap: 12px; }
.magnet__area li span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; opacity: .7; }
.magnet-page__inner { max-width: 760px; padding-block: clamp(48px, 7vw, 88px); }
.magnet-page h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.magnet-steps { margin: 26px 0 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.08rem; }
.magnet-page__hint { margin-top: 20px; font-size: .92rem; color: rgba(255, 255, 255, .72); }
.magnet-files { display: grid; gap: 40px; }
.magnet-area__no { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.magnet-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.magnet-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.magnet-narrow { max-width: 640px; display: grid; gap: 16px; justify-items: start; }
.split--single { grid-template-columns: minmax(0, 760px); }
.split__image--book { max-width: 300px; justify-self: center; border-radius: 10px; box-shadow: 0 24px 48px rgba(0, 20, 45, .28); }

.audience { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.audience--single { grid-template-columns: minmax(0, 760px); }
.audience__col { padding: 28px 30px; border-radius: var(--radius); background: var(--blue-soft); }
.audience__col--no { background: var(--bg-tint); }
.audience__col h3 { margin-bottom: 14px; }
.audience__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.audience__col li { position: relative; padding-left: 28px; }
.audience__col li::before { content: ""; position: absolute; left: 3px; top: .4em; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.audience__col--no li::before { top: .7em; width: 12px; height: 0; border-left: 0; border-bottom: 2.5px solid var(--muted); transform: none; }

.book-buy { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.book-buy__cover { width: 100%; border-radius: 8px; box-shadow: 0 28px 56px rgba(0, 0, 0, .45); }
.book-buy__body { color: #fff; }
.book-buy__body h2 { color: #fff; }
.book-buy__text { margin-top: 12px; color: rgba(255, 255, 255, .82); max-width: 56ch; }
.book-buy__price { margin-top: 18px; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.book-buy__channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.book-buy__channel { position: relative; display: grid; gap: 6px; align-content: start; justify-items: start; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .22); }
.book-buy__channel span { font-size: .92rem; color: rgba(255, 255, 255, .78); }
.book-buy__channel .btn { margin-top: 10px; }
.book-buy__channel--main { background: rgba(255, 255, 255, .08); border-color: var(--accent); }
.book-buy__badge { position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.book-buy__note { margin-top: 18px; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.book-buy__note a { color: #fff; }
.book-buy__details { margin-top: 18px; font-size: .82rem; color: rgba(255, 255, 255, .6); }

.table-block__intro { max-width: 760px; }
.table-block { margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface, #fff); overflow: hidden; }
.table-block__title { margin: 0; padding: 14px 18px; font-weight: 700; background: var(--blue); color: #fff; }
.table-block__scroll { overflow-x: auto; }
.table-block table { width: 100%; border-collapse: collapse; font-size: .86rem; white-space: nowrap; }
.table-block th { padding: 10px 14px; text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.table-block td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.table-block tr:last-child td { border-bottom: 0; }
.table-block figcaption { padding: 12px 18px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); }
.actions--center { justify-content: center; }
.quote--portrait { grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; align-content: start; }
.quote__image { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.quote figcaption a { color: inherit; }

@media (max-width: 900px) {
    .magnet__inner, .audience, .book-buy { grid-template-columns: minmax(0, 1fr); }
    .book-buy__cover { max-width: 200px; }
    .magnet-list li { grid-template-columns: minmax(0, 1fr) auto; }
    .magnet-list li .small { display: none; }
}

/* Dunkler Abschnitt (Baustein «Text mit Bild», Hintergrund «Dunkel») */
.section--dark { background: var(--blue); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .prose, .section--dark .prose a { color: rgba(255, 255, 255, .88); }

/* Zitat im Kopf einer Seite und kleines Bild im Aufruf */
.hero__quote { margin: 28px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); max-width: 46ch; }
.hero__quote q { font-style: italic; color: rgba(255, 255, 255, .92); quotes: '«' '»'; }
.hero__quote cite { display: block; margin-top: 8px; font-size: .82rem; font-style: normal; color: rgba(255, 255, 255, .65); }
.hero__quote cite a { color: inherit; }
.offer__image { width: 96px; border-radius: 6px; box-shadow: 0 12px 26px rgba(0, 20, 45, .22); }

/* Kundenbereich: schmale Fusszeile mit den rechtlichen Seiten */
.konto { min-height: 100vh; display: flex; flex-direction: column; }
.konto > main, .konto > .course { flex: 1 0 auto; }
.konto-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--surface); font-size: .86rem; color: var(--muted); }
.konto-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.konto-foot a { color: var(--muted); text-decoration: none; }
.konto-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Karten mit Bild: Bild oben, randlos, einheitliches Format */
.entry--image { overflow: hidden; }
.entry__image { display: block; width: calc(100% + 2 * var(--entry-pad, 28px)); max-width: none; margin: calc(-1 * var(--entry-pad, 28px)) calc(-1 * var(--entry-pad, 28px)) 6px; aspect-ratio: 3 / 2; object-fit: contain; background: var(--bg-tint); }
.entry--strong .entry__image { background: rgba(255, 255, 255, .08); }

/* Kopf mit Formular: Text und Formular beginnen auf gleicher Höhe; ein Bild füllt den Platz unter dem Text. */
.hero__inner--form { align-items: start; }
.hero__visual { display: block; width: min(100%, 360px); height: auto; margin-top: clamp(20px, 3vw, 36px); filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .35)); }
@media (max-width: 900px) { .hero__visual { width: min(70%, 320px); margin-inline: auto; } }

/* Lektionsbild mit umlaufendem Text */
.prose--around { max-width: none !important; }
.prose--around::after { content: ""; display: block; clear: both; }
.prose--around .course__image--medium { max-width: min(44%, 420px); }
.prose--around .course__image--left { float: left; margin: 4px 28px 14px 0; }
.prose--around .course__image--right { float: right; margin: 4px 0 14px 28px; }
.prose--around .course__image:not(.course__image--small):not(.course__image--medium) { max-width: min(48%, 420px); }
@media (max-width: 560px) { .prose--around .course__image { max-width: 46% !important; margin-right: 16px; } .prose--around .course__image--right { margin-left: 16px; margin-right: 0; } }

/* Kursvideo: Qualität über das Zahnrad im Bild */
.player-wrap { position: relative; }
.player-menu { position: absolute; top: 12px; right: 12px; z-index: 2; opacity: 0; transition: opacity .15s ease; }
.player-menu { pointer-events: none; transition: opacity .3s ease; }
.player-wrap.is-active .player-menu, .player-menu:has([aria-expanded="true"]) { opacity: 1; pointer-events: auto; }
.player-menu__button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px; background: rgba(13, 27, 42, .72); color: #fff; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); }
.player-menu__button:hover { background: rgba(13, 27, 42, .9); }
.player-menu__list { position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; padding: 6px; border-radius: 12px; background: rgba(13, 27, 42, .94); display: grid; gap: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.player-menu__list[hidden] { display: none; }
.player-menu__list button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 30px; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; font-size: .88rem; text-align: left; cursor: pointer; position: relative; }
.player-menu__list button:hover { background: rgba(255, 255, 255, .12); }
.player-menu__list button[aria-checked="true"]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(-45deg); }
.player-menu__list small { font-size: .72rem; opacity: .65; }

/* Abgeschlossene Lektion: kurze Marke statt langem Text */
.done-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.done-chip:hover { border-color: var(--blue); }
.summary--plain { padding: 0; border: 0; background: none; }

/* Terminliste: Eintrag ohne Link (vergangener Termin ohne Aufzeichnung) sieht aus wie die anderen */
.materials__plain { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 500; color: var(--muted); }
.materials a { gap: 12px; }

/* Kurs: Die Seitenleiste bleibt stehen und läuft für sich – rechts scrollt nur der Inhalt.
   So sieht man immer, wo man im Kurs gerade ist. Auf schmalen Bildschirmen (untereinander) gilt das nicht. */
@media (min-width: 901px) {
    .course { align-items: start; }
    /* Die Kopfzeile bleibt oben stehen; die Seitenleiste füllt genau den Rest darunter – so ist auch ihr letzter Eintrag erreichbar. */
    .konto-bar { position: sticky; top: 0; z-index: 20; }
    .course__nav { position: sticky; top: var(--konto-bar, 60px); height: calc(100vh - var(--konto-bar, 60px)); height: calc(100dvh - var(--konto-bar, 60px)); padding-bottom: 40px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
    .course__nav::-webkit-scrollbar { width: 8px; }
    .course__nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
    .course__main { min-height: calc(100vh - 61px); }
}

/* --- «Neues von Detlev» im Kursbereich: ruhig, eine Spalte, wenig Rahmen ------------------------- */
.course__badge { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.feed__title { font-size: 1.2rem; margin: 0; }
.feed__post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feed__head { display: flex; align-items: center; gap: 10px; }
.feed__avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; object-fit: cover; object-position: 50% 20%; }
.feed__body { max-width: none; }
.feed__body > :last-child { margin-bottom: 0; }
.feed__image { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius-small); }
.feed__video { border-radius: var(--radius-small); }
.feed__foot { display: flex; align-items: center; gap: 14px; }
.feed__foot form { margin: 0; }
.feed__heart { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; }
button.feed__heart { cursor: pointer; transition: border-color .12s ease, color .12s ease, transform .12s ease; }
button.feed__heart:hover { border-color: #e0526a; color: #e0526a; }
button.feed__heart:active { transform: scale(.94); }
.feed__heart--on { border-color: #e0526a; background: #fdecef; color: #c2334d; }
.feed__comments { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.feed__comment { padding: 10px 14px; border-radius: var(--radius-small); background: var(--bg-tint); font-size: .94rem; }
.feed__comment p { margin: 0; }
.feed__comment form { margin: 4px 0 0; }
.feed__reply { display: flex; gap: 10px; align-items: flex-end; }
.feed__reply textarea { flex: 1; min-height: 42px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-small); background: var(--field, #fff); font: inherit; font-size: .94rem; resize: vertical; }
.feed__older > summary { cursor: pointer; padding: 6px 2px; font-size: .9rem; color: var(--muted); }
.feed__older[open] { display: grid; gap: 16px; }
.feed__note { margin: 0; }
.feed__body { margin-top: 0; padding-top: 0; border-top: 0; }
.feed__body > :first-child { margin-top: 0; }
.konto-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* «Meine Kurse» mit Neuigkeiten: links der Kurs, rechts das Neue. Schmal: untereinander, Kurs zuerst. */
.konto-page--wide { width: min(1120px, 100% - 32px); }
.konto-columns { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 520px); justify-content: space-between; gap: 32px 64px; align-items: start; }
.konto-columns .course-cards { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) { .konto-columns { grid-template-columns: minmax(0, 1fr); } }

/* Termine im Kursbereich: eine ruhige Zeile über der Liste, um alle Termine in den Kalender zu übernehmen */
.calendar-line { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; color: var(--muted); }
.calendar-line a { color: var(--link); text-underline-offset: 3px; }
.calendar-line a:first-child { font-weight: 600; }
/* Termine unter einem Lektionstext */
.lesson-sessions { margin-top: 32px; }
.lesson-sessions h2 { font-size: 1.15rem; margin-bottom: 14px; }

/* --- «Meine Kurse»: ein Kurs im Mittelpunkt, daneben Termine und Hilfe, darunter Neues ------------------ */
.dash { gap: 20px; }
.dash h1 { margin-bottom: 4px; }
.dash__switch { display: flex; flex-wrap: wrap; gap: 6px; }
.dash__switch a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted); }
.dash__switch a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }

.dash-course { display: grid !important; grid-template-columns: 300px minmax(0, 1fr); gap: 0 !important; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
/* Das Kursbild steht ganz und unbeschnitten in der Karte – im Seitenverhältnis des Bildes (16:9), mit eigenen runden Ecken. */
.dash-course__image { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--blue), var(--blue-deep)); }
.dash-course__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dash-course__image span { display: block; height: 100%; }
.dash-course__body { display: grid; gap: 12px; align-content: center; padding: 6px 10px 6px 28px; }
.dash-course__body .eyebrow { margin: 0; }
.dash-course__body h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }
.dash-course__body h2 a { text-decoration: none; color: inherit; }
.dash-course__body p { margin: 0; }
.dash-course__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.dash-course__foot .btn { flex: none; }

.dash__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.dash__grid--single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash__grid--single .dash__side { display: contents; }
.dash__side { display: grid; gap: 20px; }
/* Die Nachrichten stehen gemeinsam in einem Rahmen, mit der Überschrift darin – so beginnt der Rahmen auf der Höhe der Karten daneben. */
.dash__main .feed { gap: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dash__main .feed__title { font-size: 1.05rem; margin-bottom: 14px; }
.dash__main .feed__post { padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
/* Jeder Beitrag hält denselben Abstand nach oben – egal, ob er der erste ist oder beim Filtern nach vorn rückt. */
.dash__main .feed__post { margin-top: 18px; }
.dash__main .feed__title + .feed__post { margin-top: 0; }
.dash__main .feed__none { margin-top: 16px; }
.dash__main .feed__older { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash__main .feed__older[open] { display: block; }
.dash__main .feed__note { margin-top: 16px; }
/* Bild im Beitrag: Der Rahmen ist so breit wie der Text. Ein Querformat (ideal 16:9) füllt ihn ganz;
   ein Hoch- oder Quadratformat steht unbeschnitten in der Mitte auf ruhigem Grund. */
.feed__figure { display: block; text-align: center; background: var(--bg-tint); border-radius: var(--radius-small); overflow: hidden; line-height: 0; }
.feed__figure .feed__image { display: inline-block; width: auto; max-width: 100%; max-height: 440px; object-fit: contain; border-radius: 0; }

.dash-card { display: grid; gap: 10px; align-content: start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dash-card h2 { font-size: 1.05rem !important; }
.dash-card p { margin: 0; }
.dash-card--link { text-decoration: none; color: inherit; }
.dash-card--link:hover { border-color: var(--blue); }
.dash-card__more { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 4px; font-size: .9rem; color: var(--muted); }
.dash-card__more a { color: var(--link); text-underline-offset: 3px; }
.dash-list, .dash-links { list-style: none; margin: 0; padding: 0; }
.dash-list li + li, .dash-links li + li { border-top: 1px solid var(--line); }
.dash-list a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; text-decoration: none; color: inherit; }
.dash-list a > span:last-child { display: grid; gap: 1px; }
.dash-list a:hover strong { color: var(--link); }
.dash-list__date { display: grid; justify-items: center; padding: 6px 0; border-radius: 10px; background: var(--blue-soft); color: var(--link); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
.dash-list__date strong { font-size: 1.15rem; letter-spacing: 0; color: inherit !important; }
.dash-links a { display: flex; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; color: inherit; font-weight: 500; }
.dash-links a:hover { color: var(--link); }
.dash-links__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--link); font-size: .85rem; font-weight: 700; }
.dash__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

@media (max-width: 820px) {
    .dash-course { grid-template-columns: minmax(0, 1fr); padding: 14px; }
    .dash-course__body { padding: 16px 4px 4px; }
    .dash__grid, .dash__grid--single { grid-template-columns: minmax(0, 1fr); }
    /* Am Handy zuerst die Termine, dann die Nachrichten, dann die Hilfe. */
    .dash__side { display: contents; }
    .dash__side > :first-child { order: -1; }
    .dash-course__foot .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Seite «Häufige Fragen»: Suche oben, Themenblöcke dicht untereinander */
.section--faq ~ .section--faq { padding-top: 0; }
.section--faq .section__head h2 { font-size: 1.3rem; }
.faq summary { position: relative; padding-right: 32px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.faq details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-search { display: grid; gap: 14px; margin-top: 8px; margin-bottom: 28px; }
.faq-search input { width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--field, #fff); font: inherit; font-size: 1.02rem; color: var(--ink); }
.faq-search input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq-search p { margin: 0; }
.faq-search [hidden] { display: none; }
.faq-search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-search__chips a { padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--link); font-size: .9rem; font-weight: 500; text-decoration: none; }
.faq-search__chips a:hover { background: var(--blue); color: #fff; }
.section:has(+ .faq-search) { padding-bottom: 24px; }
.faq-search + .section--faq { padding-top: 8px; }
/* Themen auf der Fragen-Seite (mehrere Fragenblöcke hintereinander): jede Überschrift als blaues Band,
   die Fragen darunter in einer hellen Karte – so sieht man beim Scrollen sofort, in welchem Thema man ist. */
.section--faq:has(~ .section--faq), .section--faq ~ .section--faq { padding-bottom: 28px; }
.section--faq:has(~ .section--faq) .section__head, .section--faq ~ .section--faq .section__head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 14px 20px;
    border-radius: var(--radius) var(--radius) 0 0; background: var(--blue); text-align: left;
}
.section--faq:has(~ .section--faq) .section__head h2, .section--faq ~ .section--faq .section__head h2 { margin: 0; font-size: 1.12rem; color: #fff; }
.section--faq:has(~ .section--faq) .faq, .section--faq ~ .section--faq .faq { padding: 4px 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.section--faq:has(~ .section--faq) .faq details:first-child, .section--faq ~ .section--faq .faq details:first-child { border-top: 0; }
.section--faq:has(~ .section--faq) .faq details:last-child, .section--faq ~ .section--faq .faq details:last-child { border-bottom: 0; }
.faq details[open] > summary { color: var(--link); }

/* --- Einführungs-Tour im Kursbereich -------------------------------------------------------------- */
.tour__shade { position: fixed; z-index: 90; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(13, 27, 42, .62); outline: 2px solid var(--accent); outline-offset: 0; pointer-events: none; }
.tour-on body::after { content: ""; position: fixed; inset: 0; z-index: 89; } /* fängt Klicks auf die Seite ab, solange die Tour läuft */
.tour__card { position: fixed; z-index: 91; width: min(340px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 20px 22px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 50px rgba(13, 27, 42, .35); }
.tour__count { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tour__title { margin: 0; font-size: 1.15rem; }
.tour__text { margin: 0 0 6px; line-height: 1.55; }
.tour__actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.tour__skip { padding: 0; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tour__back[hidden] { display: none; }
@media (max-width: 820px) {
    .tour__card { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
}
/* Angebot beim ersten Besuch im Kurs */
.tour-offer { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(320px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(13, 27, 42, .18); }
.tour-offer p { margin: 0; }
.tour-offer__actions { display: flex; align-items: center; gap: 14px; }
.tour-offer__actions button { padding: 0; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* >>> VERSUCH: blaue Kopfzeile im Konto (Umkehrung zur Website: dort weisse Leiste, hier blaue).
   Zum Zurücknehmen genügt es, diesen Block bis zur Endmarke zu löschen. */
.konto-bar { background: var(--blue); border-bottom-color: var(--blue); }
.konto-bar .brand { color: #fff; }
.konto-bar nav a { color: rgba(255, 255, 255, .78); }
.konto-bar nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.konto-bar nav a[aria-current] { background: #fff; color: var(--blue); }
.konto-bar .link-quiet { color: rgba(255, 255, 255, .85); }
.konto-bar .link-quiet:hover { color: #fff; }
/* <<< ENDE VERSUCH blaue Kopfzeile */
/* Die Einführungs-Tour ist für den grossen Bildschirm gemacht – am Handy entfällt der Link dazu. */
@media (max-width: 820px) {
    .dash-links__desktop { display: none; }
    .dash-links__desktop + li { border-top: 1px solid var(--line); }
    .dash-links li:first-child + .dash-links__desktop + li { border-top: 1px solid var(--line); }
    /* Kopfzeile im Konto: Menü lässt sich seitlich schieben, ohne sichtbaren Rollbalken. */
    .konto-bar { scrollbar-width: none; }
    .konto-bar::-webkit-scrollbar { display: none; }
}

/* Fusszeilen am Handy: kompakt, die Links dicht beieinander statt über die ganze Höhe verteilt. */
@media (max-width: 640px) {
    .site-footer { padding-block: 24px; margin-top: 24px; }
    .site-footer__inner { gap: 14px; }
    .site-footer__nav { gap: 6px 16px; }
    .site-footer__nav a { font-size: .9rem; }
    .konto-foot { padding: 16px; gap: 8px; }
    .konto-foot nav { gap: 4px 14px; }
}

/* Kopfzeile der Website am Handy: flacher, und beim Herunterscrollen zieht sich die Menüzeile zurück
   (Name, Anmelden und Warenkorb bleiben). Scrollt man wieder hoch, ist das Menü sofort zurück. */
@media (max-width: 640px) {
    .site-header__inner { min-height: 0; padding-block: 7px 5px; }
    .brand { font-size: 1.05rem; }
    .cart-link { width: 36px; height: 36px; }
    .cart-link svg { width: 18px; height: 18px; }
    .cart-link__count { top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: .68rem; }
    .nav { margin-top: 2px; max-height: 40px; transition: max-height .2s ease, opacity .2s ease, margin .2s ease; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { padding: 5px 11px; font-size: .9rem; }
    .site-header.is-compact .nav { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; pointer-events: none; }
}

/* Bezahlen in der eigenen Seite: links das Zahlungsfeld von Stripe, rechts die Bestellung */
.cart--pay { grid-template-columns: minmax(0, 1fr) 320px; }
.pay { min-width: 0; }
.pay__field { min-height: 220px; }
.pay__field--framed { padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pay__loading { padding: 40px 20px; text-align: center; }
.pay__button { justify-self: stretch !important; font-variant-numeric: tabular-nums; }
.pay__button:disabled { opacity: .55; cursor: default; transform: none; }
.pay__button.is-busy { cursor: progress; }
.pay p { margin: 0; }
@media (max-width: 900px) { .cart--pay { grid-template-columns: minmax(0, 1fr); } }

/* --- Kontaktseite: links wer antwortet und kürzere Wege, rechts das Formular als Karte ---------- */
.contact-page .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.contact-side h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
.contact-side .contact__intro { margin-top: 14px; font-size: 1.06rem; max-width: 34ch; }
.contact-person { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.contact-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.contact-person p { display: grid; gap: 1px; margin: 0; }
.contact-person a { font-size: .95rem; color: var(--muted); }
.contact-ways { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 360px; }
.contact-ways a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-ways a::after { content: "→"; color: var(--muted); transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .contact-ways a:hover::after { transform: translateX(4px); color: var(--ink); } }
.contact-page .signup.contact { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); box-shadow: var(--shadow); gap: 16px; }
.contact-page .contact input, .contact-page .contact textarea { background: var(--bg-tint); border-color: transparent; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.contact-page .contact input:hover, .contact-page .contact textarea:hover { border-color: var(--line); }
.contact-page .contact input:focus, .contact-page .contact textarea:focus { outline: none; background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.contact-page .contact .btn { padding-inline: 30px; }
.contact-thanks { align-content: center; justify-items: start; min-height: 240px; }
.contact-thanks__mark { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); position: relative; }
.contact-thanks__mark::after { content: ""; position: absolute; left: 16px; top: 12px; width: 10px; height: 18px; border-right: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(45deg); }
@media (max-width: 820px) {
    .contact-page .split { grid-template-columns: minmax(0, 1fr); }
    .contact-page .checkout__row { grid-template-columns: minmax(0, 1fr); }
    .contact-side .contact__intro { max-width: none; }
}
