/* DentalWissen – „Klinisch-edel“
   Weiß und kühles Klinikgrau, eine selbst gehostete Grotesk, echte Fotos.
   --primary und --accent kommen aus den Praxis-Einstellungen. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2563EB;
  --accent: #C8862A;
  --primary-ink: color-mix(in srgb, var(--primary) 78%, #0B1520);
  --primary-sub: color-mix(in srgb, var(--primary) 7%, white);
  --primary-line: color-mix(in srgb, var(--primary) 28%, white);
  --bg: #FFFFFF;
  --surface: #F4F5F3;
  --surface-2: #ECEEEB;
  --ink: #0E1A24;
  --text: #1C2731;
  --muted: #5A6570;
  --line: #E2E5E6;
  --line-strong: #CDD2D5;
  --ok: #17794A;
  --ok-sub: #E7F4EC;
  --warn: #8A5A12;
  --warn-sub: #FBF3E4;
  --warn-line: #EED9B0;
  --bad: #B42318;
  --bad-sub: #FDECEA;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; accent-color: var(--primary); }
body { margin: 0; font: 400 1rem/1.62 var(--font); color: var(--text); background: var(--bg); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: color-mix(in srgb, var(--primary) 22%, white); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--primary-line); transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); letter-spacing: -.025em; }
p { text-wrap: pretty; }
code { background: var(--surface); border-radius: 5px; padding: 1px 6px; font-size: .88em; }
mark { background: color-mix(in srgb, var(--accent) 26%, white); color: inherit; border-radius: 3px; padding: 0 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.c { text-align: center; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }

/* ---------- Bedienelemente ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px;
  background: var(--ink); color: #fff; font: 600 .94rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--primary-ink); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-accent { background: var(--primary); }
.btn-danger { background: #fff; color: var(--bad); border-color: #F1C7C2; }
.btn-danger:hover { background: var(--bad-sub); }
.link { background: none; border: 0; padding: 4px; color: var(--primary-ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary-line); }
.link.danger { color: var(--bad); }
.more { font-weight: 600; text-decoration: none; color: var(--primary-ink); white-space: nowrap; }
.more::after { content: " ›"; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.5; margin: 0; }
.chip.ok { background: var(--ok-sub); color: var(--ok); }
.chip.warn { background: var(--warn-sub); color: var(--warn); }
.chip.ok::before, .chip.warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.score { font-weight: 600; font-variant-numeric: tabular-nums; }
.score.ok { color: var(--ok); } .score.bad { color: var(--bad); }
.tick { color: var(--ok); font-weight: 700; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Meldungen & Hinweise ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 20px; animation: drop .4s var(--ease); }
.flash.ok { background: var(--ok-sub); color: #0F5132; }
.flash.err { background: var(--bad-sub); color: #7A1A12; }
.flash.info { background: var(--primary-sub); color: var(--primary-ink); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.hinweis, .warnung, .merke { margin: 1.6em 0; padding: 16px 18px 16px 50px; border-radius: var(--radius); background: var(--warn-sub); border: 1px solid var(--warn-line); position: relative; font-size: .96em; }
.hinweis::before, .merke::before, .warnung::before { content: ""; position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; background: var(--warn);
  -webkit-mask: url("../img/i-warn.svg") center / contain no-repeat; mask: url("../img/i-warn.svg") center / contain no-repeat; }
.merke { background: var(--primary-sub); border-color: var(--primary-line); }
.merke::before { background: var(--primary); -webkit-mask-image: url("../img/i-info.svg"); mask-image: url("../img/i-info.svg"); }
.warnung { background: var(--bad-sub); border-color: #F1C7C2; }
.warnung::before { background: var(--bad); }
.result { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--radius); margin: 0 0 28px; }
.result.ok { background: var(--ok-sub); } .result.bad { background: var(--bad-sub); }
.result strong { font-size: 1.2rem; color: var(--ink); }
.pw { font-size: 1.1rem; user-select: all; }

/* ---------- App-Rahmen ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 28px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand strong { font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.topsearch { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.topsearch .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.topsearch input { width: 100%; height: 40px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: 999px; background: var(--surface); font: inherit; font-size: .94rem; color: var(--text); transition: background-color .2s, border-color .2s; }
.topsearch input::placeholder { color: #6B757E; }
.topsearch input:focus { background: #fff; border-color: var(--primary-line); outline: none; }
.who { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.menu-btn { display: none; }

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 22px 14px 28px; background: var(--bg); border-right: 1px solid var(--line); }
.sidebar ul { list-style: none; margin: 0 0 6px; padding: 0; }
.sidebar a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: #37424C; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .15s, color .15s; }
.sidebar a:hover { background: var(--surface); color: var(--ink); }
.sidebar a.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.sidebar a.active .ico { color: var(--primary); }
.nav-h { margin: 22px 12px 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.side-note a { color: var(--muted); }
.side-note { margin: 28px 10px 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.main { padding: 40px clamp(20px, 3.4vw, 60px) 96px; min-width: 0; max-width: 1560px; }

.lead-sm { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.h-sec { font-size: 1.3rem; margin: 56px 0 18px; letter-spacing: -.015em; }
.h-small { font-size: 1rem; margin: 0 0 12px; letter-spacing: -.01em; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row h1 { margin: 0; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; min-width: 0; }
.narrow { max-width: 560px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

/* ---------- Übersicht ---------- */
.greet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-radius: 18px; overflow: hidden; background: var(--surface); min-height: 320px; }
.greet-text { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.greet h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); margin: 0 0 6px; }
.greet-photo { position: relative; min-height: 240px; }
.greet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); filter: saturate(.6); } }
.overall { margin-top: 20px; max-width: 460px; }
.overall-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.overall-top strong { color: var(--ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.line-bar { height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.line-bar span { display: block; height: 100%; width: var(--w); background: var(--primary); border-radius: inherit; transform-origin: left; animation: grow 1.4s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.continue { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-strong); color: inherit; text-decoration: none; }
.continue img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.continue small { display: block; color: var(--muted); font-size: .82rem; }
.continue strong { color: var(--ink); font-size: 1.05rem; }
.continue:hover strong { color: var(--primary-ink); }

.path-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.path-row { display: grid; grid-template-columns: 104px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.path-row img { width: 104px; height: 70px; object-fit: cover; border-radius: 8px; }
.path-row h3 { font-size: 1.08rem; margin: 0 0 2px; }
.path-row p { margin: 0; color: var(--muted); font-size: .92rem; }
.path-row .pct { font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.mine-tag { margin-left: 8px; vertical-align: 2px; font-size: .72rem; font-weight: 600; color: var(--primary-ink); background: var(--primary-sub); padding: 2px 8px; border-radius: 99px; letter-spacing: 0; }

.mod-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mod-list li { border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod-list li > a, .mod-list li > span { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 4px; color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.mod-list li > a:hover { color: var(--primary-ink); }
.mod-list li > form { padding-right: 4px; }
.dots { display: inline-flex; gap: 4px; flex: none; }
.dots i { width: 18px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.dots i.on { background: var(--ok); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.1rem; font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------- Bibliothek: Bildkacheln ---------- */
.filters { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 36px; }
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--muted); min-width: 220px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 28px; }
.tile { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.tile-img { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-img .chip { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .94); }
.tile-cat { font-size: .82rem; color: var(--muted); font-weight: 500; }
.tile h3 { font-size: 1.16rem; margin: 0; letter-spacing: -.015em; transition: color .2s; }
.tile:hover h3 { color: var(--primary-ink); }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.tile-foot .dots { margin-left: auto; }

/* ---------- Modulseite ---------- */
.mod-hero { position: relative; margin: -40px calc(-1 * clamp(20px, 3.4vw, 60px)) 0; height: clamp(200px, 24vw, 340px); overflow: hidden; background: var(--surface); }
.mod-hero img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s var(--ease) both; }
.mod-hero figcaption, .photo-credit { position: absolute; right: 12px; bottom: 10px; font-size: .7rem; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.photo-credit a { color: inherit; }
.mod-head { max-width: 1100px; margin: 32px 0 26px; }
.mod-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); margin-bottom: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 36px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 50px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .25s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.tab-nr { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); }
.tabs a.active .tab-nr { color: var(--primary); }
.tabs-sm a { min-height: 44px; padding: 8px 14px; }
.mod-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.mod-side { position: sticky; top: 92px; }
.mod-side .panel { background: var(--surface); border: 0; }
.prose { font-size: 1.07rem; line-height: 1.75; color: #22303B; }
.prose > * { max-width: 72ch; }
.prose h3 { font-size: 1.5rem; margin: 2em 0 .55em; letter-spacing: -.02em; }
.prose > h3:first-child, .prose > .small + h3 { margin-top: .4em; }
.prose h4 { font-size: 1.12rem; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 14px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); border-bottom-color: var(--line-strong); }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 1.1em; }
.media-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin: 36px 0; max-width: none !important; }
.media-row figure { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 18px; }
.media-row figcaption { font-size: .85rem; margin-top: 10px; color: var(--muted); }
.video { margin: 32px 0; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.done-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: none !important; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: .92rem; max-width: none !important; }
.pager a { text-decoration: none; color: var(--muted); } .pager a:hover { color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; cursor: pointer; line-height: 1.45; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.form .check input:checked + span, .checks-inline .check input:checked + span { text-decoration: none; color: inherit; }
.sources { padding-left: 1.2em; margin: 0; font-size: .88rem; }
.sources li { margin-bottom: 10px; }

/* ---------- Quiz ---------- */
.quiz { max-width: 880px; }
.q { border: 0; border-top: 1px solid var(--line); padding: 28px 0 24px; margin: 0; min-width: 0; }
.q legend { float: left; width: 100%; font-weight: 600; font-size: 1.12rem; color: var(--ink); margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; letter-spacing: -.01em; }
.q legend + * { clear: both; }
.q-nr { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; min-width: 1.6em; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: var(--line-strong); background: var(--surface); }
.opt input { margin-top: 4px; accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-sub); }
.opt.is-right { border-color: var(--ok); background: var(--ok-sub); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-sub); }
.explain { margin: 14px 0 0; padding: 14px 16px; background: var(--surface); border-radius: 10px; font-size: .95rem; }

/* ---------- Suche, Pfade, Tabellen ---------- */
.bigsearch { display: flex; gap: 10px; max-width: 760px; margin: 0 0 28px; }
.bigsearch input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: 1.05rem; }
.hits { list-style: none; padding: 0; margin: 0; max-width: 1000px; border-top: 1px solid var(--line); }
.hit { padding: 20px 0; border-bottom: 1px solid var(--line); }
.hit > a strong { font-size: 1.1rem; }
.snip { margin: 8px 0 0; font-size: .93rem; color: #3A4651; }
.path { padding: 36px 0; border-top: 1px solid var(--line); }
.path header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.path h2 { margin: 0; font-size: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px 18px; }
.steps li { display: flex; flex-direction: column; gap: 4px; }
.steps li img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.steps a { font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.3; }
.steps a:hover { color: var(--primary-ink); }
.steps li.done a::before { content: "✓ "; color: var(--ok); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { background: var(--surface); font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: #FAFBFA; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table .c { text-align: center; }
.table tr.inactive { opacity: .55; }
.matrix .lvl1 { background: color-mix(in srgb, var(--primary) 5%, white); } .matrix .lvl2 { background: color-mix(in srgb, var(--primary) 11%, white); } .matrix .lvl3 { background: var(--ok-sub); }
.matrix tbody th { font-weight: 500; min-width: 220px; }
.review-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px) 200px auto; gap: 12px; align-items: center; padding: 16px 20px; margin-bottom: 10px; }
.rr-main { display: flex; flex-direction: column; min-width: 0; }

/* ---------- Formulare ---------- */
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); margin: 0 0 16px; }
.form label.check { flex-direction: row; font-weight: 400; font-size: .95rem; }
.label { font-weight: 600; font-size: .9rem; margin: 6px 0 6px; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), select, textarea) {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: 400 1rem var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s; }
:where(input, textarea)::placeholder { color: #6B757E; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
input[type=color] { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 4px; background: #fff; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
fieldset.panel { padding: 22px; }
fieldset.panel > legend { float: left; width: 100%; margin-bottom: 18px; }
fieldset.panel > legend + * { clear: both; }
legend { font-weight: 600; font-size: 1.02rem; color: var(--ink); padding: 0; margin-bottom: 14px; }
.form-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 0 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 16px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-bottom: 12px; }
.checks-inline.cols3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.opt-edit { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.opt-edit label.check { margin: 0; flex: none; }
.logo-preview { max-height: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.checks { border-collapse: collapse; margin-bottom: 20px; font-size: .9rem; }
.checks td { padding: 4px 16px 4px 0; }
.checks .ok { color: var(--ok); font-weight: 600; } .checks .bad { color: var(--bad); font-weight: 600; }

/* Editor */
.ed { border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; overflow: clip; }
.ed:focus-within { border-color: var(--primary); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 64px; z-index: 2; }
.ed-bar button { min-width: 36px; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 7px; background: transparent; font: 600 .84rem var(--font); color: var(--text); cursor: pointer; }
.ed-bar button:hover { background: #fff; }
.ed-bar button[aria-pressed=true] { background: var(--ink); color: #fff; }
.ed-area { min-height: 260px; max-height: 70vh; overflow-y: auto; padding: 18px 22px; outline: none; }
.ed textarea { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; font-family: ui-monospace, Consolas, monospace !important; font-size: .86rem !important; min-height: 260px; }

/* ---------- Einstieg / Login ---------- */
body.pub { background: var(--bg); }
.entry { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(440px, 1fr); min-height: 100vh; min-height: 100dvh; }
.entry-photo { position: relative; overflow: hidden; background: var(--surface); margin: 0; }
.entry-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2s var(--ease) both; }
.entry-panel { display: flex; flex-direction: column; padding: 36px clamp(28px, 4.5vw, 80px); }
.entry-main { margin: auto 0; padding: 36px 0; max-width: 480px; width: 100%; }
.entry h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); line-height: 1.04; letter-spacing: -.028em; margin: 0 0 18px; }
.entry .intro { font-size: 1.08rem; color: var(--muted); margin: 0 0 36px; max-width: 42ch; }
.entry form { display: flex; flex-direction: column; }
.entry form .btn { margin-top: 6px; min-height: 50px; font-size: 1rem; }
.entry .help { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.topics { padding-top: 24px; border-top: 1px solid var(--line); }
.topics p { margin: 0 0 12px; font-size: .84rem; color: var(--muted); }
.topics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topics li { font-size: .82rem; font-weight: 500; color: var(--ink); }
.topics img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 6px; width: 100%; }
.entry-foot { margin-top: 20px; font-size: .74rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.entry-foot a { color: var(--muted); }

.pub-min { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
body.install { background: var(--surface); }
.install-card { width: min(780px, 100% - 32px); margin: 48px auto; background: #fff; border-radius: 18px; padding: clamp(20px, 4vw, 40px); }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .mod-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mod-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 20px; }
  .review-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .path-row { grid-template-columns: 104px minmax(0, 1fr) auto; }
  .path-row .path-prog { grid-column: 2 / -1; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 0; background: transparent; cursor: pointer; flex: none; }
  .menu-btn span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
  .menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar { padding: 0 12px; gap: 10px; }
  .topsearch { display: none; }
  .who { margin-left: auto; }
  .brand small { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 25; top: 64px; left: 0; width: min(320px, 86vw); height: calc(100dvh - 64px); transform: translateX(-102%); transition: transform .4s var(--ease); box-shadow: 24px 0 60px -24px rgba(14, 26, 36, .3); }
  .sidebar.open { transform: none; }
  .sidebar a { min-height: 48px; }
  body.menu-open::after { content: ""; position: fixed; inset: 64px 0 0; background: rgba(14, 26, 36, .3); z-index: 24; animation: fade .3s; }
  @keyframes fade { from { opacity: 0; } }
  .main { padding: 24px 16px 72px; }
  .mod-hero { margin: -24px -16px 0; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .greet { grid-template-columns: minmax(0, 1fr); }
  .greet-photo { order: -1; min-height: 180px; }
  .path-row { grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; }
  .path-row img { width: 72px; height: 56px; }
  .path-row .path-prog, .path-row .btn { grid-column: 2; justify-self: start; }
  .review-row { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry-photo { height: 32vh; min-height: 200px; }
  .entry-panel { padding: 28px 20px; }
  .entry-main { padding: 28px 0 36px; }
}
@media (max-width: 520px) {
  .bigsearch { flex-direction: column; }
  .opt-edit { flex-direction: column-reverse; align-items: stretch; }
  .done-row .btn { width: 100%; }
  .continue { grid-template-columns: 80px minmax(0, 1fr); }
  .continue img { width: 80px; height: 60px; }
  .continue .more { grid-column: 2; }
  .topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .topbar, .sidebar, .done-row, .pager, .tabs, .mod-side, .mod-hero { display: none !important; }
  .shell { display: block; }
}

/* ---------- Mehrsprachigkeit ---------- */
.tr-title { margin: -4px 0 10px; font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.langbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; font-size: .88rem; }
.langbar > span { color: var(--muted); margin-right: 4px; }
.langbar a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; }
.langbar a:hover { border-color: var(--line-strong); background: var(--surface); }
.langbar a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr-note { font-size: .88rem !important; color: var(--muted); background: var(--surface); border-radius: 10px; padding: 10px 14px; text-align: left; }
.de-sub { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
[dir=rtl].prose ul, [dir=rtl].prose ol { padding-left: 0; padding-right: 1.25em; }
[dir=rtl] .hinweis, [dir=rtl] .merke, [dir=rtl] .warnung { padding: 16px 50px 16px 18px; }
[dir=rtl] .hinweis::before, [dir=rtl] .merke::before, [dir=rtl] .warnung::before { left: auto; right: 17px; }
[dir=rtl].prose th, [dir=rtl].prose td { text-align: right; padding: 10px 0 10px 14px; }
.q-tr { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.opt-tr { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.lang-switch select { min-height: 36px !important; padding: 4px 30px 4px 12px !important; border-radius: 999px !important; font-size: .86rem !important; width: auto !important; background-color: var(--surface) !important; border-color: transparent !important; }.tile-tr { color: var(--muted); font-size: .9rem; margin-top: -2px; }
@media (max-width: 960px) { .lang-switch { margin-left: auto; } .who { margin-left: 0; } }
.de-term { color: var(--primary-ink); font-weight: 600; background: var(--primary-sub); border-radius: 4px; padding: 0 3px; white-space: normal; }
.q-tr .de-term, .opt-tr .de-term { font-weight: 500; }
[dir=rtl] { text-align: right; }
.prose[dir=rtl] .tr-note, .prose[dir=rtl] .done-row, .prose[dir=rtl] .pager { text-align: left; }
@media (max-width: 960px) {
  .topbar .brand span { display: none; }
  .lang-switch select { max-width: 130px; }
}
/* Sprachmenü mit Flaggen */
.flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(14, 26, 36, .12); flex: none; display: inline-block; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--ink); user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--surface-2); }
.lang-menu .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 4px rgba(14, 26, 36, .04), 0 18px 40px -14px rgba(14, 26, 36, .25); animation: drop .25s var(--ease); }
.lang-h { margin: 4px 10px 6px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.lang-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font: 500 .95rem var(--font); color: var(--text); cursor: pointer; text-align: left; }
.lang-list button span { flex: 1; }
.lang-list button small { color: var(--muted); font-size: .78rem; }
.lang-list button:hover { background: var(--surface); }
.lang-list button.current { background: var(--primary-sub); color: var(--primary-ink); font-weight: 600; }
.langbar a { gap: 8px; }
@media (max-width: 960px) {
  .lang-menu { margin-left: auto; }
  .lang-menu .lang-name { display: none; }
  .lang-list { right: -60px; }
}
.who .link { white-space: nowrap; }
.side-logout { display: none; margin: 20px 10px 0; }
@media (max-width: 960px) {
  .who form { display: none; }
  .side-logout { display: block; }
}

/* Berichtsheft */
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flash.warn { background: var(--warn-sub); color: var(--warn); }
.head-actions, .week-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.week-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.week-chips a { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--warn-line); text-decoration: none; color: var(--warn); font-size: .84rem; font-variant-numeric: tabular-nums; }
.week-chips a:hover { background: var(--warn); color: #fff; }
.report-form { max-width: 980px; }
.report-form fieldset[disabled] textarea, .report-form fieldset[disabled] select, .report-form fieldset[disabled] input { background: var(--surface); color: var(--text); }
.sig-pad { border: 1px dashed var(--line-strong); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.sig-pad canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair;
  background: linear-gradient(transparent calc(100% - 46px), var(--line) calc(100% - 46px), var(--line) calc(100% - 45px), transparent calc(100% - 45px)); }
.sig-tools { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.sig-missing { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-sub); }
.sig-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 20px; }
.sig-show { margin: 0; padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.sig-show img { height: 70px; width: auto; }
.sig-show figcaption { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-strong); padding-top: 4px; }
.azubi-fields { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 0; margin-bottom: 14px; }
.year-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.year-cols .check { font-size: .9rem; padding: 5px 0; }
.tiles-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px 20px; }
.tiles-sm h3 { font-size: 1rem; }
@media (max-width: 960px) { .year-cols { grid-template-columns: minmax(0, 1fr); } }

/* Druckansicht Ausbildungsnachweis */
body.print-doc { max-width: 900px; margin: 0 auto; padding: 32px 24px; font-size: 14px; }
.print-head { border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.print-week { break-inside: avoid; border: 1px solid var(--line-strong); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.print-week h2 { font-size: 1rem; margin: 0 0 8px; }
.print-week table { width: 100%; border-collapse: collapse; }
.print-week th { width: 28%; text-align: left; vertical-align: top; padding: 6px 10px 6px 0; font-weight: 600; }
.print-week td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.print-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; align-items: end; }
.print-sigs div { display: flex; flex-direction: column; justify-content: flex-end; min-height: 74px; font-size: .8rem; }
.print-sigs img { height: 54px; width: auto; align-self: flex-start; }
.print-sigs span { border-top: 1px solid var(--ink); padding-top: 4px; }
.print-hash { font-size: .7rem; color: var(--muted); margin: 8px 0 0; }
@media print { .no-print { display: none; } body.print-doc { padding: 0; } }

/* Zahnschema */
.zs-bar { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 16px; min-height: 40px; border-radius: 999px; font: 500 .92rem var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; }
.seg button small { font-size: .74rem; opacity: .8; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14, 26, 36, .12); }
.zs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.zs-chart { position: relative; margin: 0; background: linear-gradient(180deg, #FBFBFA, var(--surface)); border-radius: 20px; padding: 16px 16px 12px; }
.zs-chart svg { width: 100%; height: auto; max-height: 78vh; display: block; margin: 0 auto; }
.zs-chart figcaption { text-align: center; font-size: .82rem; color: var(--muted); }
.zs-side { position: absolute; top: 50%; translate: 0 -50%; margin: 0; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; align-items: center; font-size: .95rem; }
.zs-side small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.zs-left { left: 18px; } .zs-right { right: 18px; }
.zs-jaw { fill: none; stroke: #E6D6D2; stroke-width: 46; stroke-linecap: round; opacity: .55; }
.zs-jawlabel { font: 600 15px var(--font); fill: var(--muted); letter-spacing: .02em; }
.zs-tooth { cursor: pointer; outline: none; }
.zs-crown { fill: #fff; stroke: #9AA5AE; stroke-width: 1.6; transition: fill .2s, stroke .2s, transform .25s var(--ease); }
.zs-fissure { stroke: #C3CBD1; stroke-width: 1.4; fill: none; stroke-linecap: round; pointer-events: none; }
.zs-tooth:hover .zs-crown, .zs-tooth:focus-visible .zs-crown { fill: var(--primary-sub); stroke: var(--primary); }
.zs-tooth.is-selected .zs-crown { fill: var(--primary); stroke: var(--primary-ink); }
.zs-tooth.is-selected .zs-fissure { stroke: rgba(255, 255, 255, .6); }
.zs-tooth.is-right .zs-crown { fill: #3FB27F; stroke: var(--ok); }
.zs-tooth.is-wrong .zs-crown { fill: #F0A7A0; stroke: var(--bad); }
.zs-num { font: 600 15px var(--font); fill: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
svg.quiz .zs-num { visibility: hidden; }
.zs-info { position: sticky; top: 92px; background: var(--surface); border: 0; min-height: 320px; }
.zs-nr { font-size: 4.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 0; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.zs-say { margin: 4px 0 14px; color: var(--muted); }
.zs-name { font-size: 1.45rem; margin: 0 0 2px; }
.zs-alt { margin: 0 0 16px; font-style: italic; }
.zs-info dl { display: grid; grid-template-columns: 100px 1fr; gap: 8px 12px; margin: 0; font-size: .94rem; }
.zs-info dt { color: var(--muted); }
.zs-info dd { margin: 0; color: var(--ink); }
.zs-task { font-size: 1.3rem; margin: 6px 0; }
.zs-target { font-size: 3.4rem; color: var(--primary-ink); display: block; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.zs-feedback { min-height: 3em; font-weight: 500; }
.zs-feedback.good { color: var(--ok); } .zs-feedback.wrong { color: var(--bad); }
.zs-score { color: var(--muted); font-size: .9rem; }
.zs-learn { margin-top: 24px; }
.zs-teaser { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin: 0 0 28px; background: var(--primary-sub); border-radius: 14px; color: var(--ink); text-decoration: none; }
.zs-teaser .ico { width: 26px; height: 26px; color: var(--primary); }
.zs-teaser span:nth-child(2) { flex: 1; }
.zs-teaser:hover { background: color-mix(in srgb, var(--primary) 12%, white); }
@media (max-width: 1100px) { .zs-grid { grid-template-columns: minmax(0, 1fr); } .zs-info { position: static; min-height: 0; } }
@media (max-width: 600px) { .zs-side { font-size: .78rem; } .zs-left { left: 4px; } .zs-right { right: 4px; } .zs-num { font-size: 18px; } }@media (max-width: 600px) {
  .zs-side { display: none; }
  .zs-chart { padding: 8px 4px; margin: 0 -8px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 8px 10px; }
  .seg button small { display: none; }
}

/* Videos */
.videos { margin: 48px 0 0; max-width: none !important; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.video { margin: 0; }
.video iframe, .video-consent { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.video-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; cursor: pointer; text-align: center;
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--primary) 55%, var(--ink))); color: #fff; font: inherit; transition: transform .3s var(--ease); }
.video-consent:hover { transform: scale(1.01); }
.video-consent svg { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: rgba(255, 255, 255, .16); fill: #fff; transition: background-color .2s; }
.video-consent:hover svg { background: rgba(255, 255, 255, .3); }
.video-consent strong, .prose .video-consent strong { color: #fff; font-size: 1rem; line-height: 1.3; max-width: 34ch; }
.video-consent span { font-size: .85rem; opacity: .85; }
.video-consent small { font-size: .7rem; opacity: .6; }
.video figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* Berichtsheft: Tage Montag–Freitag */
.days { display: flex; flex-direction: column; gap: 14px; margin: 0 0 20px; border: 0; padding: 0; }
.day { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s, opacity .2s; }
.day > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.day-date { display: flex; align-items: baseline; gap: 10px; }
.day-date strong { font-size: 1.05rem; color: var(--ink); min-width: 92px; }
.day-date span { color: var(--muted); font-variant-numeric: tabular-nums; }
.day-type { display: flex; flex-wrap: wrap; gap: 4px; }
.day-type label { position: relative; margin: 0 !important; }
.day-type input { position: absolute; opacity: 0; pointer-events: none; }
.day-type span { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .84rem; font-weight: 500; color: var(--text); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.day-type span:hover { border-color: var(--ink); }
.day-type input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-type input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.day-schule .day-type input:checked + span { background: var(--primary); border-color: var(--primary); }
.day-body { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; padding: 14px 16px; }
.day-body label { margin: 0 !important; }
.day-part-label { grid-column: 1 / -1; margin: 0 0 -6px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.day-part-label[hidden], .day-body[hidden] { display: none; }
.day-school { border-top: 1px dashed var(--line); }
.day-beides .day-type input:checked + span { background: var(--primary); border-color: var(--primary); }
.day-hours { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.day-urlaub, .day-krank, .day-feiertag { opacity: .78; }
.day-urlaub .day-body textarea, .day-krank .day-body textarea, .day-feiertag .day-body textarea { min-height: 46px; }
.day-sum { margin: 2px 4px 0; }
.days[disabled] .day-type span { cursor: default; }
@media (max-width: 640px) {
  .day > header { flex-direction: column; align-items: flex-start; }
  .day-body { grid-template-columns: minmax(0, 1fr); }
}
