:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #15202e;
  --muted: #5d6b7c;
  --line: #dde4ec;
  --navy: #0d2b45;
  --accent: #0b7285;
  --accent-soft: #e3f3f6;
  --ok: #2b8a3e;
  --ok-soft: #e6f4ea;
  --warn: #b35c00;
  --warn-soft: #fff1df;
  --danger: #c92a2a;
  --danger-soft: #fdecec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .06), 0 4px 14px rgba(13, 43, 69, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 1em; }
p { margin: 0 0 .8em; }
code { background: #eef2f6; padding: .1em .35em; border-radius: 4px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.text-warn { color: var(--warn); font-weight: 600; }

/* Kopfzeile */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 58px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.logo { font-size: 1.3rem; }
.tag { background: rgba(255, 255, 255, .16); font-size: .7rem; padding: 2px 7px; border-radius: 99px; font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: #c8d6e5; padding: 7px 10px; border-radius: 7px; font-weight: 500; font-size: .94rem; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .16); }
.user { display: flex; align-items: center; gap: 10px; margin-left: auto; color: #c8d6e5; font-size: .9rem; }
.user .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
main.wrap { padding-top: 24px; padding-bottom: 48px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.logo { width: 26px; height: 26px; }

/* Seitenleiste */
.has-side { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, #0d2b45 0%, #0b2238 100%); color: #c8d6e5;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 4px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 10px; }
.side-brand:hover { text-decoration: none; }
.side-brand .logo { color: #7fd3e3; }
.side-brand span { font-weight: 700; font-size: 1.08rem; line-height: 1.1; }
.side-brand small { display: block; font-weight: 500; font-size: .74rem; color: #8fb1cc; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.side-nav { flex: 1; }
.side-group { margin-top: 14px; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #6f8fab; padding: 0 12px 6px; font-weight: 700; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: #c8d6e5;
  font-weight: 500; margin-bottom: 2px; position: relative; transition: background .12s, color .12s;
}
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.side-link.active { background: rgba(127, 211, 227, .16); color: #fff; }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #7fd3e3; }
.side-link.active .ico { color: #7fd3e3; }
.side-link .txt { flex: 1; }
.count { background: #ec835a; color: #fff; font-size: .72rem; font-weight: 700; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #164a6e; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }
.who { flex: 1; min-width: 0; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.2; }
.who small { display: block; color: #8fb1cc; font-weight: 400; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn.light { color: #c8d6e5; display: grid; place-items: center; padding: 6px; }
.icon-btn.light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.content { min-width: 0; }
.content > .wrap { padding-top: 28px; padding-bottom: 48px; }

/* Diagramme */
.charts { display: grid; gap: 28px; }
.charts > summary { margin-bottom: 0; }
.viz { margin: 0; }
.viz-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.viz-title span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: #33445a; margin: 4px 0 12px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 7px; }
.viz-legend b { font-weight: 600; margin-left: 2px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.s1 { background: #2a78d6; }
.s2 { background: #eb6834; }
.viz-rows { display: grid; gap: 4px; }
.viz-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 14px; align-items: center; padding: 5px 6px; border-radius: 6px; outline: none; }
.viz-row:hover, .viz-row:focus-visible { background: #f2f6fa; }
.viz-label { font-size: .9rem; line-height: 1.25; overflow: hidden; }
.viz-label a { color: var(--text); font-weight: 600; }
.viz-label small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-track { display: flex; align-items: center; gap: 10px; min-width: 0; border-left: 1px solid #c3c2b7; }
.viz-bar { display: flex; gap: 2px; height: 20px; min-width: 0; }
.viz-bar .seg { display: block; height: 100%; min-width: 2px; }
.viz-bar .seg.end { border-radius: 0 4px 4px 0; }
.viz-value { font-size: .85rem; font-weight: 600; white-space: nowrap; color: #33445a; font-variant-numeric: tabular-nums; }
.split { display: flex; gap: 2px; height: 28px; margin: 6px 0 4px; }
.split-part { display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: .82rem; font-weight: 700; border-radius: 4px; min-width: 2px; outline: none; }
.split-part:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.viz-tip {
  position: fixed; z-index: 100; pointer-events: none; background: #0d2b45; color: #fff; padding: 8px 11px; border-radius: 8px;
  font-size: .82rem; line-height: 1.45; white-space: pre-line; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: 280px;
}

/* Abrechnung: Gruppen */
.group { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin-top: 12px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
a.badge:hover { text-decoration: none; filter: brightness(.95); }
.table.compact td, .table.compact th { padding: 6px 8px; }

/* Nachrichten */
.quick-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.target { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; color: var(--navy); font-weight: 600; background: #f9fbfd; }
.target:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-soft); }
.target small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.icon-link { margin-left: 4px; color: var(--accent); }
.icon-link:hover { text-decoration: none; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: .8rem; padding: 0 4px; }
.recipients small { font-weight: 400; }

/* Karten & Layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card.narrow, .auth { max-width: 520px; margin: 30px auto; }
.auth h1 { font-size: 1.35rem; }
.auth .club-logo { display: block; width: 72px; height: 72px; margin: 0 auto 6px; }
/* ---------- Öffentliche Eintragungsseite ---------- */
.signup-head { margin: 8px 0 22px; }
.signup-head h1 { margin-bottom: 6px; }
.signup-head .lead { font-size: 1.04rem; color: #3d4f63; max-width: 760px; margin: 0; }
.signup-month { margin-bottom: 26px; }
.month-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.signup-flotilla header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.signup-flotilla h3 { margin: 0 0 2px; font-size: 1.15rem; }
.signup-flotilla header p { margin: 0; }
.signup-flotilla .note { margin: 12px 0 0; }
.signup-boats { list-style: none; margin: 14px 0 0; padding: 0; }
.signup-boats li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.signup-boats .sb-state { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.signup-foot { text-align: center; margin: 10px 0 30px; }
.signup-summary { display: flex; flex-direction: column; gap: 3px; background: var(--accent-soft); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.signup-form label.check { align-items: flex-start; font-weight: 400; font-size: .9rem; }
.signup-form label.check input { margin-top: 3px; }
label.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.signup-switch h2 { margin: 0 0 4px; }
.signup-switch p { margin: 0 0 4px; }
.signup-switch.is-on { background: var(--ok-soft); }
.signup-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.signup-table .row-actions form { margin: 0; }
.signup-table .badge.muted { background: #eef1f5; color: var(--muted); }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-list label.check { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .signup-boats li { grid-template-columns: 1fr auto; }
  .signup-boats .sb-state { grid-column: 1 / -1; grid-row: 2; }
}

.side-brand .club-mark { width: auto; height: 38px; flex: none; }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { display: inline-block; margin: 0; }
details.card > summary::before { content: "▸"; color: var(--muted); margin-right: 8px; display: inline-block; transition: transform .15s; }
details.card[open] > summary::before { transform: rotate(90deg); }
details.card[open] > summary { margin-bottom: 14px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; white-space: pre-line; }
.empty { color: var(--muted); font-style: italic; margin: 0; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: inherit; box-shadow: var(--shadow); }
a.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat b { display: block; font-size: 1.45rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.warn { border-left: 4px solid var(--warn); }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--ok); }
.stats.small .stat b { font-size: 1.2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #095c6b; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: .84rem; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 1.25rem; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 5px; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

/* Formulare */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .88rem; color: #33445a; }
label small { font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; margin-top: 12px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); padding: 8px 10px; border: 1px solid #c9d3de;
  border-radius: 7px; background: #fff; width: 100%; min-width: 0;
}
input[type="checkbox"] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11, 114, 133, .25); border-color: var(--accent); }
textarea { resize: vertical; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid .span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack h3 { margin: 0; }
.actions { margin-top: 16px; display: flex; gap: 10px; }
.inline-add { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.inline-add input { flex: 1 1 160px; }
input.amount { max-width: 130px; text-align: right; }

/* Tabellen */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: #f8fafc; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.edit td { padding: 6px; vertical-align: middle; }
.table.edit input, .table.edit select { padding: 6px 8px; }
tr.inactive td { color: var(--muted); }

/* Badges & Meldungen */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: #eef2f6; color: var(--muted); white-space: nowrap; }
p.badge { margin: 6px 0; white-space: normal; border-radius: 6px; }
.badge.ok, .badge.st-bezahlt { background: var(--ok-soft); color: var(--ok); }
.badge.warn, .badge.st-entwurf { background: var(--warn-soft); color: var(--warn); }
.badge.st-ausgestellt { background: var(--accent-soft); color: var(--accent); }
.badge.st-storniert { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; }
.badge.big { font-size: .9rem; padding: 5px 14px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; background: var(--ok-soft); color: #1e5e2c; border: 1px solid #b7dfc1; }
.flash.error { background: var(--danger-soft); color: #8f1d1d; border-color: #f2c0c0; }
.flash.warn { background: var(--warn-soft); color: #7a3f00; border-color: #f5d3a8; }
.filter { display: flex; gap: 4px; flex-wrap: wrap; }
.filter a { padding: 4px 11px; border-radius: 99px; font-size: .84rem; color: var(--muted); border: 1px solid var(--line); }
.filter a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.creds { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; }
.creds dt { font-weight: 600; color: var(--muted); }
.creds dd { margin: 0; }
code.pw { font-size: 1.1rem; padding: .2em .5em; background: var(--warn-soft); }

/* Boote */
.boats { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 18px; }
.boats .card { margin: 0; }
.boat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.boat-head h3 { font-size: 1.12rem; margin: 0 0 10px; }
.boat-head small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.assign label { font-size: .8rem; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.calc { margin: 4px 0 8px; }
.filter.mb { margin-bottom: 16px; }

/* Kurstage */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.day { background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: .8rem; gap: 4px; }
.day input { padding: 5px 7px; text-align: right; }
.day.custom { border-color: var(--accent); background: var(--accent-soft); }
.day.off { opacity: .6; }

/* Nachrichten */
.compose { margin-top: 14px; }
.compose > summary { list-style: none; display: inline-flex; }
.compose > summary::-webkit-details-marker { display: none; }
.compose[open] > summary { margin-bottom: 12px; }
.compose form { background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.recipients { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.recipients legend { font-size: .82rem; font-weight: 600; color: #33445a; padding: 0 4px; }
.recipients label.check { margin: 0; }
.sent { margin-top: 14px; }
.sent ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.mail-log { list-style: none; margin: 0; padding: 0; }
.mail-log li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mail-log pre { white-space: pre-wrap; font: inherit; background: #f7f9fb; padding: 10px; border-radius: 6px; margin: 6px 0 0; }
.fee small { display: block; color: #9fc3dd; font-size: .78rem; margin-top: 2px; }
.meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people a.muted { font-size: .88rem; }

/* Portal */
.einsatz { padding: 0; overflow: hidden; }
.einsatz-head { display: flex; justify-content: space-between; gap: 16px; padding: 20px; background: linear-gradient(120deg, var(--navy), #164a6e); color: #fff; flex-wrap: wrap; }
.einsatz-head h2 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.einsatz-head .muted { color: #c8d6e5; margin: 0; }
.eyebrow { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: #9fc3dd; font-weight: 700; }
.fee { text-align: right; }
.fee span { display: block; font-size: .78rem; color: #9fc3dd; text-transform: uppercase; letter-spacing: .06em; }
.fee strong { font-size: 1.35rem; }
.boat-line { padding: 10px 20px; background: var(--accent-soft); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.four .span2 { grid-column: span 2; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 12px; }
.center { text-align: center; }
.big-emoji { font-size: 3rem; }
.eyebrow.dark { color: var(--accent); }
label.check.self-book { grid-column: span 2; margin-top: 0; }

/* Selbstbuchung */
.free-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.free-head h2 { margin-bottom: 2px; }
.free-boats { display: grid; gap: 8px; margin-top: 12px; }
.free-boat { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.free-boat:hover { border-color: var(--accent); }
.free-fee { text-align: right; }
.free-fee span, .free-fee strong { display: block; }
.free-fee strong { font-size: 1.1rem; color: var(--navy); }
@media (max-width: 760px) { .free-boat { grid-template-columns: 1fr; } .free-fee { text-align: left; } }

/* Vertretung */
.sub-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 20px 0; padding: 10px 14px; border-radius: 8px; background: var(--warn-soft); border: 1px solid #f5d3a8; }
.sub-request { margin: 10px 20px 0; }
.sub-request > summary { list-style: none; display: inline-flex; }
.sub-request > summary::-webkit-details-marker { display: none; }
.sub-request[open] > summary { margin-bottom: 4px; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin: 4px 0; }

/* App / Push */
.push-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.push-row p { margin: 2px 0 0; }

/* Zeitleiste */
.tl-card { padding: 16px 16px 12px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; margin-bottom: 12px; color: #33445a; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.tl-today-sw { width: 2px; height: 14px; background: #d03b3b; display: inline-block; }
.tl-scroll { overflow-x: auto; }
.tl { min-width: 900px; }
.tl-row { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-label { padding: 7px 10px 7px 0; font-size: .86rem; line-height: 1.2; overflow: hidden; }
.tl-label a { font-weight: 600; color: var(--text); }
.tl-label small { display: block; color: var(--muted); font-size: .74rem; }
.tl-track { position: relative; min-height: 36px; }
.tl-head .tl-track { height: 26px; min-height: 26px; }
.tl-month { position: absolute; top: 4px; font-size: .74rem; color: var(--muted); padding-left: 4px; border-left: 1px solid #c3c2b7; height: 20px; }
.tl-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid #eef1f4; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #d03b3b; z-index: 2; opacity: .8; }
.tl-bar {
  position: absolute; height: 24px; border-radius: 5px; color: #fff; font-size: .74rem; font-weight: 600; line-height: 24px;
  padding: 0 6px; overflow: hidden; white-space: nowrap; z-index: 1; box-shadow: 0 0 0 2px #fff;
}
.tl-bar span { overflow: hidden; text-overflow: ellipsis; display: block; }
.tl-bar:hover, .tl-bar:focus-visible { text-decoration: none; z-index: 3; filter: brightness(1.08); outline: 2px solid var(--navy); outline-offset: 1px; }
.st-ok { background: #2a78d6; }
.st-open { background: #fab219; color: #0b0b0b; }
.st-sub { background: #ec835a; color: #0b0b0b; }
.st-conflict { background: #d03b3b; }
.st-empty { background: #c3c2b7; color: #0b0b0b; }
.tl-sw.st-ok, .tl-sw.st-open, .tl-sw.st-sub, .tl-sw.st-conflict { box-shadow: none; }

/* Feedback */
.fb-form h1 { margin-top: 4px; }
.rating { border: 0; padding: 0; margin: 0 0 14px; }
.rating legend { font-weight: 600; font-size: .92rem; color: #33445a; margin-bottom: 4px; padding: 0; }
.req { color: var(--danger); }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; position: relative; }
.stars-input input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 2rem; color: #d3dae2; cursor: pointer; line-height: 1; padding: 0 2px; font-weight: 400; transition: color .1s, transform .1s; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #eda100; }
.stars-input label:hover { transform: scale(1.12); }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.seg { display: inline-flex; border: 1px solid #c9d3de; border-radius: 8px; overflow: hidden; }
.seg label { display: block; font-weight: 500; position: relative; }
.seg input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 16px; cursor: pointer; border-right: 1px solid #c9d3de; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: -2px; }
.stars-show { color: #eda100; letter-spacing: 1px; white-space: nowrap; }
.stars-show .off { color: #d3dae2; }
.stat .stars-show { display: block; font-size: .9rem; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fb-list li:last-child { border-bottom: 0; }
.fb-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fb-list p { margin: 6px 0 4px; white-space: pre-line; }
.vessel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.vessel-card { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; cursor: pointer; font-weight: 400; background: #fff; }
.vessel-card:hover { border-color: var(--accent); }
.vessel-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vessel-card input { margin-top: 3px; }
.vessel-card strong { display: block; color: var(--navy); }
.vessel-card small { color: var(--muted); }
.vessel-card em { display: block; font-size: .75rem; color: var(--muted); }
.vessel-card.used { opacity: .55; cursor: default; }
.vessel-pick { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; }
.h3-sum { cursor: pointer; font-weight: 700; color: var(--navy); margin: 4px 0 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.checks label.check { margin: 0; }
label.plain { display: inline; font-weight: inherit; font-size: inherit; color: inherit; cursor: pointer; }
.select-table td:first-child { width: 28px; }
@media (max-width: 760px) { .grid.four { grid-template-columns: 1fr 1fr; } }
.einsatz > .note { margin: 14px 20px 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; }
.cols section { padding: 18px 20px; }
.cols section + section { border-left: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.sec-head h3 { margin: 0; }

/* Startseite */
.landing { text-align: center; padding: 40px 0; }
.landing h1 { font-size: 2.2rem; }
.landing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 920px; margin: 30px auto 0; text-align: left; }

/* Verein */
.badge.info { background: var(--accent-soft); color: var(--accent); }
.badge.navy { background: #e4ebf3; color: var(--navy); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.cols-2.wide-first { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.section-head h2 { margin: 0; }
.toolbar.between { justify-content: space-between; margin-bottom: 12px; }
form.search input { width: 240px; max-width: 100%; }
.post { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.post.pinned { border-color: var(--accent); }
.post-img img { display: block; width: 100%; max-height: 320px; object-fit: cover; background: #e9eef3; }
.cols-2 .post-img img { max-height: 190px; }
.post-body { padding: 18px 20px; }
.post-body h2 { margin: 6px 0 8px; font-size: 1.15rem; }
.post-body h2 a { color: var(--navy); }
.post-meta { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-author { font-style: italic; margin-top: 1em; }
.post-thumb { max-width: 360px; width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.post-admin-list { list-style: none; margin: 0; padding: 0; }
.post-admin-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-admin-list li:last-child { border-bottom: 0; }
.post-admin-list p { margin: 4px 0 0; color: #33445a; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-ext { flex: none; width: 46px; text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 9px 0; border-radius: 6px; background: #e4ebf3; color: var(--navy); }
.doc-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-edit { flex: none; }
.doc-edit[open] { flex-basis: 100%; }
.doc-edit summary { list-style: none; }
.doc-edit summary::-webkit-details-marker { display: none; }
.doc-edit form { margin-top: 10px; }
.doc-list li:has(.doc-edit[open]) { flex-wrap: wrap; }
.board-list { list-style: none; padding: 0; margin: 0; }
.board-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.board-list li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-weight: 600; font-size: .88rem; }
.kv dd { margin: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 10px 0 24px; }
.danger-zone { border-color: #f2c0c0; }
.table .paid-form input[type="date"] { width: 132px; padding: 4px 6px; }
@media (max-width: 900px) {
  .cols-2, .cols-2.wide-first { grid-template-columns: 1fr; }
  form.search input { width: 100%; }
}

/* Vertrag */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.paid-form input[type="date"] { width: auto; }
.contract-preview { background: #e9eef3; border-radius: var(--radius); padding: 28px 16px; }
.contract {
  position: relative; background: #fff; max-width: 800px; margin: 0 auto; padding: 56px 64px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1); font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-size: 14px; line-height: 1.6; color: #111;
}
.contract h1 { font-size: 1.8rem; margin: 0; color: #111; }
.contract h2 { font-size: 1.02rem; margin: 1.5em 0 .4em; color: #111; }
.c-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 14px; margin-bottom: 22px; gap: 20px; }
.c-no { margin: 2px 0 0; color: #555; }
.c-org { text-align: right; font-weight: 700; }
.party { margin: .3em 0 .3em 24px; }
.role { margin-left: 24px; font-style: italic; color: #444; }
.c-items { width: 100%; border-collapse: collapse; margin: .5em 0 1em; }
.c-items th, .c-items td { border-bottom: 1px solid #bbb; padding: 6px 8px; text-align: left; }
.c-items .num { text-align: right; white-space: nowrap; }
.c-items tfoot td { font-weight: 700; border-top: 2px solid #111; border-bottom: 0; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.signs .line { border-bottom: 1px solid #111; min-height: 28px; padding-top: 4px; }
.signs .line.sig { margin-top: 44px; }
.signs span { font-size: .8rem; color: #555; }
.watermark { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-28deg); font-size: 110px; font-weight: 800; color: rgba(201, 42, 42, .08); pointer-events: none; letter-spacing: .1em; }
.print-body { background: #e9eef3; padding: 20px 16px; }
.print-bar { max-width: 800px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 10px; }

@media print {
  @page { size: A4; margin: 18mm 18mm; }
  body, .print-body { background: #fff; padding: 0; }
  .no-print, .top, .toolbar, .crumbs { display: none !important; }
  .contract { box-shadow: none; padding: 0; max-width: none; font-size: 11pt; }
  .contract h2 { break-after: avoid; }
  .signs { break-inside: avoid; }
}

@media print {
  .side { display: none !important; }
  .has-side { display: block; }
}

@media (max-width: 900px) {
  .has-side { display: block; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 12px; gap: 4px 8px; }
  .side-brand { border: 0; padding: 4px 6px; margin: 0; }
  .side-brand small { display: none; }
  .side-nav { order: 3; flex-basis: 100%; display: flex; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .side-group { display: contents; }
  .side-label { display: none; }
  .side-link { flex-direction: column; gap: 3px; padding: 6px 10px; font-size: .72rem; white-space: nowrap; margin: 0; }
  .side-link.active::before { display: none; }
  .side-link .count { position: absolute; top: 0; right: 2px; min-width: 18px; height: 16px; font-size: .64rem; }
  .side-user { margin: 0 0 0 auto; padding: 0; border: 0; }
  .who { display: none; }
  .avatar { width: 30px; height: 30px; }
  .content > .wrap { padding-top: 18px; }
}

@media (max-width: 760px) {
  .viz-row { grid-template-columns: 1fr; gap: 4px; }
  .grid, .two-col, .cols, .landing-cards { grid-template-columns: 1fr; }
  .grid .span2 { grid-column: auto; }
  .grid > span:empty { display: none; }
  .cols section + section { border-left: 0; border-top: 1px solid var(--line); }
  .boats { grid-template-columns: 1fr; }
  .contract { padding: 28px 20px; }
  .signs { grid-template-columns: 1fr; gap: 24px; }
  .user span { display: none; }
  .top-inner { padding: 8px 0; gap: 8px 16px; }
}
