/* SBF-Trainer – Gestaltung nach der Seekarte: tiefes Wasser weiß, Flachwasser
   blau, Land sandgelb, Eintragungen in Karten-Magenta; richtig/falsch in den
   Farben der Seitenlichter (Steuerbord grün, Backbord rot). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2"); }

:root {
  --paper: #f4f8fa;
  --sheet: #ffffff;
  --water: #d9eaf3;
  --water-deep: #b6d5e5;
  --land: #f4e7b5;
  --land-ink: #5b4a0c;
  --ink: #14283a;
  --ink-2: #4b6071;
  --line: #c6d4dd;
  --magenta: #a3206b;
  --magenta-bg: #f6e3ee;
  --port: #c4162a;
  --port-bg: #fbe6e8;
  --stb: #0b7f45;
  --stb-bg: #dff2e7;
  --on-ink: #ffffff;
  --shadow: 0 1px 0 rgba(20, 40, 58, 0.06), 0 8px 24px -12px rgba(20, 40, 58, 0.25);

  /* Schaubilder */
  --fig-ink: #14283a;
  --fig-muted: #6b7f8e;
  --fig-water: #d9eaf3;
  --fig-water-deep: #b6d5e5;
  --fig-land: #f4e7b5;
  --fig-watt: #cfe0b8;
  --fig-paper: #ffffff;
  --fig-red: #d3202f;
  --fig-green: #109a55;
  --fig-yellow: #f2c200;
  --fig-blue: #1a4fd6;
  --fig-magenta: #a3206b;
  --fig-night: #0a1622;

  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 6px;
  --r-m: 12px;
  --nav-h: 62px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0b1924;
  --sheet: #122431;
  --water: #1a3344;
  --water-deep: #264b61;
  --land: #3b3519;
  --land-ink: #f1dfa0;
  --ink: #e7eff4;
  --ink-2: #9db2c1;
  --line: #2a4353;
  --magenta: #ef86c0;
  --magenta-bg: #3a1c30;
  --port: #ff7682;
  --port-bg: #3b1a20;
  --stb: #55d391;
  --stb-bg: #11331f;
  --on-ink: #0b1924;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.7);

  --fig-ink: #e7eff4;
  --fig-muted: #9db2c1;
  --fig-water: #1a3344;
  --fig-water-deep: #264b61;
  --fig-land: #4a4322;
  --fig-watt: #2e4a30;
  --fig-paper: #122431;
  --fig-red: #ff5a67;
  --fig-green: #3fd088;
  --fig-yellow: #f6cf2e;
  --fig-blue: #6f98ff;
  --fig-magenta: #ef86c0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.47 var(--text);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--magenta); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; line-height: 1.4; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }

/* ---------- Gerüst ---------- */
.shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.view { max-width: 680px; margin: 0 auto; padding: 20px 16px 40px; }
.view.wide { max-width: 860px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--sheet); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--nav-h); color: var(--ink-2); text-decoration: none;
  font-size: 12.5px; font-weight: 500;
}
.nav a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a[aria-current="page"] { color: var(--magenta); }
.nav .brand { display: none; }
body.in-session .nav { display: none; }
body.in-session .shell { padding-bottom: 0; }

@media (min-width: 900px) {
  .shell { padding-bottom: 0; padding-left: 208px; }
  .nav {
    top: 0; right: auto; width: 208px; grid-auto-flow: row; grid-auto-columns: auto; align-content: start;
    border-top: 0; border-right: 1px solid var(--line); padding: 22px 12px;
  }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; height: 46px; padding: 0 12px; font-size: 16px; border-radius: var(--r-s); }
  .nav a[aria-current="page"] { background: var(--magenta-bg); }
  .nav .brand { display: block; font: 600 22px/1.1 var(--display); color: var(--ink); padding: 0 12px 20px; }
  .nav .brand span { display: block; font: 400 14px/1.3 var(--text); color: var(--ink-2); margin-top: 4px; }
  body.in-session .shell { padding-left: 0; }
  .view { padding-top: 36px; }
}

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r-s);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; padding: 0 10px; min-height: 44px; font-weight: 500; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.stack-l > * + * { margin-top: 28px; }

