/* Logbuch · Mein Schiff 7
   Richtung: Seekarte bei Nacht trifft Reisemagazin. Die Karte ist das Herz, alles andere ruhig und präzise. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* Layout: einspaltig auf dem Handy, Karte oben, Logbuch darunter; ab 960px Karte links fixiert, Inhalt rechts. */
  --bg: #eaf0ef;
  --surface: #ffffff;
  --surface-2: #dfe7e6;
  --ink: #0b1c28;
  --muted: #566a73;
  --line: rgba(11, 28, 40, .11);
  --accent: #ff5733;        /* Signalorange – Rettungsring */
  --accent-ink: #ffffff;
  --sea: #17756d;           /* Meerglas */
  --gold: #b9842a;          /* Silvester */
  --night: #06141e;
  --night-2: #0b2230;
  --good: #1f8a5b; --warn: #c27c0e; --bad: #c8372d;
  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px;
  --shadow: 0 1px 0 rgba(11,28,40,.04), 0 10px 30px -12px rgba(11,28,40,.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050f16; --surface: #0b1b26; --surface-2: #112634; --ink: #e6eef0; --muted: #8aa0aa;
    --line: rgba(230, 238, 240, .09); --accent: #ff6a48; --sea: #4cb3a5; --gold: #e3b45a;
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 14px 34px -14px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050f16; --surface: #0b1b26; --surface-2: #112634; --ink: #e6eef0; --muted: #8aa0aa;
  --line: rgba(230, 238, 240, .09); --accent: #ff6a48; --sea: #4cb3a5; --gold: #e3b45a;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 14px 34px -14px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ------------------------------------------------------------ Gerüst */
.shell { max-width: 1240px; margin: 0 auto; }
.main { padding: 20px 16px 24px; display: grid; gap: 28px; }
@media (min-width: 640px) { .main { padding: 28px 28px 32px; } }

/* ------------------------------------------------------------ Die Fahrt (Startseite)
   Himmel und Meer zeichnet voyage.js auf das Canvas; hier liegt nur, was darüber steht. */
.shell.home, .shell.day { max-width: none; }
.shell.home .main { max-width: 1240px; margin: 0 auto; }
@media (min-width: 960px) {
  .shell.home .main { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; column-gap: 28px; }
  .shell.home .main > .netbar { grid-column: 1 / -1; }
  .shell.home .main .tiles { grid-template-columns: 1fr; position: sticky; top: 28px; }
}
/* Unter der Bühne geht es im Nachtblau des Meeres weiter – unabhängig von Hell/Dunkel, damit kein Bruch entsteht */
.shell.home { background: var(--night); color: var(--ink);
  --bg: var(--night); --surface: #0b1b26; --surface-2: rgba(255, 255, 255, .08); --ink: #e6eef0; --muted: #8fa5ae;
  --line: rgba(230, 238, 240, .12); --accent: #ff6a48; --sea: #4cb3a5; --gold: #e3b45a; }
body:has(.shell.home), body:has(.login), body:has(.welcome) { background: var(--night); } /* auch hinter Statusleiste und Safari-Leisten */
/* Tagesseiten: Safari färbt Statusleiste und Überscrollen nach dem Seitenhintergrund – oben also dunkel wie der Himmel,
   der Inhalt darunter trägt seinen eigenen Hintergrund bis ganz nach unten */
html:has(.dayhead, .pagehead), html:has(.dayhead, .pagehead) body { background: var(--night); }
html:has(.dayhead, .pagehead) body { padding-bottom: 0; }
html:has(.dayhead, .pagehead) #app { background: var(--bg); min-height: 100vh; min-height: 100dvh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.shell.home .tiles { gap: 0 22px; grid-template-columns: 1fr 1fr; }
.shell.home .tile { background: none; box-shadow: none; border-radius: 0; padding: 16px 0 18px; border-top: 1px solid var(--line); align-content: start; }
.shell.home .tile.live::after { top: 20px; right: 2px; }
.shell.home .log { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.shell.home .logrow { grid-template-columns: 46px minmax(0, 1fr) 86px; padding: 16px 0; border-top: 1px solid var(--line); }
.shell.home .logrow:first-child { border-top: 1px solid var(--line); }
.shell.home .logrow:hover { background: none; }
@media (hover: hover) { .shell.home .logrow:hover .place { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; } }
.shell.home .logrow.today { background: none; }
.shell.home .logrow.today::before { left: -10px; top: 16px; bottom: 16px; }
.logrow .tag { font-size: .88rem; color: color-mix(in srgb, var(--ink) 78%, transparent); margin-top: 1px; }
.logrow .side { display: grid; gap: 5px; justify-items: end; }
.logrow .sky { width: 76px; height: 46px; border-radius: 5px; overflow: hidden; position: relative; }
.logrow .sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.voyage { position: relative; background: var(--night); }
.voy-scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--night);
  --ink: #eef4f5; --ink-soft: rgba(238, 244, 245, .78); color: var(--ink); }
.voy-scene.is-day { --ink: var(--night); --ink-soft: rgba(6, 20, 30, .76); }
.voy-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* Unten dunkelt das Bild ab, damit Tagesleiste und Position auch über hellem Land lesbar bleiben */
.voy-scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 20, 30, 0), rgba(6, 20, 30, .78) 58%, var(--night)); }
.voy-swell { position: absolute; left: 0; z-index: -1; fill: none; stroke: rgba(233, 241, 242, .28); stroke-width: 1; animation: swell 46s linear infinite; pointer-events: none; }
.voy-swell.s2 { animation-duration: 70s; stroke: rgba(233, 241, 242, .19); }
.voy-swell.s3 { animation-duration: 110s; stroke: rgba(233, 241, 242, .12); }
@keyframes swell { to { transform: translate3d(-1600px, 0, 0); } }
.voy-scene .hero-top { padding-top: calc(env(safe-area-inset-top) + 16px); }
.voy-scene .brand { margin: 0; font-weight: 400; color: var(--ink-soft); transition: color .5s; }
.voy-scene .brand b { color: var(--ink); }
.voy-scene .avatar { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); background: color-mix(in srgb, var(--ink) 9%, transparent); transition: color .5s; }
.voy-info { padding: 20px 22px 0; max-width: 640px; transition: color .5s; opacity: var(--fade, 1); transform: translate3d(0, calc((1 - var(--fade, 1)) * -12px), 0); }
.voy-info.off { pointer-events: none; }
.voy-info p { margin: 12px 0 0; max-width: 38ch; color: var(--ink-soft); font-size: .95rem; }
.count { display: flex; align-items: flex-end; gap: 12px; }
.count .num { font-family: var(--f-display); font-weight: 300; font-size: clamp(5.4rem, 25vw, 9rem); line-height: .78; letter-spacing: -.045em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.count .num.ahoi { font-size: clamp(3.4rem, 14vw, 6rem); line-height: 1; }
.count .unit { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 5vw, 1.8rem); line-height: 1.08; padding-bottom: 2px; }
.voy-hms { margin-top: 14px; color: var(--ink-soft); }
.voy-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); font-size: .8rem; }
.voy-date .badge.hot { background: var(--accent); color: #fff; }
.voy-date .badge.gold { background: rgba(6, 20, 30, .55); color: #ffd89b; }
.voy-place { margin-top: 8px; font-style: italic; font-weight: 300; font-size: clamp(3.3rem, 16vw, 6.4rem); line-height: .92; letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.voy-place.long { font-size: clamp(2.3rem, 10.5vw, 4.4rem); line-height: 1; }
.voy-info .voy-tag { font-family: var(--f-display); font-size: clamp(1.12rem, 4.6vw, 1.5rem); line-height: 1.25; color: var(--ink); margin-top: 10px; max-width: 24ch; }
.voy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; color: var(--ink-soft); font-size: .8rem; }
.voy-meta .wx { display: inline-flex; align-items: center; gap: 5px; }
.voy-info .chip-ghost { margin-top: 16px; min-height: 44px; padding: 0 12px 0 16px; font-weight: 700; color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 30%, transparent); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.voy-foot { position: absolute; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); display: grid; gap: 6px; color: #eef4f5; }
.voy-hint { margin: 0; padding: 0 22px; font-size: .86rem; color: rgba(238, 244, 245, .82); opacity: var(--start, 1); }
.voy-hint a { color: #fff; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }
.voy-read { padding: 0 22px; font-size: .68rem; letter-spacing: .06em; color: rgba(238, 244, 245, .6); opacity: calc(1 - var(--start, 1)); min-height: 1.2em; }
.voy-days { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.voy-days::-webkit-scrollbar { display: none; }
.voy-days a { flex: none; width: 44px; height: 50px; display: grid; align-content: center; justify-items: center; gap: 1px; border-radius: 12px; text-decoration: none;
  font-family: var(--f-mono); color: rgba(238, 244, 245, .6); position: relative; }
.voy-days a span { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.voy-days a b { font-weight: 500; font-size: .95rem; color: rgba(238, 244, 245, .9); }
.voy-days a.gold b { color: #ffd89b; }
.voy-days a.today::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #ff6a48; }
.voy-days a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
.voy-days a[aria-current] b { color: #ff8a68; }
.voy-days a[aria-current].gold b { color: #ffd89b; }
@media (min-width: 700px) { .voy-days { justify-content: center; } }
@media (min-width: 900px) {
  .voy-scene .hero-top { padding-left: max(28px, 6vw); padding-right: max(28px, 6vw); }
  .voy-info, .voy-hint, .voy-read { padding-left: max(28px, 6vw); }
}

body:has(.scrim) .tabbar { display: none; }
  font-family: var(--f-display); font-weight: 300; font-size: clamp(14rem, 62vw, 30rem); line-height: .8; letter-spacing: -.06em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; color: transparent; -webkit-text-stroke: 1.2px rgba(233, 241, 242, .16); }
.chart .land { fill: #0f2c3a; stroke: rgba(160, 210, 220, .22); stroke-width: .8; vector-effect: non-scaling-stroke; }
.chart .grat { stroke: rgba(170, 215, 225, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .gratlabel { fill: rgba(190, 225, 232, .32); font: 500 11px var(--f-mono); letter-spacing: .06em; }
.chart .route { fill: none; stroke: #ff6a48; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s .3s cubic-bezier(.6,.05,.25,1) forwards; }
.chart .route-glow { fill: none; stroke: #ff6a48; stroke-width: 10; opacity: .12; filter: blur(4px); vector-effect: non-scaling-stroke; }
.chart .flight { fill: none; stroke: #f3d9a0; stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .7; vector-effect: non-scaling-stroke; }
.chart .port circle.dot { fill: #fff; }
.chart .port circle.ring { fill: none; stroke: #ff6a48; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart .port.next circle.ring { animation: ping 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.chart .port text { fill: #f1f6f6; font: italic 500 17px var(--f-display); paint-order: stroke; stroke: rgba(6, 20, 30, .85); stroke-width: 4px; }
.chart .port text.sub { font: 500 9.5px var(--f-mono); letter-spacing: .1em; fill: rgba(220, 238, 240, .62); }
.chart .ship { filter: drop-shadow(0 0 8px rgba(255, 106, 72, .8)); }
.chart .compass { fill: none; stroke: rgba(190, 225, 232, .22); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(3.4); opacity: 0; } }

.hero-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(233, 241, 242, .8); }
.brand b { color: #fff; font-weight: 500; }
.chip-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(233, 241, 242, .2); color: #e9f1f2; background: rgba(6, 20, 30, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 999px; font-size: .82rem; text-decoration: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }

/* ------------------------------------------------------------ Kacheln */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 6px; text-decoration: none; position: relative; overflow: hidden; }
.tile .big { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; }
.tile .big em { font-style: italic; }
.tile .sub { color: var(--muted); font-size: .86rem; }
.tile.live::after { content: ''; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.75rem; }
.section-head h2 em { font-style: italic; font-weight: 400; }

/* ------------------------------------------------------------ Logbuch */
.log { display: grid; gap: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.logrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; border-top: 1px solid var(--line); position: relative; }
.logrow:first-child { border-top: 0; }
.logrow:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.logrow .date { text-align: center; line-height: 1.05; }
.logrow .date .d { font-family: var(--f-display); font-size: 1.7rem; font-weight: 400; }
.logrow .date .w { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.logrow .place { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.15; }
.logrow .place i { font-weight: 400; }
.logrow .meta { color: var(--muted); font-size: .82rem; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.wxs { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.wxs .icon { width: 17px; height: 17px; color: var(--accent); }
.wxs small { color: var(--muted); font-size: .9em; }
.wxs em { font-style: normal; color: #6cb6e0; margin-left: 2px; }
.wxs.typ .icon { opacity: .6; }
.logrow .wxs { font-size: .74rem; } .logrow .wxs .icon { width: 15px; height: 15px; }
.logrow .wxs em { display: none; } /* in der Liste ist kein Platz für die Regenwahrscheinlichkeit */
.wxs.typ > span::before { content: '⌀ '; color: var(--muted); }
.logrow .wx { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.logrow.today { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.logrow.today::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.logrow.past { opacity: .55; }
.logrow .kind { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.k-port { background: var(--sea); } .k-sea { background: #2f5fa8; } .k-travel { background: var(--muted); } .k-city { background: var(--gold); }
.badge { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.hot { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.badge.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }

/* ------------------------------------------------------------ Tagesansicht */
/* Kopf der Tagesseite: Himmel des Tages mit Sonnen- oder Mondbogen, darunter der Ort im Wasser (sky.js) */
.dayhead { --ink: #eef4f5; --ink-soft: rgba(238, 244, 245, .76); color: #eef4f5; background: var(--night); }
.dayhead.is-day { --ink: var(--night); --ink-soft: rgba(6, 20, 30, .74); }
.daysky { position: relative; height: max(380px, 50svh); overflow: hidden; isolation: isolate; color: var(--ink); transition: color .5s; }
.daysky .g { position: absolute; inset: 0; z-index: -3; }
.daysky .g-night { background: linear-gradient(180deg, #02080c 0%, var(--night) 55%, #0b2230 100%); }
.daysky .g-dusk { background: linear-gradient(180deg, #0c172b 0%, #1a2b4a 46%, #5d3a4c 76%, #c4563a 93%, #ffb37a 100%); opacity: var(--dusk, 0); }
.daysky .g-gold { background: linear-gradient(180deg, #1b3358 0%, #24406b 40%, #7e5873 72%, #ff8a5c 91%, #ffd89b 100%); opacity: var(--gold-o, 0); }
.daysky .g-day { background: linear-gradient(180deg, #3783ad 0%, #5aa7c7 42%, #cfe9ee 100%); opacity: var(--day, 0); }
.daysky .wxl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.daysky .wxl ellipse { fill: var(--cloud, #f3f6f7); transition: fill .5s; }
.daysky .wxl .overcast { fill: #8ea3ae; }
.dayhead.by-night .daysky .wxl .overcast { fill: #1c2832; }
.daysky .wxl .drops { fill: none; stroke: #d9e6ec; stroke-width: 1; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .daysky .wxl .drops { animation: drops .9s linear infinite; } }
@keyframes drops { to { transform: translate(-3px, 12px); } }
.daysky .stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; fill: #fff; opacity: var(--stars, 1); }
.daysky .arc { position: absolute; left: 50%; bottom: 0; width: min(100%, 640px); transform: translateX(-50%); overflow: visible; z-index: -1; }
.daysky .arc .path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 5; opacity: .5; }
.daysky .arc .isle { fill: #050f16; transition: fill .5s; }
.dayhead.is-day .arc .isle { fill: #1d4254; }
.daysky .arc .moon, .dayhead.by-night .arc .sun { display: none; }
.dayhead.by-night .arc .moon { display: inline; }
.daysky .stop { cursor: pointer; outline: none; }
.daysky .stop:focus-visible .d { stroke: var(--accent); stroke-width: 3; paint-order: stroke; }
.daysky .stop .hit { fill: transparent; }
.daysky .stop .d { fill: var(--ink); }
.daysky .stop.on .d { fill: #ff5733; stroke: #fff; stroke-width: 1.5; }
.daysky .stop.by-night, .dayhead.by-night .stop.by-day { display: none; }
.dayhead.by-night .stop.by-night { display: inline; }
.daycap { padding: 18px 20px 0; max-width: 640px; margin: 0 auto; display: grid; gap: 2px; }
.daycap .t { font-size: .84rem; font-weight: 500; color: var(--ink-soft); }
.daycap .ttl { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.15; text-wrap: balance; }
.daywater { position: relative; isolation: isolate; border-top: 1px solid rgba(255, 255, 255, .34); background: linear-gradient(180deg, #0b2230 0, #081b27 150px, var(--night) 420px); }
.daywater::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--day, 0); background: linear-gradient(180deg, #9fcbd9 0, #2f7797 14px, #175470 90px, #0d3147 240px, var(--night) 100%); }
.daywater::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: max(var(--dusk, 0), var(--gold-o, 0)); background: linear-gradient(180deg, #e59a6c 0, #7a4650 14px, #24304f 80px, rgba(6, 20, 30, 0) 300px); }
.dayhead.is-day .daywater::after { opacity: 0; }
.daywater .inner { max-width: 640px; margin: 0 auto; padding: 26px 20px 28px; }
.daywater .region { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: rgba(238, 244, 245, .74); }
.daywater h1 { margin-top: 8px; font-style: italic; font-weight: 400; font-size: clamp(3.3rem, 17vw, 5.6rem); line-height: .92; letter-spacing: -.02em; font-variation-settings: 'SOFT' 80, 'WONK' 1, 'opsz' 144; }
.daywater h1.long { font-size: clamp(2.2rem, 10vw, 3.8rem); line-height: 1; }
.dayhead.gold .daywater h1 { color: #ffd89b; }
.daywater .tagline { font-family: var(--f-display); font-size: 1.2rem; margin-top: 10px; color: #f6e2d2; }
.daywater .times { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; }
.daywater .times dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 244, 245, .66); }
.daywater .times dd { margin: 2px 0 0; font-family: var(--f-mono); font-weight: 500; font-size: 1rem; }
/* Silvester: Lichterhang von Funchal, Spiegelung, Feuerwerk, Countdown */
.dayhead { position: relative; }
.dayhead .bay { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; opacity: var(--lights, 0); z-index: -1; pointer-events: none; }
.dayhead .bay svg { display: block; width: 100%; height: 100%; }
.dayhead .bay .hill { fill: #040c12; } .dayhead .bay .back { fill: #07151f; }
.dayhead .bay.mirror { top: 0; bottom: auto; transform: scaleY(-.5); transform-origin: 50% 0; filter: blur(1.6px); opacity: calc(var(--lights, 0) * .5);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 85%); mask-image: linear-gradient(0deg, #000, transparent 85%); }
.dayhead .bay.mirror .hill, .dayhead .bay.mirror .back { display: none; }
.dayhead .fw { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
.dayhead.gold .daysky { touch-action: manipulation; }
.daywater .newyear { margin: 22px 0 0; color: #ffd89b; font-size: .92rem; font-weight: 500; min-height: 1.4em; }
.daywater .fw-hint { margin: 6px 0 0; font-size: .86rem; color: rgba(238, 244, 245, .72); max-width: 38ch; }
.daynav { position: relative; z-index: 1; padding-top: calc(env(safe-area-inset-top) + 14px) !important; }
.daynav { display: flex; justify-content: space-between; padding: 14px 16px 0; gap: 8px; }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card h3 em { font-style: italic; font-weight: 400; }
.summary { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.5; font-weight: 350; }

/* Wetter: Temperatur groß, Messwerte als ruhige Reihe, Seegang als Linie */
.wx-card { display: grid; gap: 16px; }
.wx-card h3 { margin: 0; }
.wx-main { display: flex; align-items: center; gap: 16px; }
.wx-main .icon { width: 56px; height: 56px; color: var(--accent); }
.wx-temp { font-family: var(--f-display); font-size: 3.4rem; line-height: .95; font-weight: 300; letter-spacing: -.02em; }
.wx-temp small { font-size: 1.3rem; color: var(--muted); letter-spacing: 0; }
.wx-facts { display: flex; flex-wrap: wrap; gap: 12px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.fact { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fact .eyebrow { font-size: .62rem; }
.fact b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 1rem; margin-top: 3px; }
.tcurve { display: grid; gap: 2px; }
.tcurve .ticons { display: grid; justify-items: center; }
.tcurve .ticons span { display: grid; justify-items: center; }
.tcurve .ticons .icon { width: 20px; height: 20px; color: var(--muted); }
.tcurve .ticons small { font: 500 .6rem var(--f-mono); color: #4e9fcf; }
.tcurve svg { width: 100%; height: auto; overflow: visible; }
.tcurve .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.tcurve .area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.tcurve circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.tcurve text { font: 500 9px var(--f-mono); text-anchor: middle; }
.tcurve .tv { fill: var(--ink); } .tcurve .th { fill: var(--muted); }
.seastate { display: grid; gap: 4px; }
.seastate .swell { width: 100%; height: 28px; fill: none; stroke: var(--sea); stroke-width: 1.6; }
.seastate .swell path { vector-effect: non-scaling-stroke; }
.seastate .swell.rough { stroke: var(--warn); }
.seastate b { font-weight: 650; font-size: .95rem; }

/* Plan-Zeitstrahl */
.timeline { display: grid; gap: 0; position: relative; }
.tl-item { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 10px 0; position: relative; cursor: pointer; border-radius: 12px; }
.tl-item::before { content: ''; position: absolute; left: 70px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item .t { font-family: var(--f-mono); font-size: .86rem; font-weight: 500; padding-top: 2px; text-align: right; color: var(--accent); }
.tl-item .c { padding-left: 16px; position: relative; }
.tl-item .c::before { content: ''; position: absolute; left: -4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl-item .ttl { font-weight: 650; }
.tl-item .bd { color: var(--muted); font-size: .9rem; white-space: pre-line; }
.tl-item:hover .ttl { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Bordkarte (Flüge) & Buchungen */
.pass { display: grid; grid-template-columns: 1fr auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; position: relative; cursor: pointer; }
.pass .main-p { padding: 16px 18px; display: grid; gap: 10px; }
.pass .stub { padding: 16px 14px; border-left: 2px dashed var(--line); display: grid; align-content: center; justify-items: center; gap: 4px; min-width: 96px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface)); width: 104px; min-width: 0; }
.pass::before, .pass::after { content: ''; position: absolute; right: 95px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.pass::before { top: -8px; } .pass::after { bottom: -8px; }
.legs { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.legs .iata { font-family: var(--f-display); font-size: 2.1rem; line-height: 1; font-weight: 500; letter-spacing: -.01em; }
.legs .tm { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.legs .tm b { font-weight: 500; color: var(--ink); }
.legs .line { height: 1px; background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 9px); position: relative; }
.legs .line .icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); background: var(--surface); color: var(--accent); padding: 0 4px; width: 26px; height: 26px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok i { background: var(--good); } .status.late i { background: var(--warn); } .status.bad i { background: var(--bad); }
.ref { font-family: var(--f-mono); font-size: 1rem; font-weight: 500; letter-spacing: .08em; }
.booking { display: grid; gap: 6px; cursor: pointer; }
.booking .top { display: flex; gap: 12px; align-items: center; }
.booking .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--sea) 14%, transparent); color: var(--sea); flex: none; }
.booking .bd { color: var(--muted); font-size: .9rem; white-space: pre-line; }

/* Listen */
.list { display: grid; gap: 0; }
.li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 11px 2px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .txt { cursor: pointer; }
.li .txt b { font-weight: 600; }
.li .txt small { display: block; color: var(--muted); font-size: .86rem; white-space: pre-line; }
.li.done .txt b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.check { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 9px; position: relative; cursor: pointer; border: 2px solid var(--line); background: var(--surface); margin: 0; display: grid; place-items: center; transition: .2s; }
.check:checked { background: var(--sea); border-color: var(--sea); }
.check:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check::before { content: ''; position: absolute; inset: -9px; } /* Tippfläche 46 px */
.check.pop { animation: check-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes check-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.tabbar { view-transition-name: tabbar; }
/* Neu hinzugefügt: kurz aufleuchten und hineingleiten */
.li.new { animation: li-in .5s cubic-bezier(.2, .8, .2, 1); }
.li.new .txt b { animation: glow 1.6s ease-out; }
.thumb.new { animation: li-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes li-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes glow { 0%, 30% { color: var(--accent); } }
/* Hochladen läuft: Ablagefeld mit wanderndem Streifen */
.drop.busy, label.add.busy { position: relative; overflow: hidden; pointer-events: none; border-style: solid; border-color: var(--accent); color: var(--accent); }
.drop.busy::after, label.add.busy::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: var(--accent); animation: upl 1.1s ease-in-out infinite; }
@keyframes upl { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.quickadd { display: flex; gap: 8px; margin-top: 10px; }
.quickadd input { flex: 1; }

.seg { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--surface-2); border-radius: 14px; scrollbar-width: none; }
.seg a { flex: none; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Formularelemente */
.in, textarea.in, select.in { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.in:focus { border-color: var(--accent); }
textarea.in { min-height: 110px; resize: vertical; line-height: 1.5; }
label.fl { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: transform .15s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.sm { padding: 8px 12px; font-size: .86rem; border-radius: 10px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.add { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); background: transparent; border-radius: 10px; padding: 7px 12px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.add:hover { color: var(--accent); border-color: var(--accent); }

/* Sheet / Dialog */
.scrim { position: fixed; inset: 0; background: rgba(4, 12, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--bg); width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 2px; }
.sheet h3 { font-size: 1.5rem; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* Navigation */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 4px; padding: 6px;
  background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 22px; box-shadow: 0 18px 40px -10px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 14px; border-radius: 16px; text-decoration: none; color: rgba(233, 241, 242, .6); font-size: .66rem; font-weight: 700; letter-spacing: .02em; min-width: 66px; }
.tabbar a .icon { width: 22px; height: 22px; }
.tabbar a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.tabbar a.on .icon { color: #ff6a48; }

/* Kopf von Listen, Dokumente, Claude: ein schmaler Streifen Nachthimmel mit Horizont */
body { min-height: 100vh; min-height: 100dvh; } /* heller Seitenhintergrund reicht auch bei wenig Inhalt bis unten */
.pagehead { position: relative; color: #eef4f5; padding-top: env(safe-area-inset-top); isolation: isolate;
  background: radial-gradient(120% 140% at 85% 120%, rgba(196, 86, 58, .35), transparent 55%), linear-gradient(180deg, #02080c, #0b2230);
  border-bottom: 1px solid rgba(255, 255, 255, .3); }
.pagehead::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image: radial-gradient(1px 1px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 34% 62%, #fff, transparent), radial-gradient(1.2px 1.2px at 58% 22%, #fff, transparent),
    radial-gradient(1px 1px at 76% 48%, #ffe2b8, transparent), radial-gradient(1px 1px at 90% 18%, #fff, transparent), radial-gradient(.8px .8px at 46% 84%, #fff, transparent); }
.pagehead .topbar { padding: 22px 20px 26px; }
.pagehead .topbar h1 { font-weight: 400; font-size: clamp(2.2rem, 9vw, 3rem); }
.pagehead .avatar { color: #fff; }
/* Navigationskarte: Seekarte bei Nacht, darüber Beschriftung, Schiff und Bedienung */
html:has(.navhead), html:has(.navhead) body { background: var(--night); }
html:has(.navhead) body { padding-bottom: 0; }
html:has(.navhead) #app { background: var(--bg); min-height: 100vh; min-height: 100dvh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.navchart { position: relative; height: max(420px, 64svh); overflow: hidden; background: #071a26; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; isolation: isolate; }
.navchart:active { cursor: grabbing; }
.navchart > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.navchart .sea { fill: #071a26; }
.navchart .grid path { stroke: rgba(170, 215, 225, .13); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.navchart .land { fill: #0f2b38; }
.navchart svg.close .land { opacity: .75; }
.navchart svg.close .coast { stroke-dasharray: 3 4; opacity: .6; }
.navchart .coast { fill: none; stroke: rgba(176, 220, 228, .45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.navchart .plan { fill: none; stroke: rgba(238, 244, 245, .45); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.navchart .trk-glow { fill: none; stroke: #ff6a48; stroke-width: 8; opacity: .16; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.navchart .trk { fill: none; stroke: #ff6a48; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.navchart .trk-day { fill: none; stroke: #ffd89b; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.navchart .prev { fill: none; stroke: rgba(238, 244, 245, .55); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pretrip { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.navchart .gap { fill: none; stroke: #ff6a48; stroke-width: 1.6; stroke-dasharray: 3 5; opacity: .7; vector-effect: non-scaling-stroke; }
.navchart .vector { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.nav-over { position: absolute; inset: 0; pointer-events: none; color: #eef4f5; }
.nav-over .gl { position: absolute; font: 500 .62rem var(--f-mono); color: rgba(190, 225, 232, .62); letter-spacing: .04em; }
.nav-over .gl.lon { bottom: 8px; transform: translateX(4px); }
.nav-over .gl.lat { left: 8px; transform: translateY(-120%); }
.nav-over .port, .nav-over .noon, .nav-over .ship { position: absolute; left: 0; top: 0; }
.nav-over .port i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #ffe3b0; box-shadow: 0 0 0 4px rgba(255, 216, 155, .2); }
.nav-over .port.left b { left: auto; right: 9px; }
.nav-over .port b { position: absolute; left: 9px; top: -9px; white-space: nowrap; font: italic 400 1rem var(--f-display); text-shadow: 0 1px 6px var(--night), 0 0 2px var(--night); }
.nav-over .noon { font: 500 .62rem var(--f-mono); color: rgba(255, 216, 155, .85); white-space: nowrap; text-indent: 7px; line-height: 0; text-shadow: 0 1px 4px var(--night); }
.nav-over .noon i { position: absolute; width: 5px; height: 5px; margin: -2.5px; background: #ffd89b; transform: rotate(45deg); }
.nav-over .noon.on { color: #fff; }
.nav-over .ship svg { position: absolute; width: 26px; height: 26px; margin: -13px; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 106, 72, .9)); }
.nav-over .ship path { fill: #ff6a48; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.nav-over .ship::before { content: ''; position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 1.5px solid rgba(255, 106, 72, .7); animation: ping 2.4s ease-out infinite; }
.nav-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 14px) 18px 30px;
  background: linear-gradient(180deg, rgba(6, 20, 30, .85), rgba(6, 20, 30, 0)); pointer-events: none; }
.nav-top > * { pointer-events: auto; }
.nav-top h1 { color: #fff; font-weight: 400; font-style: italic; font-size: 2rem; }
.nav-top .avatar { color: #fff; }
.nav-ctl { position: absolute; right: 12px; bottom: 14px; display: flex; gap: 6px; }
.nav-ctl button { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(6, 20, 30, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: .86rem; }
.nav-ctl button[data-nav="in"], .nav-ctl button[data-nav="out"] { padding: 0; font-size: 1.3rem; font-weight: 400; }
.nav-scale { position: absolute; left: 14px; bottom: 30px; color: rgba(238, 244, 245, .8); font-size: .66rem; display: grid; gap: 3px; pointer-events: none; }
.nav-scale i { display: block; height: 6px; border: 1.5px solid rgba(238, 244, 245, .8); border-top: 0; }
.instruments h3, .landgang h3 { font-size: 1.2rem; margin-bottom: 12px; }
.landgang .land-btns { margin: 4px 0 10px; }
.landgang .land-btns .btn { min-height: 46px; }
.landgang .land-btns label.btn { cursor: pointer; }
.backship { display: grid; gap: 2px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--sea) 12%, transparent); }
.back-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.back-row span { color: var(--muted); font-size: .9rem; }
.back-row b { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.back-row.hurry b, .hurry-note { color: var(--accent); }
.hurry-note { margin: 2px 0 0; font-weight: 700; font-size: .9rem; }
.backship .note { margin: 6px 0 0; }
.walks { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.wrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.wrow .what { display: grid; min-width: 0; } .wrow .what i { font-family: var(--f-display); font-size: 1.08rem; }
.wrow small { display: block; font-size: .72rem; color: var(--muted); }
.wrow .vals { text-align: right; white-space: nowrap; }
.wrow.on .what i { color: var(--sea); }
.walkday { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 14px 18px; }
.walkday > .icon { width: 22px; height: 22px; color: var(--sea); }
.walkday span:not(.go) { flex: 1; display: grid; } .walkday small { color: var(--muted); }
.walkday .go { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.navchart .walk { fill: none; stroke: #8fe3d6; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.navchart .walk.on { stroke: #fff; stroke-width: 3.4; opacity: 1; }
.nav-over .here { position: absolute; left: 0; top: 0; }
.nav-over .here i { position: absolute; border-radius: 50%; background: rgba(143, 227, 214, .16); border: 1px solid rgba(143, 227, 214, .5); }
.nav-over .here b { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #8fe3d6; border: 2.5px solid #fff; box-shadow: 0 0 10px rgba(143, 227, 214, .9); }
.walkbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 41; display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 999px; background: #0b2230; color: #eef4f5; font-size: .84rem; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); white-space: nowrap; }
.walkbar i { width: 9px; height: 9px; border-radius: 50%; background: #8fe3d6; animation: rec 1.6s ease-in-out infinite; }
.walkbar button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
@keyframes rec { 50% { opacity: .3; } }
.instruments .btn { margin-top: 12px; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.gauge span { display: block; font: 500 .62rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gauge b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; margin-top: 2px; }
.gauge:not(.wide) b { font-family: var(--f-display); font-weight: 300; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.gauge b small { font-family: var(--f-mono); font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.gauge.wide { grid-column: 1 / -1; }
.instruments .note { margin: 12px 0 0; }
.etmal { padding: 6px 18px; }
.erow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 70px; gap: 12px; align-items: center; width: 100%; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; }
.erow:first-child { border-top: 0; }
.erow .date { display: grid; justify-items: center; line-height: 1.05; }
.erow .date b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
.erow .date small { font: 500 .6rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.erow .what { display: grid; min-width: 0; }
.erow .what i { font-family: var(--f-display); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erow .what small { font-size: .7rem; color: var(--muted); }
.erow .dist { text-align: right; font-size: 1.05rem; font-weight: 500; }
.erow .dist small { color: var(--muted); font-size: .7rem; }
.erow .spark { width: 72px; height: 28px; fill: none; stroke: var(--sea); stroke-width: 1.4; }
.erow .spark path { vector-effect: non-scaling-stroke; }
.erow .spark .base { stroke: var(--line); }
.erow.on .what i { color: var(--accent); }
.erow.on .spark { stroke: var(--accent); }
.etotal { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 0 10px; border-top: 1px solid var(--line); }
.etotal span:first-child { font-weight: 700; flex: 1; }
.etotal b { font-size: 1.05rem; } .etotal span.mono { color: var(--muted); }
.legs-plan { display: grid; gap: 0; padding-top: 6px; }
.leg { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.leg:first-child { border-top: 0; }
.leg .ft { display: block; min-width: 0; } .leg .ft b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.05rem; }
.leg .ft small, .leg .nmv small { display: block; font-size: .68rem; color: var(--muted); }
.leg .nmv { text-align: right; white-space: nowrap; font-size: .9rem; }
.legs-plan .note { margin: 8px 0 4px; }
.plan-wrap > summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 4px 0; }
.plan-wrap[open] > summary { margin-bottom: 12px; }
.tabbar a { min-width: 58px; padding: 8px 10px; }
/* Zeit */
.timenote { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.timenote .icon { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.timenote p { margin: 0; font-size: .92rem; }

/* Tagebuch */
.dgrid { display: grid; gap: 12px; }
@media (min-width: 760px) { .dgrid { grid-template-columns: 1fr 1fr; } }
.dcard { display: grid; gap: 12px; align-content: start; }
.dcard header { display: flex; align-items: center; gap: 10px; }
.dcard header small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.dav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: color-mix(in srgb, var(--sea) 18%, transparent); color: var(--sea); }
.dcard.own .dav { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.dtext { margin: 0; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.5; white-space: pre-line; }
.dphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ph { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 20, 30, .55); color: #fff; font-weight: 700; }
.logrow .sky.photo { position: relative; }
.logrow .sky.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logrow .sky.photo span { position: absolute; right: 4px; bottom: 3px; font: 600 .62rem var(--f-mono); color: #fff; background: rgba(6, 20, 30, .6); padding: 0 4px; border-radius: 4px; }
.recap-link { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.recap-link b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.4rem; }
.recap-link span { flex: 1; color: var(--muted); font-size: .88rem; }
.recap-link .icon { color: var(--accent); }

/* Fotos im Vollbild */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(2, 8, 12, .96); display: grid; place-items: center; animation: fade .2s; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: calc(100% - 120px); object-fit: contain; user-select: none; -webkit-user-select: none; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; min-width: 44px; height: 44px; border-radius: 22px; font-size: 1.3rem; }
.lb-close { top: calc(env(safe-area-inset-top) + 12px); right: 12px; }
.lb-prev { left: 10px; top: 50%; } .lb-next { right: 10px; top: 50%; }
.lb-del { bottom: calc(env(safe-area-inset-bottom) + 14px); right: 14px; font-size: .86rem !important; padding: 0 16px; }
.lb-bar { position: absolute; left: 16px; right: 140px; bottom: calc(env(safe-area-inset-bottom) + 24px); display: flex; gap: 12px; color: rgba(238, 244, 245, .8); font-size: .86rem; }

/* Rückblick */
html:has(.recap), html:has(.recap) body { background: var(--night); }
html:has(.recap) body { padding-bottom: 0; }
html:has(.recap) #app { background: var(--bg); min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.recap-head { color: #eef4f5; padding-top: env(safe-area-inset-top); background: radial-gradient(130% 120% at 80% 120%, rgba(196, 86, 58, .45), transparent 55%), linear-gradient(180deg, #02080c, #0b2230); }
.recap-head .inner { max-width: 1100px; margin: 0 auto; padding: 16px 20px 28px; }
.recap-head h1 { margin-top: 26px; font-style: italic; font-weight: 300; font-size: clamp(3rem, 15vw, 5.6rem); line-height: .95; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.rsub { margin: 10px 0 0; color: rgba(238, 244, 245, .78); }
.rstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; margin-top: 26px; }
@media (min-width: 760px) { .rstats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rstats b { display: block; font-family: var(--f-display); font-weight: 300; font-size: 2.1rem; line-height: 1; }
.rstats span { font: 500 .62rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 244, 245, .66); }
.recap-map .navchart { height: max(320px, 46svh); }
.rdays { display: grid; gap: 0; }
.rday { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.rdate { display: grid; justify-items: center; align-content: start; line-height: 1.05; }
.rdate b { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; } .rdate small { font: 500 .62rem var(--f-mono); text-transform: uppercase; color: var(--muted); }
.rbody { display: grid; gap: 10px; min-width: 0; }
.rbody h3 a { text-decoration: none; font-style: italic; font-weight: 400; font-size: 1.6rem; }
.rtag { margin: -6px 0 0; color: var(--muted); }
.rphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.rbody blockquote { margin: 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.rbody blockquote p { margin: 0; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.5; white-space: pre-line; }
.rbody cite { font-style: normal; font-size: .8rem; color: var(--muted); }
.rfacts { margin: 0; color: var(--muted); }
@media print {
  .noprint, .lightbox, .nav-ctl, .chip-ghost { display: none !important; }
  .recap-head { background: none; color: #000; } .rstats span, .rsub { color: #444; }
  .recap-map .navchart { height: 380px; }
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; max-width: 1100px; margin: 0 auto; }
.topbar h1 { font-size: 2.2rem; }
.topbar h1 em { font-style: italic; font-weight: 400; }
.pagewrap { max-width: 1100px; margin: 0 auto; }

/* Dokumente */
.docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.doc { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: grid; text-decoration: none; cursor: pointer; }
.doc .thumb { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc .thumb .icon { width: 40px; height: 40px; }
.doc .nm { padding: 10px 12px; font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; }
.doc .nm small { display: block; color: var(--muted); font-weight: 500; }
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.drop.over { border-color: var(--accent); color: var(--accent); }

/* Claude */
.chat { display: grid; gap: 14px; }
.msg { max-width: 92%; padding: 12px 16px; border-radius: 18px; line-height: 1.55; }
.msg.me { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.ai { justify-self: start; background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.msg.ai h3, .msg.ai h4 { font-size: 1.15rem; margin: 10px 0 4px; }
.msg.ai ul, .msg.ai ol { padding-left: 1.2em; margin: 6px 0; }
.msg.ai p { margin: 6px 0; }
.msg .acts { display: flex; gap: 6px; margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: .88rem; text-align: left; }
.chips button:hover { border-color: var(--accent); }
.composer { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: var(--bg); padding: 8px 0; }
.composer textarea { min-height: 50px; max-height: 160px; }
.thinking { display: inline-flex; gap: 5px; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bob 1s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 50% { transform: translateY(-5px); opacity: .5; } }

/* Hinweise */
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); animation: fade .2s; max-width: calc(100% - 32px); }
.netbar { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .78rem; font-weight: 600; padding: 6px 12px; background: color-mix(in srgb, var(--warn) 18%, var(--bg)); color: var(--ink); }
[hidden] { display: none !important; }
.empty { color: var(--muted); font-size: .92rem; padding: 6px 0; }
.note { font-size: .82rem; color: var(--muted); }
.stack { display: grid; gap: 12px; }
.hstack { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--night); color: #eef4f5; position: relative; overflow: hidden; isolation: isolate; }
.login .chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.login form { width: 100%; max-width: 380px; display: grid; gap: 12px; background: rgba(6, 20, 30, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1); padding: 26px; border-radius: 24px; }
.login h1 { font-size: 2.6rem; font-style: italic; font-weight: 400; line-height: 1; }
.login .in { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.login .err { color: #ffb4a3; font-size: .9rem; min-height: 1.2em; }

/* Überraschung */

.welcome { position: fixed; inset: 0; z-index: 100; color: #f3f7f8; display: flex; flex-direction: column; overflow: hidden auto; isolation: isolate;
  background: linear-gradient(180deg, #02080c 0%, var(--night) 55%, #0b2230 100%); }
.welcome .w-glow { position: absolute; left: 0; right: 0; bottom: 0; height: min(46%, 300px); z-index: -2; opacity: var(--glow, 0); transition: opacity 11s ease-out;
  background: linear-gradient(180deg, rgba(26, 43, 74, 0) 0%, rgba(93, 58, 76, .8) 62%, #c4563a 90%, #ffb37a 100%); }
.welcome canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.welcome .w-sky { flex: 1 0 auto; display: flex; align-items: flex-end; position: relative; }
.welcome .w-inner { width: 100%; max-width: 680px; margin: 0 auto; padding: calc(64px + env(safe-area-inset-top)) 24px 58px; display: grid; gap: 14px; justify-items: start; }
.welcome .w-line { opacity: 0; transform: translateY(14px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.welcome .w-line.on { opacity: 1; transform: none; }
.welcome h1 { font-size: clamp(3.6rem, 17vw, 7rem); font-style: italic; font-weight: 300; line-height: .9; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.welcome .w-sub { font-family: var(--f-display); font-size: clamp(1.15rem, 4.6vw, 1.55rem); line-height: 1.3; color: #f6dcc8; max-width: 30ch; text-wrap: pretty; }
.welcome .w-plain { color: #eef4f5; }
.welcome .w-gold { color: #ffd89b; }
.welcome .w-small { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: rgba(243, 247, 248, .74); }
.welcome .w-go { margin-top: 8px; }
.welcome .w-go .btn { min-height: 50px; padding: 0 22px; }
.welcome .w-sea { flex: 0 0 30%; min-height: 150px; position: relative; border-top: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(180deg, #7a4650 0, #24304f 34px, #0b2230 110px, var(--night) 100%); }
.welcome .w-ship { position: absolute; left: 0; top: 0; width: clamp(120px, 34vw, 200px); animation: w-sail 70s linear both; }
.welcome .w-ship svg { display: block; width: 100%; fill: #02080c; }
.welcome .w-ship .up { margin-top: -19.2%; }
.welcome .w-ship .win { fill: none; stroke: #ffd89b; stroke-width: 1.2; }
.welcome .w-ship .mirror { transform: scaleY(-.55); transform-origin: 50% 0; opacity: .25; margin-top: -1.5%; }
@keyframes w-sail { from { transform: translate3d(8vw, 0, 0); } to { transform: translate3d(62vw, 0, 0); } }
.welcome .skip { position: absolute; z-index: 1; top: calc(10px + env(safe-area-inset-top)); right: 10px; min-height: 44px; padding: 0 12px; background: none; border: 0; color: rgba(243, 247, 248, .72); font-size: .88rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chart .route { stroke-dashoffset: 0; }
  .voy-hint span { display: none; } /* die Bühne steht dann still: kein Scrollweg, keine Fahrt */
}
@media print {
  .tabbar, .add, .btn, .daynav, .composer, .netbar { display: none !important; }
  body { padding: 0; background: #fff; }
}
