/* Mobili Ausbildung – Gestaltung nach dem Gestaltungskonzept von Mobili Reasoning (17.11.2026):
   Roter Faden in Etappen, Farbe je Etappe immer zusammen mit Nummer und Text, Karten mit weichem Schatten,
   abgerundete Systemschrift für Überschriften, eigener Hell- und Dunkelmodus, keine Schrift aus dem Internet. */
:root {
  --bg: #f4f4f8; --surface: #ffffff; --surface2: #eceef5; --ink: #151a2d; --muted: #5f6680; --line: #e3e5ee;
  --c0: #3b3f9e; --c0-soft: #e6e7fa;   /* Start */
  --c1: #4a5bdc; --c1-soft: #e5e9ff;   /* Planen */
  --c2: #e2622f; --c2-soft: #ffe9df;   /* Begleiten */
  --c3: #0f9a72; --c3-soft: #daf5eb;   /* Beurteilen */
  --c4: #c98a00; --c4-soft: #fdf1d4;   /* Ausbilderwissen */
  --ok: #0f9a72; --ok-soft: #daf5eb; --bad: #b8452c; --bad-soft: #f8e2db; --warn: #c98a00; --warn-soft: #fdf1d4;
  --ph: var(--c0); --ph-soft: var(--c0-soft); --on-ph: #ffffff;
  --shadow: 0 1px 2px rgba(21,26,45,.05), 0 6px 22px rgba(21,26,45,.06);
  --shadow-hi: 0 2px 4px rgba(21,26,45,.06), 0 14px 34px rgba(21,26,45,.10);
  --radius: 22px;
  --f-head: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1120; --surface: #171b2e; --surface2: #21263d; --ink: #eef0f8; --muted: #a3a9c2; --line: #2a3050;
  --c0: #9ea6ff; --c0-soft: #262b52; --c1: #8d9bff; --c1-soft: #232a55; --c2: #ff9466; --c2-soft: #44261b;
  --c3: #4fd3a6; --c3-soft: #16382d; --c4: #f2c14e; --c4-soft: #3b3018; --on-ph: #0e1120;
  --ok: #4fd3a6; --ok-soft: #16382d; --bad: #ee8468; --bad-soft: #46251d; --warn: #f2c14e; --warn-soft: #3b3018;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 22px rgba(0,0,0,.25); --shadow-hi: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0e1120; --surface: #171b2e; --surface2: #21263d; --ink: #eef0f8; --muted: #a3a9c2; --line: #2a3050;
  --c0: #9ea6ff; --c0-soft: #262b52; --c1: #8d9bff; --c1-soft: #232a55; --c2: #ff9466; --c2-soft: #44261b;
  --c3: #4fd3a6; --c3-soft: #16382d; --c4: #f2c14e; --c4-soft: #3b3018; --on-ph: #0e1120;
  --ok: #4fd3a6; --ok-soft: #16382d; --bad: #ee8468; --bad-soft: #46251d; --warn: #f2c14e; --warn-soft: #3b3018;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 22px rgba(0,0,0,.25); --shadow-hi: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4);
  color-scheme: dark;
}
body[data-phase="planen"], .e-planen { --ph: var(--c1); --ph-soft: var(--c1-soft); }
body[data-phase="begleiten"], .e-begleiten { --ph: var(--c2); --ph-soft: var(--c2-soft); }
body[data-phase="beurteilen"], .e-beurteilen { --ph: var(--c3); --ph-soft: var(--c3-soft); }
body[data-phase="wissen"], .e-wissen { --ph: var(--c4); --ph-soft: var(--c4-soft); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, .zahl { font-family: var(--f-head); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; font-weight: 750; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--ph); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--c4); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

