/* Betriebs-Assistent Vorschau, Version 4.
   Idee: Marine ist die Bühne (Kopf, Start, Ergebnis), Grün ist die gesparte Zeit. Die Arbeit des Assistenten
   liegt als helles Papier auf dem Tisch. Eine Aussage pro Bildschirm, große Zahlen, Balken für vorher und nachher.
   Raster: eine Spalte, max. 1120 px, 24 px Rand (16 px am Handy). Hauptknopf im Schritt 2 immer unten (Dock).
   Hell und dunkel folgen dem Gerät; ein gesetztes data-theme gewinnt. */
:root {
  --ground: #f3f6f5; --surface: #ffffff; --raised: #f6f9f8; --active: #e3f3ea;
  --border: #dde5e1; --rule: #e9efec; --control: #c4d0ca;
  --text: #0b1426; --muted: #475766; --faint: #5f6e7d;
  --accent: #16a34a; --accent-ink: #0f5a2e; --primary: #15803d; --primary-ink: #ffffff;
  --tint-50: #effaf3; --tint-100: #dcf3e5; --tint-200: #bde8cf;
  --warn-bg: #fffbeb; --warn-ink: #92400e; --warn-line: #fde68a;
  --shadow: 0 1px 2px rgba(11, 20, 38, 0.05), 0 16px 40px -20px rgba(11, 20, 38, 0.22);
  --r-card: 18px; --r-control: 12px; --gap: 16px; --pad: 26px; --wrap: 1120px; --gut: 24px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-d: "Sora", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
/* Marine-Bühne: Kopf und die beiden großen Bänder tragen immer die dunklen Werte. */
.band, .bar, :root[data-theme="dark"] {
  --ground: #070c18; --surface: #101a2e; --raised: #16223c; --active: #10301f;
  --border: #243352; --rule: #1b2742; --control: #3a4d72;
  --text: #f2f6fa; --muted: #b3bfce; --faint: #94a2b6;
  --accent: #1fdb6d; --accent-ink: #86efb2; --primary: #1fdb6d; --primary-ink: #04180d;
  --tint-50: #0f2a1c; --tint-100: #133622; --tint-200: #1b4a30;
  --warn-bg: #2a2210; --warn-ink: #f2c879; --warn-line: #5a4616;
  --shadow: none;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #070c18; --surface: #101a2e; --raised: #16223c; --active: #10301f;
    --border: #243352; --rule: #1b2742; --control: #3a4d72;
    --text: #f2f6fa; --muted: #b3bfce; --faint: #94a2b6;
    --accent: #1fdb6d; --accent-ink: #86efb2; --primary: #1fdb6d; --primary-ink: #04180d;
    --tint-50: #0f2a1c; --tint-100: #133622; --tint-200: #1b4a30;
    --warn-bg: #2a2210; --warn-ink: #f2c879; --warn-line: #5a4616;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/25px var(--font); -webkit-font-smoothing: antialiased; }
body[data-step="2"] { padding-bottom: 104px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--tint-200); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
main { outline: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
.band, .bar { background: var(--ground); color: var(--text); }

/* ---------- Kopfleiste ---------- */
.bar { position: sticky; top: 0; z-index: 12; border-bottom: 1px solid var(--border); }
.bar-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand b { font: 600 16px/20px var(--font-d); letter-spacing: -0.01em; }
.stepper { display: flex; gap: 6px; }
.stepper button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.stepper button:active:not([disabled]) { transform: scale(0.97); }
.stepper .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--control); display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--font-d); flex: none; }
.stepper .n svg { stroke: var(--primary-ink); }
.stepper button[aria-current="step"] { background: var(--surface); color: var(--text); }
.stepper button[aria-current="step"] .n { border-color: var(--accent); color: var(--accent); }
.stepper button.done .n { background: var(--accent); border-color: var(--accent); }
.stepper button[disabled] { cursor: default; opacity: 0.6; }
@media (hover: hover) and (pointer: fine) { .stepper button:not([disabled]):not([aria-current="step"]):hover { background: var(--rule); color: var(--text); } }
.prog { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 56px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--rule); }
.prog .t { color: var(--muted); white-space: nowrap; }
.prog .t b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pb { flex: 1; height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; min-width: 0; }
.pb i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #5eead4); transition: width 700ms var(--ease); }
.prog .g { display: inline-flex; align-items: baseline; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--active); border: 1px solid var(--tint-200); white-space: nowrap; color: var(--muted); line-height: 36px; }
.prog .g b { color: var(--accent); font: 600 18px/36px var(--font-d); font-variant-numeric: tabular-nums; }
.prog .g.bump { animation: bump 520ms var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.09); } 100% { transform: scale(1); } }