.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  background: var(--water); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip.sec-basis { background: var(--land); color: var(--land-ink); }
.chip.sec-binnen { background: var(--stb-bg); color: var(--stb); }
.chip.sec-see { background: var(--water); }
.chip.sec-segeln { background: var(--magenta-bg); color: var(--magenta); }

/* Fortschritt als Kartenrand-Skala: abwechselnd dunkle und helle Minutenfelder */
.scale {
  position: relative; height: 10px; border: 1.5px solid var(--ink); border-radius: 1px; overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--tick, 10%) - 0.5px), var(--ink) calc(var(--tick, 10%) - 0.5px) var(--tick, 10%));
}
.scale > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--magenta); transition: width 0.35s ease; }

/* Dreiteiliger Lernstand: sitzt / in Arbeit / neu */
.bar { display: flex; height: 12px; border-radius: 2px; overflow: hidden; background: var(--water); }
.bar > .b-ok { background: var(--stb); }
.bar > .b-mid { background: var(--fig-yellow); }
.bar > .b-bad { background: var(--port); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

/* ---------- Start ---------- */
.plan { background: var(--land); color: var(--land-ink); border-radius: var(--r-m); padding: 20px 18px; }
.plan h1 { color: inherit; }
.plan .days { font: 600 54px/0.95 var(--display); }
.plan .btn { background: var(--land-ink); border-color: var(--land-ink); color: var(--land); }
.plan-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: end; }
.todo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.todo div { border-top: 1.5px solid currentColor; padding-top: 8px; }
.todo b { display: block; font: 600 28px/1 var(--display); }
.todo span { font-size: 14px; line-height: 1.25; display: block; margin-top: 4px; }

.sec-list { display: grid; gap: 10px; }
.sec-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; text-align: left; width: 100%;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; cursor: pointer;
}
.sec-item .bar { grid-column: 1 / -1; }
.sec-item strong { font: 600 19px/1.2 var(--display); display: block; }
.sec-item small { display: block; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); margin-top: 3px; }
.sec-item .count { color: var(--ink-2); font-size: 15px; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  text-align: left; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 14px; cursor: pointer; min-height: 84px;
}
.mode b { display: block; font: 600 18px/1.15 var(--display); }
.mode span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.3; margin-top: 4px; }
.mode[disabled] { opacity: 0.5; cursor: default; }

.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r-s); overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 9px 14px; font-size: 15.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- Frage ---------- */
.session-top {
  position: sticky; top: 0; z-index: 10; background: var(--paper);
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 16px 10px; max-width: 680px; margin: 0 auto;
}
.session-top .count { font: 600 16px/1 var(--display); color: var(--ink-2); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="true"] { color: var(--magenta); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

.q-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
.q-text { font: 500 21px/1.3 var(--text); margin-top: 12px; white-space: pre-line; text-wrap: pretty; }
.q-imgs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.plate { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px; display: inline-flex; align-items: center; justify-content: center; }
.plate img { display: block; max-width: 100%; height: auto; }
img.inline { display: inline-block; vertical-align: middle; background: #fff; border-radius: 3px; padding: 3px 5px; height: 1.25em; width: auto; }

.answers { display: grid; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.ans {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; width: 100%; text-align: left;
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r-m);
  padding: 14px 14px; cursor: pointer; font-size: 17px; line-height: 1.38; white-space: pre-line;
  -webkit-tap-highlight-color: transparent;
}
.ans .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); margin-top: 1px; display: grid; place-items: center; }
.ans .dot svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; }
.ans:not([disabled]):hover { border-color: var(--ink-2); }
.ans.picked { border-color: var(--ink); }
.ans.picked .dot { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--sheet); }
.ans[disabled] { cursor: default; color: inherit; opacity: 1; }
.ans.right { border-color: var(--stb); background: var(--stb-bg); }
.ans.right .dot { background: var(--stb); border-color: var(--stb); box-shadow: none; }
.ans.wrong { border-color: var(--port); background: var(--port-bg); }
.ans.wrong .dot { background: var(--port); border-color: var(--port); box-shadow: none; }
.ans.right .dot svg, .ans.wrong .dot svg { display: block; }
.ans.dim { opacity: 0.62; }
.ans .a-img { display: block; margin-top: 8px; }