#shell { min-height: 100dvh; }
#view { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; outline: none; min-width: 0; }
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); }
@media (prefers-reduced-transparency: reduce) { #nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
#nav .desk { display: none; } #nav .mob { display: flex; justify-content: space-around; }
#nav .mob a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; }
#nav a svg { width: 24px; height: 24px; flex: none; }
#nav .mob a.on { color: var(--ph); }
#nav .mob a.on::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--ph); }
@media (min-width: 900px) {
  #shell { display: grid; grid-template-columns: 272px 1fr; }
  #nav { position: sticky; top: 0; height: 100dvh; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; border-right: 1px solid var(--line); overflow-y: auto; padding: 22px 16px; }
  #nav .mob { display: none; } #nav .desk { display: grid; gap: 6px; }
  #nav .brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem/1.2 var(--f-head); padding: 0 10px 16px; }
  #nav .brand img { border-radius: 10px; }
  #nav .brand small { display: block; font: 500 .75rem/1.3 -apple-system, sans-serif; color: var(--muted); }
  #nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: .95rem; border-radius: 14px; transition: background .15s ease, color .15s ease; }
  #nav a:hover { background: var(--surface2); color: var(--ink); }
  #nav a.top.on { background: var(--ph-soft); color: var(--ph); }
  #nav .faden { position: relative; display: grid; gap: 14px; margin: 10px 0; padding: 4px 0; }
  #nav .faden::before { content: ""; position: absolute; left: 22px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(var(--c1), var(--c2), var(--c3)); opacity: .9; }
  #nav .etappe { position: relative; display: grid; gap: 2px; }
  #nav .etkopf { display: flex; align-items: center; gap: 12px; padding: 4px 10px; }
  #nav .etkopf .etnr { width: 28px; height: 28px; box-shadow: 0 0 0 4px var(--surface); position: relative; z-index: 1; }
  #nav .etkopf b { display: block; font-family: var(--f-head); font-size: .98rem; color: var(--ink); }
  #nav .etkopf small { display: block; font-size: .74rem; color: var(--muted); }
  #nav .etappe a.sub { margin-left: 34px; padding: 7px 12px; font-size: .92rem; }
  #nav .etappe a.sub svg { width: 20px; height: 20px; }
  #nav .etappe a.sub.on { background: var(--ph-soft); color: var(--ph); }
  #nav .etappe.aktiv .etkopf .etnr { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px color-mix(in srgb, var(--ph) 30%, transparent); }
  #view { padding: 40px 36px 60px; width: 100%; }
}
.etnr { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ph); color: var(--on-ph); font: 800 .8rem/1 var(--f-head); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ph); }
.subnav { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface2); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: 1; text-align: center; white-space: nowrap; padding: 8px 12px; border-radius: 11px; font-size: .88rem; font-weight: 650; color: var(--muted); }
.subnav a.on { background: var(--surface); color: var(--ph); box-shadow: var(--shadow); }
@media (min-width: 900px) { .subnav.nurmob { display: none; } }

.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; } .wrap { flex-wrap: wrap; }
.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; } .right { margin-left: auto; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; }
.head { margin-bottom: 22px; display: grid; gap: 6px; }
.head > p.muted { max-width: 68ch; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 10px; padding: 4px 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
a.card, button.card { display: block; text-align: left; width: 100%; transition: transform .18s ease, box-shadow .18s ease; }
a.card:hover, button.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.card > h2, .card > h3 { margin-bottom: 10px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 699px) { .grid.c4 { grid-template-columns: 1fr 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ph); color: var(--on-ph); font-weight: 650; white-space: nowrap;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ph) 30%, transparent); transition: transform .12s ease, filter .12s ease; }
.btn:active { transform: scale(.97); } .btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--ph); border: 1.5px solid color-mix(in srgb, var(--ph) 28%, var(--line)); box-shadow: none; }
.btn.klein { min-height: 34px; padding: 0 14px; font-size: .86rem; }
.btn.gefahr { background: var(--bad); color: #fff; box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--surface2); font-size: .8rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.chip.on { background: var(--ph); color: var(--on-ph); }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ph { background: var(--ph-soft); color: var(--ph); }
button.chip { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ph); border-radius: 99px; }
.ico { width: 46px; height: 46px; flex: none; border-radius: 16px; background: var(--ph-soft); color: var(--ph); display: grid; place-items: center; font: 800 1.05rem/1 var(--f-head); }
.ico svg { width: 24px; height: 24px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 4px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .arrow { color: var(--muted); transition: transform .15s ease; }
.item:hover .arrow { color: var(--ph); transform: translateX(3px); }
.stat { display: grid; gap: 2px; } .stat b { font: 800 1.9rem/1.1 var(--f-head); } .stat span { color: var(--muted); font-size: .86rem; }
.leer { padding: 26px 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.hinweis { padding: 12px 14px; border-radius: 14px; background: var(--ph-soft); font-size: .9rem; }
.hinweis.warn { background: var(--warn-soft); } .hinweis.bad { background: var(--bad-soft); }
.beleg { font-size: .8rem; color: var(--muted); }
.naechster { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, var(--ph-soft), color-mix(in srgb, var(--ph-soft) 30%, var(--surface))); border: 1.5px solid color-mix(in srgb, var(--ph) 25%, transparent); }
.naechster small { font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ph); display: block; }
.weiter { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(120deg, var(--ph-soft), var(--surface) 75%); border: 1.5px dashed color-mix(in srgb, var(--ph) 45%, transparent); }
.weiter small { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ph); }
.pfad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pfad a { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--ph-soft); }
.pfad a b { font-family: var(--f-head); } .pfad a span { font-size: .84rem; color: var(--muted); }
@media (max-width: 699px) { .pfad { grid-template-columns: 1fr; } }

