/* NutriCampus – Basis-Styles (Design aus legacy/nutricampus-register übernommen).
   Farben kommen als CSS-Variablen aus den Einstellungen (layouts/app.blade.php). */

:root {
    --accent: #4CAF50;
    --accent-dark: #3d8b40;
    --navy: #2c3e6b;
    --text: #1a2332;
    --muted: #6c757d;
    --border: #e1e7e3;
    --bg: #f5f7fa;
    --danger: #c0392b;
    --radius: 16px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--navy); }

/* Kopfzeile */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 50;
}
.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}
.site-logo img { max-height: 44px; display: block; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav form { margin: 0; }

/* Hamburger-Menü auf dem Handy */
.site-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.site-burger:hover { background: #f0f4f1; }
.site-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .site-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .site-burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
    .site-burger { display: inline-flex; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(27, 36, 51, 0.12); }
    .site-header.is-open .site-nav { display: flex; animation: site-nav-in .18s ease-out; }
    .site-nav > a, .site-nav .btn--link { display: flex; align-items: center; gap: .6rem; padding: .85rem .25rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
    .site-nav .btn--link { width: 100%; text-align: left; font-weight: 600; }
    .site-nav form:last-child .btn--link, .site-nav > a:last-child { border-bottom: 0; }
    .site-nav > a.btn { justify-content: center; margin-top: .75rem; border-bottom: 0; padding: .75rem 1rem; }
}
@keyframes site-nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.site-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

/* Karten & Auth-Formulare */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.card__header {
    background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%);
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 4px solid var(--accent);
}
.card__header h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.3;
}
.card__header p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.card__body { padding: 1.75rem 2rem 2rem; }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.35rem; }
.field input[type=text],
.field input[type=email],
.field input[type=password] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field--invalid input, .field--invalid textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
.field__hint { color: var(--muted); font-size: 0.8rem; margin-top: 0.3rem; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 30px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: #f0f4f1; }
.btn--link { background: none; border: none; padding: 0; color: var(--navy); font-weight: 600; cursor: pointer; font: inherit; }

.alert { padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: 0.925rem; }
.alert--success { background: #e8f5e9; color: #1b5e20; }
.alert--error { background: #fdecea; color: #8a1c12; }

.divider { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.85rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

.auth-links { margin-top: 1.25rem; text-align: center; font-size: 0.9rem; display: grid; gap: 0.4rem; }

.hero {
    background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
}
.hero h1 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 0.5rem; }
.hero p { color: var(--muted); margin: 0 0 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0 0 1rem; }
.section-head .section-title, .section-head .page-title { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }

@media (max-width: 560px) {
    .site-logo { font-size: 1.15rem; }
    .card__header, .card__body { padding-left: 1.25rem; padding-right: 1.25rem; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .hero h1 { font-size: 1.7rem; }
}

/* ---------- Kurse ---------- */
.page-title { font-family: var(--font-display); font-size: 2rem; margin: 0 0 1.5rem; }
.section-title { font-family: var(--font-display); font-size: 1.35rem; margin: 2rem 0 1rem; }
.muted { color: var(--muted); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: #e8f5e9; color: #1b5e20; white-space: nowrap; }
.alert--warning { background: #fff8e1; color: #7a5a00; }
.alert--info { background: #e8f1fb; color: #1d3f72; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.course-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
.course-card__image { position: relative; aspect-ratio: 1200 / 628; overflow: hidden;background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%); }
.course-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__ribbon { position: absolute; top: 30px; right: -42px; width: 160px; padding: 6px 0; transform: rotate(45deg); background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); pointer-events: none; }
.course-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.course-card__body h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; line-height: 1.3; }
.course-card__body p { margin: 0; color: var(--muted); font-size: 0.925rem; }
.course-card__meta { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.course-card__cta { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--navy); }

.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "image box" "text box"; gap: 1.25rem 2rem; align-items: start; background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%); border-radius: var(--radius); padding: 2.25rem; margin-bottom: 1.75rem; }
.course-hero h1 { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.2; margin: 0.5rem 0; }
.course-hero__excerpt { color: #3d4a5c; font-size: 1.05rem; margin: 0; }
.course-hero__text { grid-area: text; }
.course-hero__image { grid-area: image; width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; display: block; }
.course-hero > .enroll-box { grid-area: box; align-self: start; display: flex; flex-direction: column; justify-content: center; }
.course-hero:not(:has(.course-hero__image)) { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "text box"; }
.breadcrumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--navy); font-weight: 600; text-decoration: none; }

.tabs { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); padding: 0 1.75rem 2rem; display: flex; flex-wrap: wrap; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label { padding: 1rem 0.25rem 0.8rem; margin-right: 1.5rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.tabs > input:checked + label { color: var(--text); border-bottom-color: var(--accent); }
.tabs__panel { display: none; width: 100%; border-top: 1px solid var(--border); padding-top: 1.5rem; }
#tab-content:checked ~ .tabs__panel--content, #tab-materials:checked ~ .tabs__panel--materials { display: block; }

.prose { font-size: 1.02rem; }
.prose img { max-width: 100%; height: auto !important; border-radius: 8px; }
/* Alleinstehende Fotos (eigener Block oder allein im Absatz) mittig */
.prose > img, .prose > a > img, .prose .img-block img { display: block; margin: 1.25rem auto; }
.prose .img-block { text-align: center; }
/* Tabellen (oft als Layout: Text neben Bild) */
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.prose th, .prose td { text-align: left; vertical-align: middle; padding: 0.5rem 0.75rem; font-weight: inherit; }
.prose img.img-card { border-radius: 12px; box-shadow: 0 10px 30px rgba(44, 62, 107, 0.15); }
/* Kursbeschreibung als ruhige Einleitungsfläche */
.course-intro { background: linear-gradient(180deg, #f4f9f6 0%, #fff 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem clamp(1.25rem, 4vw, 3rem); margin-bottom: 2rem; line-height: 1.75; color: #2f3b4d; }
.course-intro > :first-child { margin-top: 0; }
.course-intro > :last-child { margin-bottom: 0; }
.course-intro h2, .course-intro h3 { font-family: var(--font-display); color: var(--text); }
.course-intro em { color: var(--accent-dark); }
.course-intro table { margin: 0; }
.course-intro .img-block img:not(:is(td, th) img) { border-radius: 12px; }
.prose :is(th, td) > :first-child { margin-top: 0; }
.prose :is(th, td) .img-block { margin: 0; }
.prose :is(th, td) .img-block img { margin: 0 auto; }
@media (max-width: 700px) {
    .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: 100%; }
    .prose :is(th, td) { padding: 0.5rem 0; }
    .prose :is(th, td) img { min-width: 0 !important; }
}
.prose iframe { max-width: 100%; }
.prose h2, .prose h3 { font-family: var(--font-display); }

.toc { display: flex; flex-direction: column; gap: 0.5rem; }
.toc__section { margin-top: 1rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc__item { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
details.toc__item { display: block; padding: 0; }
details.toc__item > summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; cursor: pointer; list-style: none; }
details.toc__item > summary::-webkit-details-marker { display: none; }
details.toc__item > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.toc__item:not([open]) > summary::after { transform: rotate(-90deg); }
.toc__children { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 1rem 0.8rem 2rem; }
.toc__children .toc__item { padding: 0.55rem 0.8rem; font-size: 0.95rem; }
.toc__type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); min-width: 4.5rem; }
.toc__title { font-weight: 600; color: var(--text); text-decoration: none; }
a.toc__title:hover { color: var(--accent); }
.toc__title--locked { color: var(--muted); }
.toc__lock { font-size: 0.8rem; }
.toc__count { font-size: 0.75rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0.1rem 0.5rem; }

.step { max-width: 860px; margin: 0 auto; }
.step h1 { font-family: var(--font-display); font-size: 2rem; margin: 0.25rem 0 1.25rem; }
.step__type { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

@media (max-width: 1100px) {
    /* Bild rutscht unter den Text, der Kasten bleibt rechts */
    .course-hero { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "image box" "text box"; }
    .course-hero:not(:has(.course-hero__image)) { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "text box"; }
    .course-hero > .enroll-box { align-self: start; }
}

@media (max-width: 800px) {
    .course-hero, .course-hero:not(:has(.course-hero__image)) { grid-template-columns: 1fr; grid-template-areas: "image" "text" "box"; padding: 1.5rem; }
    .course-hero h1 { font-size: 1.7rem; }
    .tabs { padding: 0 1.1rem 1.5rem; }
    .toc__children { padding-left: 1rem; }
    .toc__item, details.toc__item > summary { flex-wrap: wrap; row-gap: 0.1rem; }
    .toc__type { min-width: 0; width: 100%; }
    .toc__title { flex: 1; }
}

/* ---------- Fortschritt & Einschreibung ---------- */
.badge--info { background: #e8f1fb; color: #1d3f72; }
.progress { height: 10px; border-radius: 999px; background: #e6ece8; overflow: hidden; }
.progress--small { height: 6px; width: 120px; }
.progress__bar { height: 100%; background: var(--progress, var(--accent)); border-radius: 999px; transition: width .3s; }
.progress__label { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 1rem; }

.course-layout { display: block; }
.enroll-box { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); padding: 1.5rem; }
.enroll-box__status { margin-bottom: 0.75rem; }
.enroll-box__price { margin-bottom: 1rem; }
.enroll-box__amount { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.enroll-box__period { color: var(--muted); font-size: 0.9rem; }
.enroll-box__note { color: var(--muted); font-size: 0.9rem; margin: 0.75rem 0 0; }
.enroll-box__link { display: block; text-align: center; font-size: 0.875rem; margin-top: 0.75rem; }
.enroll-box__list { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.enroll-box__facts { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.4rem; font-size: 0.875rem; color: #3d4a5c; }
.enroll-box__facts li::before { content: "•"; color: var(--accent); margin-right: 0.5rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.toc__check { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; }
.toc__check--done { background: var(--progress, var(--accent)); border-color: var(--progress, var(--accent)); }
.toc__hint { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
/* Ganze Karte klickbar (Link über die Karte gespannt) + Hover */
.toc__item { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
div.toc__item:has(> a.toc__title) { cursor: pointer; }
div.toc__item > a.toc__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
div.toc__item > .badge { position: relative; z-index: 1; }
div.toc__item:has(> a.toc__title):hover, details.toc__item > summary:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
div.toc__item:has(> a.toc__title):hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); transform: translateY(-1px); }
div.toc__item:has(> a.toc__title):hover > .toc__title { color: var(--accent); }
details.toc__item > summary { border-radius: 12px; transition: background .15s; }
details.toc__item > summary:hover { background: color-mix(in srgb, var(--accent) 6%, #fff); }

.complete-box { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0; padding: 1.25rem; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); text-align: center; }
.complete-box form { margin: 0; }
.complete-box p { margin: 0; width: 100%; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
.video iframe, .video video, .video #step-video-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.account-stat { background: #fff; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05); }
.account-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.account-stat span { color: var(--muted); font-size: 0.85rem; }
.my-course { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.my-course:last-child { border-bottom: 0; padding-bottom: 0; }
.my-course__image { display: block; aspect-ratio: 1200 / 628; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%); }
.my-course__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-course h3 { margin: 0; font-size: 1.05rem; }
.my-course h3 a { text-decoration: none; }
.my-course small { color: var(--muted); }
.my-course__progress { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.4rem; }
.my-course__progress .progress { flex: 0 1 220px; height: 8px; }
.my-course__progress small { white-space: nowrap; }

/* Kundencockpit (Mein Konto) */
.cockpit { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.cockpit__side { position: sticky; top: 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); padding: 1.1rem; }
.cockpit__user { display: flex; align-items: center; gap: 0.75rem; padding: 0.25rem 0.25rem 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); min-width: 0; }
.cockpit__user > div { min-width: 0; }
.cockpit__user strong { display: block; line-height: 1.3; }
.cockpit__user small { display: block; color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit__nav { display: flex; flex-direction: column; gap: 0.15rem; }
.cockpit__nav a, .cockpit__nav button { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 10px; text-decoration: none; color: var(--text); font: inherit; font-weight: 500; font-size: 0.95rem; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.cockpit__nav svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); }
.cockpit__nav a:hover, .cockpit__nav button:hover { background: #f0f4f1; }
.cockpit__nav a.is-active { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--navy); font-weight: 700; }
.cockpit__nav a.is-active svg { color: var(--accent); }
.cockpit__nav form { margin: 0.5rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.cockpit__main { min-width: 0; }
.cockpit__main > .card + .card, .cockpit__main > .card + .cockpit-grid, .cockpit__main > .account-stats + .card, .cockpit__main > .alert + .card { margin-top: 1.5rem; }
.cockpit__main .card h2 { font-size: 1.2rem; }
.cockpit-hello .page-title { margin-bottom: 0.25rem; }
.cockpit-hello p { margin: 0 0 1.5rem; }
.cockpit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.cockpit-head h2 { margin: 0; }
.cockpit-head a { font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.cockpit-subhead { font-size: 0.95rem; margin: 1.5rem 0 0.25rem; }
.cockpit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.cockpit-grid--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 0; }
.cockpit-list-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.cockpit-list-item:last-child { border-bottom: 0; }
.cockpit-list-item > div { min-width: 0; }
.cockpit-list-item strong { display: block; line-height: 1.35; }
.cockpit-list-item a { text-decoration: none; }
.cockpit-support h2 { margin: 0 0 0.4rem; }
.cockpit-support .card__body { display: flex; gap: 1.25rem 1.75rem; align-items: flex-start; flex-wrap: wrap; }
.cockpit-support__icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent-dark); }
.cockpit-support__icon svg { width: 30px; height: 30px; }
.cockpit-support__text { flex: 1 1 280px; min-width: 0; }
.cockpit-support__text p { margin: 0; }
.cockpit-support__contact { flex: 0 1 auto; min-width: 220px; }
.cockpit-support__contact .cockpit-contact { margin-bottom: 0.9rem; }
.cockpit-grid--wide .cockpit-support .card__body { flex-direction: column; }
.cockpit-grid--wide .cockpit-support .card__body > :not(.cockpit-support__icon) { flex: 0 0 auto; min-width: 0; width: 100%; }
.cockpit-grid--wide .cockpit-contact li { flex-direction: column; gap: 0; }
.cockpit-stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.cockpit-card--compact .card__body { padding: 1.25rem 2rem 1.25rem; }
.cockpit-empty { margin: 0.25rem 0 0; font-size: 0.925rem; line-height: 1.5; }
.promo-card { background: linear-gradient(135deg, #2c3e6b 0%, #3d5a99 100%); color: #fff; }
.promo-card h2 { margin: 0.5rem 0 0.5rem; font-family: var(--font-display); font-size: 1.45rem !important; line-height: 1.25; color: #fff; }
.promo-card p { margin: 0 0 1.1rem; color: rgba(255, 255, 255, 0.85); }
.promo-card .promo-card__claim { margin-bottom: 0.6rem; color: #fff; font-weight: 600; }
.promo-card strong { color: #fff; }
.promo-card__brand { color: #a5e3a8; }
.promo-card__badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: rgba(255, 255, 255, 0.15); padding: 0.2rem 0.65rem; border-radius: 999px; }
.promo-card .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.promo-card .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.my-course__bonus { grid-column: 1 / -1; }
.promo-card--inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); color: var(--text); }
.promo-card--inline > div:first-child { flex: 1 1 320px; }
.promo-card--inline .promo-card__title { font-family: var(--font); font-size: 1rem !important; font-weight: 700; margin: 0.35rem 0 0.2rem; color: var(--text); }
.promo-card--inline .promo-card__brand { color: var(--accent-dark); }
.promo-card--inline p, .promo-card--inline .promo-card__claim { margin: 0; font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.promo-card--inline .promo-card__badge { background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--accent-dark); font-size: 0.68rem; }
.promo-card--inline .btn { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.promo-card--inline .promo-card__actions { gap: 1rem; }
.promo-card--inline .promo-card__actions a:not(.btn) { color: var(--navy); font-size: 0.875rem; }
.promo-card__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.promo-card__actions a:not(.btn) { color: #fff; font-weight: 600; text-decoration: none; }
.cockpit-contact { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.cockpit-contact li { display: flex; gap: 0.75rem; padding: 0.35rem 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.cockpit-contact span { color: var(--muted); min-width: 80px; }
.btn--small { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.badge--muted { background: #eef1f4; color: #55606e; }
.badge--danger { background: #fdecea; color: #8a1c12; }

.resume-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin-bottom: 1.5rem; }
.resume-card__image { display: block; min-height: 100%; background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%); }
.resume-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1200 / 628; }
.resume-card__body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; }
.resume-card__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.resume-card h2 { font-family: var(--font-display); font-size: 1.5rem !important; margin: 0; line-height: 1.25; }
.resume-card p { margin: 0; }
.resume-card__meta { margin-top: -0.3rem; font-size: 0.85rem; }
.resume-card .btn { margin-top: 0.4rem; }

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; }
.avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 18%, #fff); color: var(--navy); font-weight: 700; }
.site-nav__account { display: inline-flex; align-items: center; gap: 0.5rem; }
.invoice-create { margin: 0.5rem 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.invoice-create h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.invoice-create__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.invoice-create__row:last-of-type { border-bottom: 0; }
.invoice-create__row strong { display: block; }
.invoice-create .field__hint { margin: 0.5rem 0 0; }
.profile-photo { display: flex; align-items: center; gap: 1.5rem; }
.profile-photo h2 { margin: 0 0 0.25rem; }
.profile-photo p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.profile-photo__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-photo__actions form { margin: 0; }
.profile-photo__actions label.btn { cursor: pointer; }
.field input[type=tel], .field textarea, .field select { width: 100%; padding: 0.75rem 0.9rem; color: inherit; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; }
.field textarea { resize: vertical; }
.field textarea:focus, .field select:focus, .field input[type=tel]:focus { outline: none; border-color: var(--accent); }

@media (max-width: 900px) {
    .cockpit { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .cockpit__side { position: static; padding: 0.5rem; min-width: 0; }
    .cockpit__user { display: none; }
    .cockpit__nav { flex-direction: row; overflow-x: auto; gap: 0.25rem; scrollbar-width: none; }
    .cockpit__nav::-webkit-scrollbar { display: none; }
    .cockpit__nav a, .cockpit__nav button { width: auto; white-space: nowrap; padding: 0.5rem 0.7rem; font-size: 0.9rem; }
    .cockpit__nav form { margin: 0; padding: 0; border: 0; }
    .cockpit-grid, .cockpit-grid--wide { grid-template-columns: 1fr; }
    .resume-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .my-course { grid-template-columns: 88px minmax(0, 1fr); gap: 0.9rem; }
    .my-course__image { aspect-ratio: 1 / 1; border-radius: 14px; }
    .my-course > .btn { grid-column: 1 / -1; justify-self: center; }
    .resume-card__action { text-align: center; }
    .my-course__progress { flex-wrap: wrap; }
    .profile-photo { flex-direction: column; align-items: flex-start; }
    .account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
    .account-stat { padding: .7rem .3rem; text-align: center; border-radius: 10px; }
    .account-stat strong { font-size: 1.3rem; }
    .account-stat span { display: block; font-size: .68rem; line-height: 1.25; hyphens: manual; }
}
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; align-items: center; }
.filters input, .filters select { padding: 0.55rem 0.8rem; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.course-card__progress { margin-top: 0.5rem; }

/* ---------- Focus Mode ---------- */
body.focus { background: #fff; }
.focus__toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.focus__bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: 0.65rem 1rem; background: #fff; border-bottom: 1px solid var(--border); }
.focus__toggle { cursor: pointer; font-size: 1.25rem; padding: 0.2rem 0.5rem; border-radius: 8px; }
.focus__toggle:hover { background: var(--bg); }
.focus__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.focus__logo img { max-height: 36px; display: block; }
.focus__progress { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--muted); margin-left: auto; }
.focus__progress-label { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 0.72rem; }
.progress--focus { height: 10px; width: clamp(140px, 22vw, 280px); background: #dfe8e2; }
.focus__progress-percent { font-weight: 700; font-size: 1rem; color: var(--text); min-width: 3.2em; }
/* Durchgehende Leiste an der Unterkante der Kopfzeile */
.focus__strip { position: absolute; left: 0; bottom: -1px; height: 4px; max-width: 100%; background: var(--progress, var(--accent)); border-radius: 0 4px 4px 0; transition: width .3s; }
.focus__arrows { display: flex; gap: 1rem; font-size: 0.9rem; font-weight: 600; margin-left: auto; }
/* Fortschritt mittig in der Kopfzeile (auf breiten Bildschirmen) */
@media (min-width: 901px) {
    .focus__progress { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin-left: 0; }
}
.focus__arrows a { text-decoration: none; }
.focus__user { position: relative; font-size: 0.9rem; font-weight: 600; }
.focus__user summary { cursor: pointer; list-style: none; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--bg); }
.focus__menu { position: absolute; right: 0; top: calc(100% + 0.4rem); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.1); padding: 0.4rem; min-width: 200px; display: grid; }
.focus__menu a, .focus__menu button { display: block; padding: 0.55rem 0.75rem; border-radius: 8px; text-decoration: none; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.focus__menu a:hover, .focus__menu button:hover { background: var(--bg); }
.focus__body { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 57px); }
.focus--right .focus__body { grid-template-columns: minmax(0, 1fr) 320px; }
.focus--right .focus__sidebar { order: 2; border-right: 0; border-left: 1px solid var(--border); }
.focus__sidebar { background: var(--bg); border-right: 1px solid var(--border); padding: 1rem; overflow-y: auto; max-height: calc(100vh - 57px); position: sticky; top: 57px; }
.focus__toggle-input:checked ~ .focus__body { grid-template-columns: minmax(0, 1fr); }
.focus__toggle-input:checked ~ .focus__body .focus__sidebar { display: none; }
.focus__course a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; margin-bottom: 1rem; }
.fnav__section { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.25rem 0 0.45rem 0.25rem; }
.fnav__group { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.35rem; margin-bottom: 0.6rem; }
.fnav__group > .fnav__item--lesson { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.fnav__group > .fnav__children { border-top: 1px solid var(--border); margin: 0.2rem 0 0; padding: 0.3rem 0 0 1rem; }
.fnav__item { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.5rem; border-radius: 8px; font-size: 0.9rem; }
.fnav__item a { color: var(--text); text-decoration: none; }
.fnav__item--lesson { font-weight: 600; }
.fnav__item--current { background: color-mix(in srgb, var(--accent) 12%, #fff); }
.fnav__item--current a { color: var(--accent); }
.fnav__locked { color: var(--muted); }
.fnav__children { margin-left: 1rem; }
.focus__main { padding: 2rem 1.25rem 4rem; }
.focus__content { max-width: var(--focus-width); margin: 0 auto; }
.step__title { font-family: var(--font-display); font-size: 2rem; margin: 0.25rem 0 1.25rem; }

@media (max-width: 900px) {
    .focus__body, .focus--right .focus__body { grid-template-columns: 1fr; }
    .focus__sidebar { display: none; position: static; max-height: none; }
    .focus__toggle-input:checked ~ .focus__body .focus__sidebar { display: block; }
    .focus__progress .progress, .focus__progress-label { display: none; }
    .focus__logo { display: none; }
}

/* Tabellen (Konto: Bestellungen) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: #6c757d; border-bottom: 2px solid #e2e6ea; padding: 0.5rem; }
.table td { border-bottom: 1px solid #edf0f2; padding: 0.6rem 0.5rem; vertical-align: top; }
.table small { color: #6c757d; }
.table .btn--link { color: #b91c1c; font-size: 0.85rem; margin-left: 0.5rem; }

/* Eingebettete Videos im Inhalt ([video URL]) */
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 1.25rem 0; border-radius: 10px; overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .embed-video { width: 100%; margin: 1.25rem 0; border-radius: 10px; }
.prose .embed-audio { width: 100%; margin: 1rem 0; }
.prose .pdf-embed { margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.prose .pdf-embed__frame { display: block; width: 100%; height: min(80vh, 820px); border: 0; background: #525659; }
.prose .pdf-embed__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.prose .pdf-embed__name { flex: 1; min-width: 12rem; font-weight: 600; overflow-wrap: anywhere; }
.prose .pdf-embed__download { padding: 0.55rem 1.25rem; font-size: 0.9rem; text-decoration: none; }
/* Handy-Browser zeigen PDFs in iframes nicht zuverlässig an → nur Öffnen/Herunterladen */
@media (max-width: 700px) {
    .prose .pdf-embed__frame { display: none; }
    .prose .pdf-embed__bar { border-top: 0; }
}
/* PDF.js-Anzeige (Android, iPhone/iPad), siehe js/pdf-embed.js */
.prose .pdf-embed__pages { max-height: min(80vh, 820px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: #525659; padding: 10px; display: grid; gap: 10px; align-content: start; }
.prose .pdf-embed__pages[hidden] { display: none; }
.prose .pdf-embed__page { width: 100%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.prose .pdf-embed__page canvas { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.prose .pdf-embed__note { color: #fff; text-align: center; margin: 0; padding: 2.5rem 1rem; }
.prose .pdf-embed--js .pdf-embed__bar { border-top: 1px solid var(--border); }

/* ---------- Quiz ---------- */
.quiz [hidden], .quiz-result [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiz-intro { position: relative; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: #fafcfb; }
.quiz-intro__art { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); width: 170px; height: auto; pointer-events: none; }
.quiz-intro > :not(.quiz-intro__art) { position: relative; margin-right: 190px; }
@media (max-width: 640px) { .quiz-intro__art { display: none; } .quiz-intro > :not(.quiz-intro__art) { margin-right: 0; } }
.quiz-intro__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.quiz-progress { margin-bottom: 1.25rem; }
.quiz-progress__label { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.quiz__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; min-height: 1.5rem; }
.quiz__position { font-weight: 600; }
.quiz__timer { font-weight: 700; font-variant-numeric: tabular-nums; padding: 0.2rem 0.7rem; border-radius: 999px; background: #e8f1fb; color: #1d3f72; }
.quiz__timer.is-low { background: #fdecea; color: #8a1c12; }
.quiz-overview { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.quiz-overview__item { width: 2.1rem; height: 2.1rem; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font: inherit; font-size: 0.85rem; }
.quiz-overview__item.is-answered { background: #e8f5e9; border-color: #a5d6a7; }
.quiz-overview__item.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.quiz-q { border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: #fff; }
.quiz-q__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
.quiz-q__number { font-weight: 700; color: var(--navy); }
.quiz-q__answers { border: 0; padding: 0; margin: 0.75rem 0 0; min-width: 0; }
.quiz-q__answers:disabled { opacity: 0.85; }
.quiz-choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.85rem; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 0.5rem; cursor: pointer; }
.quiz-choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.quiz-choice input { margin-top: 0.3rem; accent-color: var(--accent); }
.quiz-input { width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; }
.quiz-input--inline { display: inline-block; width: auto; min-width: 8rem; padding: 0.3rem 0.6rem; margin: 0 0.2rem; }
.quiz-sort { list-style: decimal; padding-left: 1.5rem; margin: 0; }
.quiz-sort__item { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 0.4rem; background: #fff; }
.quiz-sort__buttons { display: flex; gap: 0.25rem; flex-shrink: 0; }
.quiz-sort__btn { width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 6px; background: #f7f9f8; cursor: pointer; }
.quiz-matrix__row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.quiz-matrix__criterion { flex-shrink: 0; }
.quiz-cloze { line-height: 2.4; }
.quiz-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.quiz-scale__option { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; cursor: pointer; }
.quiz-q__hint { margin-top: 0.75rem; font-size: 0.9rem; }
.quiz-q__hint summary { cursor: pointer; color: var(--navy); }
.quiz-q__feedback { margin-top: 0.75rem; padding: 0.75rem 1rem; border-radius: 10px; background: #f3f5f4; }
.quiz-q__feedback.is-correct, .quiz-q--review.is-correct { border-color: #a5d6a7; }
.quiz-q__feedback.is-correct { background: #e8f5e9; }
.quiz-q__feedback:has(.quiz-q__smiley) { display: flex; align-items: center; gap: 1rem; }
.quiz-q__feedback-text { flex: 1; min-width: 0; }
.quiz-q__smiley { flex: none; width: 64px; height: 64px; }
@media (max-width: 640px) { .quiz-q__smiley { width: 48px; height: 48px; } }
.quiz-q__feedback.is-wrong { background: #fdecea; }
.quiz-q--review.is-wrong { border-color: #f5b7b1; }
.quiz-q__actions { margin-top: 0.75rem; text-align: center; }
.quiz-solution { margin-top: 0.75rem; font-size: 0.9rem; color: #1b5e20; }
.quiz-solution ol, .quiz-solution ul { margin: 0.25rem 0 0 1.25rem; }
.quiz__nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.quiz__nav #quiz-prev { margin-right: auto; }
.quiz-result__score { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.quiz-result__percent { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.quiz-result__facts { list-style: none; padding: 0; margin: 0; }
.quiz-result__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.quiz-result__actions form { margin: 0; }
.quiz-essay { margin-top: 0.75rem; padding: 0.75rem 1rem; background: #f7f9f8; border-radius: 10px; }
@media (max-width: 600px) {
    .quiz-q { padding: 1rem; }
    .quiz-matrix__row { flex-direction: column; align-items: stretch; gap: 0.3rem; }
    .quiz-matrix__criterion { flex-basis: auto !important; }
}

.enroll-box__certificate { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.enroll-box__certificate .btn { margin-top: 0.5rem; }

/* Einsendeaufgaben */
.assignment-box { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.assignment-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.assignment-item { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.assignment-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.assignment-item__head form { margin: 0; }
.assignment-comment { margin: 0.6rem 0 0 1rem; padding: 0.5rem 0.75rem; background: #f7f9f8; border-radius: 8px; font-size: 0.9rem; }
.assignment-reply { margin: 0.5rem 0 0 1rem; font-size: 0.9rem; }
.assignment-reply summary { cursor: pointer; color: var(--navy); }
.assignment-reply .btn { margin-top: 0.4rem; }
.assignment-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.assignment-upload .muted { flex-basis: 100%; margin: 0; font-size: 0.85rem; }

/* Rechtstexte (Impressum) */
.legal { max-width: 860px; margin: 0 auto; }
.legal__head { text-align: center; margin: 0.5rem 0 2rem; }
.legal__head h1 { font-family: var(--font-display); font-size: 2.4rem; margin: 0.35rem 0 0.4rem; }
.legal__head p { margin: 0; }
.legal__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.legal__card { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); padding: 2rem clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.legal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.legal__facts h2, .legal__text h2 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 0.75rem; }
.legal__facts p { margin: 0 0 0.75rem; line-height: 1.6; }
.legal__label { display: block; font-size: 0.78rem; color: var(--muted); }
.legal__text h2 { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.legal__text h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__text p { margin: 0; line-height: 1.75; color: #3d4a5c; }
.legal__updated { text-align: center; font-size: 0.85rem; }
@media (max-width: 640px) { .legal__facts { grid-template-columns: 1fr; } .legal__head h1 { font-size: 1.9rem; } }
.legal__text ul { margin: 0.5rem 0 0.75rem; padding-left: 1.2rem; line-height: 1.75; color: #3d4a5c; }
.legal__text li { margin-bottom: 0.4rem; }
.legal__text p + p { margin-top: 0.75rem; }
.legal__text h2 { scroll-margin-top: 1.5rem; }
.legal__toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.25rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.legal__toc a { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.legal__toc span { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent-dark); font-size: 0.78rem; }
.site-footer { background: #1b2433; color: rgba(255, 255, 255, 0.62); text-align: center; padding: 2.5rem 1rem 3rem; font-size: 0.92rem; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem 1.9rem; margin-bottom: 1.1rem; }
.site-footer nav a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }
.site-footer p a { color: inherit; text-decoration: none; }
.focus__main .site-footer { margin: 3rem -1.25rem -4rem; border-radius: 0; }

/* Kontakt-Modal */
.contact-modal { width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(27, 36, 51, 0.35); overflow: auto; }
.contact-modal::backdrop { background: rgba(27, 36, 51, 0.55); backdrop-filter: blur(3px); }
.contact-modal[open] { animation: contact-in .22s ease-out; }
@keyframes contact-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.contact-modal__form { position: relative; margin: 0; }
.contact-modal__head { display: flex; gap: 1rem; align-items: flex-start; padding: 1.75rem 1.75rem 1.25rem; background: linear-gradient(180deg, #dceef5 0%, #e8f3ec 100%); }
.contact-modal__head h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.25rem; }
.contact-modal__head p { margin: 0; color: #3d4a5c; font-size: 0.92rem; }
.contact-modal__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
.contact-modal__icon svg { width: 26px; height: 26px; }
.contact-modal__close { position: absolute; top: 0.75rem; right: 0.9rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.8); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.contact-modal__close:hover { color: var(--text); background: #fff; }
.contact-modal__body { padding: 1.5rem 1.75rem 1.75rem; }
.contact-modal__body .field { margin-bottom: 0.9rem; }
.contact-modal__privacy { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 1.1rem; cursor: pointer; }
.contact-modal__privacy input { margin-top: 0.2rem; accent-color: var(--accent); }
.contact-modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-modal__error { margin-bottom: 1rem; }
.contact-modal__done { padding: 2.5rem 1.75rem; text-align: center; }
.contact-modal__done h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0.75rem 0 0.4rem; }
.contact-modal__done p { color: var(--muted); margin: 0 0 1.5rem; }
.contact-modal__check { display: inline-flex; width: 3.5rem; height: 3.5rem; border-radius: 50%; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-dark); font-size: 1.6rem; font-weight: 700; }
@media (max-width: 560px) { .contact-modal__head { padding: 1.4rem 1.25rem 1rem; } .contact-modal__body { padding: 1.25rem; } }

/* Konto löschen */
.danger-zone { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.danger-zone form { margin-top: 1rem; display: grid; gap: .75rem; max-width: 520px; }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #a93226; }

/* Login im Split-Layout: links Bild, rechts Formular */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; margin: 0; background: #faf9f7; }
.auth-split__visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 4rem; color: #fff;
    background: linear-gradient(160deg, #3d8b40 0%, var(--navy) 100%) 42% center / cover no-repeat; }
.auth-split__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44, 62, 107, .15) 0%, rgba(44, 62, 107, .35) 45%, rgba(25, 45, 70, .85) 100%); }
.auth-split__rings span { position: absolute; top: 12%; left: 88%; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; transform: translate(-50%, -50%); }
.auth-split__rings span:nth-child(1) { width: 120px; height: 120px; }
.auth-split__rings span:nth-child(2) { width: 260px; height: 260px; }
.auth-split__rings span:nth-child(3) { width: 420px; height: 420px; opacity: .6; }
.auth-split__intro { position: relative; max-width: 420px; }
.auth-split__eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; opacity: .95; }
.auth-split__intro h2 { font-family: var(--font); font-size: clamp(2.5rem, 4vw, 3.6rem); font-weight: 600; line-height: 1.08; margin: 0 0 1.25rem; color: #fff; }
.auth-split__intro p { font-size: 1.05rem; line-height: 1.6; margin: 0 0 2.5rem; opacity: .95; }
.auth-split__back { color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .6); padding-bottom: 3px; }
.auth-split__back:hover { border-color: #fff; }
.auth-split__panel { display: flex; flex-direction: column; justify-content: center; padding: 3rem 1.5rem 1.5rem; }
.auth-split__inner { width: 100%; max-width: 420px; margin: auto; }
.auth-split__logo { display: inline-block; margin-bottom: 2.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.auth-split__logo img { max-height: 48px; display: block; }
.auth-split__title { font-family: var(--font); font-size: 2rem; font-weight: 600; margin: 0 0 .35rem; }
.auth-split__lead { color: var(--muted); margin: 0 0 1.75rem; }
.auth-split__form .field input { background: #fff; }
.auth-split__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -.25rem 0 1.25rem; font-size: .9rem; }
.auth-split__row a { color: var(--navy); }
.auth-split__divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 1rem; color: var(--muted); font-size: .88rem; }
.auth-split__divider::before, .auth-split__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-split__alt { display: flex; align-items: center; justify-content: center; gap: .6rem; background: #fff; }
.auth-split__help { margin: 1.75rem 0 0; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.auth-split__help a { color: var(--navy); }
.auth-split__footer { margin-top: 3rem; text-align: center; font-size: .8rem; color: var(--muted); }
.auth-split__footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; margin-bottom: .6rem; }
.auth-split__footer a { color: var(--muted); text-decoration: none; }
.auth-split__footer a:hover { color: var(--navy); }
.auth-split__footer p { margin: 0; }
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-split__visual { display: none; }
}

/* Zertifikat prüfen: Prüf-Animation, dann Ergebnis */
.cert-check { padding: 1.5rem 0 1rem; }
.cert-check__icon { width: 96px; height: 96px; margin: 0 auto 1rem; display: block; }
.cert-check__ring { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 60 154; transform-origin: 40px 40px; animation: cert-spin 1.1s linear infinite; }
.cert-check__doc { fill: #fff; stroke: var(--navy); stroke-width: 2.5; }
.cert-check__lines { stroke: #b9cbbf; stroke-width: 2.5; stroke-linecap: round; }
.cert-check__lens { fill: rgba(76, 175, 80, .12); stroke: var(--navy); stroke-width: 3; stroke-linecap: round; animation: cert-scan 1.6s ease-in-out infinite; }
.cert-check__text { font-weight: 600; color: var(--navy); margin: 0 0 1rem; }
.cert-check__bar { height: 6px; max-width: 260px; margin: 0 auto; border-radius: 999px; background: #e6ece8; overflow: hidden; }
.cert-check__bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; animation: cert-progress 4s ease-in-out forwards; }
@keyframes cert-spin { to { transform: rotate(360deg); } }
@keyframes cert-scan { 0%, 100% { transform: translate(-14px, -16px); } 50% { transform: translate(0, -4px); } }
@keyframes cert-progress { to { width: 100%; } }
.cert-result.is-revealed { animation: cert-fade .45s ease-out; }
@keyframes cert-fade { from { opacity: 0; transform: translateY(6px); } }
.cert-result__badge { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; margin-bottom: 1.5rem; border-radius: 12px; font-size: 1.1rem; }
.cert-result__badge--ok { background: #e8f5e9; color: #1b5e20; }
.cert-result__badge svg { width: 40px; height: 40px; flex: none; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.cert-result__badge circle { stroke: var(--accent); stroke-dasharray: 151; stroke-dashoffset: 151; }
.cert-result__badge path { stroke: var(--accent); stroke-dasharray: 36; stroke-dashoffset: 36; }
.cert-result.is-revealed .cert-result__badge circle { animation: cert-draw .5s ease-out forwards; }
.cert-result.is-revealed .cert-result__badge path { animation: cert-draw .35s .45s ease-out forwards; }
.cert-result:not(.is-revealed) .cert-result__badge circle, .cert-result:not(.is-revealed) .cert-result__badge path { stroke-dashoffset: 0; }
@keyframes cert-draw { to { stroke-dashoffset: 0; } }

/* Abschlussseite */
.done { max-width: 880px; margin: 0 auto; }
.done__confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.done__hero { text-align: center; padding: 1.5rem 0 2rem; }
.done__medal { width: 120px; height: 140px; display: block; margin: 0 auto 1rem; animation: done-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.done__star { transform-origin: 60px 84px; animation: done-spin 1.2s .5s ease-out both; }
@keyframes done-pop { from { opacity: 0; transform: scale(.4) translateY(20px); } }
@keyframes done-spin { from { transform: rotate(-180deg) scale(0); } }
.done__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.done__hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 .75rem; color: var(--text); }
.done__lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto 1.25rem; line-height: 1.6; }
.done__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.done__facts li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.done__card { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0, 0, 0, .06); padding: 1.75rem; margin-bottom: 1.5rem; }
.done__certificate { display: flex; gap: 1.25rem; align-items: flex-start; border-top: 4px solid var(--accent); }
.done__certificate-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; background: #e8f5e9; display: grid; place-items: center; font-size: 2rem; }
.done__certificate h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.done__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.done__link { font-weight: 600; color: var(--navy); }
.done__note { margin: .75rem 0 0; color: var(--muted); }
.done__bonus { margin-bottom: 1.5rem; }
.done__more { margin: 2.5rem 0 1rem; }
.done__more h2 { margin: 0 0 .25rem; }
.done__more .course-grid { margin-top: 1.25rem; }
.done__footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 2rem 0 1rem; }
@media (max-width: 600px) { .done__certificate { flex-direction: column; } }
.done__share-hint { margin: .75rem 0 0; font-size: .9rem; color: var(--accent-dark); font-weight: 600; }
.done__share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .88rem; }
.done__share > span { color: var(--muted); font-weight: 600; margin-right: .15rem; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-btn--linkedin { background: #0a66c2; }
.share-btn--facebook { background: #1877f2; }
.share-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
/* Zertifikat-Karte zentriert */
.done__certificate { flex-direction: column; align-items: center; text-align: center; }
.done__share { justify-content: center; }
.login-code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }

/* Hinweis „App installieren“ im Konto */
.app-install { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.app-install__main { display: flex; align-items: center; gap: 1rem; padding: .9rem 2.4rem .9rem 1rem; position: relative; }
.app-install__more { display: flex; align-items: center; gap: .75rem; padding: .7rem 2.4rem .7rem 1rem; position: relative; border-top: 1px dashed var(--border); background: color-mix(in srgb, var(--accent) 6%, #fff); font-size: .88rem; color: var(--muted); }
.app-install__more svg { flex: none; color: var(--accent-dark); }
.app-install__more span { flex: 1; }
.app-install__more .btn { margin-left: auto; }
.app-install__main[hidden] + .app-install__more { border-top: 0; }
.app-install--mobile .app-install__more { padding-right: 1rem; }
.app-modal .contact-modal__head { align-items: center; }
.app-modal__logo { width: 52px; height: 52px; border-radius: 14px; flex: none; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.app-modal__qr { display: flex; gap: 1.25rem; align-items: center; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1.25rem; }
.app-modal__qr img { flex: none; width: 132px; height: 132px; image-rendering: pixelated; }
.app-modal__qr p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.app-modal__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.app-modal__steps--single { grid-template-columns: 1fr; }
.app-modal__steps section { background: #f6f8f7; border-radius: 14px; padding: 1rem 1.1rem; }
.app-modal__steps h3 { margin: 0 0 .6rem; font-size: 1rem; }
.app-modal__steps h3 small { font-weight: 400; color: var(--muted); }
.app-modal__steps ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .9rem; }
.app-modal__steps svg { vertical-align: -2px; }
.app-modal__tip { margin: 1.1rem 0 0; font-size: .85rem; color: var(--muted); }
.app-modal__actions { margin-top: 1.25rem; text-align: right; }
.app-modal [hidden] { display: none !important; }
@media (max-width: 560px) { .app-modal__steps { grid-template-columns: 1fr; } .app-modal__qr { flex-direction: column; text-align: center; } .app-modal .contact-modal__head h2 { font-size: 1.3rem; } .app-modal__logo { width: 44px; height: 44px; } }
.app-install[hidden], .app-install [hidden] { display: none !important; }
.app-install__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px var(--border); }
.app-install__text { flex: 1; display: grid; gap: .2rem; font-size: .9rem; color: var(--muted); }
.app-install__text strong { color: var(--text); font-size: 1rem; }
.app-install__text svg { vertical-align: -3px; }
.app-install .btn { padding: .55rem 1.1rem; font-size: .9rem; flex: none; }
.app-install__close { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
@media (max-width: 520px) {
    .app-install__main, .app-install__more { flex-wrap: wrap; }
    .app-install__text { flex: 1 1 0; min-width: 0; }
    .app-install__main .btn, .app-install__more .btn { flex: 1 1 100%; margin-left: 0; }
    .app-install__more > svg { display: none; }
}

/* Kursübersicht in Abschnitten */
.course-section + .course-section { margin-top: 3rem; }
/* Ausbildungen: Karten füllen die ganze Breite (auto-fit statt auto-fill) */
.course-section--main .course-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.course-section__head { margin-bottom: 1.25rem; }
.course-section__head .section-title { margin: 0 0 0.25rem; }
.course-section__head p { margin: 0; }
.course-section--private { margin-top: 4rem !important; padding: 2rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid var(--border); }
@media (max-width: 560px) { .course-section--private { padding: 1.25rem; margin-left: -0.25rem; margin-right: -0.25rem; } }