.explain { margin-top: 22px; border-top: 1.5px solid var(--ink); padding-top: 16px; }
/* nur in der Lernrunde: die Erklärung erscheint als Antwort auf den Tipp */
.answers + #after .explain { animation: reveal 0.28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verdict { font: 600 22px/1.1 var(--display); }
.verdict.ok { color: var(--stb); }
.verdict.no { color: var(--port); }
.why { margin-top: 10px; text-wrap: pretty; }
.why strong { font-weight: 600; }
.merk { margin-top: 14px; background: var(--land); color: var(--land-ink); border-radius: var(--r-s); padding: 12px 14px; }
.merk b { font-weight: 600; }
.abbr { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.abbr b { color: var(--ink); font-weight: 600; }
.session-foot {
  position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 22%);
  padding: 22px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 8px;
}

/* ---------- Abbildungen ---------- */
.fig { margin: 16px 0 0; }
.fig figcaption { font-size: 14.5px; line-height: 1.35; color: var(--ink-2); margin-top: 7px; }
.fig svg { display: block; max-width: 100%; height: auto; }
.fig svg text { font-family: var(--text); }
.fig-box { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px; }
.fig-night { background: var(--fig-night); border: 1px solid #24384a; border-radius: var(--r-s); padding: 10px; display: inline-block; }
.fig-day { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px; display: inline-block; }
.fig-sound { display: flex; align-items: center; gap: 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px 10px 10px; }
.fig-sound .tones { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: 1; min-height: 26px; }
.fig-sound .tones i { display: block; height: 12px; border-radius: 2px; background: var(--ink); transition: background 0.1s; }
.fig-sound .tones i.t-long { width: 58px; }
.fig-sound .tones i.t-short { width: 14px; }
.fig-sound .tones i.t-tick { width: 4px; margin-right: -3px; }
.fig-sound .tones i.t-bell { width: 44px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); }
.fig-sound .tones i.t-gap { width: 18px; background: transparent; }
.fig-sound .tones i.on { background: var(--magenta); }
.fig-sound .tones i.t-bell.on { background: repeating-linear-gradient(90deg, var(--magenta) 0 3px, transparent 3px 6px); }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; }
.play svg { width: 18px; height: 18px; fill: var(--ink); }
.fig-buoys { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; }
.fig-buoys div { text-align: center; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); max-width: 104px; }
.fig-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.3; }
.fig-table th { text-align: left; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding: 6px 10px 6px 0; }
.fig-table td { border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; vertical-align: top; }
.fig-kennung { display: flex; align-items: center; gap: 14px; }
.fig-kennung .lamp { width: 30px; height: 30px; border-radius: 50%; flex: none; background: #26323c; }
.fig-kennung svg { flex: 1; min-width: 0; max-width: 340px; }
@media (prefers-reduced-motion: reduce) {
  .answers + #after .explain { animation: none; }
  .scale > i { transition: none; }
}

/* ---------- Katalog ---------- */
.search { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--sheet); color: var(--ink); padding: 0 14px; font: inherit; }
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.q-list li { border-bottom: 1px solid var(--line); }
.q-row { display: grid; grid-template-columns: 46px 1fr 14px; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 2px; cursor: pointer; }
.q-row .n { font: 600 16px/1.3 var(--display); color: var(--ink-2); }
.q-row .t { font-size: 16px; line-height: 1.35; }
.q-row .s { width: 10px; height: 10px; border-radius: 50%; align-self: center; background: var(--line); }
.q-row .s.ok { background: var(--stb); }
.q-row .s.mid { background: var(--fig-yellow); }
.q-row .s.bad { background: var(--port); }
.detail-ans { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.detail-ans li { padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); white-space: pre-line; }
.detail-ans li.right { border-color: var(--stb); background: var(--stb-bg); font-weight: 500; }