/* Formulare */
label.f { display: grid; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; width: 100%; min-height: 42px; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ph); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--ph); flex: none; }
input[type=range] { padding: 0; border: 0; min-height: 28px; accent-color: var(--ph); background: transparent; }
.form { display: grid; gap: 12px; }
@media (min-width: 700px) { .form.c2 { grid-template-columns: 1fr 1fr; } .form.c3 { grid-template-columns: repeat(3, 1fr); } .form .voll { grid-column: 1 / -1; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }

/* Tabellen */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface2); font-weight: 650; white-space: nowrap; } tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Dialog */
#overlay { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 45%, transparent); display: grid; place-items: end center; overflow-y: auto; }
@media (min-width: 700px) { #overlay { place-items: center; padding: 24px; } }
.dialog { background: var(--bg); width: 100%; max-width: 760px; max-height: 94dvh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-hi); }
.dialog.breit { max-width: 980px; }
@media (min-width: 700px) { .dialog { border-radius: 24px; padding: 26px; } }
.dialog-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.close { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); flex: none; font-size: 1.1rem; box-shadow: var(--shadow); }
.dialog-foot { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-hi); max-width: 92vw; }

/* Einsatzplan */
.plan { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.plan table { font-size: .78rem; border-collapse: separate; border-spacing: 0; }
.plan th, .plan td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 46px; height: 40px; text-align: center; vertical-align: middle; }
.plan th { padding: 4px 2px; font-weight: 600; }
.plan th.heute { background: var(--ph); color: var(--on-ph); }
.plan .name { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; max-width: 170px; text-align: left; padding: 4px 10px; font-size: .86rem; font-weight: 650; }
.plan td button { width: 100%; height: 100%; font-size: .72rem; font-weight: 700; padding: 0 2px; overflow: hidden; }
.plan td.frei button { color: var(--line); }
.plan td.wechsel { box-shadow: inset 3px 0 0 var(--ink); }
.b0 { background: #dfe5ff; color: #25307a; } .b1 { background: #ffe1d3; color: #7a2e10; } .b2 { background: #d5f3e7; color: #0a5a43; } .b3 { background: #fdeec4; color: #6b4a00; }
.b4 { background: #ecdcff; color: #4b2390; } .b5 { background: #d3f0f7; color: #0b5567; } .b6 { background: #ffdbe6; color: #7d1f41; } .b7 { background: #e3e7d0; color: #47521d; }
.bschule { background: repeating-linear-gradient(45deg, var(--surface2), var(--surface2) 5px, var(--surface) 5px, var(--surface) 10px); color: var(--muted); }
.burlaub { background: var(--surface2); color: var(--muted); }
.legende { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.legende span { padding: 3px 10px; border-radius: 8px; font-weight: 650; }

/* Skalen und Auswertung */
.skala { display: grid; gap: 14px; }
.skala .frage { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.skala .frage b { font-size: .86rem; color: var(--ph); }
.skala .regler { display: flex; align-items: center; gap: 10px; }
.skala .regler output { font: 800 1rem/1 var(--f-head); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.skala .enden { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.noten { display: flex; gap: 6px; flex-wrap: wrap; }
.noten label { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; background: var(--surface2); font-weight: 700; cursor: pointer; position: relative; font-size: .9rem; }
.noten input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.noten label:has(input:checked) { background: var(--ph); color: var(--on-ph); }
.noten label:has(input:focus-visible) { outline: 3px solid var(--c4); }
.balken { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 48px; gap: 10px; align-items: center; font-size: .86rem; padding: 4px 0; }
.balken .spur { position: relative; height: 12px; border-radius: 99px; background: var(--surface2); }
.balken .spur i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ph); }
.balken .spur u { position: absolute; top: -4px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); }
.balken .wert { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
svg.diagramm { width: 100%; height: auto; display: block; }
svg.diagramm text { fill: var(--muted); font-size: 11px; font-family: inherit; }
svg.diagramm .gitter { stroke: var(--line); fill: none; }
.rang { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ph-soft); color: var(--ph); font: 800 1rem/1 var(--f-head); flex: none; }
.phasen { display: grid; gap: 0; border-left: 3px solid var(--ph); margin-left: 6px; }
.phasen > div { padding: 4px 0 14px 16px; position: relative; display: grid; gap: 6px; }
.phasen > div::before { content: ""; position: absolute; left: -8.5px; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--ph); border: 3px solid var(--bg); }
ul.liste { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
details.klapp { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
details.klapp > summary { cursor: pointer; padding: 14px 16px; font-weight: 650; list-style: none; display: flex; gap: 10px; align-items: center; }
details.klapp > summary::-webkit-details-marker { display: none; }
details.klapp > summary::after { content: "›"; margin-left: auto; color: var(--muted); transition: transform .15s; font-size: 1.2rem; }
details.klapp[open] > summary::after { transform: rotate(90deg); }
details.klapp > div { padding: 0 16px 16px; display: grid; gap: 10px; }
.antwort { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); }
.antwort.richtig { border-color: var(--ok); background: var(--ok-soft); } .antwort.falsch { border-color: var(--bad); background: var(--bad-soft); }
.qr { font: 600 .82rem/1.4 ui-monospace, Menlo, monospace; word-break: break-all; padding: 8px 10px; border-radius: 10px; background: var(--surface2); user-select: all; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Druck: Ausbildungsnachweis, Beurteilung, Auswertung */
.nur-druck { display: none; }
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  #nav, .nicht-druck, #toast, .back, .subnav, .btn { display: none !important; }
  #shell { display: block; } #view { padding: 0; max-width: none; }
  #overlay { position: static; background: none; display: block; overflow: visible; padding: 0; }
  body.dialog-offen #shell { display: none; }
  .dialog { max-width: none; max-height: none; overflow: visible; box-shadow: none; padding: 0; background: #fff; }
  .card, .skala .frage, details.klapp { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .nur-druck { display: block; }
  .unterschrift { margin-top: 14mm; border-top: 1px solid #000; padding-top: 2mm; font-size: 9pt; }
  th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   TalentNeXt – Erscheinungsbild (18.11.2026)
   Nachtblaue Navigation, Verlauf Violett → Koralle als Markenzeichen, große Zahlen im Verlauf,
   weiche Glasflächen. Die Etappenfarben bleiben und stehen weiter immer mit Nummer und Text.
   ===================================================================== */
:root {
  --bg: #f3f2fa; --ink: #14122b; --muted: #625f80; --line: #e4e2f1; --surface2: #edebf7;
  --c0: #5b4bff; --c0-soft: #ebe8ff; --c1: #3f6bff; --c1-soft: #e3ebff; --c2: #ff5c7a; --c2-soft: #ffe6eb;
  --c3: #00a884; --c3-soft: #d9f6ee; --c4: #e39a00; --c4-soft: #fdf0d2;
  --marke: linear-gradient(120deg, #5b4bff 0%, #b14bff 45%, #ff5c7a 100%);
  --nacht: #141230; --nacht2: #1f1c47; --nacht-ink: #f1efff; --nacht-muted: #a8a4d6;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(30,20,90,.05), 0 10px 30px rgba(60,40,160,.08);
  --shadow-hi: 0 2px 6px rgba(30,20,90,.08), 0 20px 46px rgba(60,40,160,.16);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0c0b1d; --surface: #17152f; --surface2: #211e42; --ink: #f1efff; --muted: #a8a4d6; --line: #2c2957;
  --c0: #9d92ff; --c0-soft: #2a2560; --c1: #86a5ff; --c1-soft: #1f2b5c; --c2: #ff8aa0; --c2-soft: #4a1f2b;
  --c3: #4fe0bd; --c3-soft: #123c33; --c4: #ffc857; --c4-soft: #40320f; --nacht: #0f0e25; --nacht2: #1a1840;
} }
body { background: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--c2) 9%, transparent), transparent 60%), radial-gradient(900px 500px at 20% -20%, color-mix(in srgb, var(--c0) 10%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
h1 { letter-spacing: -.03em; }
.head h1 { background: var(--marke); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.card { border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.btn { background: var(--marke); color: #fff; box-shadow: 0 6px 18px rgba(120,70,255,.32); }
.btn.ghost { background: var(--surface); color: var(--c0); border: 1.5px solid color-mix(in srgb, var(--c0) 30%, var(--line)); box-shadow: none; }
.btn.gefahr { background: var(--bad); box-shadow: none; }
.stat b { background: var(--marke); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.3rem; }
.stat b.f-bad { background: none; color: var(--bad); } .stat b.f-warn { background: none; color: var(--warn); } .stat b.f-ok { background: none; color: var(--ok); }
.naechster { background: var(--marke); border: 0; color: #fff; box-shadow: 0 16px 40px rgba(120,70,255,.28); position: relative; overflow: hidden; }
.naechster::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.naechster small, .naechster .muted { color: rgba(255,255,255,.82); }
.naechster .btn { background: #fff; color: #5b4bff; box-shadow: none; position: relative; z-index: 1; }
.ico { background: linear-gradient(135deg, var(--ph-soft), color-mix(in srgb, var(--ph-soft) 40%, var(--surface))); }
.rang { background: var(--marke); color: #fff; }
.bar > i { background: var(--marke); }
.chip.on { background: var(--marke); color: #fff; }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #ff5c7a; color: #fff; font: 800 .75rem/22px var(--f-head); text-align: center; }
a.hinweis { display: flex; }
.subnav a.on { color: var(--c0); }
@media (min-width: 900px) {
  #nav { background: linear-gradient(180deg, var(--nacht), var(--nacht2)); border-right: 0; color: var(--nacht-ink); }
  #nav .brand { color: #fff; font-size: 1.3rem; letter-spacing: -.02em; }
  #nav .brand small { color: var(--nacht-muted); }
  #nav a { color: var(--nacht-muted); }
  #nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
  #nav a.top.on, #nav .etappe a.sub.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--ph); }
  #nav .etkopf b { color: #fff; } #nav .etkopf small { color: var(--nacht-muted); }
  #nav .etkopf .etnr { box-shadow: 0 0 0 4px var(--nacht); }
  #nav .etappe.aktiv .etkopf .etnr { box-shadow: 0 0 0 4px var(--nacht), 0 0 0 7px color-mix(in srgb, var(--ph) 45%, transparent); }
  #nav .e-planen { --ph: #86a5ff; } #nav .e-begleiten { --ph: #ff8aa0; } #nav .e-beurteilen { --ph: #4fe0bd; } #nav .e-wissen { --ph: #ffc857; }
  #nav .etnr { color: #141230; }
}
#nav .mob a.on { color: var(--c0); } #nav .mob a.on::before { background: var(--marke); }
@media print { .head h1, .stat b { color: #000; background: none; } body { background: #fff; } }

/* Ferien im Einsatzplan */
.plan th.ferien, .legende .ferien { background: var(--c4-soft); color: var(--c4); }
.plan th .fmark { font-size: .62rem; font-weight: 700; }

/* ---------- Abwesenheit, Countdown, Lernbereich ---------- */
.bkrank { background: var(--bad-soft); color: var(--bad); } .babwesend { background: var(--warn-soft); color: var(--warn); }
.countdown { display: flex; align-items: center; gap: 16px; }
.countdown .tage { min-width: 92px; text-align: center; padding: 10px 14px; border-radius: 18px; background: var(--marke); color: #fff; font-weight: 800; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .tage small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; opacity: .9; }
.countdown.bald .tage { background: linear-gradient(135deg, #ff6b6b, #ff9a5a); }
.level { display: grid; gap: 10px; padding: 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--nacht, #14143a), #3a2f9e 60%, #7846ff); }
.level .zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.level .lv { font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.level .xp { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; } .level .xp small { font-size: .9rem; font-weight: 600; opacity: .8; }
.level .bar { background: rgba(255,255,255,.18); } .level .bar i { background: linear-gradient(90deg, #9d8cff, #ff8f7a); }
.level .werte { display: flex; gap: 18px; flex-wrap: wrap; font-size: .86rem; opacity: .92; }
.quizkopf { display: flex; align-items: center; gap: 12px; } .quizkopf .bar { flex: 1; }
.quizfrage { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 6px 0 4px; }
.optionen { display: grid; gap: 10px; }
.optionen button { text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: transform .12s, border-color .12s; }
.optionen button:hover:not(:disabled) { border-color: var(--ph); transform: translateY(-1px); }
.optionen button b { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface2); font-size: .85rem; }
.optionen button.richtig { border-color: var(--ok); background: var(--ok-soft); } .optionen button.richtig b { background: var(--ok); color: #fff; }
.optionen button.falsch { border-color: var(--bad); background: var(--bad-soft); animation: wackeln .35s; } .optionen button.falsch b { background: var(--bad); color: #fff; }
.optionen button:disabled { cursor: default; opacity: .95; }
.xpplus { display: inline-block; font-weight: 800; color: var(--ph); animation: hoch .7s ease-out; }
.punkte { display: flex; gap: 5px; flex-wrap: wrap; } .punkte i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); } .punkte i.ok { background: var(--ok); } .punkte i.nein { background: var(--bad); } .punkte i.jetzt { outline: 2px solid var(--ph); outline-offset: 2px; }
.sterne { letter-spacing: 2px; color: var(--ph); font-size: .9rem; }
.erfolg { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); } .erfolg.aus { opacity: .45; }
.erfolg .marke { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--marke); color: #fff; font-weight: 800; font-size: .8rem; } .erfolg.aus .marke { background: var(--surface2); color: var(--muted); }
.party { position: fixed; inset: 0; pointer-events: none; z-index: 59; overflow: hidden; }
.party i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; animation: fallen 2.2s ease-in forwards; }
@keyframes fallen { to { top: 105%; rotate: 540deg; } }
@keyframes wackeln { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes hoch { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .party { display: none; } .optionen button.falsch, .xpplus { animation: none; } }

/* ---------- Prüfungssimulation ---------- */
.optionen button.gewaehlt { border-color: var(--ph); background: var(--ph-soft); } .optionen button.gewaehlt b { background: var(--ph); color: #fff; }
.simnav { display: flex; flex-wrap: wrap; gap: 6px; }
.simnav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.simnav button.da { background: var(--ph-soft); border-color: transparent; font-weight: 700; } .simnav button.jetzt { outline: 2px solid var(--ph); outline-offset: 1px; }
#uhr { font-variant-numeric: tabular-nums; font-size: .95rem; padding: 6px 12px; } #uhr.bad { background: var(--bad); color: #fff; }

/* ---------- Logo ---------- */
#nav .brand img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 6px 18px rgba(120, 70, 255, .45), 0 0 0 1px rgba(255, 255, 255, .14); }
.markemobil { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 1.1rem/1.15 var(--f-head); letter-spacing: -.01em; }
.markemobil img { width: 36px; height: 36px; border-radius: 10px; flex: none; box-shadow: 0 4px 12px rgba(120, 70, 255, .35); }
.markemobil small { display: block; font: 500 .74rem/1.3 -apple-system, sans-serif; color: var(--muted); }
@media (min-width: 900px) { .markemobil { display: none; } }
@media print { .markemobil { display: none; } }

/* =====================================================================
   Mobili-Design (21.11.2026) – angeglichen an die Einarbeitungsmappe und den Prozessordner
   Dunkelblau (#1c465e) und Weinrot (#9e2a3a) aus dem Logo, Rosé für Titel, Grautöne für Flächen,
   Schrift Avenir Next, kleine Radien, keine Farbverläufe. Etappenfarben bleiben je mit Nummer und Text.
   ===================================================================== */
:root {
  --navy: #1c465e; --navy2: #5d7c8c; --rot: #9e2a3a; --rose: #c6939c;
  --bg: #f4f5f6; --surface: #ffffff; --surface2: #eceef0; --ink: #23323c; --muted: #5d6b75; --line: #d9dcdf;
  --c0: #1c465e; --c0-soft: #e3eaee; --c1: #2f5574; --c1-soft: #e2e9f0; --c2: #9e2a3a; --c2-soft: #f6e7ea;
  --c3: #3f6b4f; --c3-soft: #e3eee6; --c4: #8a6d3b; --c4-soft: #f3ece0;
  --ok: #3f6b4f; --ok-soft: #e3eee6; --bad: #9e2a3a; --bad-soft: #f6e7ea; --warn: #9a6a12; --warn-soft: #f6eedd;
  --marke: #1c465e; --nacht: #1c465e; --nacht2: #1c465e; --nacht-ink: #ffffff; --nacht-muted: #c3d0d7;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28,70,94,.06); --shadow-hi: 0 2px 8px rgba(28,70,94,.12);
  --f-head: "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1a21; --surface: #16242d; --surface2: #1e2f39; --ink: #e9eef1; --muted: #a3b2bb; --line: #2a3c47;
  --c0: #8fb3c7; --c0-soft: #1f3341; --c1: #9cb8d0; --c1-soft: #1f3142; --c2: #e08b97; --c2-soft: #3d2328;
  --c3: #8fc1a0; --c3-soft: #1d3326; --c4: #d6b97f; --c4-soft: #3a3020;
  --ok: #8fc1a0; --ok-soft: #1d3326; --bad: #e08b97; --bad-soft: #3d2328; --warn: #d6b97f; --warn-soft: #3a3020;
  --marke: #8fb3c7; --nacht: #102331; --nacht2: #102331; --nacht-muted: #a3b2bb;
} }
:root[data-theme="dark"] {
  --bg: #0f1a21; --surface: #16242d; --surface2: #1e2f39; --ink: #e9eef1; --muted: #a3b2bb; --line: #2a3c47;
  --c0: #8fb3c7; --c0-soft: #1f3341; --c1: #9cb8d0; --c1-soft: #1f3142; --c2: #e08b97; --c2-soft: #3d2328;
  --c3: #8fc1a0; --c3-soft: #1d3326; --c4: #d6b97f; --c4-soft: #3a3020;
  --ok: #8fc1a0; --ok-soft: #1d3326; --bad: #e08b97; --bad-soft: #3d2328; --warn: #d6b97f; --warn-soft: #3a3020;
  --marke: #8fb3c7; --nacht: #102331; --nacht2: #102331; --nacht-muted: #a3b2bb;
}
body { background: var(--bg); font-family: "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, .zahl { font-family: var(--f-head); letter-spacing: 0; }
h2 { color: var(--c0); font-weight: 700; }
.head .eyebrow { color: var(--rose); letter-spacing: .08em; }
.head h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--c2); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; }
.card { border: 1px solid var(--line); box-shadow: none; border-radius: var(--radius); }
.btn { background: var(--c0); color: #fff; box-shadow: none; border-radius: 4px; font-weight: 600; }
.btn:hover { background: var(--rot); }
.btn.ghost { background: var(--surface); color: var(--c0); border: 1.2px solid var(--c0); }
.btn.ghost:hover { background: var(--c0-soft); }
.btn.gefahr { background: var(--bad); }
.chip { border-radius: 3px; }
.chip.on { background: var(--c0); color: #fff; }
.stat b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--c0); font-weight: 600; }
.naechster { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--rot); box-shadow: none; border-radius: var(--radius); }
.naechster::after { display: none; }
.naechster small, .naechster .muted { color: var(--muted); }
.naechster .btn { background: var(--c0); color: #fff; }
.weiter { background: var(--c0-soft); border-radius: var(--radius); }
.ico { background: var(--c0-soft); color: var(--c0); border-radius: 4px; }
.rang { background: var(--c0); color: #fff; }
.bar, .balken .spur { border-radius: 2px; } .bar > i, .balken .spur i { background: var(--c0); border-radius: 2px; }
.badge { background: var(--rot); border-radius: 3px; }
.subnav { border-radius: 4px; } .subnav a { border-radius: 3px; } .subnav a.on { color: var(--c0); background: var(--surface); box-shadow: inset 0 -2px 0 var(--rot); }
.hinweis { border-radius: 0; border-left: 3px solid var(--c0); }
.hinweis.warn { border-left-color: var(--warn); } .hinweis.bad { border-left-color: var(--bad); }
input, select, textarea, .tbl, .plan, details.klapp, .antwort, .optionen button, .skala .frage, .noten label, .erfolg, .simnav button, .leer { border-radius: 4px; }
details.klapp, .skala .frage { box-shadow: none; border: 1px solid var(--line); }
.tbl th, .plan th { background: var(--surface2); }
.dialog { border-radius: 8px 8px 0 0; } @media (min-width: 700px) { .dialog { border-radius: 8px; } }
.close { box-shadow: none; border: 1px solid var(--line); }
.countdown .tage { background: var(--c0); border-radius: 4px; } .countdown.bald .tage { background: var(--rot); }
.level { background: var(--c0); border-radius: var(--radius); } .level .bar i { background: #fff; }
.erfolg .marke { background: var(--c0); border-radius: 3px; }
.pfad a { border-radius: 4px; }
:focus-visible { outline-color: var(--rot); border-radius: 2px; }
@media (min-width: 900px) {
  #nav { background: var(--nacht); }
  #nav .brand { font-weight: 600; letter-spacing: .02em; }
  #nav a { border-radius: 3px; }
  #nav a.top.on, #nav .etappe a.sub.on { background: rgba(255,255,255,.10); box-shadow: inset 3px 0 0 var(--rose); }
  #nav .faden::before { background: rgba(255,255,255,.25); }
  #nav .e-planen { --ph: #9cc0d6; } #nav .e-begleiten { --ph: #e6a3ad; } #nav .e-beurteilen { --ph: #a9d1b5; } #nav .e-wissen { --ph: #e2c890; }
  #nav .etnr { color: #102331; }
}
#nav .brand img, .markemobil img { border-radius: 6px; box-shadow: none; }
#nav .mob a.on { color: var(--c0); } #nav .mob a.on::before { background: var(--rot); }
.b0 { background: #e3eaee; color: #1c465e; } .b1 { background: #f6e7ea; color: #7a2030; } .b2 { background: #e3eee6; color: #2f5a3d; } .b3 { background: #f3ece0; color: #6d5326; }
.b4 { background: #e9e4ef; color: #4a3a63; } .b5 { background: #e1edf1; color: #2b5866; } .b6 { background: #f3e3e8; color: #7d2f45; } .b7 { background: #eceee2; color: #4f5530; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost):not(.gefahr), :root:not([data-theme="light"]) .chip.on, :root:not([data-theme="light"]) .rang, :root:not([data-theme="light"]) .erfolg .marke, :root:not([data-theme="light"]) .countdown .tage, :root:not([data-theme="light"]) .level { color: #0f1a21; } :root:not([data-theme="light"]) .level .bar i { background: #0f1a21; } :root:not([data-theme="light"]) .level .bar { background: rgba(0,0,0,.15); } }
:root[data-theme="dark"] .btn:not(.ghost):not(.gefahr), :root[data-theme="dark"] .chip.on, :root[data-theme="dark"] .rang, :root[data-theme="dark"] .erfolg .marke, :root[data-theme="dark"] .countdown .tage, :root[data-theme="dark"] .level { color: #0f1a21; } :root[data-theme="dark"] .level .bar i { background: #0f1a21; }
@media print { .head h1 { color: #000; } }

/* ---------- Logo im Mobili-Stil (Ringe + NeXtTalent) ---------- */
#nav .brand { display: block; }
#nav .brand img.logo { width: 100%; max-width: 200px; height: auto; border-radius: 0; box-shadow: none; display: block; }
#nav .brand small { display: block; margin-top: 4px; padding-left: 2px; color: var(--nacht-muted); font-size: .76rem; }
.markemobil { display: block; }
@media (min-width: 900px) { .markemobil { display: none; } }
@media print { .markemobil { display: none; } }
.markemobil img.logo { width: 190px; height: auto; border-radius: 0; box-shadow: none; display: block; }
.markemobil small { margin-top: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .markemobil img.logo { content: url(logo-hell.svg); } }
:root[data-theme="dark"] .markemobil img.logo { content: url(logo-hell.svg); }

/* Anmeldeseite ohne Navigation */
body.ohne-nav #nav { display: none; }
@media (min-width: 900px) { body.ohne-nav #shell { grid-template-columns: 1fr; } }