/* ---------- Bausteine ---------- */
h1 { font: 600 34px/42px var(--font-d); letter-spacing: -0.025em; text-wrap: balance; }
h2 { font: 600 19px/27px var(--font-d); letter-spacing: -0.01em; text-wrap: balance; }
.page { padding-top: 32px; padding-bottom: 56px; }
.lead { color: var(--muted); font-size: 18px; line-height: 28px; }
.label { display: block; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--pad); }
.stackv { display: flex; flex-direction: column; gap: var(--gap); }
.fine { color: var(--faint); font-size: 14px; line-height: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: var(--r-control); border: 1px solid var(--control); background: var(--surface); color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), filter 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn svg { stroke: currentColor; flex: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.xl { height: 64px; padding: 0 32px; font-size: 19px; border-radius: 16px; }
@media (hover: hover) and (pointer: fine) { .btn:hover { border-color: var(--faint); } .btn.primary:hover { filter: brightness(1.07); border-color: var(--primary); } }
.link { background: none; border: 0; padding: 0 6px; height: 44px; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }
.link:hover { color: var(--text); }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; flex: none; }
.chip.wait { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.chip.done { background: var(--tint-100); border-color: var(--tint-200); color: var(--accent-ink); }
.note { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-control); background: var(--tint-50); border: 1px solid var(--tint-200); color: var(--text); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Vorher und Nachher: zwei Balken, die größte Aussage der Seite */
.ba { display: flex; flex-direction: column; gap: 18px; }
.ba .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.ba .l { color: var(--muted); font-weight: 500; }
.ba b { font: 600 32px/38px var(--font-d); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ba .row.m b { color: var(--accent); }
.ba .tr { grid-column: 1 / -1; height: 14px; border-radius: 7px; background: var(--rule); overflow: hidden; }
.ba .tr i { display: block; height: 100%; border-radius: 7px; background: var(--control); transform-origin: left center; animation: grow 900ms var(--ease) 150ms both; }
.ba .row.m .tr i { background: var(--accent); animation-delay: 650ms; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- Schritt 1: Start ---------- */
.hero { padding: 72px 0 84px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 66px; letter-spacing: -0.035em; margin-top: 22px; }
.hl { color: var(--accent); }
.hero .lead { font-size: 19px; line-height: 30px; margin-top: 20px; max-width: 46ch; }
.hero .q { margin-top: 36px; font: 600 16px/24px var(--font); letter-spacing: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.opt { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 12px; border-radius: 999px; border: 1px solid var(--control); background: transparent; color: var(--text); transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease); }
.opt:active { transform: scale(0.98); }
.opt b { font-weight: 500; }
.opt .rd { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--control); display: flex; align-items: center; justify-content: center; flex: none; }
.opt .rd svg { stroke: var(--primary-ink); opacity: 0; }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--active); }
.opt[aria-checked="true"] b { font-weight: 600; }
.opt[aria-checked="true"] .rd { background: var(--accent); border-color: var(--accent); }
.opt[aria-checked="true"] .rd svg { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--faint); } .opt[aria-checked="true"]:hover { border-color: var(--accent); } }
.hero .btn.xl { margin-top: 28px; min-width: 280px; }
.hero .fine { margin-top: 12px; }
.daycard { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px; min-width: 0; }
.daycard .ba { margin-top: 18px; }
.save { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 19px; line-height: 29px; }
.save b { color: var(--accent); font-weight: 600; white-space: nowrap; }
.label.sub { margin-top: 22px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.facts li { background: var(--raised); border-radius: 12px; padding: 12px; min-width: 0; }
.facts b { display: block; font: 600 24px/30px var(--font-d); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; color: var(--muted); font-size: 13px; line-height: 17px; margin-top: 2px; }
.how { padding: 72px 0 16px; }
.how h2, .does h2 { font-size: 30px; line-height: 38px; letter-spacing: -0.025em; }
.how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.how li { border-top: 3px solid var(--accent); padding-top: 18px; }
.how .nr { display: block; font: 600 44px/48px var(--font-d); letter-spacing: -0.03em; color: var(--accent-ink); }
.how li b { display: block; font: 600 20px/28px var(--font-d); letter-spacing: -0.01em; margin-top: 10px; }
.how li p { color: var(--muted); margin-top: 6px; font-size: 17px; line-height: 26px; }
.does { padding: 56px 0 48px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags li { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.tags svg { stroke: var(--accent); flex: none; }
.does > .btn { margin-top: 32px; min-width: 260px; }
.names-d { display: block; margin-top: 20px; }
.names-d summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.names-d summary::-webkit-details-marker { display: none; }
.names-d summary svg { stroke: currentColor; transition: transform 200ms var(--ease); }
.names-d[open] summary svg { transform: rotate(90deg); }
.names { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 12px; margin-top: 8px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.field input[type="text"], .field input[type="number"] { width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-control); border: 1px solid var(--control); background: var(--surface); }

/* ---------- Schritt 2: Der Assistent arbeitet ---------- */
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-control); background: var(--tint-50); border: 1px solid var(--tint-200); margin-bottom: var(--gap); font-size: 17px; line-height: 26px; }
.tip svg { flex: none; margin-top: 5px; stroke: var(--accent); }
.event { padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.evhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px var(--pad) 0; flex-wrap: wrap; }
.evhead .mod { color: var(--muted); font-weight: 500; }
.evhead time { font-weight: 600; color: var(--text); margin-right: 10px; font-variant-numeric: tabular-nums; }
.evtitle { padding: 8px var(--pad) 0; }
.evtitle h2 { font-size: 28px; line-height: 36px; letter-spacing: -0.025em; }
.evbody { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; margin-top: 22px; border-top: 1px solid var(--rule); }
.evbody > div { padding: var(--pad); min-width: 0; }
.evbody > div + div { border-left: 1px solid var(--rule); background: var(--raised); }
.evbody .label { margin-bottom: 10px; }
.msg { background: var(--raised); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 14px 16px; }
.msg b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps { margin-top: 26px; }
.steps li { display: flex; gap: 10px; padding: 6px 0; }
.steps svg { flex: none; margin-top: 5px; stroke: var(--accent); }
.steps.anim li { opacity: 0; animation: rise 320ms var(--ease) forwards; animation-delay: calc(var(--i) * 300ms + 150ms); }
.anim-res { opacity: 0; animation: rise 360ms var(--ease) forwards; animation-delay: var(--d, 1200ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Papier: jedes Ergebnis liegt als eigenes Blatt da */
.art { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.art + .art { margin-top: 14px; }
.art h3 { font: 600 15px/22px var(--font); margin-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 500; padding: 0 8px 8px 0; }
.tbl td { padding: 9px 8px 9px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.tbl .r { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { border-top: 1px solid var(--control); font-weight: 600; }
.draft .hd { padding-bottom: 10px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.draft .hd b { color: var(--text); font-weight: 500; }
.draft .tx { padding-top: 12px; white-space: pre-wrap; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat .b { max-width: 88%; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--raised); border: 1px solid var(--border); }
.chat .b.a { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: var(--tint-100); border-color: var(--tint-200); }
.chat .b small { display: block; color: var(--muted); font-size: 13px; line-height: 17px; margin-bottom: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; }
.kv dt, .kv dd { padding: 8px 0; border-top: 1px solid var(--rule); }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.post { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
.post .ph { aspect-ratio: 4 / 5; background: var(--rule); border: 1px dashed var(--control); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; line-height: 17px; text-align: center; padding: 6px; }
.post .tags { display: block; color: var(--accent-ink); margin-top: 8px; }
.bar2 { display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; }
.done-line { margin-top: 16px; display: flex; gap: 8px; align-items: center; color: var(--accent-ink); font-weight: 500; }
.done-line svg { stroke: var(--accent); flex: none; }
/* Zeile mit der Ersparnis dieser Aufgabe */
.cmp { border-top: 1px solid var(--tint-200); padding: 20px var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: var(--tint-50); }
.cmp .rows { display: flex; flex-direction: column; gap: 10px; }
.cmp .row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.cmp .row span { color: var(--muted); font-weight: 500; }
.cmp .row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp .tr { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.cmp .tr i { display: block; height: 100%; border-radius: 5px; background: var(--control); }
.cmp .row.m .tr i { background: var(--accent); }
.cmp .won { text-align: right; }
.cmp .won span { display: block; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.cmp .won b { font: 600 32px/38px var(--font-d); letter-spacing: -0.03em; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Dock: der Hauptknopf sitzt immer hier ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -12px 32px -20px rgba(11, 20, 38, 0.28); padding-bottom: env(safe-area-inset-bottom); }
.dock:empty { display: none; }
.dock-in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); display: flex; align-items: center; gap: 16px; }
.dock .link { white-space: nowrap; }
.dock .hint { flex: 1; min-width: 0; color: var(--muted); font-size: 17px; }
.dock .hint b { color: var(--text); font-weight: 600; }
.dock .acts { display: flex; gap: 10px; align-items: center; flex: none; }
.dock .btn.primary { min-width: 230px; height: 56px; font-size: 18px; border-radius: 14px; }

/* ---------- Schritt 3: Ergebnis ---------- */
.result { padding: 64px 0 72px; text-align: center; }
.result-in { max-width: 820px; }
.result h1 { font-size: 30px; line-height: 38px; margin-top: 20px; }
.giant { font: 700 112px/116px var(--font-d); letter-spacing: -0.045em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; margin: 6px 0 32px; }
.result .ba { text-align: left; max-width: 600px; margin: 0 auto; }
.openrow { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.twin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 40px auto 0; max-width: 600px; text-align: left; }
.twin > div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; min-width: 0; }
.twin b { display: block; font: 600 36px/42px var(--font-d); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 4px 0; white-space: nowrap; }
.twin small { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
.cta2 { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--border); }
.cta2 h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.025em; }
.cta2 p { color: var(--muted); font-size: 18px; line-height: 28px; margin: 10px auto 0; max-width: 52ch; }
.cta2 .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cta2 .alt { margin-top: 16px; font-size: 16px; }
.cta2 .btn.xl { height: auto; min-height: 64px; padding: 14px 28px; white-space: normal; text-align: center; max-width: 100%; line-height: 24px; }
.kinote { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--tint-50); border: 1px solid var(--tint-200); color: var(--accent-ink); font-weight: 500; font-size: 15px; line-height: 22px; }
.kinote svg { flex: none; stroke: var(--accent); }
.more-h { font-size: 22px; line-height: 30px; margin: 8px 0 4px; }
.acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.acc > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; min-height: 76px; font: 600 19px/27px var(--font-d); letter-spacing: -0.01em; border-radius: var(--r-card); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary small { display: block; margin-top: 2px; font: 400 16px/23px var(--font); letter-spacing: 0; color: var(--muted); }
.acc > summary svg { flex: none; stroke: var(--faint); transition: transform 200ms var(--ease); }
.acc[open] > summary svg { transform: rotate(90deg); }
.acc .accb { padding: 4px 24px 24px; }
@media (hover: hover) and (pointer: fine) { .acc > summary:hover { background: var(--raised); } }
.calc2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.fields { display: flex; flex-direction: column; gap: 18px; }
.range { display: flex; align-items: center; gap: 12px; }
.range input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; height: 28px; }
.range output { min-width: 64px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.field .hint { color: var(--faint); font-size: 14px; margin-top: 4px; line-height: 20px; }
.rows2 { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; }
.rows2 dt, .rows2 dd { padding: 10px 0; border-top: 1px solid var(--rule); }
.rows2 dt:first-of-type, .rows2 dd:first-of-type { border-top: 0; }
.rows2 dt { color: var(--muted); }
.rows2 dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rows2 dd.big2 { font: 600 28px/34px var(--font-d); letter-spacing: -0.02em; color: var(--accent-ink); }
.sumtbl .bw { display: grid; grid-template-columns: 200px minmax(0, 1fr) 76px 76px 84px; gap: 12px; align-items: center; min-height: 44px; border-top: 1px solid var(--rule); }
.sumtbl .bw.hd { border-top: 0; min-height: 28px; color: var(--muted); font-size: 13px; }
.sumtbl .tr2 { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.sumtbl .tr2 i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.sumtbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sumtbl .n.g { font-weight: 600; }
.mods details { border-top: 1px solid var(--rule); }
.mods details:first-of-type { border-top: 0; }
.mods summary { display: grid; grid-template-columns: minmax(0, 1fr) 120px 20px; gap: 16px; align-items: center; min-height: 68px; padding: 10px 0; cursor: pointer; list-style: none; }
.mods summary::-webkit-details-marker { display: none; }
.mods summary b { display: block; font-weight: 600; }
.mods summary small { color: var(--muted); font-size: 15px; line-height: 21px; }
.mods summary .tm { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mods summary .tm b { display: block; color: var(--accent-ink); }
.mods summary .tm span { display: block; color: var(--faint); font-size: 13px; line-height: 17px; }
.mods summary svg { stroke: var(--faint); transition: transform 200ms var(--ease); }
.mods details[open] summary svg { transform: rotate(90deg); }
.mods .det { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 4px 0 20px; }
.mods .det h3 { font: 600 14px/20px var(--font); margin-bottom: 6px; }
.mods .det li { padding: 3px 0; color: var(--muted); }
.mods .det p { color: var(--muted); }
.safe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.safe li { display: flex; gap: 10px; }
.safe svg { flex: none; margin-top: 5px; stroke: var(--accent); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.flow li { padding-top: 12px; border-top: 3px solid var(--accent); }
.flow li b { display: block; font-weight: 600; margin-bottom: 4px; }
.flow li p { color: var(--muted); }
.price { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-control); background: var(--tint-50); border: 1px solid var(--tint-200); display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.price b { font: 600 22px/28px var(--font-d); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.again { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.foot { color: var(--faint); font-size: 14px; line-height: 20px; padding: 16px 0 40px; }
.foot a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 108px; transform: translate(-50%, 12px); background: #0b1426; color: #f2f6fa; border: 1px solid #1fdb6d; padding: 12px 18px; border-radius: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); z-index: 40; max-width: min(92vw, 520px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 48px; line-height: 54px; }
  .calc2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mods .det { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; --pad: 18px; }
  h1 { font-size: 28px; line-height: 35px; }
  .page { padding-top: 20px; padding-bottom: 40px; }
  .bar-in { gap: 10px; height: 58px; }
  .brand b { display: none; }
  .stepper { gap: 2px; }
  .stepper button { padding: 0 6px 0 4px; gap: 6px; }
  .stepper button:not([aria-current="step"]) .t { display: none; }
  .stepper button[aria-current="step"] { padding-right: 14px; }
  .prog { gap: 10px; height: 52px; }
  .prog .t { font-size: 15px; }
  .prog .g { padding: 0 12px; height: 34px; line-height: 32px; }
  .prog .g span { display: none; }
  .prog .g b { font-size: 16px; line-height: 32px; }
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 38px; line-height: 44px; margin-top: 18px; }
  .hero .lead { font-size: 17px; line-height: 27px; margin-top: 14px; }
  .hero .q { margin-top: 26px; }
  .opt { height: 46px; padding: 0 14px 0 10px; }
  .hero .btn.xl { width: 100%; min-width: 0; margin-top: 22px; }
  .hero .fine { text-align: center; }
  .daycard { padding: 20px; border-radius: 20px; }
  .ba b { font-size: 28px; line-height: 34px; }
  .save { font-size: 17px; line-height: 26px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { padding: 48px 0 8px; }
  .how h2, .does h2 { font-size: 26px; line-height: 33px; }
  .how ol { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; }
  .how .nr { font-size: 36px; line-height: 40px; }
  .does { padding: 44px 0 32px; }
  .tags li { height: 42px; padding: 0 14px 0 12px; font-size: 15px; }
  .does > .btn { width: 100%; min-width: 0; }
  .names { grid-template-columns: minmax(0, 1fr); }
  .tip { font-size: 16px; line-height: 24px; padding: 12px 14px; }
  .evtitle h2 { font-size: 22px; line-height: 29px; }
  .evbody { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .evbody > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .art { padding: 14px; }
  .tbl { font-size: 15px; }
  .post { grid-template-columns: 84px minmax(0, 1fr); }
  .cmp { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cmp .row { grid-template-columns: 108px minmax(0, 1fr) 68px; gap: 10px; }
  .cmp .won { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .cmp .won b { font-size: 26px; line-height: 32px; }
  .dock-in { flex-wrap: wrap; gap: 8px 12px; padding: 10px var(--gut) 12px; }
  .dock .hint { flex-basis: 100%; font-size: 15px; line-height: 21px; }
  .dock .acts { flex: 1; }
  .dock .link[data-act="auto"] { display: none; }
  .dock .acts .btn.primary { flex: 1; min-width: 0; height: 54px; }
  body[data-step="2"] { padding-bottom: 140px; }
  .toast { bottom: 146px; }
  .result { padding: 40px 0 48px; }
  .result h1 { font-size: 24px; line-height: 31px; margin-top: 16px; }
  .giant { font-size: 50px; line-height: 56px; margin: 8px 0 24px; }
  .twin { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .twin b { font-size: 32px; line-height: 38px; }
  .cta2 { margin-top: 36px; padding-top: 32px; }
  .cta2 h2 { font-size: 26px; line-height: 33px; }
  .cta2 p { font-size: 17px; line-height: 26px; }
  .cta2 .acts { flex-direction: column; }
  .cta2 .btn.xl { width: 100%; height: 60px; font-size: 18px; padding: 0 16px; }
  .acc > summary { padding: 14px 16px; font-size: 18px; line-height: 25px; }
  .acc .accb { padding: 2px 16px 18px; }
  .safe, .flow { grid-template-columns: minmax(0, 1fr); }
  .sumtbl .bw { grid-template-columns: minmax(0, 1fr) 62px 62px 70px; gap: 8px; }
  .sumtbl .bw .tr2, .sumtbl .bw.hd > span:nth-child(2) { display: none; }
  .mods summary { grid-template-columns: minmax(0, 1fr) 92px 20px; gap: 10px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 33px; line-height: 39px; }
  .giant { font-size: 43px; line-height: 50px; }
}
/* ---------- Tagesschiene und Aufgabenkarte ---------- */
.g0 { --gc: #2f6fe4; } .g1 { --gc: #0f9d6b; } .g2 { --gc: #e0651a; } .g3 { --gc: #7c4ddb; }
.daytl { padding: 22px var(--pad) 18px; margin-bottom: var(--gap); box-shadow: var(--shadow); }
.dt-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dt-hd h2 { font-size: 20px; line-height: 28px; }
.dt-left { padding: 5px 14px; border-radius: 999px; background: var(--tint-100); border: 1px solid var(--tint-200); color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rail { position: relative; }
.rail .track { position: absolute; top: 21px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 4px; border-radius: 2px; background: var(--rule); }
.rail .track i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #5eead4); transition: width 800ms var(--ease); }
.rail ol { position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.nd button { width: 100%; padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; color: inherit; border-radius: 12px; }
.nd button:not([disabled]) { cursor: pointer; }
.nd .b { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--control); color: var(--faint); transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.nd .ic24 { width: 22px; height: 22px; stroke: currentColor; }
.nd .ck { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); display: grid; place-items: center; transform: scale(0); transition: transform 300ms var(--ease); }
.nd .ck svg { stroke: #04180d; }
.nd time { font: 600 13px/18px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nd .nm { font-size: 11.5px; line-height: 15px; letter-spacing: -0.01em; color: var(--faint); text-align: center; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.nd.todo { opacity: 0.7; }
.nd.done .b { background: var(--gc); border-color: var(--gc); color: #fff; }
.nd.done .ck { transform: scale(1); }
.nd.wait .b { border-color: var(--gc); border-style: dashed; color: var(--gc); }
.nd.declined .b { background: var(--rule); border-style: dashed; }
.nd.cur .b { border-color: var(--gc); color: var(--gc); background: color-mix(in srgb, var(--gc) 16%, var(--surface)); transform: scale(1.14); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gc) 22%, transparent); animation: pulse 2.2s ease-in-out infinite; }
.nd.cur.done .b { background: var(--gc); color: #fff; }
.nd.cur time, .nd.cur .nm { color: var(--text); font-weight: 600; }
.nd.goal .b { border-style: dashed; }
.nd.goal.done .b { background: var(--accent); border-color: var(--accent); color: #04180d; border-style: solid; animation: pulse 2.2s ease-in-out infinite; }
.nd.goal.done .nm { color: var(--text); font-weight: 600; }
.nd.pop .b { animation: popin 520ms var(--ease); }
.nd.in { opacity: 0; animation: rise 420ms var(--ease) forwards; animation-delay: calc(var(--k) * 45ms); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gc, var(--accent)) 22%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--gc, var(--accent)) 6%, transparent); } }
@keyframes popin { 0% { transform: scale(0.8); } 55% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) { .nd button:not([disabled]):hover .b { transform: translateY(-2px); } .nd.cur button:hover .b { transform: scale(1.14) translateY(-2px); } }
.nd button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Aufgabenkarte: jede Gruppe hat ihre Farbe */
.event { position: relative; animation: cardin 420ms var(--ease) both; }
.event::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--gc, var(--accent)); }
@keyframes cardin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.evhead { flex-wrap: nowrap; align-items: center; gap: 14px; padding-top: 24px; }
.evic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--gc, var(--accent)) 14%, var(--surface)); color: var(--gc, var(--accent)); animation: popin 560ms var(--ease) 120ms both; }
.evic .ic24 { width: 28px; height: 28px; stroke: currentColor; }
.evwho { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.evk { color: var(--gc, var(--accent)); font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: 0.01em; }
.evk b { font-weight: 700; font-variant-numeric: tabular-nums; }
.evwho .mod { font-size: 18px; line-height: 26px; }
.evhead .chip { flex: none; }

/* Gesparte Zeit fliegt zur Anzeige */
.fly { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #04180d; font: 700 20px/26px var(--font-d); white-space: nowrap; box-shadow: 0 8px 24px -6px rgba(31, 219, 109, 0.6); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .steps.anim li, .anim-res { opacity: 1; }
}

/* ---------- Startseite unten: zeigen statt aufzählen ---------- */
.sec { padding: 72px 0 8px; }
.sec h2 { font-size: 34px; line-height: 42px; letter-spacing: -0.03em; }
.sec .sub { color: var(--muted); font-size: 18px; line-height: 28px; margin-top: 10px; max-width: 62ch; }
.sec .sub b { color: var(--accent-ink); font-weight: 600; }
.ic24 { width: 24px; height: 24px; stroke: currentColor; flex: none; }
/* Drei Schritte als kleine Bildschirme */
.flow3 { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); gap: 12px; align-items: stretch; margin-top: 32px; }
.flow3 .arr { align-self: center; justify-self: center; color: var(--accent-ink); }
.flow3 .arr svg { stroke: currentColor; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.stp { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/24px var(--font-d); letter-spacing: -0.01em; }
.stp i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #04180d; display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-d); font-style: normal; flex: none; }
.bub { background: var(--raised); border: 1px solid var(--border); border-radius: 4px 18px 18px 18px; padding: 14px 16px; }
.bub small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.bub b { display: block; font-weight: 600; margin-top: 2px; }
.bub p { margin-top: 4px; color: var(--text); }
.cap { color: var(--muted); font-size: 15px; line-height: 22px; margin-top: auto; }
.paper { background: var(--surface); border: 1px solid var(--control); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 24px -16px rgba(11, 20, 38, 0.4); }
.paper > b { display: block; font-weight: 600; font-size: 15px; line-height: 21px; margin-bottom: 8px; }
.paper li, .paper .sumr { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.paper li span:first-child { color: var(--muted); min-width: 0; }
.paper li span:last-child, .paper .sumr span:last-child { white-space: nowrap; }
.paper .sumr { border-top: 1px solid var(--control); font-weight: 600; }
.tk { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.tk li { display: flex; gap: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }
.tk svg { stroke: var(--accent); margin-top: 3px; flex: none; }
.okbox { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 4px; }
.fake { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 64px; border-radius: 16px; background: var(--primary); color: var(--primary-ink); font: 600 19px/1 var(--font); box-shadow: 0 14px 30px -16px var(--primary); }
.fake svg { stroke: currentColor; }
.okbox p { color: var(--accent-ink); font-weight: 600; }
.okbox { padding: 4px 0 0; gap: 10px; }
.won2 { margin-top: auto; background: var(--tint-50); border: 1px solid var(--tint-200); border-radius: 16px; padding: 16px; text-align: center; }
.won2 b { display: block; font: 700 40px/46px var(--font-d); letter-spacing: -0.035em; color: var(--accent-ink); }
.won2 span { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
/* Büroarbeit eines Montags als Balken, der schmilzt */
.load { margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.lrow span { color: var(--muted); font-weight: 500; }
.lrow b { font: 700 36px/42px var(--font-d); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrow.m { margin-top: 26px; }
.lrow.m b { color: var(--accent-ink); }
.stack { display: flex; gap: 3px; height: 56px; border-radius: 14px; overflow: hidden; }
.seg { display: flex; align-items: center; justify-content: center; min-width: 0; background: var(--seg0); color: var(--text); font-style: normal; animation: grow 900ms var(--ease) 200ms both; transform-origin: left center; }
.seg.s1 { background: var(--seg1); }
.seg.s2 { background: var(--seg2); }
.seg span { display: none; padding: 0 8px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.lab span { display: block; }
.stack.m { height: 56px; background: var(--rule); }
.stack.m i { display: block; height: 100%; border-radius: 14px; background: var(--accent); animation: grow 900ms var(--ease) 700ms both; transform-origin: left center; }
.gh { margin: 44px 0 16px; font: 600 22px/30px var(--font-d); letter-spacing: -0.02em; }
.grps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grp { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 22px 10px; min-width: 0; }
.grp h3 { font: 600 17px/24px var(--font-d); letter-spacing: -0.01em; color: var(--accent-ink); margin-bottom: 6px; }
.grp li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); }
.grp li:first-child { border-top: 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint-100); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.grp .tx b { display: block; font-weight: 600; }
.grp .tx small { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
.mn { text-align: right; white-space: nowrap; }
.mn b { display: block; font: 700 17px/22px var(--font-d); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.mn small { display: block; color: var(--faint); font-size: 12px; line-height: 16px; }
.mn.off small { font-size: 13px; color: var(--faint); padding: 4px 10px; border: 1px dashed var(--control); border-radius: 999px; }
/* Abschluss: dunkles Band mit einer Aufgabe */
.cta3 { margin-top: 72px; padding: 72px 0; text-align: center; }
.cta3-in { max-width: 760px; }
.cta3 h2 { font-size: 40px; line-height: 48px; letter-spacing: -0.035em; text-wrap: balance; }
.cta3 p { color: var(--muted); font-size: 18px; line-height: 28px; margin: 14px auto 0; max-width: 52ch; }
.cta3 .btn.xl { margin-top: 30px; min-width: 280px; }
.names-d { margin-top: 28px; }
.fehlt { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--tint-100); border: 1px dashed var(--accent); border-radius: 20px; padding: 28px 30px; }
.fehlt-tx { min-width: 0; max-width: 62ch; }
.fehlt h3 { font: 600 22px/30px var(--font-d); letter-spacing: -0.02em; }
.fehlt p { color: var(--text); font-size: 17px; line-height: 26px; margin-top: 8px; }
.fehlt p.fine { color: var(--muted); font-size: 15px; line-height: 22px; }
.fehlt .btn { flex: none; min-width: 240px; }
@media (max-width: 960px) {
  .flow3 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow3 .arr { transform: rotate(90deg); padding: 2px 0; }
  .grps { grid-template-columns: minmax(0, 1fr); }
  .fehlt { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 22px; }
  .fehlt .btn { width: 100%; min-width: 0; }
}
@media (max-width: 760px) {
  .sec { padding: 48px 0 0; }
  .sec h2 { font-size: 27px; line-height: 34px; }
  .sec .sub { font-size: 17px; line-height: 26px; }
  .mock { padding: 18px; border-radius: 18px; }
  .load { padding: 18px; border-radius: 18px; }
  .lrow { flex-direction: column; align-items: flex-start; gap: 0; }
  .lrow b { font-size: 30px; line-height: 36px; }
  .stack, .stack.m { height: 44px; }
  .gh { margin-top: 32px; }
  .grp { padding: 18px 16px 6px; border-radius: 18px; }
  .grp li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .ico { width: 40px; height: 40px; }
  .mn { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; margin-top: -6px; }
  .mn b, .mn small { display: inline; }
  .mn.off small { padding: 2px 8px; }
  .cta3 { margin-top: 48px; padding: 48px 0; }
  .cta3 h2 { font-size: 28px; line-height: 35px; }
  .cta3 p { font-size: 17px; line-height: 26px; }
  .cta3 .btn.xl { width: 100%; min-width: 0; }
}

:root { --seg0: #d5deea; --seg1: #bfcbdc; --seg2: #a9b9cf; }
:root[data-theme="dark"] { --seg0: #2b3c5b; --seg1: #354869; --seg2: #405580; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --seg0: #2b3c5b; --seg1: #354869; --seg2: #405580; } }
.inc .label { margin-bottom: 8px; }
.inc li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 21px; min-width: 0; }
.inc li:first-child { border-top: 0; }
.inc li span:last-child { min-width: 0; overflow-wrap: anywhere; }
.inc li { align-items: flex-start; }
.inc li .chip { margin-top: 1px; }
.tk.more li { color: var(--text); font-weight: 500; }
.tk.more { margin-top: 4px; }
.mock .inc { margin-top: auto; }
@media (max-width: 760px) { .seg.lab span { display: none; } .stack { gap: 2px; } }

/* Balken: jede Aufgabe hat ihre eigene Farbe, die Liste darunter benennt alle */
:root { --k0: #7ea6d9; --k1: #6cc3a0; --k2: #b39ddb; --k3: #f0c36d; --k4: #e58fa3; --k5: #6bbfd6; --k6: #a5d36a; --k7: #d7a27a; --k8: #8d9fe0; --k9: #58b7b0; --k10: #b8bec9; }
:root[data-theme="dark"] { --k0: #4f78ad; --k1: #3f9a7b; --k2: #7f69b0; --k3: #c79a3f; --k4: #b6586f; --k5: #3c93aa; --k6: #79a63f; --k7: #a9764b; --k8: #6272b3; --k9: #2f8782; --k10: #6c7585; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k0: #4f78ad; --k1: #3f9a7b; --k2: #7f69b0; --k3: #c79a3f; --k4: #b6586f; --k5: #3c93aa; --k6: #79a63f; --k7: #a9764b; --k8: #6272b3; --k9: #2f8782; --k10: #6c7585; } }
.seg.c0, .sw.c0 { background: var(--k0); } .seg.c1, .sw.c1 { background: var(--k1); } .seg.c2, .sw.c2 { background: var(--k2); } .seg.c3, .sw.c3 { background: var(--k3); }
.seg.c4, .sw.c4 { background: var(--k4); } .seg.c5, .sw.c5 { background: var(--k5); } .seg.c6, .sw.c6 { background: var(--k6); } .seg.c7, .sw.c7 { background: var(--k7); }
.seg.c8, .sw.c8 { background: var(--k8); } .seg.c9, .sw.c9 { background: var(--k9); } .seg.c10, .sw.c10 { background: var(--k10); }
.seg { color: #0b1426; }
:root[data-theme="dark"] .seg { color: #f2f6fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg { color: #f2f6fa; } }
.lgd { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 24px; margin-top: 16px; }
.lgd li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; line-height: 21px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: block; }
.lgd span { min-width: 0; color: var(--text); }
.lgd b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
@media (max-width: 760px) { .lgd { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.mn.off small { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 13px; padding: 4px 10px; border: 1px solid var(--tint-200); background: var(--tint-50); border-radius: 999px; }
.mn.off small svg { stroke: var(--accent); }
.dab { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-weight: 600; }
.dab svg { stroke: var(--accent); }
.gnote { color: var(--muted); font-size: 15px; line-height: 22px; margin: -8px 0 16px; }

/* Aufgabenkarte: zuerst der Überblick in drei Sätzen */
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px var(--pad) 0; }
.story li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.story li.you { background: var(--tint-50); border-color: var(--tint-200); }
.story i { width: 30px; height: 30px; border-radius: 50%; background: var(--control); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-d); font-style: normal; }
.story li.you i { background: var(--accent); color: #04180d; }
.story small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 500; }
.story b { display: block; font-weight: 600; font-size: 15px; line-height: 21px; }
.evbody { margin-top: 18px; }
.msg .mh { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; line-height: 18px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.msg .mh .ic24 { width: 18px; height: 18px; }
.msg.wa { background: var(--tint-50); border-color: var(--tint-200); }
@media (max-width: 760px) { .story { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 14px; } .story li { padding: 10px 12px; } }

.tbl td + td, .tbl th + th { padding-left: 14px; }
.tbl .r { padding-right: 0; }

/* Sprachumschalter in der Kopfleiste, Hinweise, Fuß */
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); flex: none; }
.lang button { height: 32px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px/1 var(--font-d); letter-spacing: 0.02em; transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.lang button:active { transform: scale(0.95); }
.lang button[aria-pressed="true"] { background: var(--accent); color: #04180d; }
@media (hover: hover) and (pointer: fine) { .lang button[aria-pressed="false"]:hover { background: var(--rule); color: var(--text); } }
.denote { color: var(--muted); font-size: 14px; line-height: 20px; margin: -4px 0 12px; }
.foot.legal { display: flex; gap: 18px; padding-top: 0; }
.foot.legal a { color: var(--muted); }
@media (max-width: 760px) {
  .bar-in { gap: 8px; }
  .lang button { height: 28px; min-width: 32px; padding: 0 7px; font-size: 12px; }
  .stepper button { padding: 0 4px 0 3px; }
}

/* Zeitfresser als gleich hohe, beschriftete Balken; Aufgabenliste ruhig und gleichförmig */
.load { padding: 32px; }
.gh2 { font: 600 20px/28px var(--font-d); letter-spacing: -0.015em; margin: 40px 0 8px; padding-top: 32px; border-top: 1px solid var(--rule); }
.leg { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 15px; line-height: 22px; margin-bottom: 18px; }
.leg span { display: inline-flex; align-items: center; gap: 8px; }
.leg i { width: 22px; height: 10px; border-radius: 5px; display: inline-block; }
.leg i.o, .rows3 .trk i.o { background: var(--control); }
.leg i.m, .rows3 .trk i.m { background: var(--accent); }
.rows3 li { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) 112px; gap: 20px; align-items: center; min-height: 60px; border-top: 1px solid var(--rule); }
.rows3 li:first-child { border-top: 0; }
.rows3 .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rows3 .nm b { font-weight: 600; line-height: 22px; }
.rows3 .nm .ic24 { width: 22px; height: 22px; color: var(--accent-ink); }
.rows3 .trk { position: relative; height: 16px; border-radius: 8px; background: var(--rule); overflow: hidden; }
.rows3 .trk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.rows3 .trk i.m { z-index: 1; }
.rows3 .sv { text-align: right; font: 700 18px/24px var(--font-d); letter-spacing: -0.01em; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grps { gap: 20px; }
.grp { padding: 26px 28px 14px; }
.grp h3 { font-size: 18px; line-height: 26px; margin-bottom: 8px; color: var(--text); }
.grp li { grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 18px; padding: 18px 0; }
.ico { width: 48px; height: 48px; border-radius: 14px; }
.grp .tx b { font-size: 17px; line-height: 24px; }
.grp .tx small { font-size: 15px; line-height: 22px; margin-top: 2px; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--tint-100); display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.tick svg { stroke: var(--accent-ink); }
.gnote { max-width: 70ch; margin: -4px 0 22px; }
.gh { margin: 56px 0 14px; }
@media (max-width: 960px) { .rows3 li { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 100px; gap: 14px; } }
@media (max-width: 760px) {
  .load { padding: 20px; }
  .gh2 { margin-top: 30px; padding-top: 24px; font-size: 18px; }
  .rows3 li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm sv" "trk trk"; gap: 8px 12px; padding: 14px 0; align-items: center; }
  .rows3 .nm { grid-area: nm; }
  .rows3 .sv { grid-area: sv; font-size: 17px; }
  .rows3 .trk { grid-area: trk; }
  .grp { padding: 20px 18px 8px; }
  .grp li { grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 14px; padding: 16px 0; }
  .ico { width: 44px; height: 44px; }
}

/* Russisch: Inter, weil Sora und DM Sans keine kyrillischen Buchstaben haben */
html[lang="ru"] { --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --font-d: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang="ru"] h1, html[lang="ru"] .hero h1 { letter-spacing: -0.02em; }
html[lang="ru"] .hero h1 { font-size: 54px; line-height: 60px; }
@media (max-width: 960px) { html[lang="ru"] .hero h1 { font-size: 44px; line-height: 50px; } }
@media (max-width: 760px) { html[lang="ru"] .hero h1 { font-size: 34px; line-height: 40px; } .lang button { min-width: 30px; padding: 0 6px; } }
@media (max-width: 420px) {
  .bar-in { gap: 6px; }
  .stepper button[aria-current="step"] .t { display: none; }
  .stepper button[aria-current="step"] { padding-right: 4px; }
  .lang { padding: 2px; }
  .lang button { min-width: 30px; height: 30px; padding: 0 5px; font-size: 12px; }
}

/* Handy: Schiene und Kartenkopf kompakter (steht am Ende, damit es die großen Werte überschreibt) */
@media (max-width: 760px) {
  .daytl { padding: 16px 14px 12px; }
  .dt-hd { margin-bottom: 14px; }
  .dt-hd h2 { font-size: 17px; line-height: 24px; }
  .rail { --s: clamp(20px, calc((100vw - 64px) / var(--n) - 3px), 30px); }
  .rail .track { top: calc(var(--s) / 2 - 1.5px); height: 3px; }
  .nd .b { width: var(--s); height: var(--s); border-width: 1.5px; }
  .nd .ic24 { width: calc(var(--s) * 0.56); height: calc(var(--s) * 0.56); }
  .nd .ck { width: 11px; height: 11px; right: -3px; bottom: -3px; border-width: 1.5px; }
  .nd .ck svg { width: 7px; height: 7px; }
  .nd time, .nd .nm { display: none; }
  .nd.cur .b { transform: scale(1.18); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 22%, transparent); }
  .evhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-top: 20px; }
  .evhead .chip { grid-column: 1 / -1; justify-self: start; }
  .evic { width: 46px; height: 46px; border-radius: 13px; }
  .evic .ic24 { width: 24px; height: 24px; }
  .evwho .mod { font-size: 16px; line-height: 23px; }
  .fly { font-size: 17px; line-height: 22px; }
}