/* ---------- Prüfung ---------- */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.exam-grid button { height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--sheet); cursor: pointer; font: 600 16px/1 var(--display); }
.exam-grid button.done { background: var(--water); border-color: var(--water-deep); }
.exam-grid button.cur { border-color: var(--ink); }
.exam-grid button.ok { background: var(--stb-bg); border-color: var(--stb); color: var(--stb); }
.exam-grid button.no { background: var(--port-bg); border-color: var(--port); color: var(--port); }
.timer { font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.timer.low { color: var(--port); }
.result { border-radius: var(--r-m); padding: 20px 18px; }
.result.pass { background: var(--stb-bg); }
.result.fail { background: var(--port-bg); }
.result h1 { font-size: 34px; }
.parts { display: grid; gap: 8px; margin-top: 14px; }
.parts div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; border-top: 1px solid currentColor; padding-top: 8px; }
.parts b { font: 600 20px/1 var(--display); }
.hist { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hist td, .hist th { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.hist th { font-weight: 600; }
.tag { font-weight: 600; }
.tag.pass { color: var(--stb); }
.tag.fail { color: var(--port); }

/* ---------- Navigation ---------- */
.task-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.task { text-align: left; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; cursor: pointer; }
.task b { font: 600 18px/1.2 var(--display); display: block; }
.task span { font-size: 14.5px; color: var(--ink-2); }
.nav-row { border-top: 1px solid var(--line); padding: 16px 0; }
.nav-row .nq { white-space: pre-line; }
.nav-row .na { margin-top: 10px; background: var(--water); border-radius: var(--r-s); padding: 10px 12px; white-space: pre-line; font-weight: 500; }
.nav-row .nn { font: 600 16px/1 var(--display); color: var(--ink-2); margin-bottom: 6px; }
.rate { display: flex; gap: 8px; margin-top: 10px; }
.rate button { flex: 1; min-height: 44px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--sheet); cursor: pointer; font-weight: 500; }
.rate button.ok[aria-pressed="true"] { background: var(--stb-bg); border-color: var(--stb); color: var(--stb); }
.rate button.no[aria-pressed="true"] { background: var(--port-bg); border-color: var(--port); color: var(--port); }
.calc { display: grid; gap: 10px; }
.calc label { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; font-size: 16px; }
.calc input, .field { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--sheet); color: var(--ink); padding: 0 12px; font: inherit; width: 100%; }
.calc output { display: block; background: var(--water); border-radius: var(--r-s); padding: 12px; font-weight: 500; white-space: pre-line; }
.prose > * + * { margin-top: 12px; }
.prose ol, .prose ul { margin: 12px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
details.fold { border-top: 1px solid var(--line); }
details.fold:last-of-type { border-bottom: 1px solid var(--line); }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px 0; font: 600 19px/1.2 var(--display); display: flex; justify-content: space-between; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-weight: 400; color: var(--ink-2); }
details.fold[open] > summary::after { content: "–"; }
details.fold > div { padding: 0 0 18px; }

/* ---------- Fortschritt ---------- */
.days-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; border-bottom: 1.5px solid var(--ink); }
.days-chart div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; height: 100%; }
.days-chart i { display: block; background: var(--stb); border-radius: 2px 2px 0 0; }
.days-chart i.w { background: var(--port); border-radius: 0; }
.days-axis { display: flex; gap: 4px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.days-axis span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 99px; font-size: 15px; z-index: 50; max-width: calc(100vw - 32px); }

/* ---------- Abgleich ---------- */
.sheet.note { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.sheet.note p { flex: 1 1 220px; }
.sheet.note .btn { min-height: 44px; }
.sheet.warn { border-color: var(--port); background: var(--port-bg); }
.code { font: 600 26px/1.2 var(--display); letter-spacing: 0.08em; margin-top: 2px; user-select: all; }
.code.long { font-size: 17px; letter-spacing: 0.02em; word-break: break-all; }
.qr-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.qr-row p { flex: 1 1 200px; }
.qr { padding: 12px; }
.qr svg { display: block; width: 168px; height: 168px; }
