:root {
  --navy: #0b3d63;
  --sea: #0e7c86;
  --sea-soft: #e3f3f4;
  --sand: #f6f3ec;
  --card: #ffffff;
  --text: #13222f;
  --muted: #5f6f7c;
  --line: #e2e6ea;
  --ok: #1e8e5a;
  --ok-soft: #e2f5ea;
  --warn: #b7791f;
  --warn-soft: #fdf2dc;
  --bad: #c0392b;
  --bad-soft: #fbe5e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 61, 99, .06), 0 4px 14px rgba(11, 61, 99, .06);
  color-scheme: light;
}

  html.dark {
    --navy: #0a2236;
    --sea: #3cc0c9;
    --sea-soft: #12333b;
    --sand: #0e1820;
    --card: #15232e;
    --text: #e7eef3;
    --muted: #93a4b1;
    --line: #26394a;
    --ok-soft: #133526;
    --warn-soft: #3a2d12;
    --bad-soft: #3a1915;
    --shadow: none;
  }


* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 1rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--sand);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--sea); }
h1, h2, h3 { line-height: 1.2; margin: .2em 0 .5em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.error { color: var(--bad); min-height: 0; margin: .3em 0; }
.error:empty { display: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.big { font-size: 1.1rem; }

/* Kopfzeile */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: calc(.7rem + env(safe-area-inset-top)) 1rem .7rem;
  background: linear-gradient(135deg, var(--navy), #0f5a85);
  color: #fff;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.topnav { display: flex; gap: .9rem; align-items: center; font-size: .95rem; }
.topnav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.topnav a.active { color: #fff; font-weight: 600; }
.topnav .linkish { color: rgba(255, 255, 255, .8); }

/* Layout */
.page { max-width: 860px; margin: 0 auto; padding: 1rem 1rem 5rem; }
.page.narrow { max-width: 560px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.cards { display: grid; gap: .75rem; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem; margin: 0 0 .9rem; border: 1px solid var(--line);
}
.card.info { background: var(--sea-soft); border-color: transparent; }
.card.tips { border-left: 4px solid var(--sea); }
.card.danger-zone { border-color: var(--bad-soft); }
.empty { text-align: center; color: var(--muted); }
.back { display: inline-block; text-decoration: none; margin-bottom: .3rem; font-size: .95rem; }

/* Formulare */
.form { display: grid; gap: .75rem; }
.field { display: grid; gap: .3rem; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.field-hint { font-size: .8rem; color: var(--muted); }
.hist-ico { opacity: .45; text-transform: none; }
input, select, textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--sea); flex: none; margin: 0; }
.checks { display: grid; gap: .5rem; }
.check { display: flex; gap: .6rem; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .6rem 1rem; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: var(--bad-soft); }
.btn.google { background: #fff; color: #222; border-color: #dadce0; }
.btn.small { padding: .35rem .8rem; min-height: 36px; font-size: .9rem; }
.btn.wide { width: 100%; }
.btn.left { justify-content: flex-start; }
.linkish { background: none; border: 0; color: var(--sea); font: inherit; cursor: pointer; padding: .4rem 0; }
.icon-btn { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); padding: .3rem .5rem; }
.chip { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: .35rem .8rem; min-height: 36px; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill, .tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--sea-soft); color: var(--sea); }
.pill.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/* Login */
.login .hero { text-align: center; margin: 1.5rem 0; }
.hero-icon { font-size: 3rem; }
.divider { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem 0; }

/* Törnliste */
.trip-card { display: block; text-decoration: none; color: inherit; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.trip-card:hover, .vault-card:hover { border-color: var(--sea); }
.trip-card.past { opacity: .6; }
.trip-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .15rem; }
.trip-card .row { margin-top: .6rem; }

/* Törn-Ansicht */
.trip-head h2 { margin-bottom: .2rem; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .7rem 0 .3rem; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--sea), #4fd1a5); transition: width .4s; }
.tabs {
  display: flex; gap: .3rem; overflow-x: auto; margin: 1rem -1rem .8rem; padding: 0 1rem;
  position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 10; background: var(--sand); padding-bottom: .5rem; padding-top: .3rem;
  scrollbar-width: none;
}
.tab { font: inherit; font-weight: 600; font-size: .92rem; white-space: nowrap; border: 0; background: transparent; color: var(--muted); padding: .55rem .9rem; border-radius: 999px; cursor: pointer; }
.tab.active { background: var(--navy); color: #fff; }
.toolbar { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.small-select { width: auto; min-height: 36px; padding: .3rem .6rem; font-size: .88rem; border-radius: 999px; }
.hint { font-size: .8rem; color: var(--muted); margin: .5rem 0 .2rem; }
.cat-title { margin: 1.2rem 0 .45rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
 html.dark .cat-title { color: var(--sea); } 
.items { display: grid; gap: .45rem; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.item.done .item-title { text-decoration: line-through; color: var(--muted); }
.item.is-overdue { border-left: 4px solid var(--bad); }
.item-row { display: flex; gap: .7rem; align-items: center; padding: .65rem .75rem; cursor: pointer; }
.sugg-item { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .75rem; cursor: pointer; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 600; overflow-wrap: anywhere; }
.item-meta { display: flex; gap: .7rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.meta.overdue { color: var(--bad); font-weight: 600; }
.chev { color: var(--muted); }
.status {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); font-size: 1rem; font-weight: 700; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.status.s-arbeit { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.status.s-erledigt { border-color: var(--ok); color: #fff; background: var(--ok); }
.editor { display: grid; gap: .7rem; padding: .3rem .75rem .9rem; border-top: 1px dashed var(--line); }
.actions-row { margin-top: 1.4rem; }

/* Langes Drücken: keine Textauswahl/Callouts */
.lp { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.lp input, .lp textarea { -webkit-user-select: text; user-select: text; }

/* Verlauf */
.hist-list { display: grid; gap: .5rem; }
.hist { padding: .55rem .7rem; border-radius: 10px; background: var(--sand); font-size: .92rem; }
.hist-who { font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
.hist-ctx { margin: .4rem 0 -.3rem .2rem; }
.old { text-decoration: line-through; color: var(--muted); }
.new { font-weight: 600; }

/* Crew */
.crew { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.crew li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sea); color: #fff; font-weight: 700; flex: none; }
.crew-name { flex: 1; font-weight: 600; }

/* Wetter */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: .6rem 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--sand); border-radius: 12px; padding: .7rem .8rem; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat-value { font-size: 1.3rem; font-weight: 700; margin-top: .15rem; }
.stat-sub { font-size: .8rem; color: var(--muted); }
.rose-wrap { display: grid; justify-items: center; margin-top: .6rem; }
.rose { width: min(260px, 80vw); height: auto; }
.rose-ring { fill: none; stroke: var(--line); }
.rose-wedge { fill: var(--sea); fill-opacity: .75; stroke: var(--card); stroke-width: 1; }
.rose-label { font-size: 12px; font-weight: 700; fill: var(--muted); }
.rose-scale { font-size: 9px; fill: var(--muted); }
.table-wrap { overflow-x: auto; }
table.wx { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.wx th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; padding: .3rem .5rem; border-bottom: 1px solid var(--line); }
.wx td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.wind-dir { display: inline-flex; align-items: center; gap: .2rem; }
.arrow { display: inline-block; font-weight: 700; color: var(--sea); }
.clim-mini { font-size: .92rem; }
.sugg { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sugg:last-of-type { border-bottom: 0; margin-bottom: .6rem; }
.tips-list { padding-left: 1.2rem; font-size: .9rem; }

/* Tresor */
.vault-card { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.vault-card .row { margin-top: .5rem; }
.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.doc-photo, .photo-preview img { max-width: 100%; border-radius: 10px; margin-top: .8rem; }
.photo-preview { display: grid; gap: .4rem; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(5, 20, 32, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
@media (min-width: 640px) { .overlay { align-items: center; } }
.modal {
  background: var(--card); width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  animation: up .2s ease-out;
}
.modal.wide { max-width: 640px; }
@media (min-width: 640px) { .modal { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }

/* Ortssuche */
.place-picker { display: grid; gap: .5rem; }
.results { display: grid; gap: .3rem; }
.result { font: inherit; text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; }

.sticky-actions {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: .6rem;
  padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--sand) 30%);
}

/* Toast */
#toast {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translate(-50%, -220%);
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .92rem;
  transition: transform .25s, opacity .25s, visibility 0s .25s; z-index: 60; max-width: 90vw; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .25s, opacity .25s; }

@media (max-width: 420px) {
  .grid2 { grid-template-columns: 1fr; }
  .topnav { gap: .6rem; font-size: .88rem; }
  .brand { font-size: 1rem; }
}

/* ---------- Schnell-Eingabe ---------- */
.quick-add { display: flex; gap: .4rem; align-items: center; border: 1.5px dashed var(--line); border-radius: 12px; padding: .25rem .25rem .25rem .6rem; background: transparent; transition: border-color .2s, background .2s; }
.quick-add:focus-within { border-color: var(--sea); border-style: solid; background: var(--card); }
.quick-add input { border: 0; background: transparent; min-height: 40px; padding: .4rem .2rem; }
.quick-add input:focus { outline: none; }
.quick-add .qa-cat { width: auto; max-width: 42%; min-height: 36px; padding: .3rem .5rem; font-size: .85rem; border-radius: 999px; }
.qa-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sea); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* ---------- Avatare & Crew-Profile ---------- */
.av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); color: #fff; font-weight: 700; line-height: 1; box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 40%, transparent); vertical-align: middle; }
.av-extra { position: absolute; right: -12%; bottom: -10%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.meta.who { display: inline-flex; align-items: center; gap: .3rem; }
.crew-grid { display: grid; gap: .8rem; }
@media (min-width: 700px) { .crew-grid { grid-template-columns: 1fr 1fr; } }
.member-card { position: relative; border-radius: 16px; padding: 1rem; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--card)), var(--card) 60%); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); overflow: hidden; }
.member-card::after { content: '⚓'; position: absolute; right: -10px; bottom: -22px; font-size: 5rem; opacity: .05; pointer-events: none; }
.mc-head { display: flex; align-items: center; gap: .8rem; }
.mc-id { flex: 1; min-width: 0; }
.mc-name { font-weight: 800; font-size: 1.1rem; }
.mc-motto { font-style: italic; color: var(--muted); font-size: .88rem; margin: .1rem 0 .3rem; }
.mc-roles { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.role-chip { font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.mc-skills { display: grid; gap: .3rem; margin-top: .8rem; }
.skill { display: grid; grid-template-columns: 9.5rem 1fr 5rem; gap: .5rem; align-items: center; font-size: .82rem; }
.skill-bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.skill-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 50%, #4fd1a5)); }
.skill-word { color: var(--muted); font-size: .75rem; text-align: right; }
.profile-editor .pe-preview { pointer-events: none; }
.pick { display: flex; flex-wrap: wrap; gap: .35rem; }
.pick-btn { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; transition: transform .12s; }
.pick-btn:active { transform: scale(.9); }
.pick-btn.on { border-color: var(--sea); background: var(--sea-soft); transform: scale(1.08); }
.pick-color .pick-btn { border-radius: 50%; border: 3px solid transparent; }
.pick-color .pick-btn.on { border-color: var(--text); }
.roles-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem; }
.role-pick { display: flex; gap: .5rem; align-items: flex-start; text-align: left; font: inherit; color: inherit; padding: .5rem .6rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.role-pick.on { border-color: var(--sea); background: var(--sea-soft); }
.rp-ico { font-size: 1.4rem; }
.role-pick strong { display: block; font-size: .9rem; }
.rp-desc { display: block; font-size: .74rem; color: var(--muted); }
.skills-pick { display: grid; gap: .25rem; }
.sk-row { display: grid; grid-template-columns: 1fr auto 5.5rem; align-items: center; gap: .5rem; font-size: .9rem; }
.stars { display: flex; }
.star { background: none; border: 0; font-size: 1.5rem; color: var(--line); cursor: pointer; padding: 0 .1rem; line-height: 1; }
.star.on { color: #f5b301; }

/* ---------- Crew-Tresor ---------- */
.crew-vault { border-left: 4px solid var(--navy); }
.cv-section { margin-top: .8rem; }
.cv-section h4 { margin: .4rem 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cv-row { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.cv-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; width: 46px !important; height: 26px !important; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--sea); }
.switch:checked::after { transform: translateX(20px); }
.cv-person { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cv-person-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cv-doc { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--sand); border: 0; border-radius: 10px; padding: .5rem .7rem; margin-top: .4rem; cursor: pointer; }
.unlock-row input { flex: 1; min-width: 160px; }
.notice { background: var(--warn-soft); color: var(--text); border-radius: 10px; padding: .7rem .8rem; font-size: .9rem; }
pre.crewlist { white-space: pre-wrap; font-size: .85rem; background: var(--sand); padding: .8rem; border-radius: 10px; }

/* ---------- Route / Karte ---------- */
.map-wrap { position: relative; height: min(62vh, 560px); margin: 0 -1rem 1rem; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); background: #aad3df; }
@media (min-width: 700px) { .map-wrap { margin: 0 0 1rem; border-radius: 18px; } }
.map { position: absolute; inset: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; color: var(--navy); font-weight: 600; background: linear-gradient(160deg, #cfeef3, #9fd6e0); z-index: 500; text-align: center; padding: 1rem; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(11,61,99,.2); border-top-color: var(--navy); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-hint { position: absolute; left: 50%; top: .7rem; transform: translateX(-50%); z-index: 450; background: rgba(11, 61, 99, .88); color: #fff; font-size: .82rem; padding: .4rem .8rem; border-radius: 999px; backdrop-filter: blur(6px); white-space: nowrap; pointer-events: none; animation: fadeHint 6s forwards; }
@keyframes fadeHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.map-tools { position: absolute; right: .7rem; top: .7rem; z-index: 460; display: grid; gap: .4rem; }
.map-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 1.2rem; cursor: pointer; }
.map-btn.on { background: var(--sea); }
.spot-pin { background: none !important; border: none !important; }
.spot-pin .pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); display: grid; place-items: center; margin: 2px 0 0 2px; transition: transform .2s; }
.spot-pin .pin span { transform: rotate(45deg); font-size: 17px; line-height: 1; }
.spot-pin.sel .pin { transform: rotate(-45deg) scale(1.25); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent), 0 4px 12px rgba(0,0,0,.4); }
.spot-pin.new .pin { animation: drop .5s cubic-bezier(.3,1.6,.6,1); }
@keyframes drop { from { transform: translateY(-30px) rotate(-45deg); opacity: 0; } }
.pin-day { position: absolute; left: -6px; top: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--navy); color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; border: 2px solid #fff; padding: 0 3px; }
.pin-votes { position: absolute; right: -14px; top: -8px; font: 600 10px/16px system-ui, sans-serif; font-style: normal; background: #fff; color: #c2185b; border-radius: 8px; padding: 0 4px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.start-pin div { font-size: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.route-line { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.spot-popup .leaflet-popup-content-wrapper { border-radius: 14px; }
.spot-popup .leaflet-popup-content { margin: .8rem .9rem; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.popup-type { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.popup-title { font-size: 1.05rem; font-weight: 800; margin: .1rem 0 .3rem; color: #13222f; }
.popup-note { white-space: pre-wrap; color: #34495e; margin-bottom: .4rem; }
.popup-meta { display: flex; align-items: center; gap: .2rem; color: #5f6f7c; font-size: .8rem; }
.popup-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }
.popup-actions .btn { color: #13222f; background: #fff; }
.heart { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: .25rem .6rem; font: inherit; font-size: .9rem; cursor: pointer; transition: transform .15s; }
.heart.on { background: #fde4ec; border-color: #f8bbd0; color: #c2185b; }
.heart:active { transform: scale(1.25); }
.route-summary:empty { display: none; }
.route-summary { background: linear-gradient(135deg, var(--navy), #0f5a85 60%, var(--sea)); color: #fff; border-radius: 18px; padding: 1rem; margin-bottom: 1rem; }
.route-summary .muted { color: rgba(255,255,255,.7); margin: .6rem 0 0; }
.sum-total { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.sum-num { font-size: 1.7rem; font-weight: 800; }
.sum-lbl { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.sum-days { display: grid; gap: .3rem; margin-top: .8rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: .7rem; }
.sum-day { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; }
.sum-day .pill { background: rgba(255,255,255,.18); color: #fff; }
.sum-stops { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.route-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.who-bar { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .6rem; }
.who-bar .chip { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.spots { display: grid; gap: .6rem; }
.spot { display: flex; gap: .8rem; padding: .8rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.spot:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.spot.sel { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.spot-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--c) 15%, transparent); }
.spot-body { flex: 1; min-width: 0; }
.spot-top { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.spot-title { font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; }
.spot-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.spot-meta .by { display: inline-flex; align-items: center; gap: .1rem; }
.spot-day { font-weight: 700; color: var(--sea); }
.spot-day.open { color: var(--muted); font-weight: 500; }
.spot-note { margin-top: .4rem; white-space: pre-wrap; font-size: .92rem; overflow-wrap: anywhere; }
.spot-actions { display: flex; gap: .9rem; margin-top: .3rem; flex-wrap: wrap; }
.spot-actions .linkish { padding: .2rem 0; text-decoration: none; }
.spots-empty .big-emoji { font-size: 3rem; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.type-btn { display: grid; justify-items: center; gap: .15rem; padding: .5rem .2rem; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.type-btn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.type-ico { font-size: 1.5rem; }
.type-lbl { font-size: .68rem; text-align: center; line-height: 1.15; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.leaflet-container { font-family: inherit; }

/* ---------- Crew-Bild vor dem Boot (Deluxe) ---------- */
.crew-hero {
  position: relative; display: block; width: 100%; height: 230px; padding: 0; margin: .3rem 0 1rem; border: 0; cursor: pointer;
  border-radius: 22px; overflow: hidden; font: inherit; text-align: center; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px rgba(11, 61, 99, .28), 0 2px 6px rgba(11, 61, 99, .15);
  --s1: #2f6fb3; --s2: #f3a76b; --s3: #ffd9a8; --g1: rgba(255, 214, 140, .95); --sun: #fff1c9;
  --w1: #e7a46e; --w2: #1d7fa6; --w3: #0a3e5f; --far: #7d7aa6; --near: #4d5f83; --p1: #b98252; --p2: #6e4527; --cloud: #ffe6d0; --line: rgba(255,255,255,.55);
}

  html.dark .crew-hero { --s1: #070f24; --s2: #1e2a55; --s3: #4b3f7a; --g1: rgba(230, 236, 255, .55); --sun: #f5f3dc;
    --w1: #3a4d7a; --w2: #0f3555; --w3: #041726; --far: #2a3560; --near: #1b2547; --p1: #5e432c; --p2: #2c1c10; --cloud: #8c93c4; --line: rgba(200,215,255,.35); }

.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hx-s1 { stop-color: var(--s1); } .hx-s2 { stop-color: var(--s2); } .hx-s3 { stop-color: var(--s3); }
.hx-g1 { stop-color: var(--g1); } .hx-g2 { stop-color: var(--g1); stop-opacity: 0; }
.hx-w1 { stop-color: var(--w1); } .hx-w2 { stop-color: var(--w2); } .hx-w3 { stop-color: var(--w3); }
.hx-p1 { stop-color: var(--p1); } .hx-p2 { stop-color: var(--p2); }
.hx-sun { fill: var(--sun); }
.hx-glow { animation: glow 6s ease-in-out infinite; transform-origin: 92px 92px; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .85; } }
.hx-cloud ellipse { fill: var(--cloud); opacity: .8; }
.hx-cloud { animation: drift 60s linear infinite; }
@keyframes drift { to { transform: translateX(-60px); } }
.hx-gull { fill: none; stroke: #2a2f45; stroke-width: 1.1; stroke-linecap: round; animation: flap 1.4s ease-in-out infinite, glide 18s linear infinite; transform-box: fill-box; transform-origin: center; }
 html.dark .hx-gull { display: none; } 
@keyframes flap { 50% { transform: scaleY(.45); } }
@keyframes glide { to { translate: -40px -6px; } }
.hx-isl-far { fill: var(--far); opacity: .55; }
.hx-isl-near { fill: var(--near); opacity: .8; }
.hx-shimmer rect { fill: #fff6dc; opacity: .7; animation: shimmer 2.4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .2; } }
.hx-line { fill: none; stroke: var(--line); stroke-width: .8; }
.hx-front { fill: var(--w3); opacity: .55; }
.hx-waves { animation: waves 10s linear infinite; }
.hx-waves.w2 { animation-duration: 7s; animation-direction: reverse; }
.hx-waves.w3 { animation-duration: 5s; }
@keyframes waves { to { transform: translateX(50px); } }
.hx-spark { fill: #fff; animation: twinkle 2.2s ease-in-out infinite; opacity: 0; }
@keyframes twinkle { 50% { opacity: .95; } }
.hx-boat { transform-origin: 26px 120px; animation: bob 5s ease-in-out infinite; }
.hx-reflect { transform-origin: 26px 120px; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(1.6px); } }
.hx-boat-shadow { fill: rgba(0, 0, 0, .25); filter: blur(2px); }
.hx-flag { fill: #e4572e; animation: flag 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes flag { 50% { transform: skewY(-8deg) scaleX(.9); } }
.hx-name { font: 800 6.5px system-ui, -apple-system, sans-serif; fill: #e9c46a; letter-spacing: .12em; text-transform: uppercase; }
.hx-gap { stroke: rgba(0, 0, 0, .28); stroke-width: 1; }
.hx-edge { fill: rgba(255, 255, 255, .22); }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, .28)), linear-gradient(180deg, rgba(255,255,255,.18), transparent 22%); }
.hero-crew { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: .55rem; padding: 0 .5rem; }
.hero-mate { position: relative; display: grid; justify-items: center; gap: 3px; animation: hop .7s cubic-bezier(.3, 1.6, .6, 1) both; animation-delay: calc(var(--i) * 90ms); }
.hero-mate .av { border: 2.5px solid #fff3d6; box-shadow: 0 0 0 2px rgba(201, 152, 64, .9), 0 6px 14px rgba(0, 0, 0, .45); transition: transform .2s; }
.hero-mate:hover .av { transform: translateY(-4px) rotate(-6deg); }
.hero-mate::after { content: ''; position: absolute; bottom: 14px; width: 70%; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(3px); z-index: -1; }
.hero-name {
  font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: #3b2a10; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 1px .5rem; border-radius: 5px; border: 1px solid #a8803a;
  background: linear-gradient(180deg, #fbe7a6 0%, #e2b85a 48%, #c99840 52%, #f0d48a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(0, 0, 0, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.hero-role { position: absolute; top: -11px; left: -8px; font-size: 1.05rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); z-index: 1; }
.hero-mate.more .av { width: 40px; height: 40px; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: .9rem; }
.hero-hint { position: absolute; top: .7rem; left: .8rem; z-index: 1; font-size: .78rem; font-weight: 700; color: #3b2a10; padding: .25rem .7rem; border-radius: 99px;
  background: linear-gradient(180deg, #fbe7a6, #e2b85a); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
@keyframes hop { from { transform: translateY(30px) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hx-boat, .hx-reflect, .hx-waves, .hero-mate, .hx-cloud, .hx-gull, .hx-glow, .hx-shimmer rect, .hx-spark, .hx-flag { animation: none; } .hx-spark { opacity: .6; } }

/* Bullaugen-Yacht im Crew-Bild */
.crew-hero { height: 270px; }
.crew-hero.has-skills { height: 360px; }
.hero-boat { position: absolute; left: 3%; right: 3%; bottom: 14px; z-index: 1; display: grid; animation: boatbob 5s ease-in-out infinite; transform-origin: 50% 80%; }
.crew-hero.has-skills .hero-boat { bottom: 6px; }
@keyframes boatbob { 0%, 100% { transform: rotate(-.8deg) translateY(0); } 50% { transform: rotate(.8deg) translateY(2px); } }
.hb-rig { width: 100%; height: 130px; display: block; margin-bottom: -1px; }
.hb-hull { position: relative; height: 142px; padding: 14px 8% 0 10%; }
.hb-hull-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.hb-h1 { stop-color: #1d6da3; } .hb-h2 { stop-color: var(--navy); } .hb-h3 { stop-color: #04192a; }
 html.dark .hb-h1 { stop-color: #ffffff; } html.dark .hb-h2 { stop-color: #dfe7ee; } html.dark .hb-h3 { stop-color: #9fb1c1; } 
.hb-shine { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 5; vector-effect: non-scaling-stroke; }
.hb-gold { fill: none; stroke: #e2b85a; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hb-boot { fill: none; stroke: #ffffff; stroke-width: 3; opacity: .9; vector-effect: non-scaling-stroke; }
.hb-rail { fill: none; stroke: #b9874f; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hb-water { fill: rgba(255,255,255,.18); }
.hb-gear { position: absolute; left: 0; right: 0; top: -22px; width: 100%; height: 24px; z-index: -1; overflow: visible; }
.hb-line { fill: none; stroke: #d0d8de; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hb-line.thin { stroke-width: 1; opacity: .8; }
.hb-cabin { fill: #f4f6f8; stroke: #c9d2d9; stroke-width: .6; }
.hb-win { fill: #24435c; }
.hero-boat { isolation: isolate; }
.hb-stripe { display: none; position: absolute; left: 6.5%; right: 4.5%; bottom: 18px; z-index: -1; height: 3px; background: linear-gradient(90deg, #c99840, #f5d98b, #c99840); border-radius: 2px; }
.hb-name { position: absolute; left: 0; right: 0; text-align: center; bottom: 30px; z-index: -1; font-size: .58rem !important; font: 800 .62rem system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #e9c46a; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
 html.dark .hb-name { color: var(--navy); text-shadow: none; } 
.hb-more { position: absolute; right: 3%; top: 18px; font-weight: 800; color: #fff; font-size: .85rem; }
.hb-ports { display: flex; justify-content: space-evenly; align-items: flex-start; }
.hb-crew .hero-skills { margin-top: 34px; }
.crew-hero.has-skills { height: 380px; }
.crew-hero.has-skills .hero-boat { bottom: auto; top: 22px; }
.hb-crew { display: grid; justify-items: center; gap: 3px; animation: peek .8s cubic-bezier(.3, 1.5, .6, 1) both; animation-delay: calc(var(--i) * 110ms + .2s); }
@keyframes peek { from { transform: translateY(10px); opacity: 0; } }
.porthole { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #d9a944 45%, #8a6420 80%);
  box-shadow: 0 2px 0 rgba(255,255,255,.35) inset, 0 -2px 3px rgba(0,0,0,.35) inset, 0 3px 6px rgba(0,0,0,.45); }
.ph-glass { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2c4f6e, #0a1c2c); box-shadow: inset 0 3px 8px rgba(0,0,0,.7); }
.ph-glass .av { box-shadow: none; border: 0; transform: translateY(5px); animation: lookout 6s ease-in-out infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes lookout { 0%, 70%, 100% { transform: translateY(5px); } 78% { transform: translateY(1px) rotate(-8deg); } 88% { transform: translateY(1px) rotate(8deg); } }
.ph-glass::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 32%, transparent 45%, transparent 70%, rgba(255,255,255,.12) 100%); pointer-events: none; }
.ph-bolt { position: absolute; inset: 0; pointer-events: none; }
.ph-bolt::before { content: ''; position: absolute; left: 50%; top: 2px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #6b4d17; box-shadow: 0 .5px 0 rgba(255,255,255,.5); }
.hb-crew .hero-role { top: -9px; left: -7px; }
.hb-crew .hero-name { font-size: .62rem; max-width: 76px; padding: 0 .4rem; }
.hb-skillrow { display: flex; justify-content: space-evenly; padding: 6px 6% 0; }
.hb-skills { display: grid; justify-items: center; width: 0; flex: 1; }
.hx-front-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26px; z-index: 2; pointer-events: none; }
.crew-hero.has-skills .hx-front-waves { display: none; }
.hero-skills { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; border-radius: 8px; background: rgba(6, 20, 32, .62); backdrop-filter: blur(3px); box-shadow: 0 2px 6px rgba(0,0,0,.3); min-width: 66px; }
.hs { display: flex; align-items: center; gap: 3px; font-size: .62rem; line-height: 1.25; white-space: nowrap; }
.hs-i { font-size: .78rem; width: 1rem; text-align: center; }
.hs-l { letter-spacing: -1px; color: #f5c84c; text-shadow: 0 0 4px rgba(245, 200, 76, .45); }
.hs.l1 .hs-l, .hs.l2 .hs-l { color: #cfd8dc; text-shadow: none; }
.hs.l5 .hs-l { color: #ffd54f; text-shadow: 0 0 6px rgba(255, 213, 79, .9); }

/* ---------- Kopfleiste schmal ---------- */
@media (max-width: 480px) { .brand-txt { display: none; } .topnav { gap: .7rem; } }
.page.wide { max-width: 1100px; }

/* ---------- Logbuch ---------- */
.lb-trips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: .4rem; }
.lb-trip { flex: none; display: grid; text-align: left; gap: .1rem; font: inherit; color: inherit; padding: .55rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.lb-trip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.lb-trip small { opacity: .75; }
.lb-days { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: none; }
.lb-day { position: relative; flex: none; display: grid; justify-items: center; min-width: 74px; padding: .5rem .6rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.lb-day.on { background: linear-gradient(135deg, var(--navy), var(--sea)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(11,61,99,.3); }
.lb-day-n { font-weight: 800; font-size: .92rem; }
.lb-day-d { font-size: .72rem; opacity: .8; }
.lb-day-dot { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #e4572e; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--sand); }
.lb-day-dot.signed { background: #2e7d32; }
.lb-day.print { border-style: dashed; }

.logbook { display: grid; gap: 1.2rem; }
@media (min-width: 1100px) { .logbook { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.lb-page {
  --ink: #1d3f8f; --paper: #fbfaf5; --rule: #c9c6bd; --frame: #6d6a63;
  position: relative; background: var(--paper); color: #2b2b2b; border-radius: 6px; padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.12);
  outline: 1px solid var(--frame); outline-offset: -6px;
}
.lb-page::before { content: ''; position: absolute; inset: 9px; border: 2px solid var(--frame); border-radius: 2px; pointer-events: none; }
 html.dark .lb-page { --paper: #f1eee4; } 
.lb-page > * { position: relative; }
.ink { color: var(--ink); font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", "Marker Felt", cursive; font-size: 1.02rem; font-weight: 600; }
.ink.calc { color: #0f7a54; }
.ink.pre { white-space: pre-wrap; }
.by-ink { font-family: inherit; font-weight: 400; color: #6d7a99; font-size: .75rem; }
.gps-ink { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; font-weight: 500; color: #4a7aa8; letter-spacing: -.01em; }
.lb-head { display: grid; gap: .5rem; padding: 6px 6px 10px; }
.lb-row { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: flex-end; }
.lb-field { display: inline-flex; align-items: flex-end; gap: .3rem; flex: 1 1 auto; min-width: 0; }
.lb-label { font-weight: 800; font-size: .85rem; color: #3b3b3b; white-space: nowrap; }
.lb-line { flex: 1; min-width: 40px; min-height: 1.5rem; border-bottom: 1.5px dotted #8d8a82; cursor: pointer; padding: 0 .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-line.short { flex: 0 1 90px; } .lb-line.tiny { flex: 0 0 34px; } .lb-line.grow { flex: 1 1 140px; }
.lb-tables { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lb-tables { grid-template-columns: 1fr 1.3fr; } }
.lb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lb-table { border-collapse: collapse; width: 100%; font-size: .78rem; }
.lb-wx { min-width: 430px; } .lb-kurs { min-width: 600px; }
.lb-table th { font-weight: 500; color: #555; font-size: .66rem; padding: 3px 2px; border: 1px solid var(--frame); text-align: center; line-height: 1.1; background: rgba(0,0,0,.02); }
.lb-table thead tr:first-child th { border-bottom: 0; }
.lb-table thead tr:last-child th { border-top: 0; }
.lb-table td { border: 1px solid var(--frame); height: 46px; text-align: center; padding: 2px 3px; cursor: pointer; transition: background .15s; }
.lb-kurs td { height: 34px; }
.lb-table td:hover, .lb-table td:active { background: rgba(14, 124, 134, .08); }
.lb-table tr.empty td { cursor: pointer; }
.lb-table .stack { display: grid; line-height: 1.1; }
.lb-table .stack small { font-size: .62rem; color: #666; font-family: system-ui, sans-serif; font-weight: 500; }
.lb-table .unit { font-family: system-ui, sans-serif; font-size: .58rem; margin-left: 1px; color: #666; font-weight: 500; }
.lb-add { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 700; }
.wx-cell { display: inline-flex; align-items: center; gap: 2px; }
.wx-emoji { font-size: .9rem; }
.okta-ring { fill: none; stroke: #333; stroke-width: 1.3; }
.okta-fill { fill: #333; }
.lb-bottom { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 640px) { .lb-bottom { grid-template-columns: 1fr 200px; align-items: start; } }
.lb-report { margin-bottom: 8px; }
.lb-report-head { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.lb-report-head .lb-label { font-weight: 500; font-size: .76rem; }
.lb-ruled { min-height: 92px; cursor: pointer; padding: 2px 4px; line-height: 23px;
  background: repeating-linear-gradient(transparent 0 22px, var(--rule) 22px 23px); }
.lb-placeholder { color: #9aa3ad; font-size: .82rem; font-style: italic; }
.lb-sum { border-collapse: collapse; width: 100%; font-size: .8rem; cursor: pointer; }
.lb-sum th { text-align: left; font-weight: 500; color: #444; padding: 6px; border: 1px solid var(--frame); }
.lb-sum td { border: 1px solid var(--frame); text-align: center; min-width: 52px; }
.gps-tag { font-size: .6rem; color: #fff; background: #4a7aa8; border-radius: 4px; padding: 0 3px; margin-left: 3px; }
.lb-events { min-width: 0; }
.lb-events td { height: auto; min-height: 30px; padding: 4px 6px; text-align: left; border-left: 0; border-right: 0; border-color: var(--rule); }
.lb-events td.lb-time, .lb-events th.lb-time { width: 62px; border-right: 1.5px solid var(--frame); text-align: center; }
.lb-events th.left { text-align: left; font-size: .64rem; }
.lb-events tr td { height: 30px; }
.lb-page2-bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.lb-ctrl { border-collapse: collapse; font-size: .76rem; cursor: pointer; }
.lb-ctrl th, .lb-ctrl td { border: 1.3px solid var(--frame); padding: 5px 8px; min-width: 64px; text-align: center; }
.lb-ctrl tbody th { font-weight: 500; color: #555; text-align: left; }
.lb-sign { flex: 1; min-width: 220px; cursor: pointer; text-align: center; }
.lb-sign-area { height: 64px; display: grid; place-items: end center; }
.lb-sign-area img { max-height: 64px; max-width: 100%; }
.lb-sign-line { border-top: 1.5px solid #333; padding-top: 4px; font-weight: 800; font-size: .85rem; color: #333; }
.lb-sign-line small { font-weight: 500; color: #666; }

/* Schnell-Eingabe */
.lb-quick { position: sticky; bottom: 0; z-index: 30; margin: 1rem -1rem 0; padding: .7rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
@media (min-width: 900px) { .lb-quick { margin: 1rem 0 0; border-radius: 18px; } }
.gps-bar { margin-bottom: .5rem; }
.gps-pill { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; width: 100%; font: inherit; font-size: .82rem; padding: .45rem .8rem; border-radius: 12px; border: 0; text-align: left; }
.gps-pill.off { background: linear-gradient(135deg, var(--navy), var(--sea)); color: #fff; cursor: pointer; font-weight: 700; }
.gps-pill.off small { font-weight: 400; opacity: .85; }
.gps-pill.on { background: #e5f6ec; color: #13502f; }
.gps-pill.wait { background: var(--warn-soft); color: var(--text); }
.gps-pill.err { background: var(--bad-soft); color: var(--bad); }
 html.dark .gps-pill.on { background: #153625; color: #b8f0cc; } 
.gps-pos { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; }
.gps-val { font-weight: 700; }
.gps-dot { width: 9px; height: 9px; border-radius: 50%; background: #2e7d32; box-shadow: 0 0 0 0 rgba(46,125,50,.6); animation: ping 1.6s infinite; }
.gps-pill.wait .gps-dot { background: #e0a100; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46,125,50,0); } 100% { box-shadow: 0 0 0 0 rgba(46,125,50,0); } }
.gps-stop { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 1rem; cursor: pointer; opacity: .6; }
.lb-textbar { display: flex; gap: .4rem; margin-bottom: .55rem; }
.lb-textbar input { border-radius: 999px; padding-left: 1rem; border: 2px solid var(--sea); }
.lb-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--sea), #4fd1a5); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 3px 10px rgba(14,124,134,.4); }
.lb-quick-title { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .35rem; }
.lb-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.lb-chips.small { flex-wrap: wrap; overflow: visible; }
.lb-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .84rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
  border: 0; color: #fff; background: var(--c); box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .12s; }
.lb-chip:active { transform: scale(.92); }
.lb-chip-i { font-size: 1rem; }
.lb-fabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin-top: .3rem; }
.lb-fab { display: grid; justify-items: center; gap: .1rem; font: inherit; font-size: .74rem; font-weight: 700; color: #fff; border: 0; border-radius: 14px; padding: .55rem .2rem; cursor: pointer; }
.lb-fab span { font-size: 1.35rem; }
.lb-fab.wx { background: linear-gradient(135deg, #1a9fd0, #0b5f86); }
.lb-fab.kurs { background: linear-gradient(135deg, #7c4dff, #4527a0); }
.lb-fab.ev { background: linear-gradient(135deg, #e0a100, #d0542c); }
.lb-fab.pos { background: linear-gradient(135deg, #2e7d32, var(--sea)); }
.lb-manual { font-size: .78rem; color: var(--muted); margin-top: .45rem; text-align: center; }
.lb-manual .linkish { font-size: .78rem; padding: 0; }

/* Eingabe-Bausteine */
.lb-form { display: grid; gap: .9rem; }
.lb-sec-t { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .35rem; }
.auto-note { margin: 0; padding: .5rem .7rem; border-radius: 10px; background: #e5f6ec; color: #13502f; font-size: .82rem; }
 html.dark .auto-note { background: #153625; color: #b8f0cc; } 
.lb-timerow { display: flex; gap: .4rem; }
.lb-timerow input { font-size: 1.15rem; font-weight: 700; }
.pill-btn { flex: none; font: inherit; font-size: .85rem; font-weight: 700; border: 0; border-radius: 999px; padding: .4rem .85rem; background: var(--sea-soft); color: var(--sea); cursor: pointer; }
.stepper { display: flex; align-items: center; gap: .25rem; }
.step-btn { flex: none; min-width: 40px; height: 44px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; background: var(--sea-soft); color: var(--sea); }
.step-btn:active { transform: scale(.92); }
.step-val { flex: 1; display: flex; align-items: center; gap: .2rem; min-width: 70px; }
.step-in { text-align: center; font-size: 1.15rem; font-weight: 800; padding: .4rem .2rem; min-width: 0; }
.step-val small { color: var(--muted); font-weight: 600; }
.compass { position: relative; width: min(290px, 78vw); aspect-ratio: 1; margin: .2rem auto; border-radius: 50%;
  background: radial-gradient(circle, var(--card) 38%, color-mix(in srgb, var(--sea) 10%, var(--card)) 39% 62%, var(--card) 63%); border: 2px solid var(--line); }
.cdir { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: var(--card); color: var(--c); font: 800 .78rem system-ui, sans-serif; cursor: pointer; transition: transform .12s, background .12s; }
.cdir.minor { width: 36px; height: 36px; font-size: .62rem; }
.cdir.on { background: var(--c); color: #fff; transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 50%, transparent); }
.compass-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .1rem; text-align: center; }
.cc-arrow { font-size: 1.8rem; display: inline-block; transition: transform .25s; }
.compass-c b { font-size: 1rem; }
.chipset { display: flex; flex-wrap: wrap; gap: .35rem; }
.cchip { display: grid; justify-items: center; min-width: 44px; padding: .4rem .5rem; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 10%, var(--card)); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; transition: transform .12s; }
.cchip small { font-size: .6rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cchip.on { background: var(--c); color: #fff; border-color: var(--c); transform: scale(1.06); box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 45%, transparent); }
.cchip.on small { color: rgba(255,255,255,.85); }
.chipset.bft .cchip { min-width: 52px; }
.chipset.okta-set .okta-ring { stroke: currentColor; } .chipset.okta-set .okta-fill { fill: currentColor; }
.chipset.wx .cchip { font-size: 1.3rem; }
.chipset.mode .cchip { flex: 1; font-size: .95rem; padding: .55rem; }
.lb-calc { display: flex; justify-content: space-around; padding: .6rem; border-radius: 12px; background: #e8f5ef; color: #0f5a3f; font-size: .9rem; }
.lb-calc b { font-size: 1.15rem; }
 html.dark .lb-calc { background: #153625; color: #b8f0cc; } 
.lb-more summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.sign-pad { width: 100%; height: 160px; background: #fbfaf5; border: 2px dashed var(--line); border-radius: 12px; touch-action: none; }

@media print {
  #topbar, .tabs, .trip-head, .lb-quick, .lb-days, .lb-trips, .page-head, .linkish, #toast, .crew-hero { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .logbook { display: block; }
  .lb-page { box-shadow: none; break-after: page; margin: 0 0 10mm; }
  .lb-wx, .lb-kurs { min-width: 0; }
  .lb-tables { grid-template-columns: 1fr 1.3fr; }
}

/* Offline-Hinweise */
.netbar { display: none; position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 19; padding: .5rem 1rem; font-size: .85rem; font-weight: 600; text-align: center; }
.netbar.show { display: block; }
.netbar.off { background: #fff3cd; color: #6b4e00; }
.netbar.on { background: #e5f6ec; color: #13502f; }
.sync-pill { margin-bottom: .5rem; padding: .45rem .8rem; border-radius: 12px; font-size: .8rem; font-weight: 600; background: var(--sea-soft); color: var(--sea); }
.sync-pill.off { background: #fff3cd; color: #6b4e00; }

/* Schnell-Leiste kompakt */
.lb-quick { padding-top: .5rem; }
.gps-pill { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; padding: .35rem .7rem; font-size: .78rem; }
.gps-pill.off { white-space: normal; }
.gps-pos { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gps-bar { margin-bottom: .4rem; }
.lb-textbar { margin-bottom: .4rem; }
.lb-textbar input { min-height: 42px; }
.lb-send { width: 42px; height: 42px; }
.lb-quick-title { display: none; }
.lb-chip { padding: .35rem .7rem; font-size: .8rem; }
.lb-fabs { gap: .35rem; }
.lb-fab { display: flex; align-items: center; justify-content: center; gap: .25rem; padding: .45rem .2rem; font-size: .72rem; border-radius: 12px; }
.lb-fab span { font-size: 1rem; }
.lb-manual { margin-top: .3rem; }
.lb-fab.sea { background: linear-gradient(135deg, #5e35b1, var(--navy)); }
@media (max-width: 420px) { .lb-fabs { grid-template-columns: repeat(3, 1fr); } }

/* ---------- GPS-Track ---------- */
.track-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: .8rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.track-head { display: flex; align-items: center; gap: .7rem; }
.track-stats { flex: 1; display: grid; min-width: 0; }
.track-stats small { color: var(--muted); }
.track-spark { width: 96px; height: 56px; flex: none; }
.ts-line { fill: none; stroke: #e4572e; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rec-btn { flex: none; display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px; padding: .6rem 1rem; font: inherit; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #e4572e, #c2185b); box-shadow: 0 4px 12px rgba(228,87,46,.4); }
.rec-btn.on { background: #1f2933; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .2; } }
.track-btns { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.file-chip { position: relative; overflow: hidden; }
.hidden-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.track-modal { display: grid; gap: .6rem; }
.track-map { position: relative; height: min(60vh, 520px); border-radius: 14px; overflow: hidden; background: #aad3df; }
.track-info { display: flex; justify-content: space-around; flex-wrap: wrap; gap: .4rem; font-weight: 700; color: var(--navy); }
.track-actions { justify-content: space-between; }
.track-video { width: 100%; max-height: 60vh; border-radius: 14px; background: #000; }
.check.big { align-items: flex-start; }
.boat-pin, .start-pin { background: none !important; border: 0 !important; }
.solo-boat { font-size: 30px; transform: translate(-50%, -80%); filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.cb { position: absolute; transform-origin: 50% 100%; left: -40px; top: -62px; width: 80px; display: grid; justify-items: center; animation: cbbob 2s ease-in-out infinite; }
@keyframes cbbob { 50% { translate: 0 2px; } }
.cb-sail { width: 0; height: 0; border-left: 18px solid transparent; border-right: 22px solid transparent; border-bottom: 36px solid #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.cb-hull { display: flex; gap: 3px; justify-content: center; padding: 3px 8px 6px; min-width: 56px; background: linear-gradient(#1d6da3, #04192a); border-top: 3px solid #b9874f; border-radius: 2px 2px 40% 40% / 2px 2px 70% 70%; box-shadow: 0 3px 6px rgba(0,0,0,.4); }
.cb-port { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 2px solid #d9a944; }

/* ---------- Sprache ---------- */
.lb-mic { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; font-size: 1.2rem; cursor: pointer; background: linear-gradient(135deg, #c2185b, #7c4dff); color: #fff; box-shadow: 0 3px 10px rgba(124,77,255,.35); }
.lb-mic.on { animation: micpulse 1s infinite; }
@keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(194,24,91,.6); } 100% { box-shadow: 0 0 0 16px rgba(194,24,91,0); } }
.lb-voicebar { display: flex; gap: .4rem; justify-content: center; margin-top: .4rem; flex-wrap: wrap; }
.remote-chip.on { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.voice-card { display: grid; justify-items: center; gap: .8rem; text-align: center; padding: 2rem 1rem; }
.voice-mic { width: 140px; height: 140px; border-radius: 50%; border: 0; font-size: 3.4rem; cursor: pointer; color: #fff; background: radial-gradient(circle at 35% 30%, #ff6f91, #c2185b 55%, #7c4dff); box-shadow: 0 10px 30px rgba(194,24,91,.4); }
.voice-mic.on { animation: micpulse 1s infinite; }
.voice-status { font-weight: 700; }
.voice-text { font-family: "Bradley Hand", "Segoe Print", cursive; font-size: 1.3rem; color: #1d3f8f; min-height: 1.5em; }
.voice-help ol { padding-left: 1.2rem; display: grid; gap: .5rem; }
.voice-url { display: block; margin-top: .3rem; padding: .4rem .6rem; border-radius: 8px; background: var(--sand); word-break: break-all; font-size: .8rem; }
.track-head { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.track-head .rec-btn { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
@media (max-width: 560px) { .nav-txt { display: none; } .topnav { gap: 1rem; font-size: 1.15rem; } }
.profile-trips { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.profile-trips li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.profile-trips a { text-decoration: none; color: inherit; }

/* Auto-Logbuch */
.auto-chip.on { background: #5e35b1; color: #fff; border-color: #5e35b1; }
.auto-status { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .78rem; padding: .4rem .7rem; margin-bottom: .4rem; border-radius: 12px; background: #ede7f6; color: #4527a0; }
 html.dark .auto-status { background: #2a1f4a; color: #d1c4e9; } 
.auto-status .gps-dot { background: #7c4dff; }
.auto-badge { font-family: system-ui, sans-serif; font-size: .7rem; }
.al-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.al-row > span { display: grid; gap: .1rem; }
.al-main { padding: .8rem; border: 0; border-radius: 14px; background: #ede7f6; color: #311b92; }
 html.dark .al-main { background: #2a1f4a; color: #e8e0ff; } 
.al-block { display: grid; gap: .35rem; }

/* Ankeralarm */
.anchor-nav { position: relative; }
.anchor-nav.on::after { content: ''; position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: #4fd1a5; box-shadow: 0 0 0 2px var(--navy); }
.anchor-nav.alarm::after { content: ''; position: absolute; top: -2px; right: -6px; width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; animation: recblink .6s infinite; }
.log-nav { position: relative; }
.log-nav.auto .nav-ico { color: #3b9bff; }
.log-nav.auto::after { content: ''; position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: #3b9bff; box-shadow: 0 0 0 2px var(--navy); }
.log-nav.rec::before { content: ''; position: absolute; top: -2px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 0 2px var(--navy); animation: recblink 1.6s infinite; z-index: 1; }
.log-nav.rec:not(.auto)::before { right: -6px; }
.anchor-setup { display: grid; gap: .8rem; }
.anchor-radius { font-size: 1.1rem; }
.anchor-r { font-size: 1.6rem; color: var(--navy); }
.anchor-setup input[type=range] { padding: 0; min-height: 30px; accent-color: var(--navy); }
.anchor-drop { min-height: 64px; font-size: 1.15rem; color: #fff; border: 0; background: linear-gradient(135deg, var(--navy), var(--sea)); box-shadow: 0 6px 16px rgba(11,61,99,.35); }
.anchor-live { display: grid; gap: .8rem; justify-items: center; }
.anchor-live.alarm { background: #ffebee; border-color: #ff3b30; animation: alarmbg 1s infinite; }
@keyframes alarmbg { 50% { background: #ffcdd2; } }
.anchor-alarm { display: flex; gap: .8rem; align-items: center; font-size: 1.3rem; font-weight: 900; color: #c62828; }
.radar { width: min(320px, 85vw); height: auto; }
.radar-bg { fill: #062436; }
.radar-ring { fill: none; stroke: rgba(79, 209, 165, .25); }
.radar-cross { stroke: rgba(79, 209, 165, .2); }
.radar-zone { fill: rgba(79, 209, 165, .12); stroke: #4fd1a5; stroke-width: 2; stroke-dasharray: 6 5; }
.radar.alarm .radar-zone { stroke: #ff3b30; fill: rgba(255, 59, 48, .15); }
.radar-n { fill: var(--muted); font: 700 12px system-ui, sans-serif; }
.radar-sweep { transform-origin: 150px 150px; animation: sweep 4s linear infinite; }
.radar-sweep path { fill: rgba(79, 209, 165, .12); }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-track { fill: none; stroke: #ffd166; stroke-width: 1.5; opacity: .8; }
.radar-anchor { font-size: 20px; }
.radar-acc { fill: rgba(26, 159, 208, .2); }
.radar-boat { fill: #ffd166; stroke: #fff; stroke-width: 2; }
.anchor-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; width: 100%; text-align: center; }
.anchor-stats small { display: block; color: var(--muted); font-size: .72rem; }
.anchor-stats strong { font-size: 1.15rem; }
.anchor-stats .bad { color: var(--bad); }
.anchor-btns { justify-content: center; }
.lb-sec-t .muted { text-transform: none; font-weight: 500; letter-spacing: 0; }
.seg-toggle { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 3px; gap: 3px; }
.seg-toggle button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: .4rem 1rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg-toggle button.on { background: var(--navy); color: #fff; }
.anchor-map { position: relative; width: 100%; height: min(55vh, 460px); border-radius: 16px; overflow: hidden; background: #0a2a3a; }
.anchor-coords { display: grid; gap: .5rem; }
.ac-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .5rem; align-items: center; }
.ac-row code { font-size: .85rem; }
.widget-card { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.widget-card span:last-child { display: grid; }
.wc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--navy), var(--sea)); flex: none; }

/* ---------- Ankerwache: Crew-Alarm ---------- */
.anchor-crew h3 { margin: 0 0 .3rem; }
.anchor-crew .cchip.on { outline: 3px solid #ffd166; }
.anchor-crew .anchor-btns { margin-top: .6rem; flex-wrap: wrap; gap: .5rem; }
.ios-hint { background: #fff4d6; color: #6b4b00; border-radius: 10px; padding: .55rem .7rem; margin-top: .6rem; }
.anchor-remote { border-left: 5px solid #1a9fd0; }
.anchor-remote.alarm { border-left-color: #ff3b30; animation: alarmPulse 1s infinite; }
.anchor-remote .anchor-stats { margin: .5rem 0; }
@keyframes alarmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } }
.anchor-remote { border-left-color: var(--c, #1a9fd0); }
.anchor-remotes { display: grid; gap: .6rem; margin-bottom: .6rem; }
.anchor-hours { align-items: center; margin: .4rem 0; }
.anchor-hours .cchip.on { outline: 3px solid #ffd166; }
.anchor-crewmap h3 { margin: 0 0 .3rem; }
.crew-boat-pin { background: none; border: 0; }
.cbp { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--c, #ffd166); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.cbp.alarm { background: #ff3b30; animation: alarmPulse 1s infinite; }

/* ---------- Charter / Eigner ---------- */
.mc-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.boat-status { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.boat-status.charter { background: #e6f4ff; color: #0b5c8f; }
.boat-status.eigner { background: #fff1cc; color: #7a5200; }
.boat-pick { display: grid; gap: .5rem; }
.boat-pick .seg-toggle { justify-self: start; }

/* ---------- Papierkorb ---------- */
.trash-list { display: grid; gap: .4rem; }
.trash-grp { margin: .6rem 0 .1rem; font-size: .9rem; color: var(--navy); }
.trash-row { display: flex; align-items: center; gap: .5rem; padding: .55rem .2rem; border-bottom: 1px dashed rgba(11, 61, 99, .15); }
.trash-row .tr-main { flex: 1; min-width: 0; display: grid; }
.trash-row .tr-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-empty { text-align: center; padding: 1.2rem 0; }
.trash-empty .te-ico { font-size: 2.4rem; opacity: .5; }
.trash-chip.has { border-color: #e9a23b; color: #8a5300; }
.trip-bin { margin-top: 1rem; }
.trip-bin summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.deleted-banner { background: #fff1cc; border: 2px dashed #e9a23b; display: grid; gap: .3rem; justify-items: start; }

/* ---------- Kassenbuch ---------- */
.kasse { display: grid; gap: .8rem; padding-bottom: 5.5rem; }
.kasse-hero { border-radius: 20px; padding: 1.1rem 1.2rem; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2a9d8f 0%, var(--navy) 55%, #081f33 100%); box-shadow: 0 10px 28px rgba(8, 31, 51, .35); position: relative; overflow: hidden; }
.kasse-hero::after { content: '💶'; position: absolute; right: -10px; bottom: -22px; font-size: 6.5rem; opacity: .12; transform: rotate(-12deg); }
.kh-top { display: flex; justify-content: space-between; font-weight: 700; opacity: .9; }
.kh-count { font-weight: 500; font-size: .85rem; background: rgba(255,255,255,.15); padding: .1rem .55rem; border-radius: 999px; }
.kh-total { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin: .3rem 0 0; }
.kh-sub { opacity: .85; font-size: .9rem; }
.kh-me { display: inline-block; margin-top: .7rem; padding: .35rem .8rem; border-radius: 999px; font-weight: 800; background: rgba(255,255,255,.16); }
.kh-me.plus { background: #2ecc71; color: #06361b; }
.kh-me.minus { background: #ff6b6b; color: #4a0707; }
.kasse h3 { margin: 0 0 .5rem; }
.plus { color: #1e9e5a; } .minus { color: #d64545; }
.kb-row { display: grid; grid-template-columns: 30px 5.5rem 1fr auto; align-items: center; gap: .5rem; padding: .3rem 0; }
.kb-row.me .kb-name { font-weight: 800; }
.kb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-bar { position: relative; height: 12px; background: rgba(11, 61, 99, .07); border-radius: 999px; overflow: hidden; }
.kb-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; transition: width .4s; }
.kb-fill.plus { background: linear-gradient(90deg, #6ee7a6, #1e9e5a); }
.kb-fill.minus { background: linear-gradient(270deg, #ffa3a3, #d64545); }
.kb-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(11, 61, 99, .25); }
.kb-val { min-width: 5.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.ks-row { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem; border-radius: 12px; background: rgba(42, 157, 143, .07); margin-bottom: .4rem; flex-wrap: wrap; }
.ks-row.me { background: #fff4d6; }
.ks-arrow { font-weight: 900; color: #2a9d8f; }
.ks-txt { flex: 1; min-width: 7rem; }
.ks-amt { font-variant-numeric: tabular-nums; }
.kc-stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
.kc-legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .85rem; }
.kc-item i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; }
.kl-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.kl-day { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #6b7c8f; margin: .7rem 0 .2rem; }
.kl-row { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(11, 61, 99, .08); padding: .55rem .1rem; font: inherit; color: inherit; cursor: pointer; }
.kl-row.pending { opacity: .7; }
.kl-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.kl-main { flex: 1; min-width: 0; display: grid; }
.kl-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-amt { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.kl-row.transfer .kl-main strong { color: #2a9d8f; }
.kl-tools { margin-top: .6rem; gap: .5rem; }
.kasse-fab { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: center; z-index: 30; pointer-events: none; }
.kasse-fab .btn { pointer-events: auto; padding: .85rem 1.6rem; font-size: 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(11, 61, 99, .35); background: linear-gradient(135deg, #2a9d8f, var(--navy)); }
.kasse-edit { display: grid; gap: .7rem; }
.ke-amount-wrap { display: flex; align-items: baseline; gap: .3rem; border-bottom: 3px solid #2a9d8f; }
.ke-amount { border: 0 !important; font-size: 2.4rem; font-weight: 800; width: 100%; background: transparent; padding: .1rem 0 !important; outline: none; box-shadow: none !important; }
.ke-cur { font-size: 1.8rem; font-weight: 800; color: #2a9d8f; }
.ke-cats { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.ke-cat { flex: none; display: grid; justify-items: center; gap: .1rem; min-width: 68px; padding: .45rem .4rem; border-radius: 14px; border: 2px solid transparent; background: color-mix(in srgb, var(--c) 12%, white); font-size: .72rem; font-weight: 700; color: #233; cursor: pointer; }
.ke-cat span { font-size: 1.4rem; }
.ke-cat.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 28%, white); }
.ke-sec { display: grid; gap: .35rem; }
.ke-sec-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ke-payers { display: flex; gap: .4rem; flex-wrap: wrap; }
.ke-payer { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .25rem; border-radius: 999px; border: 2px solid rgba(11, 61, 99, .15); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ke-payer.on { border-color: #2a9d8f; background: #e3f6f3; }
.ke-split { display: grid; gap: .3rem; }
.ke-person { display: grid; grid-template-columns: 24px 30px 1fr auto; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: 12px; background: rgba(11, 61, 99, .04); cursor: pointer; opacity: .55; }
.ke-person.on { opacity: 1; background: #e3f6f3; }
.ke-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #2a9d8f; display: grid; place-items: center; font-weight: 900; color: #fff; }
.ke-person.on .ke-check { background: #2a9d8f; }
.ke-part { font-variant-numeric: tabular-nums; font-weight: 700; }
.ke-exact { width: 6.5rem; text-align: right; }
.ke-info { font-size: .85rem; color: #4b5d70; background: #f3f7fa; border-radius: 10px; padding: .5rem .7rem; }
.ke-info .bad, .bad { color: #d64545; font-weight: 700; }
.kasse-overall .ko-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.ko-box { background: #fff; border-radius: 14px; padding: .6rem .7rem; box-shadow: 0 2px 10px rgba(11, 61, 99, .08); display: grid; }
.ko-box small { color: #6b7c8f; }
.ko-box strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ko-box.plus strong { color: #1e9e5a; } .ko-box.minus strong { color: #d64545; }
.lb-bal { font-weight: 800; }

/* =====================================================================
   DESIGNS – umschaltbar im Profil (html[data-theme])
   yacht = D Yachtclub (Standard) · night = A Offshore Night · regatta = B Regatta · chart = C Seekarte
   ===================================================================== */
:root, html[data-theme="yacht"] {
  --bar: #0c1a2b; --bar-fg: #f3efe6; --accent: #d4b25a; --accent-ink: #0c1a2b;
  --pill-bg: #f3efe6; --pill-fg: #0c1a2b; --pill-on-bg: #0c1a2b; --pill-on-fg: #d4b25a;
  --home-bg: #0c1a2b; --home-fg: #f3efe6; --home-card: #11243a; --home-muted: #a9b4c2; --home-line: rgba(212, 178, 90, .3);
  --display: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif; --num: 'Cormorant Garamond', Georgia, serif;
  --display-case: none; --display-ls: .01em; --h1: 2.6rem;
  --sky1: #13304d; --sky2: #2c4a6b; --sky3: #c98d5b; --sky4: #e8b67f; --sun: #f6d79a; --water: #0f2740; --hull: #081422; --sail1: #f3efe6; --sail2: #e6dfd0;
  --strip: repeating-linear-gradient(90deg, #8a5a32 0 46px, #6e4524 46px 48px, #9a6a3d 48px 94px, #1c120a 94px 96px);
  --hero-radius: 26px; --card-radius: 22px;
  --navy: #0c1a2b; --sea: #1d4e7a; --sea-soft: #ece6d6; --sand: #f4f0e7; --card: #ffffff; --text: #0f1f30; --muted: #5d6a78; --line: #e4ddcd;
  --radius: 18px; --shadow: 0 1px 2px rgba(12, 26, 43, .06), 0 8px 24px rgba(12, 26, 43, .07);
}
html[data-theme="night"] {
  --bar: #06111c; --bar-fg: #e6f3fa; --accent: #5ee1ff; --accent-ink: #06111c;
  --pill-bg: #0b1f31; --pill-fg: #8fb3c7; --pill-on-bg: #5ee1ff; --pill-on-fg: #06111c;
  --home-bg: #06111c; --home-fg: #e6f3fa; --home-card: #0b1f31; --home-muted: #8fb3c7; --home-line: rgba(94, 225, 255, .3);
  --display: 'Space Grotesk', sans-serif; --body: 'Space Grotesk', -apple-system, sans-serif; --num: 'JetBrains Mono', ui-monospace, monospace;
  --display-ls: -.01em; --h1: 2.2rem;
  --sky1: #020a12; --sky2: #06233a; --sky3: #0b3b5a; --sky4: #12557a; --sun: #cfe9f5; --water: #041019; --hull: #000; --sail1: #9fdcf0; --sail2: #5e9db5;
  --strip: repeating-linear-gradient(90deg, #5ee1ff 0 18px, transparent 18px 30px);
  --navy: #06111c; --sea: #0a6f8a; --sea-soft: #e2f3f8; --sand: #eef3f6; --line: #d7e3ea; --text: #0b1a26;
}
html[data-theme="regatta"] {
  --bar: #003049; --bar-fg: #ffffff; --accent: #fcbf49; --accent-ink: #003049;
  --pill-bg: #003049; --pill-fg: #b8c7d3; --pill-on-bg: #fcbf49; --pill-on-fg: #003049;
  --home-bg: #f4f6f8; --home-fg: #0b1d2b; --home-card: #ffffff; --home-muted: #5b6b78; --home-line: #d9dee4;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', -apple-system, sans-serif; --num: 'Barlow Condensed', sans-serif;
  --display-case: uppercase; --display-ls: .01em; --h1: 2.8rem;
  --sky1: #0b5ea8; --sky2: #2f8fd6; --sky3: #8fd0f5; --sky4: #d6f0ff; --sun: #fcbf49; --water: #003049; --hull: #d62828; --sail1: #ffffff; --sail2: #fcbf49;
  --strip: linear-gradient(90deg, #d62828 0 16.6%, #fcbf49 16.6% 33.3%, #003049 33.3% 50%, #ffffff 50% 66.6%, #d62828 66.6% 83.3%, #003049 83.3%);
  --hero-radius: 22px; --card-radius: 16px;
  --navy: #003049; --sea: #d62828; --sea-soft: #fdeaea; --sand: #f4f6f8; --line: #dfe4ea; --text: #0b1d2b;
}
html[data-theme="chart"] {
  --bar: #1b2a3a; --bar-fg: #fbfaf5; --accent: #a3155f; --accent-ink: #ffffff;
  --pill-bg: #fbfaf5; --pill-fg: #1b2a3a; --pill-on-bg: #1b2a3a; --pill-on-fg: #ffffff;
  --home-bg: #fbfaf5; --home-fg: #1b2a3a; --home-card: #ffffff; --home-muted: #4f6475; --home-line: #1b2a3a;
  --display: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif; --body: 'IBM Plex Sans Condensed', -apple-system, sans-serif; --num: 'IBM Plex Sans Condensed', sans-serif;
  --display-case: none; --display-ls: .02em; --h1: 2.3rem;
  --sky1: #ffffff; --sky2: #eef6fa; --sky3: #cfe6f2; --sky4: #a9d2e8; --sun: #f2e3b3; --water: #a9d2e8; --hull: #1b2a3a; --sail1: #ffffff; --sail2: #f2e3b3;
  --strip: repeating-linear-gradient(90deg, #a3155f 0 22px, transparent 22px 32px);
  --hero-radius: 0; --card-radius: 0;
  --navy: #1b2a3a; --sea: #a3155f; --sea-soft: #f7e6ef; --sand: #fbfaf5; --line: #c9d2da; --text: #1b2a3a; --radius: 4px;
}

  html.dark, html.dark[data-theme] { --sea: var(--accent); --sea-soft: rgba(127, 127, 127, .15); --sand: var(--bar); --card: #13253a; --text: #eef2f6; --muted: #a9b4c2; --line: rgba(255, 255, 255, .12); }
  html.dark[data-theme="night"] { --card: #0b1f31; }

body { font-family: var(--body); }
h1, h2, .page-head h2, .trip-title { font-family: var(--display); font-weight: 700; letter-spacing: var(--display-ls); text-transform: var(--display-case); }
h2 { font-size: 1.8rem; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
html[data-theme="regatta"] .btn.primary, html[data-theme="chart"] .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
 html.dark .btn.primary { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; } 
html[data-theme="night"] body:not(.home-yc) #app { background-image: linear-gradient(rgba(10, 111, 138, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 111, 138, .05) 1px, transparent 1px); background-size: 26px 26px; }
html[data-theme="chart"] .card { border: 2px solid var(--navy); box-shadow: none; }

/* Kopfzeile */
#topbar { background: var(--bar); color: var(--bar-fg); border-bottom: 1px solid var(--home-line); gap: .8rem; }
html[data-theme="regatta"] #topbar { border-bottom: 0; box-shadow: inset 0 -6px 0 #d62828; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--bar-fg); }
.brand-mono { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
html[data-theme="regatta"] .brand-mono, html[data-theme="chart"] .brand-mono { border-radius: 8px; }
.brand-txt { display: inline !important; font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: var(--display-ls); text-transform: var(--display-case); }
@media (max-width: 380px) { .brand-txt { font-size: 1.1rem !important; } }
.topnav { gap: .2rem; }
.topnav .nav-item { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; color: var(--bar-fg); opacity: .85; font-weight: 600; text-decoration: none; }
.topnav .nav-item:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.topnav .nav-item.active { opacity: 1; color: var(--accent-ink); background: var(--accent); }
.topnav .nav-txt { display: inline !important; }
.anchor-nav.on .nav-ico { color: #2ecc71; }
.anchor-nav.alarm { background: #ff3b30 !important; color: #fff !important; animation: alarmPulse 1s infinite; }
.top-right { display: flex; align-items: center; gap: .5rem; }
.top-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; text-decoration: none; font-size: 1.15rem; }
.top-avatar.active { outline: 2px solid var(--bar-fg); outline-offset: 2px; }
.top-logout { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--home-line); background: transparent; color: var(--bar-fg); opacity: .8; display: grid; place-items: center; cursor: pointer; }
/* Handy: Hauptmenü unten – Symbol mit Beschriftung */
@media (max-width: 760px) {
  .topnav { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; border-radius: 24px;
    background: var(--pill-bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 5px; gap: 2px; }
  html[data-theme="regatta"] .topnav { left: 0; right: 0; bottom: 0; border-radius: 0; height: calc(70px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  html[data-theme="chart"] .topnav { left: 0; right: 0; bottom: 0; border-radius: 0; border-top: 2px solid #1b2a3a; box-shadow: none; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  html[data-theme="night"] .topnav { border: 1px solid rgba(94, 225, 255, .3); }
  .topnav .nav-item { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 0; border-radius: 18px; color: var(--pill-fg); opacity: 1; font-size: .68rem; font-weight: 700; letter-spacing: .02em; min-height: 56px; }
  html[data-theme="regatta"] .topnav .nav-item, html[data-theme="chart"] .topnav .nav-item { border-radius: 10px; }
  .topnav .nav-item:hover { background: rgba(127, 127, 127, .1); }
  .topnav .nav-item.active { background: var(--pill-on-bg); color: var(--pill-on-fg); }
  .page { padding-bottom: 7rem; }
  .kasse-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .lb-quick, .sticky-actions { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .lb-quick { padding-bottom: .8rem; }
  .brand-txt { font-size: 1.3rem; }
}

/* Karten & Reiter */
.card { border-radius: var(--radius); }
.tab.active { background: var(--navy); color: var(--accent); }
html[data-theme="regatta"] .tab.active, html[data-theme="chart"] .tab.active { color: #fff; }
 html.dark .tab.active { background: var(--accent); color: var(--accent-ink); } 

/* ---------- Startseite ---------- */
body.home-yc { background: var(--home-bg); color: var(--home-fg); }
html[data-theme="night"] body.home-yc { background-image: linear-gradient(rgba(94, 225, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 225, 255, .05) 1px, transparent 1px); background-size: 26px 26px; }
.yc-home { display: grid; gap: 1.1rem; max-width: 640px; }
.yc-hero { position: relative; display: flex; flex-direction: column; background: var(--home-card); border-radius: var(--hero-radius); overflow: hidden; text-decoration: none; color: var(--home-fg); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
html[data-theme="regatta"] .yc-hero { background: #003049; color: #fff; }
html[data-theme="chart"] .yc-hero { border: 2px solid #1b2a3a; box-shadow: none; }
html[data-theme="night"] .yc-hero { border: 1px solid rgba(94, 225, 255, .35); }
.yc-art { display: block; width: 100%; height: 250px; }
.yc-art .s1 { stop-color: var(--sky1); } .yc-art .s2 { stop-color: var(--sky2); } .yc-art .s3 { stop-color: var(--sky3); } .yc-art .s4 { stop-color: var(--sky4); }
.yc-sun { fill: var(--sun); } .yc-water { fill: var(--water); } .yc-hull { fill: var(--hull); } .yc-sail1 { fill: var(--sail1); } .yc-sail2 { fill: var(--sail2); } .yc-mast { stroke: var(--hull); }
.yc-yacht { animation: ycBob 6s ease-in-out infinite; transform-origin: 140px 290px; }
.yc-glint { stroke: var(--sun); animation: ycGlint 4s ease-in-out infinite; }
@keyframes ycBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2px) rotate(-.6deg); } }
@keyframes ycGlint { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .yc-yacht, .yc-glint { animation: none; } }
.yc-hero-txt { position: relative; margin-top: -3.2rem; padding: 2.4rem 1.3rem 1.3rem; display: grid; gap: .3rem; background: linear-gradient(180deg, transparent 0%, var(--hero-txt-bg, var(--home-card)) 3rem); }
html[data-theme="regatta"] .yc-hero-txt { --hero-txt-bg: #003049; }
html[data-theme="chart"] .yc-hero-txt { margin-top: 0; padding-top: 1rem; border-top: 2px solid #1b2a3a; }
.yc-kicker { font-size: .72rem; letter-spacing: .28em; color: var(--accent); font-weight: 800; font-family: var(--body); }
html[data-theme="regatta"] .yc-kicker { color: #fff; background: #d62828; justify-self: start; padding: .2rem .6rem; border-radius: 6px; letter-spacing: .12em; }
.yc-hero h1 { margin: 0; font-size: var(--h1); line-height: 1; color: inherit; }
.yc-sub, .yc-hero p { opacity: .85; margin: 0; }
.yc-boat { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-top: .2rem; }
.yc-stats { display: flex; gap: 1.4rem; margin-top: .5rem; }
.yc-stat { display: grid; }
.yc-stat strong { font-family: var(--num); font-size: 1.9rem; line-height: 1.05; }
.yc-stat:first-child strong { color: var(--accent); }
html[data-theme="night"] .yc-stat:first-child strong { text-shadow: 0 0 16px rgba(94, 225, 255, .6); }
.yc-stat small { font-size: .68rem; letter-spacing: .14em; opacity: .8; font-weight: 700; }
.yc-progress { height: 5px; border-radius: 999px; background: rgba(127, 127, 127, .25); overflow: hidden; margin-top: .6rem; }
.yc-progress span { display: block; height: 100%; background: var(--accent); }
html[data-theme="night"] .yc-progress span { background: linear-gradient(90deg, #5ee1ff, #ffb547); }
.yc-teak { height: 22px; border-radius: 6px; background: var(--strip); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
html[data-theme="night"] .yc-teak, html[data-theme="chart"] .yc-teak { height: 4px; box-shadow: none; border-radius: 0; opacity: .8; }
html[data-theme="regatta"] .yc-teak { height: 10px; border-radius: 0; box-shadow: none; }
.yc-quick { display: grid; background: var(--home-card); border: 1px solid var(--home-line); border-radius: var(--card-radius); padding: .3rem 1rem; }
html[data-theme="chart"] .yc-quick { border-width: 2px; }
html[data-theme="regatta"] .yc-quick { border: 0; box-shadow: 0 2px 0 #d9dee4; }
.yc-quick a { display: flex; align-items: center; gap: .9rem; min-height: 68px; color: var(--home-fg); text-decoration: none; border-bottom: 1px solid var(--home-line); }
.yc-quick a:last-child { border-bottom: 0; }
.yc-quick a.alarm { color: #e53935; }
.yc-q-ico { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); display: grid; place-items: center; flex: none; }
html[data-theme="regatta"] .yc-q-ico { background: #003049; color: #fcbf49; border-radius: 12px; }
html[data-theme="chart"] .yc-q-ico { border-radius: 0; background: transparent; border: 2px solid #1b2a3a; }
.yc-q-txt { flex: 1; display: grid; min-width: 0; }
.yc-q-txt small { color: var(--home-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-q-go { color: var(--accent); }
.yc-h2 { margin: .4rem 0 0; color: var(--accent); font-size: 1.6rem; }
html[data-theme="yacht"] .yc-h2, :root:not([data-theme]) .yc-h2 { font-style: italic; font-weight: 600; }
html[data-theme="regatta"] .yc-h2, html[data-theme="chart"] .yc-h2 { color: var(--home-fg); font-size: 1.25rem; letter-spacing: .08em; }
html[data-theme="night"] .yc-h2 { font-family: var(--num); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--home-muted); font-weight: 400; }
.yc-list { display: grid; gap: .6rem; }
.yc-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: var(--home-card); border: 1px solid var(--home-line); border-radius: calc(var(--card-radius) - 6px); padding: .9rem 1rem; color: var(--home-fg); text-decoration: none; }
html[data-theme="yacht"] .yc-row, :root:not([data-theme]) .yc-row { border-color: transparent; }
.yc-row.past { opacity: .55; }
.yc-row-main { display: grid; }
.yc-row-main small { color: var(--home-muted); }
.yc-row-num { font-family: var(--num); font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.yc-muted { color: var(--home-muted); margin: 0; }
.yc-cta { display: flex; justify-content: center; align-items: center; gap: .5rem; min-height: 54px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: .04em; text-decoration: none; font-family: var(--body); }
html[data-theme="regatta"] .yc-cta { background: #d62828; color: #fff; border-radius: 16px; text-transform: uppercase; font-family: var(--display); font-size: 1.2rem; }
html[data-theme="chart"] .yc-cta { border-radius: 0; background: transparent; color: var(--accent); border: 2px dashed var(--accent); }
.yc-cta.light { justify-self: start; padding: 0 1.4rem; margin-top: .6rem; }
body.home-yc .trip-bin { background: var(--home-card); color: var(--home-fg); border-color: var(--home-line); }
body.home-yc .trip-bin summary { color: var(--accent); }
body.home-yc .trip-bin .muted { color: var(--home-muted); }

/* ---------- Design-Auswahl im Profil ---------- */
.theme-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.theme-opt { display: grid; gap: .4rem; text-align: left; padding: .5rem; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.theme-opt.on { border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 25%, transparent); }
.theme-opt strong { font-size: .95rem; }
.theme-opt small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.theme-sw { height: 74px; border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: .45rem; gap: .3rem; }
.theme-sw i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.theme-sw b { position: absolute; left: .55rem; top: .4rem; font-size: 1.15rem; }
.compass-btn { margin-top: .5rem; }
.compass-btn.on { background: var(--sea); color: #fff; animation: alarmPulse 1.6s infinite; }

/* Karten dürfen Dialoge, Hinweise und Menü nicht überdecken */
.map-wrap, .anchor-map, .track-map, .leaflet-container { isolation: isolate; z-index: 0; }
.overlay { z-index: 3000 !important; }
#toast { z-index: 3100 !important; }
.map-search { position: relative; margin-bottom: .6rem; }
.map-search input { border-radius: 999px; padding-left: 1rem; }
.map-search-res { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.map-search-res:empty { display: none; }
.msr-item { display: grid; gap: .1rem; text-align: left; padding: .65rem .9rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.msr-item small { color: var(--muted); }
.msr-item:last-child { border-bottom: 0; }

/* Anzeige-Einstellungen */
html.zoom-fix, html.zoom-fix body { touch-action: pan-x pan-y; }
/* Karten: ein Finger scrollt die Seite, zwei Finger zoomen/verschieben (Leaflet) */
html.zoom-fix .map-wrap .leaflet-container { touch-action: pan-x pan-y; }
.view-card { margin-top: 1rem; }
.view-row { display: grid; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.view-row:first-of-type { border-top: 0; }
.view-row p { margin: .15rem 0 0; }
.view-seg { justify-self: start; }
/* Kein „Schwimmen“: nichts darf seitlich überstehen, kein Gummiband-Effekt, kein Auto-Zoom beim Tippen in Felder */
/* Wichtig: kein overflow-x: hidden auf html/body – das blockiert auf Android das Scrollen. „clip“ schneidet ab, ohne einen Scroll-Container zu bauen. */
html, body { max-width: 100%; overscroll-behavior-x: none; }
body { overflow-x: clip; }
html.zoom-fix input, html.zoom-fix select, html.zoom-fix textarea { font-size: max(16px, 1rem); }
img, svg, video, canvas { max-width: 100%; }
.anchor-radius { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.anchor-radius .step-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--text); }
.anchor-radius .anchor-r { min-width: 4.5rem; text-align: center; font-size: 1.5rem; }
.anchor-setup input[type=range] { width: 100%; height: 44px; accent-color: var(--sea); }
.anchor-rchips .cchip.on { outline: 3px solid var(--accent, #d4b25a); background: var(--navy); color: #fff; }

/* ---------- Logo oben links ---------- */
.brand-icon { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--accent, #d4b25a), 0 2px 8px rgba(0, 0, 0, .35); flex: none; }

/* ---------- Ladebildschirm ---------- */
/* ---------- Intro „Ahoyr – Alle an Bord.“ (ca. 3 s) ---------- */
#splash { position: fixed; inset: 0; z-index: 5000; overflow: hidden; color: #fff; display: grid; place-items: center;
  background: #0E2A47; transition: opacity .6s ease, visibility 0s .6s; }
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.sp-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0A1F36 0%, #0E2A47 35%, #1D6FD8 78%, #FF8A3D 100%); background-size: 100% 220%; background-position: 0 0; animation: spDawn 3s ease-out forwards; }
.sp-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; animation: spStar 2.6s ease-in-out forwards; }
.sp-stars i:nth-child(1) { left: 12%; top: 14%; animation-delay: .1s; } .sp-stars i:nth-child(2) { left: 28%; top: 8%; animation-delay: .35s; }
.sp-stars i:nth-child(3) { left: 46%; top: 18%; animation-delay: .2s; } .sp-stars i:nth-child(4) { left: 64%; top: 10%; animation-delay: .5s; }
.sp-stars i:nth-child(5) { left: 80%; top: 20%; animation-delay: .15s; } .sp-stars i:nth-child(6) { left: 90%; top: 7%; animation-delay: .6s; }
.sp-stars i:nth-child(7) { left: 6%; top: 30%; animation-delay: .45s; } .sp-stars i:nth-child(8) { left: 72%; top: 28%; animation-delay: .3s; }
.sp-sun { position: absolute; left: 50%; bottom: 6vh; width: 34vmin; height: 34vmin; margin-left: -17vmin; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFD2B0 0%, #FF8A3D 45%, rgba(255, 138, 61, 0) 70%); transform: translateY(40vmin); opacity: 0; animation: spSun 2.6s .1s cubic-bezier(.2, .8, .2, 1) forwards; }
.sp-boat { position: absolute; bottom: calc(14vh + 6px); left: -70px; width: 62px; height: 42px; animation: spBoat 3.2s .5s ease-in-out forwards; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.sp-center { position: relative; display: grid; justify-items: center; gap: .3rem; margin-top: -14vh; z-index: 2; }
.splash-glow { position: absolute; width: 360px; height: 360px; left: 50%; top: 74px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, .55) 0%, transparent 65%); opacity: 0; animation: splashGlow 2.4s .4s ease-in-out infinite; }
.splash-icon { position: relative; width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 22px 60px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .2);
  opacity: 0; animation: spIcon 1s .25s cubic-bezier(.2, 1.4, .3, 1) forwards, splashBob 3.2s 1.3s ease-in-out infinite; }
.splash-name { position: relative; margin-top: 1rem; font-size: 3.2rem; line-height: 1; display: flex; text-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.splash-name span { display: inline-block; opacity: 0; transform: translateY(26px) scale(.8); animation: spLetter .55s cubic-bezier(.2, 1.3, .3, 1) forwards; }
.splash-name span:nth-child(1) { animation-delay: .9s; } .splash-name span:nth-child(2) { animation-delay: 1s; } .splash-name span:nth-child(3) { animation-delay: 1.1s; }
.splash-name span:nth-child(4) { animation-delay: 1.2s; } .splash-name span:nth-child(5) { animation-delay: 1.3s; color: #FF8A3D; }
.splash-sub { position: relative; font-size: .95rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); font-weight: 800; text-transform: uppercase; color: #FFD2B0; letter-spacing: .9em; opacity: 0; animation: spSlogan 1s 1.6s ease-out forwards; }
.sp-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 1.1rem; opacity: 0; animation: spFadeIn .4s 1.8s forwards; }
.sp-bar i { display: block; height: 100%; width: 0; background: #FF8A3D; animation: spLoad 1.2s 1.8s ease-in-out forwards; }
.splash-waves { position: absolute; left: 0; bottom: 0; max-width: none; width: 200%; min-height: 70px; z-index: 1; }
.splash-waves.sw3 { height: 22vh; fill: #1D6FD8; opacity: .55; animation: splashWave 9s linear infinite; }
.splash-waves.sw2 { height: 18vh; fill: #144F9E; opacity: .85; animation: splashWave 6.5s linear infinite reverse; }
.splash-waves.sw1 { height: 14vh; fill: #0E2A47; animation: splashWave 5s linear infinite; }
.sp-surge { position: absolute; left: -10%; right: -10%; bottom: -120%; height: 120%; z-index: 3; border-radius: 50% 50% 0 0 / 12% 12% 0 0;
  background: linear-gradient(180deg, #FF8A3D 0 2.5%, #1D6FD8 2.5% 9%, #0E2A47 9%); transition: transform .65s cubic-bezier(.6, 0, .4, 1); }
#splash.leaving .sp-surge { transform: translateY(-100%); }
@keyframes spDawn { to { background-position: 0 100%; } }
@keyframes spStar { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: .15; } }
@keyframes spSun { to { transform: translateY(0); opacity: 1; } }
@keyframes spBoat { 0% { transform: translateX(0) translateY(0); } 50% { transform: translateX(55vw) translateY(-3px) rotate(-2deg); } 100% { transform: translateX(calc(100vw + 140px)) translateY(0); } }
@keyframes spIcon { 0% { opacity: 0; transform: scale(.3) rotate(-18deg) translateY(60px); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes spLetter { to { opacity: 1; transform: none; } }
@keyframes spSlogan { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .28em; } }
@keyframes spFadeIn { to { opacity: 1; } }
@keyframes spLoad { to { width: 100%; } }
@keyframes splashBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-2deg); } }
@keyframes splashGlow { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes splashWave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sp-sky, .sp-stars i, .sp-sun, .sp-boat, .splash-glow, .splash-icon, .splash-name span, .splash-sub, .sp-bar, .sp-bar i, .splash-waves { animation: none !important; opacity: 1; transform: none; }
  .sp-boat { display: none; } .sp-surge { display: none; }
}

/* Logbuch am Handy: Tabellen passen in die Breite, kein seitliches Scrollen */
@media (max-width: 760px) {
  .lb-page { padding-left: 14px !important; padding-right: 14px !important; }
  .lb-scroll { overflow-x: visible; }
  .lb-wx, .lb-kurs { min-width: 0 !important; table-layout: fixed; width: 100%; }
  .lb-table { font-size: .7rem; }
  .lb-table th { font-size: .52rem; padding: 2px 1px; letter-spacing: -.01em; word-break: break-word; hyphens: auto; }
  .lb-table td { padding: 1px; overflow: hidden; }
  .lb-table td .stack small, .lb-table .unit { font-size: .5rem; }
  .lb-table .okta, .lb-table svg { max-width: 100%; height: auto; }
  .lb-sum td { min-width: 0; }
}
@media (max-width: 760px) {
  .lb-kurs { table-layout: auto; }
  .lb-kurs td { font-size: .6rem; padding: 1px 0; }
  .lb-kurs .ink, .lb-kurs td b, .lb-kurs td strong { font-size: .74rem; letter-spacing: -.04em; }
  .lb-kurs th { font-size: .48rem; }
  .lb-wx .ink { font-size: .95rem; }
}


/* =====================================================================
   DESIGN BESTIMMT ALLES: hell/dunkel kommt vom Design, nicht vom Handy
   yacht & night = dunkel, regatta & chart = hell
   ===================================================================== */
html.dark { color-scheme: dark; }
html.dark[data-theme="yacht"], html.dark:not([data-theme]) {
  --navy: #08131f; --sea: #d4b25a; --sea-soft: rgba(212, 178, 90, .14); --sand: #0c1a2b; --card: #11243a;
  --text: #f3efe6; --muted: #a9b4c2; --line: rgba(212, 178, 90, .22); --shadow: 0 6px 20px rgba(0, 0, 0, .3);
  --ok-soft: #133526; --warn-soft: #3a2d12; --bad-soft: #3a1915;
}
html.dark[data-theme="night"] {
  --navy: #041019; --sea: #5ee1ff; --sea-soft: rgba(94, 225, 255, .12); --sand: #06111c; --card: #0b1f31;
  --text: #e6f3fa; --muted: #8fb3c7; --line: rgba(94, 225, 255, .2); --shadow: 0 0 0 1px rgba(94, 225, 255, .12);
  --ok-soft: #0f3326; --warn-soft: #3a2d12; --bad-soft: #3a1915;
}
html[data-theme="regatta"] { --ok-soft: #e2f5ea; --warn-soft: #fff4d6; --bad-soft: #fdeaea; }
html[data-theme="chart"] { --ok-soft: #e7f3ec; --warn-soft: #fbf1d9; --bad-soft: #f7e6ef; --sea-soft: #f7e6ef; }
html.dark body { background: var(--sand); color: var(--text); }
html.dark .btn.primary, html.dark .yc-cta { background: var(--sea); border-color: var(--sea); color: var(--navy); }
html.dark .tab.active { background: var(--sea); color: var(--navy); }
html.dark input, html.dark select, html.dark textarea { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line); }
html.dark .modal { background: var(--card); color: var(--text); }
html.dark .cchip { color: var(--text); }
/* Nachtmodus: Instrumentenschrift für Zahlen */
html[data-theme="night"] .kb-val, html[data-theme="night"] .kh-total, html[data-theme="night"] .anchor-stats strong, html[data-theme="night"] .gps-pill { font-family: 'JetBrains Mono', ui-monospace, monospace; }
html[data-theme="night"] .kasse-hero { background: radial-gradient(120% 140% at 0% 0%, #0b3b5a 0%, #06111c 70%); border: 1px solid rgba(94, 225, 255, .35); }
html[data-theme="regatta"] .kasse-hero { background: #003049; box-shadow: inset 0 -8px 0 #d62828; }
html[data-theme="chart"] .kasse-hero { background: #1b2a3a; border-radius: 0; }
html[data-theme="yacht"] .kasse-hero { background: radial-gradient(120% 140% at 0% 0%, #2c4a6b 0%, #0c1a2b 70%); border: 1px solid rgba(212, 178, 90, .35); }
html[data-theme="chart"] .btn, html[data-theme="chart"] .chip, html[data-theme="chart"] .cchip, html[data-theme="chart"] input, html[data-theme="chart"] .modal { border-radius: 4px; }
html[data-theme="regatta"] h2, html[data-theme="regatta"] h3 { text-transform: uppercase; }


/* Schnell-Leiste schlank & durchsichtig (2026-11-20) */
.lb-quick { padding: .45rem .8rem calc(.5rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 55%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.lb-quick .gps-bar { margin-bottom: .35rem; }
.lb-quick .gps-pill { padding: .3rem .7rem; }
.lb-quick .lb-textbar { margin-bottom: .35rem; }
.lb-quick .lb-textbar input { min-height: 38px; }
.lb-quick .lb-mic, .lb-quick .lb-send { width: 38px; height: 38px; font-size: 1.05rem; }
.lb-quick .lb-chips { padding-bottom: .3rem; }
.lb-quick .lb-chip { padding: .3rem .65rem; font-size: .78rem; }
.lb-quick .lb-fab { padding: .38rem .2rem; }
.lb-quick .lb-voicebar { margin-top: .3rem; flex-wrap: nowrap; }
.lb-quick .lb-voicebar .chip { padding: .3rem .75rem; font-size: .8rem; min-height: 0; }
@media (max-width: 900px) { .lb-quick { padding-bottom: .5rem; } }

/* Profil oben rechts als Messing-Bullauge (ohne Fähigkeiten) */
.top-porthole { width: 44px; height: 44px; background: none !important; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.top-porthole .porthole { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #f0d68e, #d4b25a 45%, #8a6a1c 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.top-porthole .ph-glass { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #0f2740; box-shadow: inset 0 0 0 2px #5d4410; }
.top-porthole .ph-glass .av { width: 34px !important; height: 34px !important; border-radius: 50%; }
.top-porthole.active { outline: 2px solid var(--bar-fg); outline-offset: 2px; }

/* Route-Karte im Rahmen: ragt nicht über den Rand, links/rechts bleibt Platz zum Scrollen */
.map-wrap { margin: 0 .35rem 1rem !important; height: min(48vh, 440px); border-radius: 18px !important; border: 2px solid var(--line); box-shadow: var(--shadow); overscroll-behavior: contain; }
@media (min-width: 700px) { .map-wrap { margin: 0 0 1rem !important; height: min(62vh, 560px); } }
.map-gesture-tip { position: absolute; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(8, 19, 31, .55); color: #fff; font-weight: 800; font-size: 1.05rem; opacity: 0; pointer-events: none; transition: opacity .25s; }
.map-gesture-tip.show { opacity: 1; }

/* Orte aus OpenStreetMap auf der Route-Karte */
.poi-bar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 .35rem .6rem; }
.poi-chip { display: inline-flex; align-items: center; gap: .25rem; min-height: 36px; padding: .3rem .7rem; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); background: var(--card); color: var(--text); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.poi-chip.on { background: var(--c); border-color: var(--c); color: #fff; }
.poi-status { flex-basis: 100%; }
.poi-pin { background: none; border: 0; }
.poi-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2.5px solid var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.35); font-size: 15px; }
.poi-pop { display: grid; gap: .25rem; min-width: 180px; color: #0f1f30; }
.poi-pop .btn { margin-top: .35rem; }
.poi-pin.poi-heart span { width: 18px; height: 18px; border: 0; background: none; box-shadow: none; color: #e8457a; font-size: 16px; line-height: 1; text-shadow: 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.45); }

/* ---------- Geplante Route (Skipper & Co-Skipper) ---------- */
.plan-card { margin: 0 0 1rem; border-left: 5px solid var(--rc, #ff5a1f); }
.plan-card.editing { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc, var(--rc, #ff5a1f)) 35%, transparent), var(--shadow, 0 4px 14px rgba(0,0,0,.08)); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.plan-head h3 { margin: 0; }
.plan-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; background: linear-gradient(135deg, var(--rc, var(--rc, #ff5a1f)), color-mix(in srgb, var(--rc, var(--rc, #ff5a1f)) 70%, #fff)); color: #fff; border-radius: 14px; padding: .7rem .4rem; margin-bottom: .6rem; }
.plan-total b { display: block; font-size: 1.35rem; line-height: 1.1; }
.plan-total small { opacity: .9; font-size: .72rem; }
.plan-list, .plan-chosen { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.plan-leg-row, .plan-chosen li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: 12px; background: var(--sea-soft, #eef6f7); }
.plan-leg-row.back { opacity: .85; font-style: italic; }
.plan-no { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--rc, #ff5a1f); color: #fff; font-weight: 800; font-size: .8rem; }
.plan-way { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.plan-from { color: var(--muted); }
.plan-arrow { color: var(--rc, #ff5a1f); font-weight: 800; }
.plan-dist { text-align: right; white-space: nowrap; display: flex; flex-direction: column; }
.plan-dist small { color: var(--muted); font-size: .7rem; }
.plan-sec { font-weight: 700; margin: .8rem 0 .35rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.plan-name { min-width: 0; overflow-wrap: anywhere; }
.plan-btns { display: flex; gap: .25rem; }
.plan-btns .icon-btn { width: 2rem; height: 2rem; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; }
.plan-btns .icon-btn:disabled { opacity: .3; }
.plan-btns .icon-btn.danger { color: #c0392b; }
.plan-round { display: flex; align-items: center; gap: .4rem; margin: .7rem 0 .2rem; font-weight: 600; }
.plan-round input { width: 1.2rem; height: 1.2rem; accent-color: var(--rc, #ff5a1f); }
.plan-live { margin-top: .5rem; font-weight: 700; color: var(--rc, #ff5a1f); }
.plan-pool { display: grid; gap: .35rem; }
.plan-add { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; padding: .55rem .7rem; border-radius: 12px; border: 1.5px dashed var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.plan-add small { color: var(--muted); white-space: nowrap; }
.plan-add:active { background: color-mix(in srgb, var(--rc, var(--rc, #ff5a1f)) 15%, transparent); }
.plan-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.plan-by { margin: .5rem 0 0; }
.leaflet-overlay-pane path.plan-line { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.leaflet-overlay-pane path.plan-line.draft { stroke-dasharray: 12 8; }
.plan-leg span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; background: #ff5a1f; color: #fff; font: 700 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.spot-pin .pin-step { position: absolute; left: -8px; bottom: 4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #ff5a1f; color: #fff; font: 800 11px/20px system-ui, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.spot-pin.in-plan .pin { box-shadow: 0 0 0 3px var(--rc, #ff5a1f); }
.popup-plan { width: 100%; margin-top: .4rem; }
html.dark .plan-leg-row, html.dark .plan-chosen li { background: rgba(255,255,255,.06); }

/* ---------- Hilfe ---------- */
.top-help { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--home-line, rgba(255,255,255,.35)); background: transparent; color: var(--bar-fg, #fff); font: 800 1.05rem/1 system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; opacity: .9; flex: none; }
.top-help:hover, .top-help:focus-visible { opacity: 1; background: rgba(255,255,255,.12); }
.help-modal .modal-body { max-height: min(72vh, 640px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.help-intro { margin: 0 0 .8rem; color: var(--muted); }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.help-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; align-items: start; padding: .55rem .6rem; border-radius: 12px; background: var(--sea-soft, #eef6f7); }
.help-list p { margin: .15rem 0 0; font-size: .9rem; line-height: 1.4; }
.help-ic { font-size: 1.15rem; text-align: center; line-height: 1.6; overflow-wrap: anywhere; }
.help-general { margin-top: .9rem; }
.help-general summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.help-sec { font-weight: 700; margin: 1rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.help-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
html.dark .help-list li { background: rgba(255,255,255,.06); }
@media (max-width: 520px) { .top-help { width: 32px; height: 32px; font-size: .95rem; } }

/* Social Clubs – Hanfblatt */
.leaf-ic { display: inline-block; vertical-align: -3px; color: #2e9e44; }
.poi-chip.on .leaf-ic { color: #fff; }
.poi-pin.poi-leaf span { display: grid; place-items: center; width: 26px; height: 26px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #fff; color: #2e9e44; border: 2px solid #2e9e44; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* Fotos im Orts-Fenster */
.pop-media { margin: .45rem 0 .5rem; }
.pop-photos { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; min-height: 30px; padding-bottom: 2px; }
.pop-photos.loading, .pop-photos:has(.pop-ph) { height: 112px; }
.pop-ph { flex: none; width: 150px; height: 108px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #dfe7ea; cursor: zoom-in; scroll-snap-align: start; }
.pop-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-ph-skel { flex: none; width: 150px; height: 108px; border-radius: 10px; background: linear-gradient(90deg, #e6edf0 0%, #f5f8f9 50%, #e6edf0 100%); background-size: 200% 100%; animation: phSkel 1.1s linear infinite; }
@keyframes phSkel { to { background-position: -200% 0; } }
.pop-ph-none { padding: .2rem 0; }
.pop-google { display: inline-block; margin-top: .3rem; font-size: .82rem; font-weight: 700; }
.photo-view img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; }
.photo-view p { margin: .5rem 0 0; }

/* Mehrere Routen */
.route-rows { display: grid; gap: .5rem; }
.route-row { border: 1.5px solid var(--line); border-left: 5px solid var(--rc); border-radius: 14px; padding: .5rem .6rem; background: var(--card); }
.route-row.off { opacity: .6; }
.route-row.open { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc) 30%, transparent); }
.route-row-head { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .55rem; cursor: pointer; }
.route-row.open .route-row-head { margin-bottom: .6rem; }
.route-eye { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; font-size: 1rem; cursor: pointer; }
.route-eye.on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.route-swatch { width: 22px; height: 6px; border-radius: 3px; box-shadow: 0 0 0 2px #fff; }
.route-title { min-width: 0; display: flex; flex-direction: column; }
.route-title strong { overflow-wrap: anywhere; }
.route-title small { color: var(--muted); font-size: .76rem; }
.route-caret { color: var(--muted); font-size: 1.1rem; }
.route-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.plan-hint { margin: .6rem 0 0; }
.plan-meta-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 480px) { .plan-meta-edit { grid-template-columns: 1fr; } }
.plan-colors { display: flex; flex-wrap: wrap; gap: .45rem; }
.plan-color { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.plan-color.on { border-color: #fff; box-shadow: 0 0 0 2.5px var(--text); }
.plan-name-tag span { font-weight: 800; }

/* GPS-Tracks: mehrere je Tag, Rangliste */
.track-rows { display: grid; gap: .5rem; margin: .6rem 0; }
.track-row { border: 1px solid var(--line); border-radius: 14px; padding: .55rem .6rem; background: var(--card); }
.track-row-head { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; margin-bottom: .4rem; }
.track-row-name { min-width: 0; display: flex; flex-direction: column; }
.track-row-name strong { overflow-wrap: anywhere; }
.track-row-name small { color: var(--muted); font-size: .76rem; }
.track-row .track-btns { margin: 0; }
.rank-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; flex: none; box-shadow: 0 0 0 2px #fff; }
.rank .chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rank-row { display: grid; grid-template-columns: 2rem auto 1fr auto; grid-template-areas: "pos av name val" "pos av name act"; gap: .1rem .55rem; align-items: center; padding: .5rem .6rem; border-radius: 14px; background: var(--sea-soft, #eef6f7); }
.rank-row.top1 { background: linear-gradient(90deg, #f7d77455, transparent); }
.rank-row.top2 { background: linear-gradient(90deg, #c9d2d966, transparent); }
.rank-row.top3 { background: linear-gradient(90deg, #d9a06b55, transparent); }
.rank-pos { grid-area: pos; font-size: 1.4rem; text-align: center; font-weight: 800; }
.rank-row .rank-av { grid-area: av; }
.rank-name { grid-area: name; min-width: 0; display: flex; flex-direction: column; }
.rank-name strong { overflow-wrap: anywhere; }
.rank-name small { color: var(--muted); font-size: .72rem; }
.rank-val { grid-area: val; font-weight: 800; font-size: 1.05rem; text-align: right; white-space: nowrap; }
.rank-act { grid-area: act; display: flex; gap: .2rem; justify-content: flex-end; }
.rank-act .icon-btn { width: 2rem; height: 2rem; }
html.dark .rank-row { background: rgba(255,255,255,.06); }
.yacht-pin { background: none !important; border: 0 !important; }
.track-layer { margin: .4rem 0 0; }
.track-row-tools { display: flex; align-items: center; gap: .2rem; }
.track-medal { font-size: 1.45rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.track-row-tools .icon-btn.danger { color: #c0392b; }

/* Orts-Fenster: Fotoleiste bleibt im Rahmen */
.poi-pop > *, .popup > * { min-width: 0; max-width: 100%; }
.poi-pop { min-width: 0; }
.leaflet-popup-content .pop-media { width: 100%; max-width: 100%; overflow: hidden; }
.leaflet-popup-content .pop-photos { width: 100%; max-width: 100%; box-sizing: border-box; }
.leaflet-popup-content .pop-ph, .leaflet-popup-content .pop-ph-skel { width: 132px; height: 96px; }
.leaflet-popup-content .pop-photos.loading, .leaflet-popup-content .pop-photos:has(.pop-ph) { height: 100px; }
.poi-popup .leaflet-popup-content, .spot-popup .leaflet-popup-content { overflow: hidden; }

/* Video teilen */
.share-big { margin: .6rem 0 .4rem; font-size: 1rem; }
.share-chip { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; border-color: transparent; }
.share-help ol { padding-left: 1.2rem; }
.share-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0; }
.share-app { flex: 1 1 30%; text-align: center; padding: .55rem .4rem; border-radius: 12px; font-weight: 700; text-decoration: none; color: #fff; }
.share-app.ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.share-app.fb { background: #1877f2; }
.share-app.wa { background: #25d366; }

/* Kassenbuch: Gesamtübersicht, Rechte, lesbare Ausgleich-Zeilen */
.kh-mine { display: flex; gap: .6rem; margin: .55rem 0 .2rem; }
.kh-mine span { flex: 1; background: rgba(255,255,255,.1); border-radius: 12px; padding: .4rem .6rem; display: flex; flex-direction: column; }
.kh-mine small { opacity: .8; font-size: .72rem; }
.kh-mine b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.kasse-overview .ko-table { display: grid; gap: 2px; font-size: .82rem; }
.ko-tr { display: grid; grid-template-columns: minmax(5.2rem, 1.3fr) repeat(4, minmax(0, 1fr)); gap: .3rem; align-items: center; padding: .4rem .3rem; border-radius: 10px; }
.ko-tr:nth-child(even):not(.ko-th):not(.ko-sum) { background: rgba(127,127,127,.07); }
.ko-tr.me { box-shadow: inset 3px 0 0 var(--accent, #2a9d8f); }
.ko-th { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
.ko-th span:not(:first-child), .ko-c { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko-sum { border-top: 2px solid var(--line); font-weight: 800; border-radius: 0; }
.ko-who { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.ko-who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ko-c.plus { color: #1e9e5a; } .ko-c.minus { color: #d64545; }
.ko-note { margin: .6rem 0 0; }
@media (max-width: 400px) { .kasse-overview .ko-table { font-size: .74rem; } .ko-tr { gap: .2rem; } .ko-who .av { display: none; } }
.kasse-lock { margin: .7rem 0; padding: .6rem .8rem; border-radius: 14px; background: rgba(127,127,127,.1); border: 1px dashed var(--line); font-size: .88rem; }
.ks-row { background: rgba(42, 157, 143, .1); color: var(--text); }
.ks-row.me { background: rgba(233, 196, 106, .22); color: var(--text); }
.ks-row .ks-txt, .ks-row .ks-amt { color: var(--text); }
.ke-view-split { display: grid; gap: .3rem; margin: .5rem 0; }

/* ---------- Einkaufsliste ---------- */
.shop-add-row { display: flex; gap: .5rem; }
.shop-input { flex: 1; font-size: 1.05rem; padding: .7rem .85rem; border-radius: 14px; }
.shop-plus { width: 3.1rem; font-size: 1.5rem; padding: 0; border-radius: 14px; }
.shop-suggest { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.shop-suggest:empty { display: none; }
.shop-picks-label { margin: .8rem 0 .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.shop-cat-tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shop-cat-tabs::-webkit-scrollbar { display: none; }
.shop-cat-tabs .chip { flex: none; }
.shop-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .35rem; margin-top: .5rem; }
.shop-pick { display: flex; justify-content: space-between; align-items: center; gap: .3rem; padding: .5rem .6rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.shop-pick i { font-style: normal; color: var(--muted); font-weight: 700; }
.shop-pick.on { border-color: var(--accent, #2a9d8f); background: color-mix(in srgb, var(--accent, #2a9d8f) 14%, transparent); }
.shop-pick.on b { color: var(--accent, #2a9d8f); white-space: nowrap; }
.shop-pick:active { transform: scale(.97); }
.shop-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.shop-tools { display: flex; gap: .3rem; flex-wrap: wrap; }
.shop-sec { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: .8rem 0 .3rem; font-weight: 800; font-size: .85rem; color: var(--muted); background: none; border: 0; padding: 0; font-family: inherit; text-align: left; }
.shop-sec small { font-weight: 700; }
.shop-sec-done { cursor: pointer; }
.shop-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .5rem; padding: .35rem .2rem; border-bottom: 1px solid var(--line); }
.shop-row.pending { opacity: .75; }
.shop-check { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: #fff; font-weight: 900; font-size: 1.05rem; cursor: pointer; flex: none; }
.shop-row.done .shop-check { background: #1e9e5a; border-color: #1e9e5a; }
.shop-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; padding: .3rem 0; color: var(--text); font: inherit; text-align: left; cursor: text; }
.shop-name span { overflow-wrap: anywhere; font-weight: 600; }
.shop-name small { color: var(--muted); font-size: .72rem; }
.shop-row.done .shop-name span { text-decoration: line-through; opacity: .55; font-weight: 400; }
.shop-rename { width: 100%; padding: .45rem .55rem; border-radius: 10px; font-size: 1rem; }
.shop-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.shop-step button { width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--text); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.shop-qty { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: .85rem; white-space: nowrap; padding: 0 .1rem; }
.shop-del { width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; }
.shop-empty { padding: .6rem 0; }
@media (max-width: 380px) { .topnav .nav-item { font-size: .6rem; letter-spacing: 0; } }
.kasse-hero.tappable { cursor: pointer; }
.kasse-hero.tappable:active { transform: scale(.99); }
.kh-more { opacity: .75; font-weight: 600; font-size: .85em; }
.debts-sec { margin-bottom: .9rem; }
.debts-sec h4 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Ausgleichszahlungen bestätigen */
.modal p { white-space: pre-line; }
.tag.wait { background: rgba(233, 196, 106, .25); color: var(--text); border-radius: 999px; padding: .2rem .55rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pending-row { flex-wrap: wrap; }
.pt-state { display: block; font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.pt-side.ok { color: #1e9e5a; font-weight: 700; }
.pt-btns { display: flex; gap: .3rem; width: 100%; justify-content: flex-end; }
.pt-btns:empty { display: none; }
.tp-amount { font-size: 2.2rem; font-weight: 800; text-align: center; margin: .2rem 0 .6rem; font-variant-numeric: tabular-nums; }
.tp-body p { text-align: center; }

/* ---------- Marke: Ahoyr – Alle an Bord. ---------- */
:root { --ahoyr-orange: #FF8A3D; --ahoyr-ocean: #1D6FD8; --ahoyr-navy: #0E2A47; }
.brand-txt, .splash-name, .hero-brand { font-family: 'Space Grotesk', system-ui, sans-serif !important; font-weight: 700; letter-spacing: -.02em !important; text-transform: none !important; }
.brand-icon { border-radius: 10px; }
.splash-icon { border-radius: 34px; box-shadow: 0 18px 50px rgba(255, 138, 61, .45), 0 0 0 2px rgba(255, 255, 255, .25); }
.login .hero { text-align: center; }
.login .hero-logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 32px rgba(255, 138, 61, .4); display: block; margin: 0 auto .6rem; }
.login .hero-brand { font-size: 2.6rem; margin: 0; }
.login .hero-slogan { margin: .1rem 0 .6rem; color: var(--ahoyr-orange); font-weight: 700; font-size: 1.15rem; }

/* ---------- Design „Ahoyr“ (Standard): Mandarine, Ozeanblau, Navy – hell & freundlich ---------- */
html[data-theme="ahoyr"] {
  --bar: #0E2A47; --bar-fg: #ffffff; --accent: #FF8A3D; --accent-ink: #ffffff;
  --pill-bg: #ffffff; --pill-fg: #4A5B6E; --pill-on-bg: #FF8A3D; --pill-on-fg: #ffffff;
  --home-bg: #F3F6F9; --home-fg: #10233A; --home-card: #ffffff; --home-muted: #4A5B6E; --home-line: #E1E8EF;
  --display: 'Space Grotesk', system-ui, sans-serif; --body: 'Inter', -apple-system, system-ui, sans-serif; --num: 'Space Grotesk', system-ui, sans-serif;
  --display-case: none; --display-ls: -.01em; --h1: 2.4rem;
  --sky1: #1D6FD8; --sky2: #5FA8F0; --sky3: #FFB27F; --sky4: #FFE3CF; --sun: #FF8A3D; --water: #0E2A47; --hull: #1D6FD8; --sail1: #ffffff; --sail2: #FFE3CF;
  --strip: linear-gradient(90deg, #FF8A3D 0 62%, #1D6FD8 62% 86%, #0E2A47 86%);
  --hero-radius: 24px; --card-radius: 20px; --radius: 20px;
  --navy: #0E2A47; --sea: #1D6FD8; --sea-soft: #E6F0FC; --sand: #F3F6F9; --line: #E1E8EF; --text: #10233A; --muted: #4A5B6E; --card: #ffffff;
  --ok-soft: #e4f5ec; --warn-soft: #fff1e6; --bad-soft: #fdeaea;
}
html[data-theme="ahoyr"] body { background: #F3F6F9; }
html[data-theme="ahoyr"] #topbar { border-bottom: 0; box-shadow: 0 2px 0 rgba(255, 138, 61, .9); }
html[data-theme="ahoyr"] .card { border: 0; box-shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 6px 20px rgba(14, 42, 71, .06); }
html[data-theme="ahoyr"] .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="ahoyr"] .btn.primary:hover { background: #F2782A; border-color: #F2782A; }
html[data-theme="ahoyr"] .linkish, html[data-theme="ahoyr"] .back { color: #1D6FD8; }
html[data-theme="ahoyr"] .brand, html[data-theme="ahoyr"] .brand-txt { color: #fff; }
html[data-theme="ahoyr"] .tab.active { background: var(--accent); color: #fff; }
html[data-theme="ahoyr"] .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
html[data-theme="ahoyr"] .yc-hero { background: #0E2A47; color: #fff; border: 0; }
html[data-theme="ahoyr"] .yc-hero-txt { --hero-txt-bg: #0E2A47; }
html[data-theme="ahoyr"] .yc-kicker { color: #fff; background: var(--accent); justify-self: start; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .1em; }
html[data-theme="ahoyr"] .yc-stat:first-child strong { color: #FFB27F; }
html[data-theme="ahoyr"] .yc-teak { height: 8px; border-radius: 999px; box-shadow: none; }
html[data-theme="ahoyr"] .yc-quick { border: 0; box-shadow: 0 6px 20px rgba(14, 42, 71, .06); }
html[data-theme="ahoyr"] .yc-q-ico { background: #FFF1E8; color: #FF8A3D; border-radius: 14px; }
html[data-theme="ahoyr"] .yc-q-go { color: #1D6FD8; }
html[data-theme="ahoyr"] .yc-h2 { color: var(--home-fg); font-size: 1.3rem; }
html[data-theme="ahoyr"] .yc-row { border: 0; box-shadow: 0 4px 14px rgba(14, 42, 71, .05); }
html[data-theme="ahoyr"] .yc-row-num { color: var(--accent); }
html[data-theme="ahoyr"] .yc-cta { background: var(--accent); color: #fff; }
html[data-theme="ahoyr"] .kasse-hero { background: radial-gradient(120% 140% at 0% 0%, #1D6FD8 0%, #0E2A47 60%); box-shadow: 0 10px 28px rgba(14, 42, 71, .25); }
@media (max-width: 760px) {
  html[data-theme="ahoyr"] .topnav { box-shadow: 0 10px 30px rgba(14, 42, 71, .18); border: 1px solid #E1E8EF; }
}

/* Einkauf: eigene Kategorien & Unterkategorien */
.shop-addcat { display: flex; gap: .4rem; align-items: center; margin-top: .5rem; }
.shop-catsel { flex: 1; min-width: 0; padding: .45rem .6rem; border-radius: 12px; font-size: .9rem; }
.shop-subsec { display: flex; justify-content: space-between; margin: .5rem 0 .15rem .4rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.shop-cats-admin { display: grid; gap: .7rem; }
.sca-new { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .4rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.sca-icon { text-align: center; font-size: 1.2rem; padding: .4rem 0; }
.sca-cat { border: 1px solid var(--line); border-radius: 14px; padding: .55rem .65rem; display: grid; gap: .4rem; }
.sca-head { display: flex; justify-content: space-between; align-items: center; }
.sca-subs { display: flex; flex-wrap: wrap; gap: .3rem; }
.sca-sub { display: inline-flex; align-items: center; gap: .3rem; }
.sca-sub button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 .1rem; font-size: .85rem; }
.sca-addsub { display: grid; grid-template-columns: 1fr auto; gap: .35rem; }
.sca-addsub input { padding: .4rem .6rem; font-size: .9rem; }
.shop-edit { display: grid; gap: .6rem; }

/* ---------- Galerie ---------- */
.gal-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.gal-head h3 { margin: 0; }
.gal-links { display: grid; gap: .45rem; }
.gal-link { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 14px; background: var(--sea-soft, #eef6f7); }
.gal-link-ic { font-size: 1.4rem; }
.gal-link-txt { min-width: 0; display: flex; flex-direction: column; }
.gal-link-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-link-txt small { color: var(--muted); font-size: .74rem; }
.gal-linkform { display: grid; gap: .6rem; }
.gal-info { margin: .2rem 0 .6rem; }
.gal-filter { margin-bottom: .6rem; }
.gal-uploads { display: grid; gap: .35rem; margin-bottom: .5rem; }
.gal-uploads:empty { display: none; }
.gal-up { display: grid; grid-template-columns: 1fr 5rem auto; gap: .5rem; align-items: center; font-size: .82rem; }
.gal-up span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-up-bar { height: 6px; border-radius: 3px; background: rgba(127, 127, 127, .2); overflow: hidden; }
.gal-up-bar i { display: block; height: 100%; background: var(--accent, #FF8A3D); transition: width .3s; }
.gal-day { display: flex; justify-content: space-between; align-items: baseline; margin: .8rem 0 .35rem; }
.gal-day-h { font-weight: 800; font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.gal-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #dfe7ea; cursor: zoom-in; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gal-tile:hover img { transform: scale(1.04); }
.gal-noimg { display: grid; place-items: center; height: 100%; font-size: 2rem; }
.gal-tile .gal-vthumb { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #0E2A47; }
.gal-badge, .gal-likes { position: absolute; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; font-weight: 700; }
.gal-badge { left: 4px; } .gal-likes { right: 4px; }
.gal-modal { max-width: min(96vw, 980px) !important; }
.gal-viewer { display: grid; gap: .6rem; }
.gal-stage { position: relative; display: grid; place-items: center; background: #000; border-radius: 12px; overflow: hidden; min-height: 40vh; touch-action: pan-y; }
.gal-media { max-width: 100%; max-height: 68vh; display: block; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gal-nav.prev { left: 8px; } .gal-nav.next { right: 8px; }
.gal-vrow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.gal-vby { flex: 1; color: var(--muted); font-size: .85rem; }
.gal-vcount { color: var(--muted); font-size: .8rem; }
.gal-caption { margin: 0; }
.app-login-fields { display: grid; gap: .45rem; margin: .5rem 0; }
.native-hint { margin: .8rem 0 0; }
/* Status-Punkte im Menü: auf dem Handy direkt am Symbol */
@media (max-width: 760px) {
  .anchor-nav.on::after, .anchor-nav.alarm::after, .log-nav.auto::after { top: 5px; right: calc(50% - 20px); box-shadow: 0 0 0 2px var(--pill-bg); }
  .log-nav.rec::before { top: 5px; right: calc(50% - 31px); box-shadow: 0 0 0 2px var(--pill-bg); }
  .log-nav.rec:not(.auto)::before { right: calc(50% - 20px); }
}
/* Anmeldung mit Apple (iPhone-App) */
.btn.apple { background: #000; color: #fff; border-color: #000; font-weight: 700; }
.btn.apple .apple-logo { font-size: 1.15em; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.login-native { display: grid; gap: .6rem; }
.login-native .btn.wide { min-height: 50px; }
/* Menü-Status: aktiver Törn, offener Einkauf, Kassenstand */
.trip-nav, .shop-nav, .money-nav { position: relative; }
.nav-ico { position: relative; }
.trip-nav.live:not(.active) .nav-ico { color: #FF8A3D; }
.trip-nav.live::after { content: ''; position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: #FF8A3D; box-shadow: 0 0 0 2px var(--navy); animation: recblink 2s infinite; }
.trip-nav.live .nav-ico svg { animation: navBob 2.4s ease-in-out infinite; }
@keyframes navBob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-1px) rotate(-4deg); } 75% { transform: translateY(1px) rotate(4deg); } }
.shop-nav.open:not(.active) .nav-ico { color: #f5a623; }
.nav-badge { position: absolute; top: -7px; right: -11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #f5a623; color: #1b1b1b; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--navy); }
.money-nav.plus:not(.active) .nav-ico { color: #2ecc71; }
.money-nav.minus:not(.active) .nav-ico { color: #ff5a4f; }
.money-nav.plus::after, .money-nav.minus::after { content: ''; position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--navy); }
.money-nav.plus::after { background: #2ecc71; }
.money-nav.minus::after { background: #ff5a4f; }
@media (max-width: 760px) {
  .trip-nav.live::after, .money-nav.plus::after, .money-nav.minus::after { top: 5px; right: calc(50% - 20px); box-shadow: 0 0 0 2px var(--pill-bg); }
  .nav-badge { box-shadow: 0 0 0 2px var(--pill-bg); }
}
@media (prefers-reduced-motion: reduce) { .trip-nav.live .nav-ico svg { animation: none; } }
/* „Was ist neu?“ */
.whatsnew { display: grid; gap: .9rem; }
.wn-block { padding: .8rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--accent, #FF8A3D) 9%, transparent); }
.wn-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.wn-block ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .3rem; }
.help-news { margin: .4rem 0 .2rem; }

/* ---------- Admin & Version ---------- */
.admin-entry { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: inherit; }
.admin-entry span:last-child { display: flex; flex-direction: column; }
.version-line { text-align: center; margin-top: .3rem; }
.help-ver { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; }
.admin-tabs .chip { flex: none; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.admin-kpi { display: flex; flex-direction: column; gap: .1rem; }
.admin-kpi strong { font-size: 1.35rem; }
.admin-list { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.admin-row { display: flex; gap: .6rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; }
.admin-row.col { display: block; }
.admin-row.col summary { cursor: pointer; }
.admin-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-row .grow strong { overflow: hidden; text-overflow: ellipsis; }
.admin-row .right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: .1rem; }
.admin-row .right.row { flex-direction: row; align-items: center; }
.admin-row.done strong { text-decoration: line-through; opacity: .6; }
.admin-badge { font-size: .75rem; background: var(--sea-soft); border-radius: 999px; padding: .15rem .5rem; white-space: nowrap; flex: none; }
.admin-ver.old { color: var(--bad, #c0392b); font-weight: 600; }
.admin-stack { font-size: .72rem; white-space: pre-wrap; word-break: break-all; background: var(--bg, #f4f6f8); padding: .5rem; border-radius: 8px; max-height: 240px; overflow: auto; }
.admin-add { display: flex; flex-direction: column; gap: .5rem; }
.admin-add .admin-target { width: 9rem; }
.admin-add select, .admin-row select { font: inherit; font-size: .85rem; }

/* ---------- Törn-Formular: Datum, Bootstyp, Revier ---------- */
.grid2 > * { min-width: 0; }
.grid2.dates { grid-template-columns: 1fr 1fr; }
input[type=date] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%;
  box-sizing: border-box; height: 46px; min-height: 46px; line-height: 1.2; text-align: left; background: var(--card);
}
input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
input[type=date]::-webkit-datetime-edit { padding: 0; }
.field > input, .field > select { box-sizing: border-box; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; background: var(--sea-soft); padding: .3rem; border-radius: 14px; }
.seg-btn { font: inherit; font-size: .85rem; border: 0; border-radius: 11px; background: transparent; color: var(--text); padding: .45rem .3rem; min-height: 56px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; transition: background .15s, box-shadow .15s; }
.seg-btn .seg-ico { font-size: 1.35rem; line-height: 1; }
.seg-btn.on { background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-weight: 600; color: var(--navy); }
.place-picker .pp-city { display: grid; gap: .5rem; }
.place-picker .hidden, .place-picker.hidden { display: none !important; }
.place-picker .muted.small { margin: -.2rem 0 0; }
.grid2.boat-row { grid-template-columns: 2fr 1fr; }

/* ---------- Logbuch: Drehregler ---------- */
.dial-hint { margin: -.3rem 0 0; font-size: .78rem; color: var(--muted); text-align: center; }
.dial-card { background: var(--sea-soft); border-radius: 18px; padding: .7rem .5rem .6rem; display: grid; gap: .5rem; }
.dial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; align-items: start; }
.knob, .rose { display: grid; justify-items: center; gap: .25rem; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; cursor: grab; }
.knob-dial, .rose-dial { position: relative; width: min(150px, 40vw); aspect-ratio: 1; }
.knob-svg, .rose-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.knob-track { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; }
.knob-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke .2s; }
.knob-tick { stroke: var(--muted); stroke-width: 1.2; opacity: .45; }
.knob-cap { fill: var(--card); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18)); }
.knob-dot { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.knob-dot.idle { fill: var(--muted); opacity: .5; }
.knob.turning .knob-cap, .rose.turning .rose-bg { filter: drop-shadow(0 0 6px var(--kc, var(--sea))); }
.knob-c, .rose-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52%; height: 52%; border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 0; cursor: text; }
.knob-v { font-size: 1.35rem; font-weight: 800; line-height: 1; color: var(--kc, var(--text)); white-space: nowrap; }
.knob-v small { font-size: .62rem; font-weight: 700; color: var(--muted); margin-left: 1px; }
.knob-pic { display: block; color: #546e7a; margin-bottom: .1rem; }
.knob-pic .okta-ring { stroke: currentColor; fill: none; stroke-width: 2; } .knob-pic .okta-fill { fill: currentColor; }
.wave-pic { width: 40px; height: 22px; display: block; margin-bottom: .05rem; }
.wave-pic path { fill: none; stroke: var(--kc, var(--sea)); stroke-width: 2.4; stroke-linecap: round; }
.knob-sub { display: grid; justify-items: center; text-align: center; font-size: .78rem; line-height: 1.25; min-height: 2.4em; }
.knob-sub b { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dial-input { width: 4.6em; min-height: 36px; padding: .2rem .3rem; text-align: center; font-size: 1.05rem; font-weight: 700; }
.rose-bg { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.rose-tick { stroke: var(--muted); stroke-width: 1; opacity: .5; } .rose-tick.major { stroke-width: 2; opacity: .9; }
.rose-l { font-size: 10px; font-weight: 800; text-anchor: middle; fill: var(--muted); } .rose-l.n { fill: #c62828; }
.rose-arrow { stroke-width: 4; stroke-linecap: round; }
.rose-v { font-size: 1.25rem; font-weight: 800; background: var(--card); padding: 0 .25rem; border-radius: 6px; }
.lb-head-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lb-head-row .lb-timerow { flex: 1; min-width: 180px; }
.lb-head-row .lb-wache { width: auto; flex: none; }
.lb-head-row .chipset.mode { flex: 1; min-width: 180px; flex-wrap: nowrap; }
.chipset.wx.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.chipset.wx.scroll .cchip { flex: none; }
.lb-log-in { text-align: center; font-weight: 700; }
.lb-more > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.lb-more[open] { display: grid; gap: .6rem; }
.lb-form-inner { display: grid; gap: .9rem; }
.compass-btn { justify-self: center; }

/* ---------- Logbuch: gesperrter Tag ---------- */
.lb-lock { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff4d6; color: #6b4e00; border: 1px solid #f0d58a; border-radius: 12px; padding: .55rem .8rem; margin-bottom: .6rem; font-weight: 600; font-size: .9rem; }
html.dark .lb-lock { background: #3a3012; color: #f3dc94; border-color: #6b5a1f; }
.logbook.locked .lb-page { opacity: .92; }
.logbook.locked .lb-page td, .logbook.locked .lb-page .lb-cell { cursor: not-allowed; }
.lb-quick.locked .lb-chips, .lb-quick.locked .lb-fabs { opacity: .4; filter: grayscale(.6); pointer-events: none; }
.lb-form, .lb-form-inner { min-width: 0; }
.lb-form > *, .lb-form-inner > *, .dial-grid > *, .lb-sec { min-width: 0; max-width: 100%; }
.modal .lb-form .btn.wide { white-space: normal; }
.lb-head-row .lb-timerow { min-width: 0; }
.dial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.knob-dial, .rose-dial { width: min(140px, 100%); }
.knob-sub { max-width: 100%; overflow-wrap: anywhere; }
.lb-head-row .chipset.mode { flex: 1 1 100%; }
.lb-head-row .chipset.mode .cchip { padding: .45rem; min-height: 42px; }
