/* Fangbuch – Oberfläche
   Gestaltung: Seewasser-Petrol und Blinker-Messing, große Bedienelemente für draußen,
   Schrift Atkinson Hyperlegible (für gute Lesbarkeit entwickelt, auch bei Sonne und für ältere Augen). */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --lake: #16404a;
  --lake-2: #2f6670;
  --lake-3: #4c8a93;
  --brass: #e7b53f;
  --brass-ink: #2a2105;
  --paper: #f2f5f2;
  --surface: #ffffff;
  --ink: #18282c;
  --muted: #56696d;
  --line: #d3dddb;
  --tint: #e5eeec;
  --alarm: #a8341f;
  --alarm-bg: #f9e3de;
  --ok: #2c7349;
  --ok-bg: #e2f1e7;
  --focus: #e7b53f;

  --r-s: 8px;
  --r-m: 14px;
  --gutter: 16px;
  --tap: 52px;
  --f0: 14px; --f1: 17px; --f2: 21px; --f3: 26px; --f4: 33px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e2125; --surface: #15303a; --ink: #e6eeed; --muted: #a2b6b9;
    --line: #2a4952; --tint: #1b3a43; --lake-2: #7fb3bb; --lake-3: #5e9aa3;
    --alarm: #ff9d88; --alarm-bg: #4a2219; --ok: #8fd6a8; --ok-bg: #173a27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e2125; --surface: #15303a; --ink: #e6eeed; --muted: #a2b6b9;
  --line: #2a4952; --tint: #1b3a43; --lake-2: #7fb3bb; --lake-3: #5e9aa3;
  --alarm: #ff9d88; --alarm-bg: #4a2219; --ok: #8fd6a8; --ok-bg: #173a27;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--f1)/1.5 "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 12px; }
a { color: var(--lake-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--f0); }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.noscript { padding: 24px; }

/* ── Start ── */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--lake); color: #dfeceb; }
.boot img { border-radius: 18px; }

/* ── Kopfzeile ── */
.top {
  background: var(--lake); color: #fff;
  padding: calc(var(--safe-t) + 10px) var(--gutter) 10px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 20;
}
.top .club { flex: 1; min-width: 0; }
.top .club b { display: block; font-size: var(--f1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .club span { font-size: var(--f0); color: #b9d3d6; }
.top .me {
  background: transparent; border: 1.5px solid #4c8a93; color: #fff; border-radius: 999px;
  min-height: 40px; padding: 0 14px; cursor: pointer; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.net { font-size: var(--f0); padding: 3px 10px; border-radius: 999px; background: var(--brass); color: var(--brass-ink); font-weight: 700; white-space: nowrap; }

/* ── Navigation: unten auf dem Handy, oben auf großen Bildschirmen ── */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-b);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 9px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700;
  min-height: 60px; justify-content: center;
}
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current="page"] { color: var(--lake); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--brass); } }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: var(--brass); }
main { padding: 20px var(--gutter) calc(110px + var(--safe-b)); max-width: 760px; margin: 0 auto; }
main.wide { max-width: 1120px; }
@media (min-width: 900px) {
  .nav { position: sticky; top: 60px; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); justify-content: center; gap: 4px; padding: 0 var(--gutter); }
  .nav a { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: var(--f1); padding: 0 18px; min-height: 54px; border-bottom: 3px solid transparent; }
  .nav a svg { width: 22px; height: 22px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  main { padding-bottom: 60px; }
}

/* ── Seitenkopf ── */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head p { margin: 4px 0 0; color: var(--muted); }

/* ── Formulare ── */
label.f { display: block; font-weight: 700; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
.field .hint { font-size: var(--f0); color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lake-2); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 55%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: center; min-height: var(--tap); cursor: pointer; font-weight: 700; }
.check input { width: 26px; height: 26px; accent-color: var(--lake); flex: none; }

/* ── Knöpfe ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: var(--r-s);
  border: 1.5px solid var(--lake-2); background: transparent; color: var(--ink);
  font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.btn.dark { background: var(--lake); border-color: var(--lake); color: #fff; }
.btn.danger { border-color: var(--alarm); color: var(--alarm); }
.btn.block { width: 100%; }
.btn.slim { min-height: 42px; padding: 0 14px; font-size: var(--f0); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--lake-2); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── Meldung: die Fangtafel ── */
.daybar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.daybar.one { grid-template-columns: 1fr; }
@media (max-width: 420px) { .daybar { grid-template-columns: 1fr; } }

