:root {
  --navy: #1c2459; --navy-2: #2b3678; --ink: #1a2040; --muted: #6b7890; --line: #e3e7ee; --bg: #f6f7fa; --soft: #eef1f6; --mist: #7a95b1; --gold: #f2c230;
  --ok: #2fa66a; --warn: #e9a700; --bad: #e0483e; --r: 14px; --shadow: 0 1px 2px rgba(28,36,89,.06), 0 8px 24px rgba(28,36,89,.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font: 16px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; letter-spacing: -.02em; color: var(--navy); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; width: 100%; outline: none; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(43,54,120,.14); }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .grow { flex: 1; }
.ic { display: inline-flex; flex: none; } .ic.big svg { width: 38px; height: 38px; } .ic.flip { transform: rotate(180deg); }
.logo { border-radius: 50%; flex: none; }
.link { color: var(--navy-2); font-weight: 600; text-decoration: none; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 16px; border-radius: 11px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); white-space: nowrap; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.97); } .btn:hover { background: var(--soft); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(28,36,89,.25); } .btn.primary:hover { background: var(--navy-2); }
.btn.danger { color: var(--bad); border-color: #f3c9c5; } .btn.block { width: 100%; } .btn.small { min-height: 36px; padding: 6px 11px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--muted); flex: none; } .icon-btn:hover { background: var(--soft); color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; } .field > span { font-size: 13.5px; font-weight: 600; color: #46506b; } .field small { color: var(--muted); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.chips, .checks { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; } .checks { margin: 0; }
.chip { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 550; font-size: 14px; color: #46506b; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; } .chip.ghost { border-style: dashed; }
.seg { display: flex; background: var(--soft); border-radius: 11px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(28,36,89,.15); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--soft); color: #46506b; font-size: 12px; font-weight: 600; white-space: nowrap; } .tag.navy { background: var(--navy); color: #fff; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.lamp { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; } .lamp.ok { background: var(--ok); } .lamp.warn { background: var(--warn); } .lamp.bad { background: var(--bad); }
.toasts { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 99; align-items: center; width: max-content; max-width: 90vw; }
.toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 30px rgba(20,26,60,.3); animation: pop .2s; transition: opacity .3s; text-align: center; } .toast.ok { background: #1d7a4b; } .toast.err { background: #b3342c; } .toast.out { opacity: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } } @keyframes up { from { transform: translateY(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }

/* Fenster */
.sheet-wrap { position: fixed; inset: 0; background: rgba(20,26,60,.42); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; } .sheet-wrap.out { opacity: 0; transition: opacity .18s; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.9,.3,1); padding-bottom: env(safe-area-inset-bottom); }
.sheet.wide { max-width: 1040px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 20px; } .sheet-head h2 { font-size: 18px; color: var(--navy); }
.sheet-body { padding: 8px 20px 22px; overflow: auto; }
.sub { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 11px; background: var(--soft); margin-bottom: 6px; } .pick:active { background: #dfe5f0; }
.pick > div { flex: 1; min-width: 0; } .pick strong { display: block; } .pick span { font-size: 13px; color: var(--muted); } .pick.used { opacity: .55; }

/* Seiten */
.center-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 24px; text-align: center; }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; } .login .logo { align-self: center; } .login h1 { margin-top: 8px; } .login > p { margin-bottom: 14px; } .login .field { text-align: left; }
.empty { text-align: center; padding: 50px 20px; color: var(--mist); display: flex; flex-direction: column; align-items: center; gap: 8px; } .empty h3 { color: var(--navy); }
.list { display: flex; flex-direction: column; gap: 12px; }
.ev { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; } .ev.click { cursor: pointer; transition: transform .12s; } .ev.click:active { transform: scale(.99); }
.ev-top { display: flex; gap: 13px; } .ev-main { flex: 1; min-width: 0; }
.ev-main h3 { font-size: 17px; margin: 3px 0 4px; } .ev-main h1 { margin: 3px 0 4px; }
.ev-main p { display: flex; gap: 6px; align-items: center; color: #46506b; font-size: 14.5px; } .ev-main p .ic svg { width: 16px; height: 16px; color: var(--mist); }
.ev-main p.note { background: var(--soft); border-radius: 8px; padding: 6px 9px; margin-top: 7px; font-size: 14px; }
.date { width: 54px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 7px 0; line-height: 1.1; height: max-content; }
.date span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; opacity: .85; } .date strong { font-size: 22px; }
.date.k-Trainingslager { background: var(--mist); } .date.k-Regatta { background: var(--gold); color: var(--navy); }
.kind { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-2); } .kind.k-Trainingslager { color: #4d6a88; } .kind.k-Regatta { color: #9a7400; }
.rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.rsvp button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; border-radius: 13px; font-weight: 700; font-size: 16px; border: 2px solid var(--line); background: #fff; color: #46506b; transition: all .15s; } .rsvp button:active { transform: scale(.97); }
.rsvp .yes.on { background: var(--ok); border-color: var(--ok); color: #fff; } .rsvp .no.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.ev.zu { box-shadow: var(--shadow), inset 4px 0 0 var(--ok); } .ev.ab { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); }
.closed { margin-top: 11px; font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 9px 11px; }

/* Sportler */
.a-page { max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
.a-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; } .a-head > div { flex: 1; } .a-head p { color: var(--muted); font-size: 14.5px; }
.install { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--navy); color: #fff; border-radius: var(--r); padding: 13px 14px; margin-bottom: 16px; }
.install > div { flex: 1; } .install strong { display: block; } .install span { font-size: 13.5px; opacity: .8; }
.a-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.guide { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 12px; }
.guide li { display: flex; gap: 14px; align-items: center; background: var(--soft); border-radius: 14px; padding: 10px 12px; }
.g-pic { width: 84px; flex: none; } .mock { width: 100%; display: block; }
.g-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; }
.guide p { font-size: 14.5px; color: #46506b; margin-top: 4px; }

/* Trainer */
.t-page { min-height: 100dvh; display: flex; flex-direction: column; }
.t-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.t-head > strong { color: var(--navy); flex: 1; } .who { color: var(--muted); font-size: 14px; display: none; }
.t-nav { display: flex; } .t-nav button { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--muted); }
.t-nav.top { display: none; gap: 4px; flex: 1; margin-left: 14px; } .t-nav.top button { padding: 8px 13px; border-radius: 10px; } .t-nav.top button.on { background: var(--navy); color: #fff; }
.t-nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.t-nav.bottom button { flex: 1; flex-direction: column; gap: 2px; padding: 9px 0 8px; font-size: 12px; } .t-nav.bottom button.on { color: var(--navy); }
.t-main { flex: 1; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 1180px; width: 100%; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; } .row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.lead { margin-bottom: 12px; } .search { margin-bottom: 12px; }
.counts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; } .c { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--soft); color: #46506b; }
.c.zu { background: #e3f5ec; color: #1d7a4b; } .c.ab { background: #fdecea; color: #a8362e; } .c.boats { background: #e3e8f6; color: var(--navy); }
.backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-2); font-weight: 600; margin-bottom: 12px; min-height: 40px; }
.detail-head { display: flex; gap: 13px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.grp { margin-bottom: 18px; } .grp h2, .pool h2 { font-size: 14px; color: var(--navy); display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.grp h2 span, .pool h2 span, .col h3 span { background: var(--soft); color: var(--muted); border-radius: 99px; padding: 0 8px; font-size: 12.5px; }
.rows { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #f0f2f6; } .row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; cursor: pointer; } .row-main strong { display: block; } .row-main span { font-size: 13px; color: var(--muted); }
.mini { display: flex; gap: 6px; } .mini button { width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--muted); background: #fff; }
.mini .yes.on { background: var(--ok); border-color: var(--ok); color: #fff; } .mini .no.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.pad { padding: 0 4px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.pool { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; } .pool-list { display: flex; gap: 6px; flex-wrap: wrap; } .hint { margin-top: 10px; }
.chipA { background: var(--soft); border-radius: 10px; padding: 6px 10px; cursor: grab; line-height: 1.25; } .chipA strong { display: block; font-size: 14.5px; } .chipA span { font-size: 12px; color: var(--muted); }
.crews { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; align-items: start; }
.crew { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; }
.crew-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .crew-head h3 { display: flex; gap: 8px; align-items: center; font-size: 17px; } .crew-head p { font-size: 13px; color: var(--muted); }
.loc { font-weight: 700; } .l-MRS { color: var(--navy); } .l-MRC { color: #9a7400; } .l-Obe { color: #2e7d6b; } .l-Ext { color: #8a4bb0; }
.crew .seats { display: flex; flex-direction: column; gap: 6px; }
.seat { display: flex; align-items: center; flex: none; gap: 10px; width: 100%; text-align: left; border: 1.5px dashed var(--line); border-radius: 11px; padding: 8px 10px; min-height: 50px; background: #fbfcfe; }
.seat.filled { border-style: solid; background: #fff; } .seat.over { border-color: var(--navy-2); background: #eef1fb; }
.seat.ok { border-color: #b9e2cc; } .seat.warn { border-color: #f0d37a; background: #fffbee; } .seat.bad { border-color: #efb1ab; background: #fff5f4; }
.seat .k { width: 70px; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; } .seat .n { flex: 1; min-width: 0; } .seat .n strong { display: block; } .seat .n small { color: var(--muted); font-size: 12.5px; } .seat .n.vacant { color: #a9b2c4; font-size: 14.5px; }
.add-crew { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; border: 2px dashed #c9d0de; border-radius: var(--r); color: var(--navy-2); font-weight: 700; } .add-crew:hover { background: #fff; }
.cols { display: grid; grid-template-columns: 1fr; gap: 16px; } .col h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 8px; }
.linkbox { background: var(--soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; } .linkbox code { font-size: 12px; word-break: break-all; color: var(--muted); }

@media (min-width: 820px) {
  .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; }
  .t-nav.bottom { display: none; } .t-nav.top { display: flex; } .t-head > strong { flex: none; } .who { display: block; }
  .t-main { padding: 28px 28px 60px; }
  .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .plan { flex-direction: row; align-items: flex-start; } .pool { width: 280px; flex: none; position: sticky; top: 76px; } .pool-list { flex-direction: column; flex-wrap: nowrap; max-height: 60vh; overflow: auto; }
  .crews { flex: 1; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .cols { grid-template-columns: repeat(4, 1fr); }
  .toasts { bottom: 28px; }
}

/* Kalender */
.mini-seg { margin: 0; } .mini-seg button { padding: 7px 12px; }
.cal { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; margin-bottom: 16px; }
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; } .cal-head strong { font-size: 17px; color: var(--navy); min-width: 150px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 54px; border-radius: 10px; padding: 4px; cursor: pointer; background: #fafbfd; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.cal-cell.other { opacity: .4; } .cal-cell.sel { box-shadow: inset 0 0 0 2px var(--navy); background: #fff; }
.cal-num { font-size: 14px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; } .cal-cell.today .cal-num { background: var(--navy); color: #fff; }
.cal-evs { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; width: 100%; }
.pill { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); font-size: 0; pointer-events: none; overflow: hidden; }
.pill.k-Trainingslager { background: var(--mist); } .pill.k-Regatta { background: var(--gold); } .pill.off { opacity: .35; }
.more { font-size: 10px; color: var(--muted); line-height: 8px; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .day-head h2 { font-size: 16px; color: var(--navy); }
.tag.bad { background: #fdecea; color: #a8362e; margin-left: 8px; vertical-align: middle; } .ev.off { opacity: .7; } .ev.off h3 { text-decoration: line-through; text-decoration-color: #c9a09c; }
.closed.bad { background: #fdecea; color: #a8362e; font-weight: 600; } .top-gap { margin-top: 10px; }
.week { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 2px -2px; } .list .week:first-child { margin-top: 0; }
@media (min-width: 820px) {
  .cal { padding: 14px; } .cal-cell { min-height: 108px; align-items: stretch; padding: 6px; } .cal-num { align-self: flex-start; }
  .cal-evs { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
  .pill { width: auto; height: auto; border-radius: 6px; font-size: 12px; pointer-events: auto; color: #fff; padding: 2px 6px; text-align: left; white-space: nowrap; text-overflow: ellipsis; line-height: 1.35; }
  .pill.k-Regatta { color: var(--navy); } .pill.off { text-decoration: line-through; } .pill:hover { filter: brightness(1.15); }
  .more { font-size: 11.5px; line-height: 1.2; padding-left: 4px; }
  .list .week { grid-column: 1 / -1; }
}
@media (max-width: 819px) {
  .page-head { flex-wrap: wrap; } .page-head .row-gap { flex-wrap: nowrap; width: 100%; justify-content: space-between; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { white-space: nowrap; flex: none; }
  .sheet .chips, .checks { flex-wrap: wrap; overflow: visible; margin-right: 0; }
}

/* Ansichten: 3 Tage / Woche / Monat / Liste */
.views { margin-bottom: 14px; } .page-head .views { margin-bottom: 0; }
.cal-head strong { min-width: 0; flex: none; padding: 0 4px; }
.days { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dcol { background: #fafbfd; border-radius: 12px; padding: 8px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dcol.today { box-shadow: inset 0 0 0 2px var(--navy); background: #fff; }
.dcol-head { display: flex; align-items: baseline; gap: 7px; padding: 2px 4px; } .dcol-head span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .dcol-head strong { color: var(--navy); flex: 1; }
.dcol.today .dcol-head span { color: var(--navy); }
.icon-btn.tiny { width: 30px; height: 30px; border-radius: 8px; } .icon-btn.tiny svg { width: 16px; height: 16px; }
.none { color: #a9b2c4; font-size: 13.5px; padding: 2px 4px 4px; margin: 0; }
.mini-ev { display: flex; flex-direction: column; gap: 1px; text-align: left; background: #fff; border-radius: 10px; padding: 7px 9px; border-left: 4px solid var(--navy); box-shadow: 0 1px 2px rgba(28,36,89,.08); min-width: 0; transition: transform .1s; }
.mini-ev:hover { transform: translateY(-1px); } .mini-ev.k-Trainingslager { border-left-color: var(--mist); } .mini-ev.k-Regatta { border-left-color: var(--gold); }
.mini-ev b { font-size: 12.5px; color: var(--navy-2); font-variant-numeric: tabular-nums; } .mini-ev strong { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; } .mini-ev > span { font-size: 12.5px; color: var(--muted); }
.mini-ev.off { opacity: .6; } .mini-ev.off strong { text-decoration: line-through; }
.mini-counts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; } .mini-counts i { font-style: normal; font-weight: 600; font-size: 11.5px; background: var(--soft); border-radius: 6px; padding: 0 6px; color: #46506b; }
.mini-counts .zu { background: #e3f5ec; color: #1d7a4b; } .mini-counts .ab { background: #fdecea; color: #a8362e; }
.pill.s-zu { background: var(--ok); } .pill.s-ab { background: var(--bad); }
.a-page .dcol .ev { box-shadow: 0 1px 2px rgba(28,36,89,.08); } .a-page .dcol .ev.zu { box-shadow: 0 1px 2px rgba(28,36,89,.08), inset 4px 0 0 var(--ok); } .a-page .dcol .ev.ab { box-shadow: 0 1px 2px rgba(28,36,89,.08), inset 4px 0 0 var(--bad); }

/* Leichtgewicht */
.tag.lg { background: var(--gold); color: var(--navy); margin-left: 6px; font-size: 10.5px; padding: 1px 6px; vertical-align: middle; letter-spacing: .03em; }
.lgbox { background: #fdf7e0; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; } .lgbox small { color: #6b5a1c; font-size: 13.5px; }

/* Bootseinteilung */
.plan-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.plan-sum div { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 9px 10px; text-align: center; line-height: 1.2; } .plan-sum strong { display: block; font-size: 21px; color: var(--navy); } .plan-sum span { font-size: 12px; color: var(--muted); }
.crew-area { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cls-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line); } .cls-head strong { color: var(--navy); } .cls-head > span:last-child { color: var(--muted); font-size: 13.5px; margin-left: auto; }
.cls-badge { background: var(--navy); color: #fff; font-weight: 800; border-radius: 9px; padding: 3px 11px; font-size: 16px; letter-spacing: .02em; }
.crew { border-top: 4px solid var(--line); padding: 11px 12px 9px; } .crew.b-MRS { border-top-color: var(--navy); } .crew.b-MRC { border-top-color: var(--gold); } .crew.b-Obe { border-top-color: #2e7d6b; } .crew.b-Ext { border-top-color: #8a4bb0; }
.crew-head h3 { font-size: 16.5px; }
.crew .seats { gap: 5px; }
.seat { min-height: 46px; padding: 6px 9px; gap: 9px; }
.badge { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--navy); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; } .badge.cox { background: #e3e8f6; font-size: 11.5px; }
.seat.filled .badge { background: var(--navy); color: #fff; } .seat.filled .badge.cox { background: var(--mist); }
.crew-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.add-crew { width: 100%; }

@media (min-width: 820px) {
  .t-page .days.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .t-page .days.n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .t-page .days .dcol { min-height: 300px; } .t-page .days.n7 .dcol-head { flex-wrap: wrap; gap: 2px 6px; } .t-page .days.n7 .mini-ev strong { font-size: 13.5px; }
  .crew-area { flex: 1; } .crew-area .crews { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
  .plan-sum { max-width: 560px; }
  .cal.dots .cal-cell { min-height: 58px; align-items: center; padding: 4px; } .cal.dots .cal-num { align-self: center; } .cal.dots .cal-evs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cal.dots .pill { width: 8px; height: 8px; border-radius: 50%; font-size: 0; padding: 0; pointer-events: none; } .cal.dots .more { font-size: 10px; line-height: 8px; padding: 0; }
}
@media (max-width: 819px) { .page-head .views { flex: 1; } .views button { padding: 8px 4px; font-size: 13.5px; } }

.views button { white-space: nowrap; }
.seat .n.vacant { color: #a9b2c4; font-size: 14.5px; }

/* ================= Version 1.2 (Testfassung) ================= */
:root { --card: #fff; --hull: #eef1f6; --hull-line: #d3d9e6; }
.ty-rudern { --ty: #1c2459; } .ty-ergo { --ty: #1f8a70; } .ty-kraft { --ty: #d9652b; } .ty-halle { --ty: #7a56c2; } .ty-lager { --ty: #6f8cab; } .ty-regatta { --ty: #c98f00; }
.tyb { display: inline-block; background: color-mix(in srgb, var(--ty) 13%, var(--card)); color: var(--ty); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; white-space: nowrap; align-self: flex-start; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ty, var(--navy)); display: inline-block; margin-right: 6px; vertical-align: 1px; }
.chip.on .dot { background: #fff; }
.date[class*="ty-"] { background: var(--ty); } .date.ty-regatta { color: #fff; }
.pill[class*="ty-"] { background: var(--ty); } .mini-ev[class*="ty-"] { border-left-color: var(--ty); }
.mini-ev .tyb { margin-bottom: 2px; font-size: 9.5px; }
.mini-counts .tr, .c.tr { background: #e3e8f6; color: var(--navy); } .mini-counts .pl, .c.pl { background: #fdf7e0; color: #7a5a00; } .c.nopl { background: #fff1e6; color: #a8521b; }
.testbar { background: #f2c230; color: #1c2459; font-size: 13.5px; padding: 7px 14px; text-align: center; position: sticky; top: 0; z-index: 30; }
.testbar .link { color: #1c2459; text-decoration: underline; margin-left: 8px; font-size: 13.5px; }
.t-page .t-head { top: 0; } body:has(.testbar) .t-head { top: 34px; }

/* Trainingsplan */
.planbox { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.planbox h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.planbox h4 .link { text-transform: none; letter-spacing: 0; }
\.plantab { width: 100%; border-collapse: collapse; font-size: 14px; } .plantab td { padding: 5px 6px; border-top: 1px solid var(--line); vertical-align: top; } .plantab tr:first-child td { border-top: 0; }
.plantab td.f { font-weight: 650; color: var(--navy); } .plantab td.r { text-align: right; color: #46506b; white-space: nowrap; }
.plan-text p { margin: 3px 0; font-size: 14.5px; }
.plan-img { display: block; width: 100%; position: relative; border-radius: 9px; overflow: hidden; margin-top: 4px; }
.plan-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; }
.plan-img small { position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-weight: 600; background: rgba(28,36,89,.8); color: #fff; border-radius: 6px; padding: 1px 7px; }
.plan-full { width: 100%; border-radius: 10px; } .plan-pdf { margin-top: 8px; }
.ev > .planbox { margin-bottom: 2px; } .detail-head + .planbox { margin: -4px 0 14px; background: var(--card); box-shadow: var(--shadow); }
.tabs3 { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; } .tabs3 button { padding: 6px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--muted); background: var(--soft); display: inline-flex; gap: 5px; align-items: center; position: relative; }
.tabs3 button .ic svg { width: 16px; height: 16px; } .tabs3 button.on { background: var(--navy); color: #fff; } .tabs3 .has { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.plan-editor { display: flex; flex-direction: column; gap: 8px; } .plan-editor textarea { font-family: inherit; }
.upl-drop { width: 100%; border: 2px dashed #c9d0de; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--navy-2); }
.upl-drop span:last-child { font-size: 13px; color: var(--muted); } .upl { display: flex; flex-direction: column; gap: 8px; } .upl-img { max-height: 220px; border-radius: 10px; object-fit: contain; background: var(--soft); }

/* Kopfbereich mit Motiv */
.hero { background: linear-gradient(170deg, #1c2459, #2f3d86 70%, #5c79a6); color: #fff; position: relative; overflow: hidden; padding: calc(16px + env(safe-area-inset-top)) 18px 58px; }
.hero .motif { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; pointer-events: none; }
.hero .top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 23px; } .hero p { opacity: .85; font-size: 14.5px; } .hero .icon-btn { color: rgba(255,255,255,.85); } .hero .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.pull { margin-top: -40px; position: relative; z-index: 2; }
.a-wrap .a-page { padding-top: 0; } .a-wrap .hero { padding-left: 20px; padding-right: 20px; } .a-wrap .hero .top { max-width: 528px; }
.home .hero { margin: -18px -16px 0; } .home .pull { padding: 0 2px; }
.sect { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 18px 2px 8px; display: flex; gap: 8px; align-items: center; }
.sect span { background: var(--soft); border-radius: 99px; padding: 0 8px; } .sect.light { color: rgba(255,255,255,.85); margin-top: 0; }
.task { display: flex; gap: 11px; align-items: center; background: var(--card); border-radius: 13px; box-shadow: var(--shadow); padding: 11px 12px; margin-bottom: 8px; }
.task > .ic { color: #d9652b; } .task.info > .ic { color: var(--navy-2); } .task > div { flex: 1; min-width: 0; } .task strong { display: block; font-size: 14.5px; } .task span { font-size: 13px; color: var(--muted); }
.task button { font-size: 13px; font-weight: 700; color: var(--navy-2); white-space: nowrap; padding: 6px 8px; border-radius: 8px; } .task button:hover { background: var(--soft); }
.st { font-size: 12px; font-weight: 700; border-radius: 7px; padding: 2px 8px; white-space: nowrap; } .st.zu { background: #e3f5ec; color: #1d7a4b; } .st.ab { background: #fdecea; color: #a8362e; } .st.of { background: var(--soft); color: var(--muted); }
.next { padding: 16px; } .next .when { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #c98f00; margin-bottom: 6px; }
.next h2 { font-size: 22px; color: var(--navy); margin: 4px 0 6px; } .next .ev-main p { margin-top: 2px; }
.list.tight { gap: 8px; }
.cmp { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: var(--card); border-radius: 13px; box-shadow: var(--shadow); padding: 10px 12px; }
.cmp .d { width: 40px; text-align: center; line-height: 1.1; } .cmp .d b { display: block; font-size: 18px; color: var(--navy); } .cmp .d span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cmp .m { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; } .cmp .m strong { font-size: 14.5px; } .cmp .m small { color: var(--muted); font-size: 12.5px; }
.expanded .collapse { display: block; margin: 6px auto 0; }
.rsvp .on.pop { animation: popin .35s cubic-bezier(.2,1.6,.4,1); } @keyframes popin { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* Trainer: Anmeldung */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; flex: none; background: var(--av, #2b3678); letter-spacing: .02em; }
.mebar { background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; } .mebar p { font-weight: 650; margin-bottom: 9px; }
.mebar > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .mebar button { min-height: 44px; border-radius: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff; }
.mebar button.on { background: var(--ok); } .mebar button.on.no { background: var(--bad); }
.rows.trainers .row { gap: 10px; } .grp h2 .push { margin-left: auto; }
.row.att-row { width: 100%; text-align: left; gap: 11px; } .att { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c9d0de; display: grid; place-items: center; color: #fff; flex: none; } .att.on { background: var(--ok); border-color: var(--ok); }
.att .ic svg { width: 16px; height: 16px; }
.plan-sum.three { grid-template-columns: repeat(3, 1fr); }
.pct { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; } .small-pct { font-size: 13px; color: var(--muted); }
.bar-pct { width: 80px; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; } .bar-pct i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.banner { display: flex; gap: 10px; background: #fff4e5; border: 1px solid #f3d4a8; color: #7a4a00; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 10px; }
.banner > .ic { color: #d9652b; flex: none; } .banner b { display: block; } .banner.info { background: #eef1fb; border-color: #d3dbf3; color: var(--navy); } .banner.info > .ic { color: var(--navy-2); }
.tools { margin-bottom: 12px; }
.fbtn { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-weight: 650; color: var(--navy); font-size: 14px; }
.fbtn b { background: var(--navy); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; } .fgrp { font-size: 12.5px; font-weight: 700; color: #46506b; margin: 12px 0 7px; } .fgrp:first-child { margin-top: 0; }
.part { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; } .part div { background: var(--soft); border-radius: 12px; padding: 9px 12px; } .part strong { display: block; font-size: 20px; color: var(--navy); } .part span { font-size: 12.5px; color: var(--muted); }
.switch { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; } .switch input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--navy); } .switch strong { display: block; } .switch small { color: var(--muted); }
.cls-badge.small { font-size: 12.5px; padding: 2px 8px; border-radius: 7px; min-width: 38px; text-align: center; }
.row.boat-row { width: 100%; text-align: left; gap: 11px; } .row.boat-row .ic { color: var(--muted); } .row.blocked .row-main strong { color: var(--muted); }
.row-main .tag { margin-left: 6px; vertical-align: 1px; }
.pick.blocked { opacity: .55; } .pick .ic { color: var(--muted); } .pick.danger strong { color: var(--bad); } .menu .pick { gap: 12px; }
.poster-img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 8px; }
.chipA { display: flex; gap: 8px; align-items: center; } .chipA > div { min-width: 0; }

/* Boot als Zeichnung */
.viz { position: relative; display: flex; flex-direction: column; padding-left: 0; margin: 4px 0 2px; }
.hull { position: absolute; left: 4px; top: 0; width: 56px; color: var(--hull); pointer-events: none; } .hull svg { width: 100%; height: 100%; display: block; }
.tinylbl { position: absolute; left: 4px; width: 56px; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #8f98b5; text-transform: uppercase; z-index: 1; } .tinylbl.top { top: -3px; } .tinylbl.bottom { bottom: -3px; }
.vrow { display: flex; align-items: center; gap: 4px; height: 62px; width: 100%; text-align: left; border-radius: 12px; position: relative; transition: background .12s; }
.vrow:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); } .vrow.over { background: #eef1fb; outline: 2px dashed var(--navy-2); }
.vseat { width: 64px; display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.vseat i { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13.5px; box-shadow: 0 2px 6px rgba(28,36,89,.3); }
.vseat i.e { background: var(--card); color: #a9b2c4; border: 2px dashed #c9d0de; box-shadow: none; }
.vinfo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 100%; border-bottom: 1px solid var(--line); padding-right: 6px; } .vrow:last-of-type .vinfo { border-bottom: 0; }
.vinfo .n { flex: 1; min-width: 0; } .vinfo .n strong { display: block; font-size: 15px; } .vinfo .n small { color: var(--muted); font-size: 12.5px; } .vinfo .n.vacant { color: #a9b2c4; }
.vrow.warn .vinfo .n small { color: #8a6500; } .vrow.bad .vinfo .n small { color: #a8362e; }
.sym { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; flex: none; } .sym.ok { background: var(--ok); } .sym.warn { background: var(--warn); } .sym.bad { background: var(--bad); }
.pick .sym { margin-left: auto; }

@media (max-width: 819px) {
  .f-inline { display: none; } .fbtn { display: inline-flex; }
  .page-head .row-gap { flex-wrap: wrap; } .page-head .views { flex: 1 1 100%; order: 3; } .page-head .fbtn { flex: 1; justify-content: center; }
  .tools .btn { flex: 1; }
}
@media (min-width: 820px) {
  .home .hero { margin: -28px -28px 0; border-radius: 0 0 22px 22px; padding-left: 28px; padding-right: 28px; } .home .pull { max-width: 760px; }
  .home .list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* ================= Dunkler Modus ================= */
html.dark { --ink: #e8ebf5; --muted: #8f98b5; --line: #262c4d; --bg: #0c1022; --soft: #1d2342; --card: #161b36; --navy: #2b3678; --navy-2: #8fa2ff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --hull: #1d2342; --hull-line: #2f3760; color-scheme: dark; }
html.dark body { background: var(--bg); color: var(--ink); }
html.dark h1, html.dark .next h2, html.dark .cmp .d b, html.dark .pct, html.dark .part strong, html.dark .plan-sum strong, html.dark .crew-head h3, html.dark .cls-head strong, html.dark .day-head h2, html.dark .cal-head strong, html.dark .dcol-head strong, html.dark .grp h2, html.dark .pool h2, html.dark .sheet-head h2, html.dark .plantab td.f { color: #fff; }
html.dark .ev, html.dark .cmp, html.dark .task, html.dark .rows, html.dark .crew, html.dark .pool, html.dark .plan-sum div, html.dark .detail-head, html.dark .cal, html.dark .t-head, html.dark .t-nav.bottom, html.dark .sheet, html.dark .mini-ev, html.dark .chip, html.dark .btn, html.dark .fbtn, html.dark input, html.dark select, html.dark textarea, html.dark .dcol.today, html.dark .cal-cell.sel { background: var(--card); color: var(--ink); border-color: var(--line); }
html.dark .btn { color: #dfe3f2; } html.dark .btn.primary { background: #3a4aa8; border-color: #3a4aa8; color: #fff; } html.dark .chip.on { background: #3a4aa8; border-color: #3a4aa8; color: #fff; }
html.dark .dcol, html.dark .cal-cell, html.dark .chipA, html.dark .pick, html.dark .closed, html.dark .linkbox, html.dark .seg { background: #11152b; } html.dark .seg button.on { background: #2b3678; color: #fff; box-shadow: none; }
html.dark .ev-main p, html.dark .plantab td.r, html.dark .fgrp, html.dark .field > span, html.dark .c { color: #b9c0da; } html.dark .c { background: var(--soft); }
html.dark .rsvp button { background: var(--card); border-color: #2a3157; color: #c6cce0; } html.dark .rsvp .yes.on { background: var(--ok); border-color: var(--ok); color: #fff; } html.dark .rsvp .no.on { background: var(--bad); border-color: var(--bad); color: #fff; }
html.dark .row { border-color: var(--line); } html.dark .mini button { background: var(--card); border-color: #2a3157; } html.dark .mini .yes.on { background: var(--ok); color: #fff; } html.dark .mini .no.on { background: var(--bad); color: #fff; }
html.dark .lgbox { background: #2a2614; } html.dark .lgbox small { color: #e8d796; } html.dark .banner { background: #2c2114; border-color: #4e3a1c; color: #f0c88d; } html.dark .banner.info { background: #171d3d; border-color: #2a3366; color: #c6cfff; }
html.dark .hero { background: linear-gradient(170deg, #121838, #1f2a63 70%, #34507a); } html.dark .install { background: #1f2a63; }
html.dark .tyb { background: color-mix(in srgb, var(--ty) 28%, var(--card)); color: #fff; } html.dark .ty-rudern { --ty: #5b6fd6; }
html.dark .date[class*="ty-"] { background: var(--ty); } html.dark .vseat i { background: #3a4aa8; } html.dark .vseat i.e { background: var(--card); }
html.dark .icon-btn { color: #8f98b5; } html.dark .icon-btn:hover { background: var(--soft); color: #fff; } html.dark .sheet-wrap { background: rgba(0,0,0,.6); }
html.dark .t-nav.top button.on { background: #3a4aa8; } html.dark .t-nav.bottom button.on { color: #fff; } html.dark .cls-badge { background: #3a4aa8; }
html.dark .tag { background: var(--soft); color: #c6cce0; } html.dark .tag.lg { background: var(--gold); color: #1c2459; } html.dark .tag.navy { background: #3a4aa8; color: #fff; } html.dark .tag.bad { background: #3a1c1c; color: #ff9b94; }
html.dark .st.of { background: var(--soft); } html.dark .mebar { background: #1f2a63; } html.dark .vrow.over { background: #1d2342; }
html.dark .upl-drop { border-color: #2f3760; color: #c6cfff; } html.dark .att { border-color: #3a4270; } html.dark .link { color: #9fb0ff; }
html.dark .t-head > strong, html.dark .who { color: #fff; } html.dark .testbar .link { color: #1c2459; } html.dark .testbar { color: #1c2459; }
html.dark .t-nav.top button { color: #8f98b5; } html.dark .t-nav.top button.on { color: #fff; }
