/* signet LMS – Stylesheet */
[hidden] { display: none !important; }
:root {
  --primary: #164094;
  --accent: #45b384;
  --accent-dark: #2f8f66;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, white);
  --primary-dark: color-mix(in srgb, var(--primary) 80%, black);
  --bg: #f6f7fb;
  --card: #fff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
img { max-width: 100%; height: auto; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: #f1f5f9; padding: .1em .35em; border-radius: 5px; }
pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 10px; overflow: auto; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 24px; padding-bottom: 40px; min-height: calc(100vh - 140px); }
.muted { color: var(--muted); } .small { font-size: .87rem; } .center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; } .grow { flex: 1; } .inline { display: inline; }
.text-ok { color: var(--ok); } .text-warn { color: var(--warn); }

/* Topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--primary); }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.mainnav a:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.mainnav a.active { background: var(--primary-soft); color: var(--primary); }
.userchip { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.userchip:hover { text-decoration: none; border-color: var(--primary); }
.lvl { background: var(--primary); color: #fff; font-weight: 800; font-size: .75rem; border-radius: 999px; padding: 4px 9px; }
.uc-body { display: flex; flex-direction: column; min-width: 90px; }
.uc-name { font-size: .85rem; font-weight: 600; line-height: 1.2; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streak { font-size: .85rem; font-weight: 700; }
.logout button { font-size: 1.2rem; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; margin-left: auto; cursor: pointer; }

/* XP-Balken */
.xpbar { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-top: 3px; }
.xpbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width .6s ease; }
.xpbar.big { height: 12px; margin: 10px 0 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .08s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-danger { background: #fff; color: var(--bad); border-color: #fecaca; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; cursor: pointer; padding: 4px; }
.btn-icon { background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; color: var(--muted); padding: 2px 6px; font-size: .8rem; }
.btn-icon:hover { border-color: var(--line); color: var(--text); }
.btn-icon.danger:hover { color: var(--bad); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.btn-xp .xp-chip { background: rgba(255,255,255,.22); border-radius: 99px; padding: 2px 8px; font-size: .8rem; }

/* Karten & Layout */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; border: 1px solid rgba(226,232,240,.6); }
.card.empty { text-align: center; color: var(--muted); padding: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.layout-2.wide-left { grid-template-columns: minmax(0, 1fr) 360px; }
.grid.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 4px; }
.stat-card { padding: 16px 20px; }
.stat-card .stat-num { font-size: 1.7rem; font-weight: 800; }
.crumb { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }

/* Alerts & Pills */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--ok-soft); color: #166534; }
.alert-error { background: var(--bad-soft); color: #991b1b; }
.alert-warn { background: var(--warn-soft); color: #92400e; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: #166534; }
.pill-warn { background: var(--warn-soft); color: #92400e; }
.pill-bad { background: var(--bad-soft); color: #991b1b; }
.pill-btn { border: 0; cursor: pointer; font-family: inherit; }
.callout { border-radius: 12px; padding: 14px 18px; margin: 1rem 0; border-left: 4px solid; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout-info { background: #eff6ff; border-color: #3b82f6; }
.callout-tip { background: #f0fdf4; border-color: #22c55e; }
.callout-warn { background: #fffbeb; border-color: #f59e0b; }
.callout textarea { width: 100%; margin-top: 8px; }

/* Hero / Dashboard */
.hero { display: flex; gap: 24px; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); color: #fff; border-radius: 20px; padding: 30px 32px; margin-bottom: 28px; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 30%, transparent); }
.hero h1 { font-size: 1.9rem; margin-bottom: .3em; }
.hero p { margin: 0; opacity: .95; }
.hero .xpbar { background: rgba(255,255,255,.25); max-width: 420px; }
.hero .xpbar span { background: #fff; }
.hero-stats { display: flex; gap: 14px; }
.stat { background: rgba(255,255,255,.14); border-radius: 14px; padding: 14px 18px; text-align: center; min-width: 100px; display: flex; flex-direction: column; font-size: .85rem; }
.stat .stat-num { font-size: 1.4rem; font-weight: 800; }
.course-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.12); text-decoration: none; }
.cc-head { height: 100px; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 50%, #fff)); position: relative; display: flex; align-items: flex-start; justify-content: flex-end; padding: 10px; gap: 6px; }
.cc-initial { position: absolute; left: 18px; bottom: -22px; width: 54px; height: 54px; border-radius: 14px; background: #fff; color: var(--cc); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; box-shadow: var(--shadow); }
.cc-body { padding: 32px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.cc-body h3 { margin-bottom: .3em; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ring { color: var(--text); flex-shrink: 0; }

/* Kursseite */
.course-banner { background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 60%, #000)); color: #fff; border-radius: 20px; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.course-banner .crumb { color: rgba(255,255,255,.8); }
.course-banner h1 { font-size: 2rem; margin-bottom: .2em; }
.banner-meta { opacity: .9; font-size: .95rem; }
.banner-ring .ring { color: #fff; }
.banner-ring .ring circle:first-child { stroke: rgba(255,255,255,.25); }
.lesson-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.lesson-list li a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; color: var(--text); }
.lesson-list li a:hover { background: var(--bg); text-decoration: none; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.ll-num { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; color: var(--muted); }
.done .ll-num { background: var(--ok); color: #fff; }
.ll-title { flex: 1; font-weight: 500; }
.ll-xp { font-size: .8rem; color: var(--muted); font-weight: 600; }
.quiz-card { display: flex; gap: 20px; align-items: flex-start; border: 2px dashed var(--line); }
.quiz-card.passed { border: 2px solid var(--ok); background: linear-gradient(180deg, #f0fdf4, #fff); }
.quiz-card-icon { font-size: 2.6rem; line-height: 1; }
.quiz-card-body h2 { margin-bottom: .2em; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.objectives li { display: grid; gap: 4px; font-size: .93rem; }
.obj-bar { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.obj-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.obj-bar.ok span { background: var(--ok); } .obj-bar.warn span { background: var(--warn); }
.obj-grid { display: grid; gap: 12px; }
.obj-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 60px; gap: 14px; align-items: center; }
.obj-val { text-align: right; font-weight: 700; font-size: .9rem; }

/* Lektion */
.lesson-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; transition: grid-template-columns .2s ease; }
.lesson-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; min-width: 0; }
.side-panel { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding-right: 4px; scrollbar-width: thin; }
.side-top { display: flex; margin-bottom: 8px; }
.side-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 10px; font: inherit; font-size: .85rem; color: var(--text); cursor: pointer; }
.side-toggle:hover { border-color: var(--primary); }
.side-toggle:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.st-icon { font-weight: 700; width: 1em; text-align: center; }
.st-count { color: var(--muted); font-size: .8rem; }
.lesson-layout.side-collapsed { grid-template-columns: 48px minmax(0, 1fr); }
.side-collapsed .side-panel { display: none; }
.side-collapsed .side-toggle { flex-direction: column; padding: 8px 6px; gap: 6px; }
.side-collapsed .st-label { writing-mode: vertical-rl; transform: rotate(180deg); }
/* Bilder vergrößern (Lightbox) */
.content img.zoomable { cursor: zoom-in; transition: box-shadow .15s; }
.content img.zoomable:hover, .content img.zoomable:focus-visible { box-shadow: 0 0 0 3px var(--primary); outline: none; }
.zoom-hint { display: block; font-size: .8rem; color: var(--muted); margin: -.6rem 0 1rem; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 40, .92); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; font-size: .9rem; }
.lb-cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 7px 12px; font: inherit; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn:focus-visible { outline: 3px solid #8fd3b4; outline-offset: 2px; }
.lb-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 14px 14px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; cursor: zoom-in; }
.lb.full .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lb.full .lb-stage img { max-width: none; max-height: none; cursor: zoom-out; margin: auto; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.6rem; padding: 10px 14px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
body.lb-open { overflow: hidden; }
.side-progress { margin: 6px 0 12px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; color: var(--text); font-size: .92rem; }
.side-list a:hover { background: #fff; text-decoration: none; }
.side-list .current a { background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.side-list .ll-num { width: 24px; height: 24px; font-size: .75rem; }
.lesson { padding: 32px 40px; }
.lesson h1 { font-size: 2rem; }
.lesson-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); gap: 10px; }
.content { font-size: 1.04rem; }
.content h2 { margin-top: 1.6em; } .content h3 { margin-top: 1.3em; }
.content img { border-radius: 10px; display: block; margin: 1rem 0; }
.content table, .table { width: 100%; border-collapse: collapse; }
.content table { margin: 1rem 0; font-size: .95rem; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
@media (max-width: 600px) { .content th, .content td { padding: 6px 8px; overflow-wrap: anywhere; hyphens: auto; } .lesson h1, .content h2, .content h3, .task-head h2 { overflow-wrap: anywhere; hyphens: auto; } }
.content th { background: var(--bg); }
.content blockquote { margin: 1rem 0; padding: .4rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }
.content figure { margin: 1rem 0; } .content figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.content details { background: var(--bg); border-radius: 10px; padding: 10px 14px; margin: 1rem 0; }
.content summary { cursor: pointer; font-weight: 600; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin: 1rem 0 1.5rem; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap.native { padding-top: 0; } .video-wrap.native video { position: static; height: auto; display: block; }
.video-consent { position: relative; padding-top: 56.25%; border-radius: 12px; background: linear-gradient(135deg, #1e293b, #334155); color: #fff; margin: 1rem 0 1.5rem; overflow: hidden; }
.vc-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 8px; }
.vc-inner p { max-width: 460px; font-size: .9rem; opacity: .85; margin: 0; }
.vc-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.6rem; }

/* Quiz */
.quiz-wrap { max-width: 820px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.quiz-top h1 { margin: 0; }
.quiz-progress { min-width: 220px; text-align: right; }
.quiz-progress .xpbar { height: 10px; }
.qstep { border: 0; padding: 28px; animation: slideIn .25s ease; }
.q-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.q-text { font-size: 1.25rem; font-weight: 700; padding: 0; margin-bottom: 8px; }
.options { display: grid; gap: 10px; margin: 16px 0; }
.option { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: color-mix(in srgb, var(--primary) 50%, white); }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.q-nav { display: flex; justify-content: space-between; margin-top: 10px; }
.qstep.shake { animation: shake .35s; }
.result-hero { display: flex; gap: 28px; align-items: center; }
.result-hero.passed { background: linear-gradient(135deg, #f0fdf4, #fff); border: 2px solid #bbf7d0; }
.result-hero.failed { background: linear-gradient(135deg, #fef2f2, #fff); border: 2px solid #fecaca; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .8rem; margin-right: 4px; }
.review.ok .review-icon { background: var(--ok); } .review.bad .review-icon { background: var(--bad); }
.review-answers { list-style: none; padding-left: 32px; margin: 8px 0; }
.review-answers li { padding: 3px 0; color: var(--muted); }
.review-answers li.chosen { color: var(--text); font-weight: 600; }
.review-answers li.is-correct { color: #166534; }
.explain { margin-left: 32px; background: #f8fafc; padding: 10px 14px; border-radius: 10px; font-size: .93rem; }

/* Gamification */
.level-card { display: flex; gap: 22px; align-items: center; }
.level-badge { width: 92px; height: 92px; border-radius: 24px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.1; font-size: .85rem; flex-shrink: 0; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.level-badge strong { font-size: 2.2rem; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.badge { text-align: center; padding: 16px 10px; border-radius: 14px; background: var(--bg); transition: transform .15s; }
.badge.earned { background: linear-gradient(180deg, #fffbeb, #fff); border: 1px solid #fde68a; }
.badge.earned:hover { transform: scale(1.04); }
.badge.locked { opacity: .5; filter: grayscale(1); }
.badge-icon { font-size: 2.2rem; }
.badge-name { font-weight: 700; font-size: .9rem; }
.badge-desc { font-size: .75rem; color: var(--muted); }
.xp-log { list-style: none; padding: 0; margin: 0; }
.xp-log li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.xp-log li strong { grid-row: span 2; grid-column: 2; align-self: center; color: var(--ok); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 10px 0 26px; }
.podium-step { text-align: center; width: 150px; }
.podium-medal { font-size: 2.2rem; }
.podium-name { font-weight: 700; }
.podium-xp { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.podium-block { border-radius: 12px 12px 0 0; color: #fff; font-weight: 800; font-size: 1.6rem; display: grid; place-items: center; background: var(--primary); }
.p1 .podium-block { height: 120px; background: linear-gradient(180deg, #f59e0b, #d97706); }
.p2 .podium-block { height: 90px; background: linear-gradient(180deg, #94a3b8, #64748b); }
.p3 .podium-block { height: 66px; background: linear-gradient(180deg, #d97706, #92400e); }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table th.right, .table td.right { text-align: right; } .table th.center, .table td.center { text-align: center; }
.table tr.me td { background: var(--primary-soft); }
.table.compact td { padding: 6px 4px; }
.table-scroll { overflow-x: auto; }
.dot { display: inline-grid; place-items: center; min-width: 36px; height: 26px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.dot.ok { background: var(--ok-soft); color: #166534; } .dot.warn { background: var(--warn-soft); color: #92400e; }

/* Toasts */
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 1000; }
.toast { display: flex; gap: 12px; align-items: center; background: #0f172a; color: #fff; padding: 12px 18px 12px 14px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 260px; max-width: 360px; animation: toastIn .35s cubic-bezier(.2,1.4,.4,1); }
.toast.out { animation: toastOut .3s forwards; }
.toast-icon { font-size: 1.7rem; }
.toast-title { font-weight: 700; } .toast-text { font-size: .85rem; opacity: .8; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

/* Formulare */
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin-bottom: 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; font-weight: 400; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
input[type=color] { display: block; margin-top: 5px; width: 64px; height: 40px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 3px; background: #fff; }
select.sm { padding: 5px 8px; margin: 0; width: auto; font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.input-group { display: flex; gap: 8px; margin-top: 5px; }
.input-group input { margin-top: 0 !important; }
.form.narrow, .card.narrow { max-width: 640px; }
.obj-edit { display: grid; gap: 8px; margin-bottom: 8px; }
.obj-edit input { margin-top: 0 !important; }
.ans-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ans-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ok); }
.ans-row input:not([type=checkbox]) { margin-top: 0 !important; }
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: .88rem; }
.checklist .ok { color: var(--ok); } .checklist .bad { color: var(--bad); font-weight: 700; }
.dropzone { position: relative; border: 2px dashed #cbd5e1; border-radius: 14px; padding: 34px 20px; text-align: center; margin-bottom: 16px; transition: .15s; background: var(--bg); }
.dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { font-size: 2.4rem; }
.dz-file { font-weight: 700; color: var(--primary); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs .tab-right { margin-left: auto; }
.admin-lessons { padding-left: 20px; margin: 0; }
.admin-lessons li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.admin-lessons li a { font-weight: 600; margin-right: 6px; }
.admin-lessons form { float: right; }
.q-admin { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-admin-head { display: flex; gap: 10px; align-items: flex-start; }
.q-admin-actions { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.q-admin-answers { list-style: none; padding-left: 18px; margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.q-admin-answers .is-correct { color: #166534; font-weight: 600; }
.coverage { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.coverage li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
details pre { font-size: .75rem; white-space: pre-wrap; }

/* WYSIWYG */
.ed { border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; margin: 6px 0 18px; background: #fff; }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f8fafc; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 5; }
.ed-toolbar button, .ed-toolbar select { border: 1px solid transparent; background: none; border-radius: 7px; padding: 5px 9px; cursor: pointer; font: inherit; font-size: .88rem; color: var(--text); min-width: 32px; }
.ed-toolbar select { width: auto; margin: 0; padding: 4px 6px; border-color: var(--line); background: #fff; }
.ed-toolbar button:hover { background: #fff; border-color: var(--line); }
.ed-toolbar button.on { background: var(--primary-soft); color: var(--primary); }
.ed-sep { width: 1px; background: var(--line); margin: 3px 4px; }
.ed-area { min-height: 320px; max-height: 70vh; overflow: auto; padding: 18px 22px; outline: none; }
.ed-area:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.ed-area .video-wrap::after { content: "🎬 Video"; position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: .75rem; }
.ed-area .video-wrap iframe { pointer-events: none; }
.ed-source { width: 100%; min-height: 320px; border: 0 !important; border-radius: 0 !important; margin: 0 !important; font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: .85rem !important; }
.ed.dragover { outline: 3px dashed var(--primary); }
.ed-status { font-size: .8rem; color: var(--muted); padding: 4px 10px; border-top: 1px solid var(--line); background: #f8fafc; min-height: 26px; }

/* Auth */
.auth-body { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, var(--accent))); }
.auth-main { display: grid; place-items: center; min-height: 100vh !important; padding: 20px !important; }
.auth-card { background: #fff; border-radius: 20px; padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.auth-card.wide { max-width: 520px; }
.auth-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.auth-body .foot { display: none; }

/* Zertifikat */
.cert-actions { display: flex; justify-content: space-between; margin-bottom: 18px; }
.certificate { background: #fff; max-width: 900px; margin: 0 auto; aspect-ratio: 1.414; padding: 26px; box-shadow: var(--shadow); }
.cert-inner { border: 3px double var(--primary); height: 100%; padding: 40px 56px; text-align: center; display: flex; flex-direction: column; justify-content: center; position: relative; }
.cert-brand { position: absolute; top: 22px; left: 0; right: 0; font-weight: 800; }
.cert-title { font-size: 2.4rem; font-weight: 800; letter-spacing: .04em; color: var(--primary); text-transform: uppercase; margin-bottom: 14px; }
.cert-sub { margin: 6px 0; color: var(--muted); }
.cert-name { font-size: 2.1rem; font-family: Georgia, "Times New Roman", serif; font-style: italic; border-bottom: 1px solid var(--line); display: inline-block; margin: 4px auto 10px; padding: 0 30px 4px; }
.cert-course { font-size: 1.4rem; font-weight: 700; margin: 4px 0 8px; }
.cert-obj { text-align: left; max-width: 560px; margin: 14px auto 0; font-size: .85rem; color: var(--muted); }
.cert-obj ul { margin: 4px 0 0; padding-left: 20px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; font-size: .8rem; color: var(--muted); }
.cert-line { border-top: 1px solid var(--text); padding-top: 4px; min-width: 170px; color: var(--text); font-weight: 600; font-size: .95rem; }
.cert-seal { font-size: 3rem; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .topbar, .foot, .noprint, #toasts { display: none !important; }
  body, main.wrap { background: #fff; padding: 0; max-width: none; }
  .certificate { box-shadow: none; max-width: none; width: 297mm; height: 210mm; aspect-ratio: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.foot { color: var(--muted); font-size: .8rem; padding: 20px; text-align: center; }

@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* Responsive */
@media (max-width: 960px) {
  .layout-2, .layout-2.wide-left, .lesson-layout { grid-template-columns: 1fr; }
  .lesson-side { position: static; max-height: none; }
  .lesson-layout.side-collapsed { grid-template-columns: 1fr; }
  .side-collapsed .side-toggle { flex-direction: row; padding: 6px 10px; }
  .side-collapsed .st-label { writing-mode: horizontal-tb; transform: none; }
  .side-panel { max-height: 50vh; }
  .hero { flex-direction: column; align-items: flex-start; }
  .obj-row { grid-template-columns: 1fr 70px; } .obj-row .obj-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line); }
  .nav-open .mainnav { display: flex; }
  .userchip .uc-body { display: none; }
  .lesson { padding: 22px; }
  .hero-stats { width: 100%; } .stat { flex: 1; min-width: 0; }
  .result-hero { flex-direction: column; text-align: center; }
  .course-banner { flex-direction: column; align-items: flex-start; }
  .quiz-top { flex-direction: column; align-items: stretch; } .quiz-progress { text-align: left; }
  .cert-inner { padding: 20px; } .cert-title { font-size: 1.4rem; } .cert-name { font-size: 1.4rem; }
  .certificate { aspect-ratio: auto; }
}

/* ---- v2: Fragetypen & Verständnisfragen ---- */
.qblock { border: 0; padding: 0; margin: 0; min-width: 0; }
.qblock.card-inner { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.qblock .q-text { font-size: 1.12rem; }
.qstep .qblock .q-text { font-size: 1.25rem; }
.match-grid { display: grid; gap: 10px; margin: 14px 0; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 500 !important; margin: 0 !important; }
.match-row:has(option:checked:not([value=""])) { border-color: color-mix(in srgb, var(--primary) 40%, white); }
.match-row select { margin: 0 !important; }
.match-left { font-weight: 600; }
.match-arrow { color: var(--muted); font-weight: 700; }
.order-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; counter-reset: ord; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: grab; counter-increment: ord; transition: border-color .15s, box-shadow .15s; }
.order-item::before { content: counter(ord); width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.order-item.dragging { opacity: .5; border-style: dashed; }
.order-item.moved { animation: pop .3s; }
.order-handle { color: #cbd5e1; letter-spacing: -2px; }
.order-text { flex: 1; }
.order-btns { display: flex; gap: 2px; }
.order-btns .btn-icon { font-size: .95rem; padding: 4px 8px; border-color: var(--line); }
.text-answer { font-size: 1.05rem; max-width: 520px; margin: 14px 0 !important; }
.check-card { margin-top: 36px; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, var(--primary-soft), #fff 160px); border: 1px solid color-mix(in srgb, var(--primary) 20%, white); scroll-margin-top: 80px; }
.check-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.check-head h2 { margin: 0; }
.check-head p { margin: 2px 0 0; }
.check-icon { font-size: 2.2rem; }
.check-result { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; }
.check-result.ok { background: var(--ok-soft); color: #166534; }
.check-result.bad { background: var(--warn-soft); color: #92400e; }
.review-answers li.is-wrong { color: #991b1b; }
.order-review { display: flex; gap: 30px; flex-wrap: wrap; margin: 8px 0 8px 32px; }
.order-review ol { margin: 4px 0; padding-left: 20px; }
.order-review li.is-correct { color: #166534; } .order-review li.is-wrong { color: #991b1b; }
.check-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; background: var(--bg); border-radius: 12px; padding: 14px 16px 0; margin-bottom: 16px; }
.check-settings-info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 14px; }
/* Fragen-Editor je Typ */
.ans-num { color: var(--muted); font-size: .85rem; width: 22px; }
.a-arrow, .a-match { display: none; }
.qform[data-type=match] .a-arrow { display: inline; color: var(--muted); }
.qform[data-type=match] .a-match { display: block; }
.qform[data-type=match] .a-correct, .qform[data-type=order] .a-correct, .qform[data-type=text] .a-correct { display: none; }
.qform:not([data-type=order]) .ans-num { visibility: hidden; width: 0; }
.type-help .th { display: none; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.qform:is([data-type=single], [data-type=multi]) .th-choice, .qform[data-type=match] .th-match, .qform[data-type=order] .th-order, .qform[data-type=text] .th-text { display: block; }
@keyframes pop { 50% { transform: scale(1.02); box-shadow: 0 4px 14px rgba(0,0,0,.08); } }
@media (max-width: 640px) {
  .match-row { grid-template-columns: 1fr; gap: 6px; } .match-arrow { display: none; }
  .check-settings { grid-template-columns: 1fr; } .check-settings-info { align-items: flex-start; }
}

/* ---- v1.2: Praxisaufgaben ---- */
.task-card { margin-top: 32px; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, #fff7ed, #fff 140px); border: 1px solid #fed7aa; scroll-margin-top: 80px; }
.task-card.done { background: linear-gradient(180deg, #f0fdf4, #fff 140px); border-color: #bbf7d0; }
.task-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.task-head h2 { margin: 0; }
.task-icon { font-size: 2.2rem; }
.task-kicker { font-size: .82rem; color: #9a3412; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.task-card.done .task-kicker { color: #166534; }
.task-body { font-size: 1rem; }
.file-list { margin: 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-list-title { font-weight: 700; font-size: .9rem; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.file-item:last-child { border-bottom: 0; }
.file-item:hover { background: var(--primary-soft); text-decoration: none; }
.file-icon { font-size: 1.3rem; }
.file-name { flex: 1; font-weight: 600; word-break: break-word; }
.file-size { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.file-dl { color: var(--primary); font-weight: 800; }
.task-form { margin-top: 12px; display: grid; gap: 10px; justify-items: start; }
.task-form details { width: 100%; }
.task-form summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.task-form textarea { margin-top: 8px !important; }
.task-done-info { color: #166534; font-weight: 600; font-size: .9rem; margin-top: 8px; }
.solution { margin-top: 16px; background: #fff; border: 2px solid #86efac; border-radius: 12px; padding: 12px 18px; }
.solution > summary { cursor: pointer; font-weight: 800; color: #166534; font-size: 1.05rem; }
.solution .content { margin-top: 10px; }
.solution-locked { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #f1f5f9; color: var(--muted); font-size: .92rem; }
.file-admin { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.file-admin a { flex: 1; word-break: break-word; }

/* =====================================================================
   signet-Design (v1.3) – angelehnt an www.signet.de
   Fira Sans (lokal, DSGVO-konform), Navy #164094, Grün #45b384,
   flache Flächen, kleine Radien, dunkler Footer
   ===================================================================== */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/fira-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fira-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/fira-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/fira-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fira-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/fira-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #f5f5f5;
  --text: #333;
  --muted: #6b6b6b;
  --line: #e1e1e1;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.05);
  --ok: #2f8f66; --ok-soft: #e3f4ec;
  --dark: #212120;
}
body { font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; color: var(--text); }
h1, h2, h3 { font-weight: 300; color: #3b3b3b; letter-spacing: 0; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; font-weight: 400; }
strong, b { font-weight: 600; }
a { color: var(--primary); }
.kicker, .eyebrow { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-weight: 400; margin-bottom: 4px; }

/* Metaleiste + Header wie signet.de */
.metabar { background: linear-gradient(90deg, var(--accent-dark), var(--accent) 60%, #6cc79f); color: #fff; font-size: .8rem; }
.metabar-inner { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.metabar a { color: #fff; opacity: .95; }
.metabar span:first-child { text-transform: uppercase; letter-spacing: .12em; font-weight: 300; }
.topbar { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.topbar-inner { height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 300; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-name { font-size: 1.05rem; font-weight: 300; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.6; }
.mainnav { gap: 0; margin-left: 18px; }
.mainnav a { border-radius: 0; color: #111; font-weight: 400; font-size: 1.02rem; padding: 6px 16px; position: relative; }
.mainnav a + a::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; border-left: 1px solid #d6d6d6; }
.mainnav a:hover { background: none; color: var(--primary); }
.mainnav a.active { background: none; color: var(--primary); }
.mainnav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -17px; height: 3px; background: var(--accent); }
.userchip { border-radius: 4px; }
.lvl { border-radius: 3px; background: var(--primary); font-weight: 600; }
.xpbar span { background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* Buttons: signet nutzt blaue Vollflächen (4px) und abgerundete Outline-Buttons */
.btn { border-radius: 4px; font-weight: 500; }
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 82%, black); }
.btn-ghost { border-radius: 999px; border-color: #d0d0d0; font-weight: 400; }
.btn-ghost:hover { border-color: var(--primary); }
.btn-light { border-radius: 999px; }

/* Karten, Hero, Kurse */
.card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none; }
.hero { border-radius: var(--radius); background: linear-gradient(120deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 78%, #000) 55%, color-mix(in srgb, var(--primary) 60%, var(--accent)) 100%); box-shadow: none; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -190px; width: 520px; height: 300px; border-radius: 50%; border-bottom: 10px solid color-mix(in srgb, var(--accent) 80%, transparent); transform: rotate(-12deg); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 300; }
.stat { border-radius: 4px; background: rgba(255,255,255,.12); }
.course-card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none; }
.course-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.cc-head { height: 84px; background: var(--cc); }
.cc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.cc-initial { border-radius: 4px; font-weight: 600; }
.cc-body h3 { color: #272727; }

/* Lektionen */
.side-list a { border-radius: 4px; }
.side-list .current a { box-shadow: inset 3px 0 0 var(--accent); }
.tabs a { font-weight: 400; } .tabs a.active { border-color: var(--accent); }
.pill { border-radius: 3px; }
.callout-tip { background: #eef8f3; border-color: var(--accent); }
.callout-info { background: #eef2fa; border-color: var(--primary); }
.task-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); }
.task-card.done { background: #fff; border-color: var(--line); border-top-color: var(--accent); }
.task-kicker { color: var(--primary); font-weight: 400; letter-spacing: .08em; }
.solution { border-color: var(--accent); border-radius: var(--radius); }
.solution > summary, .task-done-info { color: var(--accent-dark); }
.check-card { border-radius: var(--radius); }
.file-list { border-radius: 4px; }

/* Anmeldung */
.auth-body { background: #f5f5f5; }
.auth-body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }
.auth-card { border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.08); border: 1px solid var(--line); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-logo { height: 60px; }

/* Footer dunkel wie „Socket“ auf signet.de */
.foot { background: var(--dark); color: #bdbdbd; font-size: .8rem; padding: 18px 0; margin-top: 30px; text-align: left; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-body .foot { display: none; }

/* Zertifikat: Logo dezent oben */
.certificate { aspect-ratio: auto; min-height: 636px; display: flex; }
.cert-inner { flex: 1; height: auto; border: 1px solid var(--line); border-top: 6px solid var(--primary); border-bottom: 6px solid var(--accent); justify-content: space-between; padding: 26px 48px 22px; gap: 4px; }
.cert-brand { position: static; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cert-brand::after { content: "Gesellschaft für Innovation & Bildung mbH · Kassel"; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.cert-logo { height: 50px; width: auto; }
.cert-title { font-size: 2rem; font-weight: 300; letter-spacing: .14em; margin-bottom: 6px; }
.cert-name { font-family: "Fira Sans", sans-serif; font-style: normal; font-weight: 300; font-size: 2rem; }
.cert-course { font-weight: 500; }
.cert-obj { max-width: none; font-size: .76rem; line-height: 1.4; margin-top: 8px; }
.cert-obj ul { columns: 2; column-gap: 28px; }
.cert-obj li { break-inside: avoid; margin-bottom: 3px; }
.cert-foot { margin-top: 14px; }
.cert-seal { font-size: 2.2rem; }
@media print {
  .certificate { min-height: 0; padding: 12mm; }
  .cert-inner { padding: 16px 40px; }
  .metabar, .foot { display: none !important; }
}

@media (max-width: 800px) {
  .metabar { display: none; }
  .brand-logo { height: 48px; }
  .brand-name { display: none; }
  .mainnav a + a::before, .mainnav a.active::after { display: none; }
  .mainnav { top: 76px; margin-left: 0; }
  .mainnav a { padding: 10px 12px; }
}
.ed-toolbar { top: 76px; }

/* Kurskacheln: Buchstaben-Badge sauber über der grünen Linie, optionales Titelbild (v1.3) */
.cc-head { height: 120px; background-color: var(--cc); background-image: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 70%, #000)); }
.cc-head.has-img { background-size: cover; background-position: center; }
.cc-head::after { height: 4px; z-index: 1; }
.cc-initial { z-index: 2; left: 18px; bottom: -24px; width: 50px; height: 50px; font-size: 1.45rem; color: var(--cc); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; }
.cc-head .pill { position: relative; z-index: 2; }
.cc-body { padding-top: 36px; }
.course-banner { border-radius: var(--radius); background-color: var(--cc); background-image: linear-gradient(120deg, var(--cc), color-mix(in srgb, var(--cc) 65%, #000)); border-bottom: 4px solid var(--accent); min-height: 150px; }
.course-banner.has-img { background-repeat: no-repeat; background-size: 100% 100%, auto 100%; background-position: 0 0, right 150px center; height: 210px; min-height: 0; }
@media (max-width: 760px) { .course-banner.has-img { height: auto; background-image: none !important; } }
.course-banner h1 { color: #fff; font-weight: 300; }
.image-field { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; margin: 6px 0 14px; }
.image-preview { height: 92px; border-radius: 4px; position: relative; }
.image-preview::after { display: none; }
@media (max-width: 640px) { .image-field { grid-template-columns: 1fr; } }

/* Lesbarkeit (v1.4): angenehmere Lektionstexte + persönliche Lese-Einstellungen */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
:root { --read-size: 1.0625rem; --read-lh: 1.7; --read-gap: 1em; }
.lesson .content, .task-body { font-size: var(--read-size); line-height: var(--read-lh); color: #2b2b2b; }
.lesson .content > p, .lesson .content > ul, .lesson .content > ol, .lesson .content > blockquote, .lesson .content > .callout, .lesson .content > details { max-width: 72ch; }
.lesson .content p, .lesson .content li { margin-bottom: var(--read-gap); }
.lesson .content li { margin-bottom: calc(var(--read-gap) * .4); }

body.rp-size-large { --read-size: 1.1875rem; font-size: 17px; }
body.rp-size-xlarge { --read-size: 1.3125rem; font-size: 18.5px; }
body.rp-spacing-wide { --read-lh: 1.95; --read-gap: 1.4em; letter-spacing: .012em; word-spacing: .06em; }
body.rp-font-hyper, body.rp-font-hyper input, body.rp-font-hyper textarea, body.rp-font-hyper select, body.rp-font-hyper button { font-family: "Atkinson Hyperlegible", "Fira Sans", Arial, sans-serif; }
body.rp-font-hyper h1, body.rp-font-hyper h2, body.rp-font-hyper h3 { font-weight: 400; }
body.rp-font-hyper strong, body.rp-font-hyper b { font-weight: 700; }
body.rp-size-large .lesson .content > p, body.rp-size-xlarge .lesson .content > p { max-width: 68ch; }

.read-group { border: 0; padding: 0; margin: 0 0 12px; }
.read-group legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.read-group .check { margin: 2px 0; }
.font-hyper-sample { font-family: "Atkinson Hyperlegible", sans-serif; }
.read-sample { padding: 10px 12px; background: var(--bg); border-radius: 4px; margin: 4px 0 12px; font-size: var(--read-size); line-height: var(--read-lh); }
.lesson-tools { float: right; margin: -4px 0 0 12px; }

/* v1.6: Logo nur „signet“, etwas tiefer gesetzt */
.brand-logo { height: 58px; transform: translateY(7px); }
.auth-brand .brand-logo { transform: none; height: 64px; }
.brand-name { display: none; }

/* Zugangscodes, Gruppen, Zugriff */
.code-big { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2rem; font-weight: 600; letter-spacing: .08em; color: var(--primary); background: #eef2fa; border: 2px dashed color-mix(in srgb, var(--primary) 40%, #fff); border-radius: 6px; padding: 10px 16px; margin: 10px 0; text-align: center; user-select: all; }
.code-big.inline-code { display: inline-block; font-size: 1.15rem; padding: 2px 10px; margin: 4px 0; }
.code-input { font-family: ui-monospace, monospace; font-size: 1.3rem !important; letter-spacing: .06em; text-align: center; }
.code-hint { margin: 16px 0 6px; padding: 12px 14px; border-radius: 4px; background: #eef8f3; border-left: 4px solid var(--accent); font-size: .92rem; }
.group-code-card { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.group-code-card .code-big { font-size: 2.6rem; text-align: left; display: inline-block; }
.btn-col { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.btn-col form { margin: 0; }
.btn-block { width: 100%; }
.check-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; }
.check-list.tall { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.check-list .pill { font-size: .7rem; padding: 1px 6px; }
.filter-input { width: 100%; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 4px; font: inherit; margin-bottom: 8px; }
.access-all .access-lists { opacity: .55; }
.add-members { margin-top: 14px; } .add-members summary { cursor: pointer; color: var(--primary); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg a { padding: 6px 14px; color: var(--text); font-size: .9rem; } .seg a.active { background: var(--primary); color: #fff; } .seg a:hover { text-decoration: none; }
/* Aushang */
.print-sheet main.wrap { max-width: 760px; }
.sheet { background: #fff; padding: 40px 48px; margin: 30px auto; border-top: 8px solid var(--primary); border-bottom: 8px solid var(--accent); box-shadow: var(--shadow); text-align: center; }
.sheet h1 { font-size: 2.4rem; margin: 18px 0 8px; } .sheet-lead { font-size: 1.2rem; }
.sheet-steps { text-align: left; max-width: 520px; margin: 10px auto; font-size: 1.15rem; line-height: 1.8; }
.sheet .code-big { font-size: 3.4rem; margin: 18px auto; max-width: 460px; }
.sheet-head .brand-logo { height: 70px; transform: none; }
@media print { .print-sheet .sheet { box-shadow: none; margin: 0; } }
/* Hilfe */
.help-search { max-width: 320px; margin: 0; }
.help-h { font-size: 1.25rem; margin: 6px 0 12px; }
.help-cols { align-items: start; grid-template-columns: 1fr 1fr; }
.help-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.help-item > summary { cursor: pointer; padding: 14px 18px; font-size: 1.05rem; font-weight: 500; display: flex; gap: 12px; align-items: center; list-style: none; }
.help-item > summary::-webkit-details-marker { display: none; }
.help-item > summary::after { content: "+"; margin-left: auto; color: var(--primary); font-size: 1.3rem; font-weight: 300; }
.help-item[open] > summary::after { content: "–"; }
.help-item[open] > summary { border-bottom: 1px solid var(--line); color: var(--primary); }
.help-item .content { padding: 6px 20px 14px; font-size: 1rem; }
.help-icon { width: 34px; height: 34px; border-radius: 4px; background: #eef2fa; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; color: var(--primary); font-weight: 600; }
.faq dt { font-weight: 600; margin-top: 10px; } .faq dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 960px) { .help-cols { grid-template-columns: 1fr; } }

/* v1.7: Prompt-Blöcke mit Zeilenumbruch und Kopieren-Knopf */
.content pre { white-space: pre-wrap; word-break: break-word; position: relative; }
.content pre.has-copy { padding-top: 2.4rem; }
.content pre.prompt { background: #f3f6fc; color: #1f2d4d; border: 1px solid #d5def0; border-left: 4px solid var(--primary); border-radius: 4px; font-size: .95rem; line-height: 1.6; }
.content pre.prompt code { font-family: "Fira Sans", ui-monospace, monospace; }
body.rp-font-hyper .content pre.prompt code { font-family: "Atkinson Hyperlegible", sans-serif; }
.copy-btn { position: absolute; top: 6px; right: 6px; font: inherit; font-family: "Fira Sans", sans-serif; font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); background: rgba(255,255,255,.9); color: #1f2d4d; cursor: pointer; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.content pre:not(.prompt) .copy-btn { background: rgba(255,255,255,.12); color: #e2e8f0; }

/* 1.9 – Kategorien, Filter-Chips, Gruppen */
.course-filter { padding: 12px 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.chips:last-child { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 500; font-size: .92rem; text-decoration: none; }
.chip span { font-size: .75rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 7px; }
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.active span { background: rgba(255,255,255,.2); color: #fff; }
.chips-sub { padding-top: 10px; border-top: 1px dashed var(--line); }
.chips-sub .chip { font-size: .85rem; padding: 4px 12px; }
.chips-sub .chip.active { background: var(--accent); border-color: var(--accent); }
.chips .course-search { width: auto; flex: 1 1 220px; margin: 0 0 0 auto; max-width: 320px; }
.cat-group { margin-bottom: 26px; }
.cat-title { font-size: 1.3rem; margin: 8px 0 4px; padding-bottom: 6px; border-bottom: 3px solid var(--accent); display: inline-block; }
.subcat-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 10px; }
.course-card[hidden], .cat-group[hidden] { display: none; }
.crumb-cat { opacity: .85; }
.mini-details { margin: 6px 0 12px; }
.mini-details > summary { cursor: pointer; color: var(--primary); font-weight: 500; }
.csv-sample { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: .82rem; overflow: auto; }
.add-card .add-members { border-top: 1px solid var(--line); padding: 10px 0; }
.add-card .add-members > summary { cursor: pointer; font-weight: 600; }
.add-card .add-members[open] > summary { margin-bottom: 10px; }
.check-list label[hidden] { display: none; }

/* 1.10: Sicherheit, Rückmeldung, Wiederholung mit Abstand */
.conf { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.conf legend { float: left; font-size: .85rem; font-weight: 600; color: var(--muted); margin-right: 4px; padding: 0; }
.conf-opt { position: relative; }
.conf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.conf-opt span { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; background: #fff; cursor: pointer; }
.conf-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.conf-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.conf-help { width: 100%; }
.fb { margin: 8px 0 0; padding: 9px 12px; border-radius: 9px; font-size: .93rem; line-height: 1.45; }
.fb-alert { background: var(--bad-soft); color: #7f1d1d; }
.fb-guess { background: var(--warn-soft); color: #78350f; }
.fb-hint { background: var(--primary-soft); }
.fb-read { background: #f1f5f9; }
.fb-conf, .fb-track { margin-top: 6px; }
.calib { margin: 10px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); font-size: .93rem; }
.calib-warn { display: inline-block; background: var(--bad-soft); color: #7f1d1d; border-radius: 99px; padding: 1px 9px; margin: 2px 4px 0 0; font-size: .85rem; }
.calib-guess { display: inline-block; background: var(--warn-soft); color: #78350f; border-radius: 99px; padding: 1px 9px; margin: 2px 4px 0 0; font-size: .85rem; }
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; vertical-align: 1px; }
.daily-review { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 22px; color: var(--text); border-left: 5px solid var(--accent); }
.daily-review:hover { text-decoration: none; box-shadow: 0 6px 24px rgba(15, 23, 42, .12); }
.dr-icon { font-size: 2rem; }
.dr-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.review-ok { margin: -6px 0 18px; }
.boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 8px; }
.box { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 10px; background: #f1f5f9; border-bottom: 4px solid #cbd5e1; }
.box-n { font-size: 1.5rem; font-weight: 700; }
.box-l { font-size: .85rem; font-weight: 600; }
.box.b1 { border-color: #ef4444; } .box.b2 { border-color: #f59e0b; } .box.b3 { border-color: #eab308; }
.box.b4 { border-color: #84cc16; } .box.b5 { border-color: #22c55e; } .box.b6 { border-color: #15803d; background: var(--ok-soft); }
.box-info { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--primary-dark); }
.review-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left: 5px solid var(--accent); }
.review-cta p { margin: 4px 0 0; }
.review-form .qblock { margin-bottom: 16px; }
.empty-review { text-align: center; padding: 34px 24px; }
@media (max-width: 640px) {
  .boxes { grid-template-columns: repeat(3, 1fr); }
  .daily-review, .review-cta { flex-direction: column; align-items: stretch; text-align: left; }
}

/* 1.11: Training / Minispiele */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.course-pick { display: flex; align-items: center; gap: 8px; }
.course-pick select { max-width: 340px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.game-card { display: flex; flex-direction: column; gap: 6px; }
.game-card h2 { margin: 0; }
.game-card p { margin: 0; }
.game-card .btn { align-self: flex-start; margin-top: 8px; }
.game-card.disabled { opacity: .65; }
.gc-icon { font-size: 2.6rem; line-height: 1; }
.gc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.gc-top { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.gc-top ol { list-style: none; margin: 6px 0 0; padding: 0; }
.gc-top li { display: flex; justify-content: space-between; padding: 3px 0; font-size: .9rem; }
.gc-top li.me { font-weight: 700; color: var(--primary); }
.game-wrap { max-width: 860px; margin: 0 auto; }
.game { min-height: 460px; padding: 26px 30px; position: relative; }
.game-intro { text-align: center; padding: 26px 10px; }
.game-intro h1 { margin: 6px 0; }
.game-icon { font-size: 3.4rem; }
.btn-lg { font-size: 1.15rem; padding: 14px 28px; margin: 14px 0 8px; }
.game-hud { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 1.05rem; margin-bottom: 10px; }
.game-hud b { font-size: 1.25rem; }
.game-hud.pop .hud-streak { animation: pop .4s ease; display: inline-block; }
@keyframes pop { 50% { transform: scale(1.35); color: var(--warn); } }
.game-timebar { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.game-timebar span { display: block; height: 100%; width: 100%; background: var(--accent); transition: width .1s linear; }
.game-timebar span.low { background: var(--bad); }
.blitz-q { font-size: 1.25rem; font-weight: 600; min-height: 3.2em; margin-bottom: 16px; line-height: 1.4; }
.blitz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.blitz-opts.tf { grid-template-columns: 1fr 1fr; }
.blitz-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font: inherit; font-size: 1rem; cursor: pointer; color: var(--text); transition: transform .08s; }
.blitz-opt:hover { border-color: var(--primary); }
.blitz-opt:active { transform: scale(.98); }
.blitz-opt kbd, .sort-bin kbd { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-family: inherit; }
.blitz-opt.ok, .sort-bin.ok { border-color: var(--ok); background: var(--ok-soft); }
.blitz-opt.bad, .sort-bin.bad { border-color: var(--bad); background: var(--bad-soft); }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mem-card { position: relative; min-height: 112px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; font: inherit; }
.mem-card > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; backface-visibility: hidden; transition: transform .35s; padding: 10px; text-align: center; }
.mem-back { background: linear-gradient(135deg, var(--primary), #1d5aa8); color: #fff; font-size: 2rem; font-weight: 700; }
.mem-front { background: #fff; border: 2px solid var(--line); transform: rotateY(180deg); flex-direction: column; gap: 4px; font-size: .92rem; line-height: 1.3; color: var(--text); }
.mem-front small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mem-card.up .mem-back { transform: rotateY(180deg); }
.mem-card.up .mem-front { transform: rotateY(0); }
.mem-card.done .mem-front { border-color: var(--ok); background: var(--ok-soft); }
.mem-card.miss .mem-front { border-color: var(--bad); }
.mem-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }
.sort-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.sort-lane { position: relative; height: 190px; border-radius: 14px; background: repeating-linear-gradient(180deg, #f8fafc, #f8fafc 22px, #f1f5f9 22px, #f1f5f9 44px); overflow: hidden; margin-bottom: 14px; }
.sort-item { position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content; top: 10px; max-width: 88%; padding: 12px 18px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .15); font-weight: 600; text-align: center; }
.sort-item.falling { animation: fall var(--fall, 7000ms) linear forwards; }
@keyframes fall { from { top: 10px; } to { top: var(--end, 120px); } }
.sort-item.ok { background: var(--ok-soft); }
.sort-item.bad { background: var(--bad-soft); }
.sort-bins { display: grid; gap: 12px; }
.sort-bins.c2 { grid-template-columns: 1fr 1fr; } .sort-bins.c3 { grid-template-columns: repeat(3, 1fr); } .sort-bins.c4 { grid-template-columns: repeat(4, 1fr); }
.sort-bin { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; padding: 12px; border: 2px dashed #94a3b8; border-radius: 14px; background: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--text); }
.sort-bin:hover { border-style: solid; border-color: var(--primary); }
.sort-bin.hint { border-style: solid; border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.game-result { text-align: center; padding: 20px 10px; }
.gr-icon { font-size: 3.4rem; }
.gr-score strong { display: block; font-size: 3rem; line-height: 1.1; color: var(--primary); }
.gr-facts { list-style: none; padding: 0; margin: 14px auto 18px; max-width: 460px; text-align: left; }
.gr-facts li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.game-result .btn-row { justify-content: center; }
@media (max-width: 900px) { .game-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .game { padding: 18px 14px; }
  .blitz-opts { grid-template-columns: 1fr; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mem-card { min-height: 96px; }
  .mem-front { font-size: .8rem; }
  .sort-bins.c3, .sort-bins.c4 { grid-template-columns: 1fr 1fr; }
  .sort-lane { height: 240px; }
  .sort-item { font-size: .95rem; padding: 10px 14px; max-width: 94%; }
  .course-pick { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .mem-card > span { transition: none; } .sort-item { top: 40%; } }

/* 1.12: Trainingspool + Bereiche */
#poolq[data-type="truefalse"] .pq-single, #poolq[data-type="single"] .pq-tf { display: none; }
.pq-single .ans-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.pq-single .ans-row .a-text { flex: 1; }
.pool-table tr.inactive td { opacity: .5; }
.pool-table td:last-child { text-align: right; }
.area-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.area-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; }
.area-tabs a:hover { text-decoration: none; border-color: var(--primary); }
.area-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.area-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 18px; }
.area-sub a { padding: 4px 11px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-dark); font-size: .88rem; }
.area-sub a.active { background: var(--primary-dark); color: #fff; }
.area-sub a:hover { text-decoration: none; }
.scope-note { margin: -6px 0 16px; }

/* 1.13: System, Rückmeldungen */
.cron-url { display: block; word-break: break-all; padding: 8px 10px; background: #f1f5f9; border-radius: 8px; font-size: .8rem; margin: 4px 0 8px; }
.danger-zone { border: 2px solid var(--bad-soft); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ck-icon { font-size: 1.2rem; }
.feedback-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); }
.feedback-box details { flex-basis: 100%; }
.feedback-box textarea { width: 100%; margin-top: 6px; }
.fb-q { font-weight: 600; }
.fb-rate { display: inline-flex; gap: 8px; }
.fb-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-opt span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: .9rem; }
.fb-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.fb-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.fb-comments { list-style: none; margin: 0; padding: 0; }
.fb-comments li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.privacy h2 { margin-top: 1.4em; }
.foot a { color: #cfe3ff; text-decoration: underline; }

/* 1.13.1: Kursauswahl mit Sichtbarkeit */
.pill-soft { background: #f1f5f9; color: #475569; }
.pill-off { background: #f1f5f9; color: #94a3b8; text-decoration: line-through; }
.course-pick-list { gap: 0; }
.cpl-head { margin: 12px 0 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cpl-head:first-child { margin-top: 0; }
.form label.cpl-row { align-items: flex-start; padding: 6px 8px; margin: 0; border-radius: 8px; }
.form label.cpl-row:hover { background: #f8fafc; }
.cpl-row input { margin-top: 4px; }
.cpl-main { flex: 1; display: flex; flex-direction: column; }
.cpl-meta { font-size: .78rem; color: var(--muted); font-weight: 400; }
.cpl-row.is-dup .cpl-meta { color: #92400e; }
.cpl-pills { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.access-summary td { vertical-align: top; }
.dup-group tr.dup-keep td { background: var(--ok-soft); }
.dup-group h2 .pill { vertical-align: 3px; }

/* ---------- 1.14: Finde den Fehler ---------- */
.find-head { margin: .4rem 0 .8rem; }
.find-title { font-weight: 700; font-size: 1.1rem; }
.find-area { user-select: none; -webkit-user-select: none; }
.find-mail, .find-text { border: 1px solid var(--line); border-radius: 10px; background: #fff; line-height: 1.9; text-align: left; }
.find-mailhead { background: #f8fafc; border-bottom: 1px solid var(--line); padding: .6rem 1rem; font-size: .93rem; border-radius: 10px 10px 0 0; }
.find-body { padding: .8rem 1rem; }
.find-text .find-body { font-size: 1.02rem; }
.fu { cursor: pointer; border-radius: 4px; padding: 0 .08em; transition: background .15s; }
.fu:hover { background: var(--primary-soft); }
.find-area.done .fu { cursor: default; }
.find-area.done .fu:hover { background: none; }
.fu.found, .find-area.done .fu.found:hover { background: var(--ok-soft); box-shadow: inset 0 -2px 0 var(--ok); }
.fu.missed, .find-area.done .fu.missed:hover { background: var(--warn-soft); box-shadow: inset 0 -2px 0 var(--warn); }
.fu.nope { animation: find-nope .5s; }
@keyframes find-nope { 0%, 100% { background: none; } 30% { background: var(--bad-soft); } }
.find-tablewrap { overflow-x: auto; }
.find-table { border-collapse: collapse; width: 100%; font-size: .93rem; background: #fff; text-align: left; }
.find-table th, .find-table td { border: 1px solid #d6dbe3; padding: .35rem .6rem; }
.find-table th { background: #eef2f7; font-weight: 600; }
.find-table td.fu { border-radius: 0; }
.find-table td.found { box-shadow: inset 0 0 0 2px var(--ok); }
.find-table td.missed { box-shadow: inset 0 0 0 2px var(--warn); }
.find-img { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; line-height: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.find-img img { display: block; max-width: 100%; }
.find-area.done .find-img { cursor: default; }
.find-rect { position: absolute; border: 3px solid transparent; border-radius: 6px; pointer-events: none; }
.find-rect.found { border-color: var(--ok); background: rgba(22, 163, 74, .12); }
.find-rect.missed { border-color: var(--warn); background: rgba(217, 119, 6, .12); }
.find-rect.found::after, .find-rect.missed::after { content: attr(data-n); position: absolute; top: -3px; left: -3px; background: var(--ok); color: #fff; font: 700 .75rem/1.5 system-ui; padding: 0 .4em; border-radius: 4px 0 4px 0; }
.find-rect.missed::after { background: var(--warn); }
.find-x { position: absolute; transform: translate(-50%, -50%); color: var(--bad); font: 700 1.4rem/1 system-ui; pointer-events: none; animation: find-fade .9s forwards; }
@keyframes find-fade { to { opacity: 0; transform: translate(-50%, -80%); } }
.find-notes { margin: .8rem 0 0; padding-left: 1.6rem; text-align: left; }
.find-notes li { margin: .25rem 0; padding: .3rem .6rem; border-radius: 6px; }
.find-notes li.ok { background: var(--ok-soft); }
.find-notes li.missed { background: var(--warn-soft); }
.find-notes li.missed::before { content: 'Übersehen: '; font-weight: 600; }
.find-foot { margin-top: .8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; text-align: left; }
.find-expl { margin: 0; color: var(--muted); }
/* Editor: Fehlerstellen im Bild markieren */
.fs-editor { position: relative; display: inline-block; max-width: 100%; line-height: 0; cursor: crosshair; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; user-select: none; }
.fs-editor img { display: block; max-width: 100%; pointer-events: none; }
.fs-editor .fs-r { position: absolute; border: 2px solid var(--bad); background: rgba(220, 38, 38, .12); }
.fs-editor .fs-r span { position: absolute; top: 0; left: 0; background: var(--bad); color: #fff; font: 700 .75rem/1.5 system-ui; padding: 0 .4em; }
.fs-list { display: grid; gap: .4rem; margin-top: .6rem; }
.fs-list .fs-row { display: flex; gap: .5rem; align-items: center; }
.fs-list .fs-row input { flex: 1; }
.find-help code { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fu.nope, .find-x { animation: none; } }
#findform[data-kind="image"] .ff-text, #findform:not([data-kind="image"]) .ff-image { display: none; }

/* ---------- 1.14: Notizen & Markierungen ---------- */
mark.hl { color: inherit; border-radius: 3px; padding: 0 .05em; cursor: pointer; }
.hl-yellow { background: #fff1a8; } .hl-green { background: #c9f2d9; } .hl-blue { background: #cfe3ff; } .hl-pink { background: #ffd6e7; }
mark.hl.has-note { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
mark.hl.flash { animation: hl-flash 1.6s; }
@keyframes hl-flash { 0%, 40% { outline: 3px solid var(--primary); outline-offset: 2px; } 100% { outline: 3px solid transparent; } }
.note-bar { position: absolute; z-index: 60; display: flex; gap: 2px; background: #1e293b; border-radius: 10px; padding: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.note-bar[hidden] { display: none; }
.note-bar button { background: none; border: 0; color: #fff; font: 600 .9rem/1 system-ui; padding: .55rem .7rem; border-radius: 7px; cursor: pointer; }
.note-bar button:hover, .note-bar button:focus-visible { background: rgba(255, 255, 255, .15); }
.note-pop { position: absolute; z-index: 61; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); display: grid; gap: .55rem; }
.note-pop textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; resize: vertical; }
.np-quote { font-size: .85rem; color: var(--muted); border-left: 3px solid #f2d14b; padding-left: .5rem; max-height: 4.5em; overflow: hidden; }
.np-colors { display: flex; gap: .4rem; }
.np-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.np-color.on { border-color: var(--text); }
.np-row { display: flex; gap: .4rem; align-items: center; }
.np-del { margin-left: auto; }
.notes-box { margin: 1.6rem 0 1rem; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: 12px; background: #fcfcfd; }
.notes-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.notes-box h2 { font-size: 1.05rem; margin: 0; }
.notes-tip { margin: .3rem 0 .6rem; }
.notes-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .5rem; }
.note-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.note-quote { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: .3rem .5rem; font: inherit; font-size: .93rem; cursor: pointer; }
.note-text { margin-top: .35rem; white-space: pre-wrap; }
.note-act { display: flex; gap: .8rem; margin-top: .3rem; }
.notes-add { display: flex; gap: .5rem; align-items: flex-end; }
.notes-add textarea { flex: 1; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; resize: vertical; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.small { font-size: .85rem; }
.nsheet { display: grid; gap: 1rem; }
.nsheet-course h2 { margin-bottom: .4rem; }
.nsheet-lesson { padding: .6rem 0; border-top: 1px solid var(--line); }
.nsheet-lesson h3 { margin: 0 0 .5rem; font-size: 1rem; }
.nsheet-note { margin: 0 0 .7rem; }
.nsheet-note blockquote { margin: 0; padding: .45rem .7rem; border-radius: 6px; border-left: 4px solid rgba(0, 0, 0, .15); }
.nsheet-text { margin: .3rem 0 0 .2rem; white-space: pre-wrap; }
.nsheet-actions { display: flex; gap: 1rem; margin-top: .2rem; }
@media (max-width: 640px) { .notes-add { flex-direction: column; align-items: stretch; } }
@media print {
  .topbar, .foot, .no-print, .area-sub, .flash, #toasts { display: none !important; }
  body { background: #fff; }
  .nsheet-course { box-shadow: none; border: 0; padding: 0; break-inside: avoid-page; }
  .nsheet-note { break-inside: avoid; }
  .nsheet-note blockquote { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nsheet-lesson h3 a { color: inherit; }
}

/* ---------- 1.14: Suche ---------- */
.topsearch { font-size: 1.1rem; padding: .35rem .45rem; border-radius: 8px; text-decoration: none !important; margin-left: .3rem; }
.topsearch:hover { background: var(--primary-soft); }
.search-page { max-width: 860px; }
.search-form { display: flex; gap: .5rem; margin: .4rem 0 .3rem; }
.search-form input[type=search] { flex: 1; font: inherit; font-size: 1.1rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 10px; }
.search-count { margin: 1.2rem 0 .4rem; }
.search-group { margin: 1.3rem 0; }
.search-group h2 { font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; }
.search-hit { display: grid; gap: .15rem; padding: .8rem 1rem; margin: 0 0 .5rem; color: var(--text); text-decoration: none !important; transition: border-color .15s; }
.search-hit:hover { border-color: var(--primary); }
.search-hit strong { color: var(--primary); }
.sh-snip { font-size: .93rem; color: #475569; }
.search-hit mark, .search-gloss mark { background: #fff1a8; color: inherit; padding: 0 .1em; border-radius: 3px; }
.search-gloss { margin: 0; padding: .8rem 1rem; }
.search-gloss dt { font-weight: 700; margin-top: .5rem; } .search-gloss dt:first-child { margin-top: 0; }
.search-gloss dd { margin: .1rem 0 0; }
mark.search-hl { background: #ffe066; color: inherit; border-radius: 3px; padding: 0 .08em; box-shadow: 0 0 0 1px #e6b800; }
.search-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: #fffbe6; border: 1px solid #f2d14b; border-radius: 10px; padding: .5rem .8rem; margin: 0 0 1rem; font-size: .93rem; }
.linkbtn { text-decoration: none; } .linkbtn:hover { text-decoration: underline; }
@media (max-width: 640px) { .search-form { flex-direction: column; } }
.mainnav a { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 761px) { .mainnav { margin-left: 8px; } .mainnav a { padding: 6px 11px; font-size: .97rem; } }
@media (max-width: 1200px) and (min-width: 761px) { .mainnav a { padding: 6px 8px; font-size: .92rem; } .userchip .uc-body { display: none; } }
.mail-preview { font-family: inherit; background: #f8fafc; color: var(--text); border: 1px solid var(--line); font-size: .85rem; white-space: pre-wrap; max-height: 360px; }

/* ---------- 1.15: Zertifikatsvorlagen ---------- */
.demo-cert-btn { margin-left: .4rem; }
.cert-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.cert-editor textarea { font-size: .8rem; line-height: 1.45; white-space: pre; }
.cert-preview-card { position: sticky; top: 90px; }
.cert-frame { width: 100%; height: 600px; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 8px; background: #e9edf3; }
.cert-frame iframe { position: absolute; left: 0; top: 0; width: 900px; height: 1200px; border: 0; transform-origin: 0 0; }
.cert-group select { max-width: 100%; }
.verify-dl { display: grid; grid-template-columns: 8rem 1fr; gap: .3rem 1rem; }
.verify-dl dt { color: var(--muted); }
.verify-dl dd { margin: 0; font-weight: 600; }
@media (max-width: 1100px) { .cert-editor { grid-template-columns: 1fr; } .cert-preview-card { position: static; } }

/* ---------- 1.16: Vokabeltrainer ---------- */
.vocab-stats { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; margin: .2rem 0 .8rem; }
.vocab-stats .vs-due { color: var(--warn); font-weight: 600; }
.vocab-stats .vs-ok { color: var(--ok); }
.vocab-opts { border: 0; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; }
.vocab-opts legend { width: 100%; text-align: center; margin-bottom: .2rem; }
.vocab-opts label { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.vocab-card { max-width: 640px; margin: 1rem auto 0; text-align: center; }
.vocab-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.vocab-q { font-size: 1.7rem; font-weight: 700; color: var(--primary); margin: .6rem 0 1.1rem; display: flex; justify-content: center; align-items: center; gap: .6rem; line-height: 1.3; }
.vocab-speak { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 2.4rem; height: 2.4rem; font-size: 1.1rem; cursor: pointer; flex: none; }
.vocab-speak:hover { background: var(--primary-soft); }
.vocab-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.vocab-input { flex: 1 1 260px; font: inherit; font-size: 1.15rem; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; }
.vocab-input:focus { outline: none; border-color: var(--primary); }
.vocab-input.ok { border-color: var(--ok); background: var(--ok-soft); }
.vocab-input.bad { border-color: var(--bad); background: var(--bad-soft); }
.vocab-fb { min-height: 1.6rem; margin: .8rem 0 .4rem; font-weight: 600; }
.vocab-fb.ok { color: var(--ok); } .vocab-fb.typo { color: #9a6700; } .vocab-fb.bad { color: var(--bad); } .vocab-fb.hint { color: var(--muted); font-weight: 500; }
.vocab-next { margin-top: .4rem; }
@media (max-width: 640px) { .vocab-q { font-size: 1.35rem; } .vocab-row .btn { flex: 1; } }

/* ---------- 1.17: Vokabeltrainer ausgebaut ---------- */
.vocab-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 560px; margin: .3rem auto .8rem; }
.vl { text-align: center; font-size: .85rem; }
.vl b { display: block; font-size: 1.2rem; }
.vl-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: .25rem; }
.vl-bar i { display: block; height: 100%; border-radius: 3px; background: currentColor; transition: width .6s; }
.vl-new { color: #8a94a6; } .vl-learning { color: #d97706; } .vl-solid { color: #2563eb; } .vl-mastered { color: var(--ok); }
.vocab-daily { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.vd-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: radial-gradient(closest-side, var(--card, #fff) 74%, transparent 75% 100%), conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); }
.vd-ring.done { box-shadow: 0 0 0 3px var(--ok-soft); }
.vocab-mini { margin-top: .45rem; }
.vm-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.vm-bar i { display: block; height: 100%; }
.vm-m { background: var(--ok); } .vm-s { background: #2563eb; } .vm-l { background: #d97706; }
.vocab-btns { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.vocab-q.cloze { font-size: 1.25rem; font-weight: 600; color: var(--text, inherit); }
.vocab-q.tempo { font-size: 1.5rem; }
.vocab-sub { margin: -.6rem 0 .8rem; }
.vocab-ex { background: var(--primary-soft); border-radius: 10px; padding: .55rem .8rem; margin: .4rem auto; max-width: 560px; font-style: italic; }
.vocab-ex span { font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: .3rem; }
.vbox { font-variant-numeric: tabular-nums; }
.vbox-3, .vbox-4 { background: #dbeafe; color: #1e40af; } .vbox-5 { background: var(--ok-soft); color: var(--ok); }
.game-hud .v-combo { transition: transform .2s; opacity: .55; }
.game-hud.combo .v-combo { opacity: 1; color: #ea580c; font-weight: 700; }
.game-hud.pop .v-combo { animation: vpop .35s ease; }
@keyframes vpop { 50% { transform: scale(1.35); } }
.vocab-card { position: relative; }
.vocab-up { position: absolute; left: 50%; top: 40%; transform: translate(-50%, 0) scale(.6); opacity: 0; pointer-events: none; z-index: 5;
  background: #2563eb; color: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.vocab-up.mastered { background: var(--ok); }
.vocab-up.go { animation: vup 1.8s ease forwards; }
@keyframes vup { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -20px) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -40px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .vocab-up { opacity: 1; position: static; transform: none; display: inline-block; margin: .3rem 0; } }
.game-timebar span.low { background: var(--bad); }
.vocab-hard td.rate { font-variant-numeric: tabular-nums; font-weight: 600; }
.vocab-hard .rate-bar { display: inline-block; height: 6px; background: var(--bad); border-radius: 3px; vertical-align: middle; margin-left: .4rem; }
.vl-n { display: block; font-weight: 700; font-size: 1.05rem; } .vl-l { display: block; }
.vl-bar { display: block; width: 100%; }
.vd-ring { display: flex; align-items: center; justify-content: center; }
.vd-ring b { font-size: 1rem; }
.vocab-daily label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.vocab-daily select { width: auto; padding: .25rem .5rem; }
.vocab-area { display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: .1rem 0 .8rem; }
.vocab-area label { display: inline-flex; gap: .5rem; align-items: center; margin: 0; font-weight: 600; }
.vocab-area select { width: auto; max-width: 100%; }

/* ---------- 1.18: Startseite, öffentliche Kurse, Lektionen sortieren ---------- */
.home-main { max-width: 1180px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px 0 26px; }
.home-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin: .25em 0 .35em; color: var(--primary); letter-spacing: -.01em; }
.hh-lead { font-size: 1.15rem; color: #334155; max-width: 38em; }
.hh-note { margin-top: .6rem; }
.hh-art { position: relative; min-height: 300px; border-radius: 24px; background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 35%, white) 0%, transparent 55%), linear-gradient(140deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, var(--accent)) 100%); overflow: hidden; }
.hh-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(15,23,42,.18); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 190px; animation: hhfloat 6s ease-in-out infinite; }
.hh-card span { grid-row: span 2; font-size: 1.6rem; }
.hh-card b { font-size: .95rem; } .hh-card small { color: var(--muted); font-size: .78rem; }
.hh-card i { grid-column: 2; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--w), var(--line) 0); margin-top: 4px; }
.hc1 { top: 22px; left: 22px; } .hc2 { top: 92px; right: 18px; animation-delay: -1.5s; } .hc3 { bottom: 86px; left: 34px; animation-delay: -3s; } .hc4 { bottom: 18px; right: 30px; animation-delay: -4.5s; }
@keyframes hhfloat { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .hh-card { animation: none; } }
.home-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 30px; }
.hv { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.hv-i { font-size: 1.6rem; } .hv h3 { margin: .3em 0 .2em; font-size: 1.05rem; } .hv p { margin: 0; color: #475569; font-size: .95rem; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 34px; counter-reset: s; }
.home-steps > div { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.home-steps b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; }
.home-steps h3 { margin: .35em 0 .15em; font-size: 1.05rem; } .home-steps p { margin: 0; color: #475569; font-size: .95rem; }
.hc-group { margin: 22px 0 10px; font-size: 1.1rem; color: #334155; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.home-card { text-align: left; font: inherit; border: 0; padding: 0; cursor: pointer; width: 100%; }
.home-card .cc-body { padding: 16px 18px; gap: 6px; }
.home-card .cc-body .btn { margin-top: auto; align-self: flex-start; }
.home-card h3 { font-size: 1.05rem; }
.hc-badge { background: rgba(255,255,255,.94); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.home-card.open .hc-badge { color: var(--ok); }
.home-card.locked { filter: grayscale(1); opacity: .62; transition: filter .2s, opacity .2s, transform .15s, box-shadow .15s; }
.home-card.locked:hover, .home-card.locked:focus-visible { filter: grayscale(.4); opacity: .95; }
.home-cta { margin: 40px 0 10px; padding: 30px; border-radius: 20px; background: linear-gradient(135deg, var(--primary-soft), #fff); text-align: center; }
.home-cta p { max-width: 46em; margin: 0 auto 1rem; }
.home-cta .btn-row { justify-content: center; }
.course-dialog { border: 0; border-radius: 18px; padding: 26px 28px; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(15,23,42,.35); }
.course-dialog::backdrop { background: rgba(15,23,42,.45); }
.course-dialog h2 { margin: .2em 0 .3em; color: var(--primary); }
.course-dialog h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.cd-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.cd-points, .check-list-ok { list-style: none; padding: 0; margin: 0; }
.cd-points li, .check-list-ok li { position: relative; padding: 4px 0 4px 26px; }
.cd-points li::before, .check-list-ok li::before { content: '✔'; position: absolute; left: 2px; color: var(--accent-dark); font-weight: 700; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; } .hh-art { min-height: 240px; } .home-values { grid-template-columns: 1fr 1fr; } .home-steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .home-values { grid-template-columns: 1fr; } .hc1, .hc3 { left: 12px; } .hc2, .hc4 { right: 12px; } .hh-card { min-width: 160px; } }
/* öffentliche Kursseite & Probelektion */
.course-hero { padding: 0; overflow: hidden; margin-bottom: 22px; }
.course-hero .ch-head { height: 150px; }
.ch-body { padding: 22px 26px; }
.ch-body h1 { margin: .2em 0 .4em; }
.pub-lessons { list-style: none; padding: 0; margin: 0; }
.pub-lessons li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pub-lessons li > a, .pub-lessons li > span:nth-child(2) { flex: 1; }
.pub-lessons li.locked { color: var(--muted); }
.pl-num { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .85rem; flex: none; }
.pub-lessons li.locked .pl-num { background: #f1f5f9; color: var(--muted); }
.callout-card { background: var(--primary-soft); }
.probe-bar { background: var(--ok-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; font-size: .92rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.probe-bar a { margin-left: auto; font-weight: 600; }
.side-list li.locked .side-locked { display: flex; gap: 8px; color: var(--muted); padding: 6px 8px; font-size: .92rem; cursor: not-allowed; }
.probe-end { margin-top: 18px; background: var(--primary-soft); }
/* Verwaltung: Lektionen ziehen, öffentlich schalten */
.dnd-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style-position: inside; }
.dnd-list li form { margin-left: auto; float: none; }
.dnd-handle { cursor: grab; color: var(--muted); font-size: 1.05rem; padding: 0 4px; user-select: none; }
.dnd-list li.dragging { opacity: .45; background: var(--primary-soft); }
.dnd-list li:active .dnd-handle { cursor: grabbing; }
.dnd-status { min-height: 1.2em; margin: .4rem 0 0; color: var(--ok); }
.pub-toggle { filter: grayscale(1); opacity: .6; }
.pub-toggle.on { filter: none; opacity: 1; }
.pick-list { margin: .5rem 0 1rem; padding-left: 1.4rem; }
.pick-list li { padding: 4px 0; }

/* ---------- 1.19: Demo-Zugang, Anfragen ---------- */
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.guest-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .guest-actions .btn-ghost { display: none; } }
.demo-main { max-width: 1120px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.demo-intro { position: sticky; top: 90px; padding-top: 10px; }
.demo-intro h1 { color: var(--primary); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: .3em 0 .4em; }
.demo-form h2 { font-size: 1.05rem; margin: 1.1rem 0 .5rem; color: var(--primary); }
.demo-form h2:first-of-type { margin-top: 0; }
.demo-3 { grid-template-columns: 120px 1fr 1fr; }
.demo-interests { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: .6rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-done { max-width: 640px; margin: 20px auto; text-align: center; }
.demo-banner { background: color-mix(in srgb, var(--accent) 16%, white); border: 1px solid color-mix(in srgb, var(--accent) 40%, white); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.demo-banner.expired { background: var(--warn-soft); border-color: #fcd34d; }
.lead-cls { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; color: #fff; background: #94a3b8; font-size: .85rem; }
.lead-cls.cA { background: var(--bad); } .lead-cls.cB { background: var(--warn); }
.lead-table tr.current td { background: var(--primary-soft); }
.lead-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; }
.lead-dl dt { color: var(--muted); font-size: .88rem; } .lead-dl dd { margin: 0; }
.mailq td { font-size: .85rem; }
@media (max-width: 860px) { .demo-layout { grid-template-columns: 1fr; } .demo-intro { position: static; } .demo-interests { grid-template-columns: 1fr; } .demo-3 { grid-template-columns: 1fr 1fr; } }
.demo-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 16px; }

/* ---------- 1.20: Verbesserungen (Trainer), Auswertungen, Firmen ---------- */
.imp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; }
.imp-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #f59e0b; color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: transform .15s; }
.imp-btn:hover { transform: scale(1.08); }
@media print { .imp-fab, .imp-dialog { display: none !important; } }
.imp-dialog { border: 0; border-radius: 16px; padding: 22px 24px; width: min(680px, calc(100% - 24px)); box-shadow: 0 30px 80px rgba(15,23,42,.35); }
.imp-dialog::backdrop { background: rgba(15,23,42,.4); }
.imp-dialog h2 { margin-top: 0; }
.imp-scope { border: 0; padding: 0; margin: 0 0 .6rem; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.imp-scope legend { grid-column: 1 / -1; }
.imp-scope label:last-child { grid-column: 1 / -1; }
.imp-shot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: .3rem 0; }
.imp-filebtn { cursor: pointer; }
.imp-shot canvas { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; cursor: crosshair; touch-action: none; display: block; margin-top: .4rem; }
.imp-note.done { opacity: .65; }
.imp-note.prio-hoch { border-left: 4px solid var(--bad); }
.imp-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.imp-text { margin: .5rem 0; }
.imp-img { max-width: 100%; max-height: 360px; border: 1px solid var(--line); border-radius: 8px; display: block; margin: .4rem 0; }
.imp-edit summary { list-style: none; display: inline-block; }
.imp-edit[open] { width: 100%; }
.imp-areas { list-style: none; padding: 0; margin: 0; }
.imp-areas li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.imp-areas li.active > a { font-weight: 700; }
.insights-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.insights-pick label { margin: 0; font-size: .85rem; }
.insights-pick select { min-width: 240px; }
.bar-mini { display: inline-block; width: 80px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.bar-mini i { display: block; height: 100%; background: var(--bad); }
.bar-mini.ok i { background: var(--accent); }
.qa-table tr.flag td { background: #fff7ed; }
.stat.warn .stat-num { color: var(--warn); }
.seminar-todo li { margin: .3rem 0; }
body.insights-print .topbar, body.insights-print .metabar, body.insights-print .foot { display: none; }
@media print { .seminar-view { box-shadow: none; } .tabs, .insights-pick, .crumb { display: none; } }
.insights-kpis, .seminar-view .stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.insights-kpis .stat, .seminar-view .stat { background: #fff; color: var(--text); box-shadow: var(--shadow); border-radius: 12px; flex: 1; min-width: 130px; }
.seminar-view .stat { background: var(--primary-soft); box-shadow: none; }
.ga-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.firm-table td { vertical-align: top; min-width: 140px; }
.firm-table td:first-child { min-width: 170px; }

/* 1.21 Erweiterungen */
.ext-preview { border-left: 4px solid var(--accent, #2563eb); }
.ext-preview .badge, .ext-card .badge { margin-right: .25rem; }
.ext-card.ext-off { opacity: .7; }
.ext-links { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin: .4rem 0 .8rem; }
.ext-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.ext-remove { margin-top: .6rem; gap: .5rem; flex-wrap: wrap; }
.ext-tile .gc-icon { font-size: 2.2rem; }
.ext-card h2 .badge, .ext-preview h2 .badge { font-size: .75rem; vertical-align: middle; padding: .15rem .5rem; }

/* 1.23 Erweiterungs-Kachel in der Verwaltung, Kurs-Links */
.ext-home { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; border-left: 4px solid var(--accent, #45b384); }
.ext-home-main { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.ext-home h2 { margin-top: 0; } .ext-home h2 .badge { font-size: .72rem; vertical-align: middle; }
.ext-home-qr { width: 110px; flex-shrink: 0; background: #fff; padding: 4px; border-radius: 8px; border: 1px solid var(--line); }
.ext-home-qr svg { width: 100%; height: auto; display: block; }
.ext-home-res h3 { margin: 0 0 .4rem; font-size: 1rem; } .ext-home-res ul { margin: 0; padding-left: 1.1rem; }
.ext-course-links { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.4rem 0 1rem; }
@media (max-width: 860px) { .ext-home { grid-template-columns: 1fr; } }

/* 1.24 – Vorlesen */
.lesson-tools { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#speak-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.tts-cur { background: #fff7d6; box-shadow: 0 0 0 6px #fff7d6; border-radius: 6px; transition: background .2s; }
body.tts-on #lesson-content p, body.tts-on #lesson-content li, body.tts-on #lesson-content h2, body.tts-on #lesson-content h3 { cursor: pointer; }
.tts-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  max-width: min(760px, calc(100vw - 20px)); padding: 10px 14px; background: #fff; border: 1px solid #dfe4ee; border-radius: 16px; box-shadow: 0 10px 30px rgba(15,30,70,.18); }
.tts-bar[hidden] { display: none; }
.tts-b { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #dfe4ee; background: #f4f6fb; font-size: 1.05rem; cursor: pointer; }
.tts-b.tts-main { background: var(--primary); color: #fff; border-color: var(--primary); width: 48px; height: 48px; font-size: 1.2rem; }
.tts-rate { font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.tts-bar select { padding: 6px 8px; border-radius: 8px; border: 1px solid #dfe4ee; font-size: .85rem; max-width: 220px; }
.tts-pos { color: #5b6475; }
.tts-note { color: #9a6200; flex-basis: 100%; }
.tts-az { font-size: .85rem; font-weight: 650; color: #154194; background: #eef4fb; border: 1px solid #cfdcef; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.tts-dev { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: #5b6475; cursor: pointer; white-space: nowrap; }
.tts-dev[hidden], .tts-az[hidden] { display: none; }
.tts-dev input { width: 16px; height: 16px; margin: 0; }
.tts-note:empty { display: none; }
.tts-tip { color: #5b6475; flex-basis: 100%; }
body.tts-on .foot { padding-bottom: 140px; }
@media (max-width: 600px) { .tts-tip { display: none; } .tts-bar select.tts-voice { max-width: 100%; flex: 1; } }
@media print { .tts-bar, #speak-btn { display: none !important; } }
@media (max-width: 600px) {
  .tts-bar { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; justify-content: center; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px 8px; }
  .tts-b { width: 40px; height: 40px; }
  .tts-b.tts-main { width: 46px; height: 46px; }
  .tts-rate, .tts-bar select.tts-voice { flex: 1 1 40%; }
  .tts-rate select { flex: 1; }
  .tts-pos { flex-basis: 100%; text-align: center; }
}

/* 1.25 – Firmengruppen */
.insight-level-note { background: #eef4ff; border: 1px solid #cfdcf5; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.act-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.act-chart .bar { fill: var(--primary); opacity: .85; }
.act-chart .bar.we { opacity: .45; }
.act-chart .bar:hover { opacity: 1; }
.act-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.act-chart .grid { stroke: #e6eaf2; stroke-width: 1; }
.act-chart .ax { font-size: 10px; fill: #6b7280; text-anchor: end; }
.act-chart text.ax[text-anchor="middle"] { text-anchor: middle; }
.chart-legend .lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; margin: 0 4px 0 10px; }
.chart-legend .lg.bar { background: var(--primary); }
.chart-legend .lg.line { height: 3px; background: var(--accent); }
.small-h { font-size: 1rem; margin: 14px 0 6px; }
.hard-list { margin: 0 0 8px; padding-left: 18px; }
.hard-list li { margin: 4px 0; }
.motiv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .motiv-grid { grid-template-columns: 1fr; } }
.goal-box { background: #f6f8fc; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.goal-box .xpbar { margin: 8px 0 4px; }
.team-list { padding-left: 20px; margin: 4px 0; }
.team-list li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; }
.team-list .right { margin-left: auto; }
.inline-num { display: inline-flex; align-items: center; gap: 6px; }
.inline-num input { width: 80px; }
.team-assign { display: grid; gap: 6px; max-height: 340px; overflow: auto; margin-bottom: 10px; }
.team-assign label { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.emoji-pick { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.emoji-pick label { margin: 0; cursor: pointer; }
.emoji-pick input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-pick span { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 1.3rem; }
.emoji-pick input:checked + span { border-color: var(--primary); background: #eef4ff; }
.lb-views { margin: 0 0 14px; }
.team-banner { display: grid; gap: 8px; padding: 14px 18px; }
.team-banner .xpbar { margin-top: 6px; }
.team-card { border-left: 5px solid var(--accent); }
.team-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-card-head h2 { margin: 0; font-size: 1.2rem; }
.team-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.tc-item { background: #f6f8fc; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tc-item .xpbar { margin: 4px 0; }
.tc-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.tc-label { font-weight: 700; }
.team-prize { margin: 12px 0 0; background: #fff7e6; border-radius: 10px; padding: 8px 12px; }
.team-kudos { margin: 8px 0 0; background: #effaf4; border-radius: 10px; padding: 8px 12px; }
.join-card .kicker { display: block; margin-top: 4px; }
.join-insight { margin-top: 16px; border-top: 1px solid #eef0f4; padding-top: 12px; }

/* 1.25.1 – Hinweis für ZIP-Uploads auf iPhone/iPad */
.ios-zip-hint { display: none; margin: 4px 0 8px; }
.is-ios .ios-zip-hint { display: block; }

/* 1.25.3: Markdown-Arbeitsdateien formatiert anzeigen */
.file-item-md { padding: 0; }
.file-item-md .file-open { display: flex; align-items: center; gap: 12px; flex: 1; padding: 10px 14px; color: var(--text); min-width: 0; }
.file-item-md .file-open:hover { text-decoration: none; }
.file-item-md .file-dl { padding: 10px 14px; color: var(--muted); }
.file-item-md .file-dl:hover { color: var(--primary); text-decoration: none; }
.file-hint { font-size: .78em; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.md-view { max-width: 860px; margin: 0 auto; }
.md-view-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.md-view-bar .spacer { flex: 1; }
.md-view-name { font-weight: 600; overflow-wrap: anywhere; }
.md-view-card { padding: 22px 26px; }
@media (max-width: 600px) { .md-view-card { padding: 14px; } .md-view-bar .spacer { display: none; } }
@media print { .md-view-bar, .imp-fab { display: none !important; } .md-view-card { box-shadow: none; border: 0; padding: 0; } }

/* 1.26.0: Kurse mit KI erstellen, Änderungen */
.kb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.kb-step { display: flex; gap: 10px; align-items: flex-start; background: var(--primary-soft); border-radius: var(--radius); padding: 10px 12px; font-size: .92rem; }
.kb-step b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.kb-card h2, .kb-grid h2 { margin-top: 0; }
.kb-list { margin: 12px 0 0; padding-left: 18px; }
.kb-prompt { position: relative; }
.kb-prompt pre { white-space: pre-wrap; margin: 0 0 8px; max-height: 340px; overflow: auto; }
.kb-pdfs { display: grid; gap: 8px; }
.kb-pdf { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kb-pdf > div { flex: 1; min-width: 0; }
.kb-pdf-act { display: flex; gap: 6px; flex: none; }
@media (max-width: 760px) { .kb-steps, .kb-grid { grid-template-columns: 1fr; } .kb-pdf { flex-wrap: wrap; } }
.chg-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chg-search input { flex: 1; min-width: 200px; }
.chg-entry { margin-bottom: 10px; }
.chg-entry > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chg-entry.chg-new { border-left: 4px solid var(--accent); }
.chg-badge { font-size: .75rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 6px; padding: 1px 8px; }
.chg-badge-cur { background: var(--primary); }
.chg-body { margin-top: 8px; font-size: .95rem; }

/* 1.27.0: Mail-Check */
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.mc-grid > .card { margin-bottom: 0; }
.mc-grid > div > .card + .card { margin-top: 16px; }
.mc-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0; }
.mc-form label { flex: 1; min-width: 220px; }
.mc-test { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mc-test > .small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.mc-state { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.mc-ok .mc-state { color: var(--ok); } .mc-bad .mc-state { color: var(--bad); } .mc-warn .mc-state { color: #b45309; }
.mc-err { color: var(--bad); }
.mc-hint { background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.mc-people { padding-left: 18px; }
.ck-info .ck-icon { opacity: .8; }
@media (max-width: 860px) { .mc-grid { grid-template-columns: 1fr; } .mc-test { grid-template-columns: 1fr; } }

/* 1.27.1: nur angehakte Kurse */
.only-assigned { display: flex; gap: 10px; align-items: flex-start; background: var(--primary-soft); border-radius: var(--radius); padding: 12px 14px; margin: 6px 0 12px; }
.only-assigned input { margin-top: 4px; }

/* 1.28.0: Schulungen, Firmen, Bericht, Protokoll, Ansicht als … */
.viewas-bar { position: sticky; top: 0; z-index: 200; background: #7c3aed; color: #fff; padding: 8px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .92rem; }
.viewas-bar .btn { background: #fff; color: #5b21b6; }
.firm-brand { display: flex; align-items: center; padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--line); }
.firm-brand img { max-height: 44px; max-width: 150px; width: auto; display: block; }
@media (max-width: 700px) { .firm-brand img { max-height: 32px; max-width: 90px; } }
.admin-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 22px; }
.hub-col { background: var(--card, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.hub-col h3 { margin: 0 0 6px; font-size: 1rem; }
.hub-col a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--text); font-weight: 600; }
.hub-col a:hover { background: var(--primary-soft); text-decoration: none; }
.hub-sub { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .admin-hub { grid-template-columns: 1fr; } }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.kpi { background: var(--card, #fff); box-shadow: var(--shadow); border-radius: 12px; padding: 12px 14px; color: var(--text); display: block; }
a.kpi:hover { text-decoration: none; outline: 2px solid var(--primary-soft); }
.kpi b { display: block; font-size: 1.6rem; color: var(--primary); line-height: 1.1; }
.kpi span { font-size: .85rem; color: var(--muted); }
.sem-form .sem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.sem-form .course-pick-list { max-height: 520px; overflow: auto; }
@media (max-width: 900px) { .sem-form .sem-grid { grid-template-columns: 1fr; } }
.sem-filter .area-sub { margin: 0 0 10px; }
.sem-filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sem-filter-row select, .sem-filter-row input { flex: 1; min-width: 160px; }
.sem-table td { vertical-align: top; }
.sem-month td { background: var(--primary-soft); font-weight: 700; color: var(--primary-dark); font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; padding: 6px 10px; }
.mini-bar { height: 7px; background: #e5e7eb; border-radius: 9px; overflow: hidden; margin: 3px 0; }
.mini-bar span { display: block; height: 100%; background: var(--ok, #16a34a); }
.sem-meta { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.sem-schedule { white-space: normal; }
.read-group-wrap summary { cursor: pointer; margin: 6px 0; }
.firm-title { display: flex; gap: 16px; align-items: center; }
.firm-logo-lg { max-height: 64px; max-width: 180px; }
.firm-portal { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.firm-logo-prev { display: flex; gap: 12px; align-items: center; } .firm-logo-prev img { max-height: 48px; max-width: 140px; }
.firms-list td { vertical-align: middle; }
.firm-cell { display: flex; align-items: center; gap: 10px; color: var(--text); }
.firm-cell img { max-height: 30px; max-width: 70px; }
.firm-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.audit-table td { vertical-align: top; }
/* Lernstandsbericht */
body.report-page { background: #fff; }
.report { max-width: 1100px; margin: 0 auto; padding: 24px; color: #0f172a; }
.report-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.report-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--primary); padding-bottom: 10px; }
.report-firm-logo { max-height: 60px; max-width: 200px; }
.report h1 { margin: 16px 0 4px; }
.report-sub { color: #475569; margin: 0 0 14px; }
.report-sec { margin: 22px 0; break-inside: avoid-page; }
.report-sec h2 { font-size: 1.15rem; margin: 0 0 4px; }
.report-kpis { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 10px; font-size: .9rem; }
.report-kpis b { font-size: 1.15rem; color: var(--primary); }
.report-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.report-table th { text-align: left; background: #f1f5f9; padding: 6px 8px; border-bottom: 2px solid #cbd5e1; vertical-align: bottom; }
.report-table td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.rp-pct { font-weight: 700; } .rp-pct.ok { color: #15803d; } .rp-pct.mid { color: #b45309; } .rp-pct.zero { color: #94a3b8; }
.report-foot { margin-top: 24px; border-top: 1px solid #e2e8f0; padding-top: 8px; }
@media print { .noprint { display: none !important; } .report { padding: 0; } .report-table { font-size: 9pt; } @page { margin: 14mm; } }

/* 1.28.2 Transparenz: was die Firma sieht */
.insight-note{background:#eef4fb;border:1px solid #cfdcef;border-radius:10px;padding:.55rem .8rem;margin:0 0 1rem;line-height:1.45}
.insight-line{margin:-.4rem 0 1rem;color:var(--muted,#5b6475)}
.insight-card p{margin:.3rem 0 .7rem}
.insight-ok{background:#fff7e6;border:1px solid #f1d9a6;border-radius:8px;padding:.45rem .6rem;margin-top:.4rem}

/* 1.28.3 Stimmen-Übersicht beim Vorlesen */
.tts-b.tts-small { width: 38px; height: 38px; font-size: .95rem; }
.tts-voices { flex-basis: 100%; max-height: 46vh; overflow: auto; background: #fff; border: 1px solid #dfe4ee; border-radius: 10px; padding: 8px 10px; }
.tts-voices[hidden] { display: none; }
.tts-vhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tts-vhead .small { color: #5b6475; }
.tts-x { margin-left: auto; border: 0; background: none; font-size: 1rem; cursor: pointer; }
.tts-vlist { list-style: none; margin: 0; padding: 0; }
.tts-vlist li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid #eef0f5; }
.tts-vlist li.on { background: #eef6f0; }
.tts-vn { flex: 1; min-width: 0; }
.tts-vn .small { color: #5b6475; }
.tts-vq { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #eef0f5; color: #5b6475; white-space: nowrap; }
.tts-vq.q3 { background: #fff3cd; color: #8a5a00; }
.tts-vq.q2 { background: #e6f0ff; color: #1f4fa3; }
.tts-vq.q0 { background: #f5f5f5; color: #999; }
.tts-vt, .tts-vs { border: 1px solid #dfe4ee; background: #f4f6fb; border-radius: 8px; padding: 5px 9px; font-size: .82rem; cursor: pointer; }
.tts-vlist li.on .tts-vs { background: var(--primary); color: #fff; border-color: var(--primary); }
.tts-vhint { color: #5b6475; margin: 8px 0 0; }

/* 1.29 Vertonen */
.tts-gen { border: 1px solid #cfdcef; background: #eef4fb; color: #154194; border-radius: 999px; padding: 8px 14px; font-weight: 650; cursor: pointer; }
.tts-genmsg { color: #5b6475; flex-basis: 100%; }
.tts-genmsg:empty { display: none; }
.mini-bar.tts-quota { height: 10px; margin: .4rem 0 .6rem; }
.mini-bar.tts-quota.warn span { background: var(--warn, #d97706); }

/* 🌐 Sprachfassungen (ab 1.31) */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: .35rem 0 .5rem; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .88rem; }
.lang-switch a, .lang-switch span.on { padding: 4px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.lang-switch a { color: inherit; opacity: .9; }
.lang-switch a:hover { opacity: 1; background: rgba(255,255,255,.18); }
.lang-switch span.on { background: #fff; color: #154194; font-weight: 650; }
.lesson .lang-switch { background: #eef4fb; border: 1px solid #cfdcef; color: #154194; }
.lesson .lang-switch span.on { background: #154194; color: #fff; }
.lesson .lang-switch a:hover { background: #dde8f6; }
.pill-lang { background: rgba(255,255,255,.92); color: #154194; letter-spacing: 2px; }
/* 🖼 Grafiken prüfen (ab 1.32) */
.tr-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.tr-img { border: 1px solid #e3e8f0; border-radius: 10px; padding: 10px; background: #fff; }
.tr-img.attn { border-color: #f2c46d; background: #fffaf0; }
.tr-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.tr-img-pair figure { margin: 0; }
.tr-img-pair img { width: 100%; height: 150px; object-fit: contain; background: #f6f8fb; border-radius: 6px; }
.tr-img-pair figcaption { font-size: .78rem; color: #5b6475; text-align: center; }
.tr-img-repl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.tr-img-repl input[type=file] { max-width: 230px; font-size: .8rem; }
@media (max-width: 600px) { .tr-imgs { grid-template-columns: 1fr; } }

/* 🖱 Klick-Simulation (1.33) */
.csim-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: -2px 0 12px; }
.csim-progress i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .4s; }
.csim-head .find-title { margin-bottom: 2px; }
.csim-intro { margin: 0 0 10px; }
.csim-prompt { display: flex; gap: .6em; align-items: baseline; font-size: 1.15rem; font-weight: 600; background: var(--primary-50, #eef3fb); border-left: 4px solid var(--primary); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.csim-n { color: var(--primary); font-weight: 800; }
.csim-area { text-align: center; }
.csim-img { max-width: 100%; }
.csim-img img { max-width: 100%; max-height: 64vh; width: auto; height: auto; }
.find-img.nope { animation: find-nope .5s; }
.csim-rect.found { animation: csim-pulse 1s ease 2; }
@keyframes csim-pulse { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, .25); } }
.csim-foot { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.csim-tip { margin: 0; color: var(--warn, #b45309); font-weight: 600; }
.csim-res { margin: 0; font-weight: 700; font-size: 1.05rem; }
.csim-res.ok { color: var(--ok); }
.csim-res.missed { color: var(--warn, #b45309); }
.csim-bonus { margin: 0; font-weight: 700; }
.csim-list { margin: 4px 0 8px; }
.csim-list summary { cursor: pointer; color: var(--primary); }
.csim-list ul { margin: 6px 0 0; padding-left: 1.2em; }
.sim-cards { display: grid; gap: 12px; margin-top: 24px; }
.sim-card { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid #6b4fbb; background: #fff; }
.sim-card .sim-ic { font-size: 1.8rem; }
.sim-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.sim-card p { margin: 0; }
.sim-card .btn { margin-left: auto; white-space: nowrap; }
.sim-steps { display: grid; gap: 16px; }
.sim-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.sim-step-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sim-step .fs-editor { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; line-height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; touch-action: none; }
.sim-step .fs-editor img { display: block; max-width: 100%; }
.sim-thumb { width: 160px; border: 1px solid var(--line); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .find-img.nope, .csim-rect.found { animation: none; } }
.sim-step .fs-editor .fs-r { border-color: var(--ok); background: rgba(22, 163, 74, .15); }
.sim-step .fs-editor .fs-r span { background: var(--ok); }
.sim-step .fs-list { margin: 6px 0 10px; display: grid; gap: 4px; }
.sim-step .fs-row { display: flex; gap: 8px; align-items: center; }
/* 1.38: Deutsch-Vokabeln mit Hilfesprache – Artikel-Farben wie im Lernpfad */
.vart { font-weight: 700; } .vart-der { color: #1d4ed8; } .vart-die { color: #be123c; } .vart-das { color: #15803d; }
.vocab-sol { font-size: 1.25rem; font-weight: 600; margin: .4rem 0 .2rem; }
.vocab-note { color: var(--muted, #555); margin: .2rem 0; }
.vocab-lang { display: flex; justify-content: center; margin: 0 0 .4rem; } .vocab-lang label { display: inline-flex; gap: .5rem; align-items: center; margin: 0; font-weight: 600; } .vocab-lang select { width: auto; max-width: 100%; }
.vocab-xfields { margin: .6rem 0; } .vocab-xfields summary { cursor: pointer; font-weight: 600; }
.vocab-lang label, .vocab-area label { flex-wrap: wrap; justify-content: center; max-width: 100%; text-align: center; }
.vocab-lang select, .vocab-area select { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .vocab-lang select, .vocab-area select { width: 100%; } .vocab-lang label, .vocab-area label { width: 100%; } }
/* 1.39: Vokabeltrainer – Themen an-/abwählen, Übungsmix */
.vocab-topics { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; margin: 0 0 .9rem; }
.vocab-topics > .small { width: 100%; text-align: center; }
.vtopic { display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .75rem; border: 1.5px solid var(--border, #cbd5e1); border-radius: 999px; background: #fff; color: inherit; text-decoration: none; font-size: .9rem; line-height: 1.2; }
.vtopic:hover { border-color: var(--primary, #164094); }
.vtopic.on { background: var(--primary, #164094); border-color: var(--primary, #164094); color: #fff; font-weight: 600; }
.vtopic .vt-n { font-size: .75rem; opacity: .7; }
.vmix-task { text-align: center; font-weight: 600; margin: .2rem 0 .6rem; }
.vmix-listen { display: flex; gap: .5rem; justify-content: center; margin: .4rem 0 .6rem; }
.vmix-play { font-size: 1.6rem; padding: .5rem 1.4rem; }
.vmix-line { min-height: 3rem; border-bottom: 2px solid var(--border, #cbd5e1); display: flex; flex-wrap: wrap; gap: .4rem; padding: .4rem 0; margin: .4rem auto; max-width: 600px; }
.vmix-line.ok { border-color: #15803d; } .vmix-line.bad { border-color: #be123c; }
.vmix-bank { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .8rem auto; max-width: 600px; }
.vmix-tile { padding: .45rem .8rem; border: 1.5px solid var(--border, #cbd5e1); border-bottom-width: 3px; border-radius: 10px; background: #fff; font-size: 1.05rem; cursor: pointer; }
.vmix-check { display: block; margin: .6rem auto; }
.vmix-art { display: flex; gap: .6rem; justify-content: center; margin: .8rem 0; }
.vmix-artbtn { min-width: 6rem; padding: .7rem 1rem; font-size: 1.3rem; font-weight: 700; border: 2px solid currentColor; border-radius: 12px; background: #fff; cursor: pointer; }
.vmix-artbtn.ok { background: #dcfce7; } .vmix-artbtn.bad { background: #ffe4e6; }
.vmix-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 640px; margin: .6rem auto; }
.vmix-col { display: flex; flex-direction: column; gap: .45rem; }
.vmix-pair { padding: .6rem .7rem; border: 1.5px solid var(--border, #cbd5e1); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font-size: 1rem; }
.vmix-pair.sel { border-color: var(--primary, #164094); box-shadow: 0 0 0 2px var(--primary, #164094) inset; }
.vmix-pair.ok { background: #dcfce7; border-color: #15803d; opacity: .7; } .vmix-pair.bad { background: #ffe4e6; border-color: #be123c; }
.vocab-sol-tr { display: flex; gap: .4rem; justify-content: center; align-items: center; font-size: 1.1rem; }

/* 🌍 Oberflächensprache (ab 1.40) */
.t2 { display: block; font-size: .72em; font-weight: 400; opacity: .8; line-height: 1.15; }
.mainnav a .t2 { margin-top: 1px; }
.btn .t2, .pill .t2, .chip .t2 { display: inline; margin-left: .25em; }
.btn .t2::before, .pill .t2::before, .chip .t2::before { content: "· "; }
h1 .t2, h2 .t2, h3 .t2 { font-size: .6em; margin-top: .15em; }
.ui-lang { display: inline-flex; margin: 0 .2rem; flex: none; }
.ui-lang select { font-size: .85rem; padding: .25rem 1.6rem .25rem .45rem; border-radius: 8px; border: 1px solid var(--border, #d8dde6); background-color: #fff; max-width: 16rem; }
.ui-lang-top select { min-width: 5.6rem; }
.ui-lang-auth { display: flex; justify-content: center; margin: -.3rem 0 .6rem; }
@media (max-width: 720px) { .ui-lang-top { margin: 0; } .ui-lang-top select { min-width: 0; max-width: 3.9rem; font-size: .8rem; padding: .25rem 1.1rem .25rem .3rem; } }

/* 🧭 Lernweg Deutsch (ab 1.41) */
.lw-entry { display: flex; gap: 1rem; align-items: center; text-decoration: none !important; color: inherit; margin-bottom: 1rem; border-left: 4px solid var(--accent, #45b384); }
.lw-entry h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.lw-steps { display: flex; gap: .4rem; margin: .4rem 0 1rem; }
.lw-steps span { padding: .2rem .7rem; border-radius: 99px; background: var(--bg, #f1f4f9); font-weight: 600; font-size: .85rem; color: var(--muted); }
.lw-steps span.done { background: #dcf3e8; color: #17714a; }
.lw-steps span.cur { background: var(--primary); color: #fff; }
.lw-item { border: 1px solid var(--border, #e2e6ee); }
.lw-item legend { font-size: 1.02rem; padding: 0 .3rem; }
.lw-tr { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: .15rem; }
.lw-opt { display: flex; gap: .55rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; margin: .2rem 0; border: 1px solid var(--border, #e2e6ee); cursor: pointer; }
.lw-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft, #eef3fb); }
.lw-start fieldset { border: 0; padding: 0; margin: .6rem 0; }
.lw-start legend { font-weight: 600; margin-bottom: .2rem; }
.lw-result, .lw-next, .lw-vocab { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lw-badge { width: 64px; height: 64px; border-radius: 16px; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex: none; }
.lw-badge.sm { width: 38px; height: 30px; font-size: .9rem; border-radius: 8px; display: inline-flex; vertical-align: middle; }
.lw-prog { display: flex; align-items: center; gap: .6rem; }
.lw-vocab > span:first-child { font-size: 1.8rem; }
.lw-level { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.lw-list { list-style: none; padding: 0; margin: 0; }
.lw-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border: 1px solid var(--border, #e2e6ee); border-radius: 10px; margin-bottom: .4rem; background: #fff; }
.lw-list li.done { opacity: .75; }
.lw-list li.next { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft, #eef3fb); }
.lw-ico { width: 1.6rem; text-align: center; font-weight: 700; color: var(--accent, #45b384); }
.lw .grow { flex: 1; min-width: 0; }

/* 🌱 Neue Wörter kennenlernen (ab 1.42) */
.vocab-new { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.vocab-new label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.vn-ring { background: radial-gradient(closest-side, var(--card, #fff) 74%, transparent 75% 100%), conic-gradient(#45b384 calc(var(--p) * 1%), var(--line) 0); }
.vlearn-opt { font-weight: 600; }
.vocab-howto { max-width: 560px; margin: .4rem auto .6rem; text-align: left; }
.vocab-howto summary { cursor: pointer; font-weight: 600; }
.vocab-howto ol { margin: .4rem 0 0 1.2rem; padding: 0; }
.vocab-howto li { margin: .2rem 0; }
.vlearn-word { font-size: 2.1rem; font-weight: 700; text-align: center; margin: .6rem 0 .3rem; line-height: 1.2; display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.vlearn-word.sm { font-size: 1.6rem; }
.vlearn-tr { font-size: 1.25rem; text-align: center; margin: .3rem 0 .6rem; display: flex; gap: .4rem; align-items: center; justify-content: center; }
.vlearn-ex { background: var(--soft, #f4f6fb); border-radius: 10px; padding: .55rem .8rem; margin: .5rem 0; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.vlearn-like { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: .35rem .7rem; margin: .4rem 0; display: inline-block; }
.vlearn-tip { color: var(--muted); margin: .3rem 0; }
.vocab-hint { min-height: 1.3em; margin: .3rem 0; }

/* 🎯 Was möchtest du lernen? (ab 1.43.1) */
.vocab-goal { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 .9rem; }
.vocab-goal .vg-title { width: 100%; text-align: center; font-weight: 600; }
.vocab-goal .vg-form { margin: 0; }
.vgoal { display: inline-flex; gap: .5rem; align-items: center; text-align: left; padding: .45rem .8rem; border: 1.5px solid var(--border, #cbd5e1); border-radius: 12px; background: #fff; color: inherit; font: inherit; line-height: 1.25; cursor: pointer; min-height: 44px; }
.vgoal:hover { border-color: var(--primary, #164094); }
.vgoal.on { border-color: var(--primary, #164094); background: #eef3fb; box-shadow: 0 0 0 1px var(--primary, #164094) inset; }
.vgoal .vg-fl { font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 600px) { .vocab-goal .vg-form { flex: 1 1 100%; } .vgoal { width: 100%; } }
/* 🌱 Abschluss „Kennenlernen“: Zuordnen + Übersicht der neuen Wörter (ab 1.44.1) */
.vlearn-overview { list-style: none; padding: 0; margin: .6rem auto 1rem; max-width: 560px; text-align: left; }
.vlearn-overview li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .2rem .8rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px solid var(--border, #e2e8f0); }
.vlearn-overview .vo-w { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.vlearn-overview .vo-ex { grid-column: 1 / -1; }
@media (max-width: 600px) { .vlearn-overview li { grid-template-columns: 1fr; } }
/* 🗣 Lautschrift beim Kennenlernen (ab 1.46) */
.vlearn-pron { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; justify-content: center; margin: -.1rem 0 .5rem; }
.vlearn-pron .vp-say { font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; color: var(--primary, #2563eb); overflow-wrap: anywhere; }
.vlearn-pron .vp-ipa, .vo-pr .vp-ipa { font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", "Lucida Sans Unicode", "DejaVu Sans", "Segoe UI", sans-serif; color: var(--muted); overflow-wrap: anywhere; }
.vocab-pron { margin: .2rem 0 .4rem; }
.vlearn-pron-tr { margin: -.2rem 0 .5rem; }
.vlearn-pron-tr .vp-say { font-size: 1rem; }
.vo-wc { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.vo-pr { display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-weight: 400; }
.vo-pr .vp-say { color: var(--primary, #2563eb); }
/* ab 1.45: Bilder, Hör-Dialoge, Lückentext der Woche, Wochenrückblick */
.vimg { font-size: 2.6rem; line-height: 1.1; text-align: center; margin: .2rem 0 .4rem; }
.vimg.big { font-size: 4rem; }
.vo-img { font-size: 1.4rem; margin-right: .2rem; }
.vocab-extra { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 .8rem; }
.vdlg-text { text-align: left; max-width: 620px; margin: .6rem auto; }
.vdlg-line { margin: .3rem 0; padding: .35rem .6rem; border-radius: 8px; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.vdlg-line.on { background: #fef9c3; }
.vdlg-tr { display: block; width: 100%; }
.vdlg-q { max-width: 640px; margin: .8rem auto 0; text-align: left; }
.vdlg-qt { margin: 0 0 .5rem; }
.blitz-opt.pick { border-color: var(--primary, #164094); background: #eef3fb; }
.vst-text { text-align: left; line-height: 2.3; max-width: 680px; margin: .6rem auto; font-size: 1.08rem; }
.vst-gap { min-width: 5.5rem; padding: .1rem .5rem; margin: 0 .15rem; border: 0; border-bottom: 2px dashed var(--primary, #164094); background: #f1f5f9; border-radius: 6px; font: inherit; cursor: pointer; }
.vst-gap.target { background: #fef9c3; }
.vst-gap.full { background: #eef3fb; border-bottom-style: solid; }
.vst-gap.ok { background: #dcfce7; border-color: #15803d; } .vst-gap.bad { background: #ffe4e6; border-color: #be123c; text-decoration: line-through; }
.vst-gap:disabled { opacity: 1; color: inherit; cursor: default; } .vst-gap.ok:disabled { color: #14532d; font-weight: 600; } .vst-gap.bad:disabled { color: #9f1239; }
.vst-fix { color: #15803d; font-weight: 700; margin-right: .3rem; }
.vst-bank { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .6rem 0 1rem; }
.vst-chip { padding: .45rem .8rem; border: 1.5px solid var(--border, #cbd5e1); border-radius: 999px; background: #fff; font: inherit; cursor: pointer; min-height: 40px; }
.vst-chip.sel { border-color: var(--primary, #164094); box-shadow: 0 0 0 2px var(--primary, #164094) inset; }
.vweek-stats { display: grid; grid-template-columns: repeat(4, 1fr) 2fr; gap: 1rem; align-items: end; }
.vw-num { text-align: center; } .vw-num b { display: block; font-size: 1.8rem; } .vw-num span { font-size: .85rem; color: var(--muted, #64748b); }
.vw-bars { display: flex; gap: .35rem; align-items: flex-end; height: 90px; }
.vw-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; font-size: .75rem; color: var(--muted, #64748b); }
.vw-bar i { display: block; width: 100%; background: #e2e8f0; border-radius: 4px 4px 0 0; } .vw-bar i.on { background: var(--accent, #45b384); }
.vw-self { display: flex; flex-wrap: wrap; gap: .5rem; } .vw-self label { display: inline-flex; gap: .2rem; align-items: center; margin: 0; white-space: nowrap; }
.vweek-plan ol li { margin: .5rem 0; }
@media (max-width: 700px) { .vweek-stats { grid-template-columns: repeat(2, 1fr); } .vw-bars { grid-column: 1 / -1; } .vw-table th:nth-child(2), .vw-table td:nth-child(2) { display: none; } }