.tally { border-top: 2px solid var(--lake); margin: 8px 0 18px; }
.tally-head { display: grid; grid-template-columns: 1fr 140px 112px; gap: 10px; padding: 10px 0 6px; font-size: var(--f0); color: var(--muted); font-weight: 700; }
.tally-head span:nth-child(2), .tally-head span:nth-child(3) { text-align: center; }
.trow { display: grid; grid-template-columns: 1fr 140px 112px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trow .sp { font-size: var(--f2); font-weight: 700; }
.trow.has { background: linear-gradient(90deg, color-mix(in srgb, var(--brass) 22%, transparent), transparent 70%); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.trow.off .sp { color: var(--muted); }
.step { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface); height: var(--tap); }
.step button { height: 100%; border: 0; background: none; font-size: 26px; font-weight: 700; cursor: pointer; color: var(--lake-2); padding: 0; }
.step button:disabled { color: var(--line); cursor: default; }
.step output, .step input { text-align: center; font-size: var(--f2); font-weight: 700; border: 0; width: 100%; background: none; min-height: 0; padding: 0; }
.kg { position: relative; }
.kg input { text-align: right; padding-right: 36px; font-size: var(--f1); font-weight: 700; }
.kg::after { content: "kg"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--f0); pointer-events: none; }
.kg input:disabled { background: var(--tint); border-color: transparent; }
.kg input:disabled::placeholder { color: transparent; }
@media (max-width: 400px) {
  .tally-head, .trow { grid-template-columns: 1fr 124px 96px; gap: 8px; }
  .trow .sp { font-size: var(--f1); }
}
.addsp { margin: 0 0 18px; }
.nocatch { border: 2px dashed var(--line); border-radius: var(--r-m); padding: 4px 14px; margin-bottom: 18px; }
.nocatch.on { border-style: solid; border-color: var(--lake-2); background: var(--tint); }
.sumline { font-size: var(--f1); margin: 0 0 12px; }
.savebar { position: sticky; bottom: calc(70px + var(--safe-b)); padding: 10px 0 0; background: linear-gradient(transparent, var(--paper) 28%); }
@media (min-width: 900px) { .savebar { bottom: 0; padding-bottom: 14px; } }
.savebar .btn { width: 100%; font-size: var(--f2); min-height: 60px; }

/* ── Hinweise ── */
.banner { border-radius: var(--r-m); padding: 12px 16px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.banner svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.banner.info { background: var(--tint); }
.banner.warn { background: var(--alarm-bg); color: var(--alarm); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.wait { background: color-mix(in srgb, var(--brass) 28%, var(--surface)); }
.banner p { margin: 0; }
.banner .btns { margin-top: 8px; }
.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--lake); color: #fff; padding: 14px 20px; border-radius: var(--r-m); z-index: 60;
  font-weight: 700; width: max-content; max-width: min(460px, calc(100vw - 32px)); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  box-shadow: 0 8px 28px rgba(10, 34, 40, .35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--alarm); }
@media (min-width: 900px) { .toast { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ── Listen: meine Fänge ── */
.yearsel { display: flex; align-items: center; gap: 10px; }
.yearsel select { width: auto; min-width: 150px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 20px; padding: 14px 0; border-top: 2px solid var(--lake); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
@media (max-width: 560px) { .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; } }
.facts b { font-size: var(--f3); line-height: 1.1; }
.facts span { font-size: var(--f0); color: var(--muted); }
.days { list-style: none; padding: 0; margin: 0; }
.day { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.day .date { font-weight: 700; line-height: 1.15; }
.day .date small { display: block; font-weight: 400; color: var(--muted); font-size: var(--f0); }
.day .what { min-width: 0; }
.day .what .fish { font-weight: 700; }
.day .what .meta { font-size: var(--f0); color: var(--muted); }
.day .what .note { font-size: var(--f0); margin-top: 2px; overflow-wrap: anywhere; }
.day .acts { display: flex; gap: 4px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-s); color: var(--lake-2); cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn:hover { background: var(--tint); }
.day.pending { background: color-mix(in srgb, var(--brass) 14%, transparent); }
.day.failed { background: var(--alarm-bg); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 9px; vertical-align: 2px; }
.tag.wait { background: var(--brass); color: var(--brass-ink); }
.tag.bad { background: var(--alarm); color: #fff; }
.tag.okk { background: var(--ok-bg); color: var(--ok); }
.tag.miss { background: var(--alarm-bg); color: var(--alarm); }
.tag.neutral { background: var(--tint); color: var(--muted); }
.empty { padding: 28px 0; color: var(--muted); }
.empty .btn { margin-top: 12px; }

/* ── Auswertung ── */
.block { margin: 0 0 32px; }
.block > h2 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.block > h2 small { font-size: var(--f0); font-weight: 400; color: var(--muted); }
.exports { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 28px; }
.exports .btn { justify-content: flex-start; height: auto; padding: 12px 16px; white-space: normal; text-align: left; }
.exports .btn span { display: block; font-weight: 400; font-size: var(--f0); color: inherit; opacity: .8; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 110px 1fr 120px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.bars .bar { height: 14px; border-radius: 0 7px 7px 0; background: var(--lake-3); min-width: 2px; }
.bars .bar.zero { background: var(--line); width: 2px !important; }
.bars .val { text-align: right; font-variant-numeric: tabular-nums; }
.bars .val small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 480px) { .bars li { grid-template-columns: 84px 1fr 92px; gap: 8px; } }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 140px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.months div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.months i { display: block; width: 100%; max-width: 34px; background: var(--brass); border-radius: 4px 4px 0 0; min-height: 2px; }
.months span { font-size: 12px; color: var(--muted); }
.months b { font-size: 12px; font-variant-numeric: tabular-nums; }
.mlabels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; text-align: center; font-size: 12px; color: var(--muted); padding-top: 4px; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--lake); }
table.t { border-collapse: collapse; width: 100%; font-size: var(--f0); }
table.t th, table.t td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.t th { font-weight: 700; color: var(--muted); background: var(--surface); position: sticky; top: 0; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.miss td { background: color-mix(in srgb, var(--alarm-bg) 70%, transparent); }
table.t tbody tr:hover td { background: var(--tint); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-width: 170px; }
.seg { display: inline-flex; border: 1.5px solid var(--lake-2); border-radius: var(--r-s); overflow: hidden; }
.seg button { border: 0; background: none; min-height: 42px; padding: 0 14px; cursor: pointer; font-weight: 700; color: var(--lake-2); }
.seg button[aria-pressed="true"] { background: var(--lake); color: #fff; }

/* ── Verwaltung ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--lake); }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li .grow { flex: 1; min-width: 0; }
.list li.inactive .grow { color: var(--muted); text-decoration: line-through; }
.dropzone { border: 2px dashed var(--lake-3); border-radius: var(--r-m); padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.dropzone p { flex: 1; min-width: 220px; margin: 0; }
.result { font-size: var(--f0); }
.result ul { margin: 6px 0 0; padding-left: 20px; }

/* ── Dialog ── */
dialog {
  border: 0; border-radius: var(--r-m); padding: 0; width: min(560px, calc(100vw - 24px));
  background: var(--surface); color: var(--ink); max-height: calc(100vh - 40px);
  box-shadow: 0 18px 50px rgba(8, 28, 33, .4);
}
dialog::backdrop { background: rgba(10, 30, 35, .55); }
dialog .dh { background: var(--lake); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
dialog .dh .iconbtn { color: #fff; }
dialog .db { padding: 20px; overflow-y: auto; }
dialog .df { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-size: var(--f0); }

/* ── Anmeldung ── */
.auth { min-height: 100vh; background: var(--lake); color: #fff; display: grid; place-items: center; padding: calc(var(--safe-t) + 24px) var(--gutter) 40px; }
.auth .box { width: min(420px, 100%); }
.auth .logo { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.auth .logo img { width: 64px; height: 64px; border-radius: 16px; }
.auth .logo b { display: block; font-size: var(--f3); line-height: 1.1; }
.auth .logo span { color: #b9d3d6; }
.auth form { background: var(--surface); color: var(--ink); border-radius: var(--r-m); padding: 22px 20px; }
.auth form h1 { font-size: var(--f2); margin-bottom: 16px; }
.auth .under { margin-top: 16px; text-align: center; }
.auth .under a, .auth .under .linkbtn { color: #e6f0ef; }
.auth .err { color: var(--alarm); font-weight: 700; margin: 0 0 12px; }

/* ── Installieren-Hinweis ── */
.install ol { margin: 6px 0 0; padding-left: 22px; }

/* ── Dashboard ──
   Jahresfarben: geprüfte Palette (Lichtband, Farbfehlsichtigkeit, Kontrast) – hell und dunkel getrennt gewählt */
:root { --yr-0: #2a78d6; --yr-1: #eb6834; --yr-2: #1baf7a; --viz-1: var(--lake-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --yr-0: #3987e5; --yr-1: #d95926; --yr-2: #199e70; } }
:root[data-theme="dark"] { --yr-0: #3987e5; --yr-1: #d95926; --yr-2: #199e70; }

.dashf { margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; padding: 14px 0 6px; border-top: 2px solid var(--lake); margin-bottom: 26px; }
.tile { display: flex; flex-direction: column; padding: 4px 0 10px; }
.tile .tl { font-size: var(--f0); color: var(--muted); }
.tile b { font-size: var(--f4); line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .dl { font-size: var(--f0); color: var(--muted); }
.tile .dl.up { color: var(--ok); }
.tile .dl.down { color: var(--alarm); }
.tilesnote { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } .tile b { font-size: var(--f3); } }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 12px; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart .lab { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .xh { stroke: var(--muted); stroke-width: 1; }
.chart .col { transition: opacity .12s; }
.chart .col.dim { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .chart .col { transition: none; } }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 8px 10px; font-size: 14px; box-shadow: 0 6px 18px rgba(10, 34, 40, .18); min-width: 150px; }
.tip .th { font-weight: 700; margin-bottom: 4px; }
.tip .tr { display: flex; align-items: center; gap: 8px; }
.tip .tr span { flex: 1; color: var(--muted); }
.tip .tr i, .legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; }
.tip .tn { color: var(--muted); font-size: 13px; margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--f0); margin: 0 0 6px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; }
.insight { font-size: var(--f0); margin: 10px 0 0; }
.tview { margin-top: 10px; font-size: var(--f0); }
.tview summary { cursor: pointer; color: var(--lake-2); font-weight: 700; padding: 6px 0; }
.dash2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 900px) { .dash2 { grid-template-columns: 1fr; } }
.block > h2 .seg { font-size: var(--f0); }
.block > h2 .seg button { min-height: 36px; }

.sprows { list-style: none; margin: 0 0 10px; padding: 0; border-top: 2px solid var(--lake); }
.sprow { width: 100%; display: grid; grid-template-columns: 110px 1fr 120px 64px 58px; gap: 12px; align-items: center;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; cursor: pointer; }
.sprow:hover { background: var(--tint); }
.sprow.on { background: color-mix(in srgb, var(--brass) 22%, transparent); }
.sprow .nm { font-weight: 700; }
.sprow .hb { height: 14px; }
.sprow .hb i { display: block; height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.sprow .v { text-align: right; font-variant-numeric: tabular-nums; font-size: var(--f0); }
.sprow .spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.sprow .spark i { flex: 1; border-radius: 2px 2px 0 0; }
.sprow .ch { text-align: right; font-size: var(--f0); font-weight: 700; color: var(--muted); }
.sprow .ch.up { color: var(--ok); }
.sprow .ch.down { color: var(--alarm); }
@media (max-width: 560px) { .sprow { grid-template-columns: 82px 1fr 92px 44px; } .sprow .ch { display: none; } }
.demo-tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--brass); color: var(--brass-ink); vertical-align: 2px; }
.chart .ln.part { stroke-dasharray: 5 5; }
@media (max-width: 560px) { .dashf select { flex: 1 1 100%; min-width: 0; width: 100%; } .dashf .seg { flex: 0 0 auto; } }

/* ── Arbeitsdienst ── */
h2.sub { margin: 26px 0 8px; }
.wdlist { list-style: none; margin: 0 0 8px; padding: 0; border-top: 2px solid var(--lake); }
.wd { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wd.on { background: linear-gradient(90deg, color-mix(in srgb, var(--brass) 22%, transparent), transparent 75%); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.wdchk { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--lake-2); border-radius: var(--r-s); background: var(--surface); cursor: pointer; }
.wdchk input { width: 28px; height: 28px; accent-color: var(--lake); cursor: pointer; }
.wdchk.locked { border-color: var(--line); background: var(--tint); cursor: not-allowed; }
.wdchk.locked input { cursor: not-allowed; }
.wdmain { min-width: 0; }
.wdd { font-size: var(--f0); font-weight: 700; color: var(--lake-2); }
.wdt { font-size: var(--f2); font-weight: 700; line-height: 1.25; }
.wd .meta { font-size: var(--f0); color: var(--muted); margin-top: 2px; }
.wd .note { font-size: var(--f0); margin-top: 4px; }
.wdtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wdlist + .savebar { margin-top: 6px; }
.cflist { margin: 4px 0 14px; padding-left: 20px; }
.cflist li { margin-bottom: 4px; }
.ok-txt { color: var(--ok); font-weight: 700; }
.attlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--lake); }
.attlist li { border-bottom: 1px solid var(--line); }
.check.att { padding: 10px 0; align-items: flex-start; font-weight: 400; }
.check.att input { width: 32px; height: 32px; margin-top: 2px; }
.check.att.locked { cursor: default; }
.inl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inl input { width: 120px; }
.inl select { width: auto; }

/* ── Bootsverleih ── */
@media (max-width: 899px) { .nav a.desk { display: none; } }
.bklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--lake); }
.bk { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .bk { grid-template-columns: 1fr; } }
.code { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; background: var(--lake); color: #fff; border-radius: var(--r-m); padding: 10px 16px; min-width: 200px; }
.code svg { width: 26px; height: 26px; grid-row: span 2; color: var(--brass); }
.code span { font-size: var(--f0); color: #cfe0e2; }
.code b { font-size: 34px; letter-spacing: .14em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.code.pending { background: var(--tint); color: var(--ink); }
.code.pending svg { color: var(--muted); grid-row: auto; }
.code.pending span { color: var(--muted); }
.planbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.planwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--lake); }
table.plan { border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.plan th, table.plan td { padding: 4px 2px; text-align: center; border-bottom: 1px solid var(--line); }
table.plan thead th { font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 44px; }
table.plan thead th span { display: block; font-weight: 400; }
table.plan thead th.we { color: var(--lake-2); }
table.plan .bn { position: sticky; left: 0; z-index: 2; background: var(--paper); text-align: left; padding: 8px 12px 8px 0; min-width: 150px; max-width: 190px; }
table.plan .bn span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.cell { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; margin: 0 auto; font-size: 11px; font-weight: 700; }
button.cell { border: 1.5px solid var(--lake-3); background: var(--surface); cursor: pointer; }
button.cell:hover { background: color-mix(in srgb, var(--brass) 35%, var(--surface)); }
.cell.mine { background: var(--brass); color: var(--brass-ink); }
.cell.taken { background: var(--line); color: var(--muted); }
.cell.off { background: transparent; border: 1px dashed var(--line); }
.legend i.lg { width: 14px; height: 14px; border-radius: 4px; }
.legend i.lg.free { border: 1.5px solid var(--lake-3); background: var(--surface); }
.legend i.lg.mine { background: var(--brass); }
.legend i.lg.taken { background: var(--line); }
.list.boats li { flex-wrap: wrap; }
.curcode { display: flex; flex-direction: column; align-items: flex-end; margin-right: 6px; }
.curcode b { font-size: var(--f2); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
fieldset.mods { border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 10px 16px 6px; margin: 0 0 18px; }
fieldset.mods legend { font-weight: 700; padding: 0 6px; }
fieldset.mods .check { font-weight: 700; align-items: flex-start; }
fieldset.mods .check input { margin-top: 3px; }
fieldset.mods .check .muted { font-weight: 400; }

/* ── Abschlussmeldung ── */
.fin { list-style: none; counter-reset: fin; margin: 8px 0 0; padding: 0; }
.fin > li { counter-increment: fin; position: relative; margin-left: 17px; padding: 2px 0 26px 32px; border-left: 2px solid var(--line); }
.fin > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.fin > li::before { content: counter(fin); position: absolute; left: -18px; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--lake); color: #fff; display: grid; place-items: center; font-weight: 700; }
.fin h2 { margin: 3px 0 8px; font-size: var(--f2); line-height: 1.25; }
.fin .facts { margin-top: 14px; }
.fin-t { max-width: 440px; }
.check.fin-ok { font-weight: 400; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--lake-2); border-radius: var(--r-m); background: var(--surface); margin: 6px 0 10px; }
.check.fin-ok input { margin-top: 1px; }
.check.fin-ok:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
fieldset.mods details { margin: 4px 0 12px; }
fieldset.mods details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
fieldset.mods .field { margin-top: 6px; }
@media (max-width: 520px) { .fin > li { margin-left: 15px; padding-left: 26px; } }
.fin .savebar { position: static; background: none; padding-top: 4px; }
.btns .btn { white-space: normal; text-align: center; max-width: 100%; }
