:root {
  --bg: #111a2b;
  --card: #1c2a40;
  --card-2: #1f2e46;
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f3f6fa;
  --text-2: #a7b3c4;
  --text-3: #7d8ba0;
  --teal: #7fe3c6;
  --teal-strong: #88ebcd;
  --teal-dim: rgba(127, 227, 198, 0.16);
  --blue: #3f8ef2;
  --red: #ef6b6b;
  --amber: #f1b74d;
  --field: #2a2e35;
  --field-line: #8b9099;
  --radius: 12px;
  --gap: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { max-width: 1680px; margin: 0 auto; padding: 8px 8px 40px; }

/* ---------- Tabs ---------- */
.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}
.tab {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  padding: 9px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  min-height: 52px;
  transition: background .15s, transform .1s;
}
.tab:hover { background: var(--card-2); }
.tab:active { transform: scale(.99); }
.tab svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.tab b { display: block; font-weight: 700; font-size: 14px; }
.tab small { display: block; font-size: 11px; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.tab.active { background: var(--teal-strong); color: #10202a; border-color: transparent; }
.tab.active svg { color: #10202a; }
.tab.active small { color: #22424a; }
.tab.add { justify-content: center; color: var(--text-2); border-style: dashed; border-color: rgba(255,255,255,.14); background: transparent; grid-column: auto; min-width: 140px; }
.tab.add:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: linear-gradient(105deg, #2b5560 0%, #2a4659 38%, #283c5c 100%);
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
}
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #b9c7d6;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--teal); }
.hero h1 { margin: 8px 0 2px; font-size: 30px; font-weight: 900; letter-spacing: -.005em; }
.hero .region { color: var(--teal); font-weight: 700; font-size: 16px; }
.hero .dates { color: #b4c1cf; font-size: 13px; margin-top: 10px; }
.countdown { text-align: right; white-space: nowrap; }
.countdown strong { font-size: 44px; font-weight: 700; line-height: 1; }
.countdown span { font-size: 14px; color: #d5dde6; margin-left: 6px; font-weight: 500; }

/* ---------- Map ---------- */
.map-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border); margin-bottom: 16px; background: #1e1e1e; }
#map { height: min(62vh, 640px); min-height: 360px; background: #262626; }
.leaflet-container { font-family: inherit; }
.leaflet-bar a { background: #fff; color: #111; }
.leaflet-control-attribution { background: rgba(20, 20, 20, .7) !important; color: #aaa !important; font-size: 9px; }
.leaflet-control-attribution a { color: #ccc !important; }
.port-label.leaflet-tooltip {
  background: #182436;
  color: #f3f6fa;
  border: 1px solid rgba(127, 227, 198, .55);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  white-space: nowrap;
}
.port-label.leaflet-tooltip::before { display: none; }
.port-label .n { color: var(--teal); margin-right: 3px; }
.map-pick .leaflet-container { cursor: crosshair; }
.map-hint {
  position: absolute; z-index: 500; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--teal); color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sec-head {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 20px; font-weight: 500;
}
.sec-head .emoji { font-size: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.empty { color: var(--text-2); padding: 6px 0; }
.muted { color: var(--text-2); }

/* ---------- Timeline ---------- */
.timeline { padding: 8px 0; }
.day { position: relative; }
.day-row {
  display: grid; grid-template-columns: 28px 108px 1fr auto; align-items: center; gap: 8px;
  width: 100%; padding: 8px 16px; background: none; border: 0; text-align: left;
}
.day-row:hover { background: rgba(255,255,255,.03); }
.day.open > .day-row { background: rgba(127, 227, 198, .06); }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--teal); margin-left: 2px; }
.day.sea .dot { border-color: #737f8f; width: 14px; height: 14px; margin-left: 3px; border-width: 2px; }
.day:not(:last-child) .day-row::after {
  content: ""; position: absolute; left: 25px; top: 34px; height: calc(100% - 34px);
  border-left: 1px dashed rgba(255,255,255,.07);
}
.day-when b { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: #c6d0dc; }
.day-when span { display: block; font-size: 12px; color: var(--text-2); }
.day-what b { display: block; font-weight: 700; font-size: 14.5px; }
.day-what span { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.day.sea .day-what b { font-weight: 500; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--teal-dim); color: var(--teal); white-space: nowrap;
}
.chip.grey { background: rgba(255,255,255,.08); color: var(--text-2); }
.chip.amber { background: rgba(241,183,77,.15); color: var(--amber); }
.chip.blue { background: rgba(63,142,242,.16); color: #8ab9f7; }

.day-edit {
  margin: 2px 16px 10px 52px; padding: 14px;
  background: rgba(0,0,0,.16); border: 1px solid var(--card-border); border-radius: 10px;
  display: grid; gap: 12px;
}
.seg { display: inline-flex; background: var(--field); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; color: var(--text-2); font-weight: 500; }
.seg button.on { background: var(--teal-strong); color: #10202a; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 140px; }
.row > .narrow { flex: 0 1 120px; }
.sub-title { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }

/* ---------- Fields (HA-style filled) ---------- */
.field {
  position: relative; display: block;
  background: var(--field);
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid var(--field-line);
  padding: 20px 12px 6px;
  transition: border-color .15s;
}
.field:focus-within { border-bottom: 2px solid var(--teal); padding-bottom: 5px; }
.field > span { position: absolute; top: 6px; left: 12px; font-size: 11px; color: #a3a8b0; pointer-events: none; }
.field:focus-within > span { color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%; background: none; border: 0; outline: none; padding: 0; font-size: 14px; color: var(--text);
}
.field textarea { resize: vertical; min-height: 60px; }
.field select option { background: #2a2e35; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.85); cursor: pointer; }

.settings { padding: 8px 16px 16px; }
.set-row { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 16px; padding: 7px 0; }
.set-row > svg { width: 22px; height: 22px; color: var(--blue); }
.set-row.date { grid-template-columns: 24px 1fr minmax(150px, 225px); }
.set-row.date .lbl { font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 500;
  background: var(--teal-strong); color: #10202a;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--teal); border: 1px solid rgba(127,227,198,.4); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(239,107,107,.45); }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.icon-btn { border: 0; background: none; color: var(--text-3); padding: 4px 6px; border-radius: 6px; font-size: 16px; line-height: 1; }
.icon-btn:hover { color: var(--red); background: rgba(239,107,107,.1); }

/* Geocode results */
.geo-wrap { position: relative; }
.geo-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
  background: #262b33; border: 1px solid var(--card-border); border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); max-height: 260px; overflow: auto;
}
.geo-results button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.04); }
.geo-results button:hover { background: rgba(127,227,198,.1); }
.coords { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Lists (bookings / packing / costs) ---------- */
.list { display: flex; flex-direction: column; }
.li {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.li:last-child { border-bottom: 0; }
.li .ico { font-size: 18px; text-align: center; }
.li b { display: block; font-weight: 500; }
.li small { display: block; color: var(--text-2); font-size: 12px; margin-top: 1px; }
.li .right { display: flex; align-items: center; gap: 8px; }
.amount { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.clickable { cursor: pointer; }
.clickable:hover b { color: var(--teal); }

.check { appearance: none; width: 20px; height: 20px; border: 2px solid #7d8796; border-radius: 4px; margin: 0; cursor: pointer; display: grid; place-items: center; }
.check:checked { background: var(--teal-strong); border-color: var(--teal-strong); }
.check:checked::after { content: ""; width: 5px; height: 10px; border: solid #10202a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.li.done b { color: var(--text-3); text-decoration: line-through; }

.progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .25s; }
.progress.over > i { background: var(--red); }
.cat-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 14px 0 2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: rgba(0,0,0,.16); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; }
.stat small { display: block; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat strong { display: block; font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat.teal strong { color: var(--teal); }
.stat.amber strong { color: var(--amber); }
.stat.red strong { color: var(--red); }

.bars { display: grid; gap: 8px; margin: 4px 0 14px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .progress { height: 8px; }
.bar-row .amount { text-align: right; color: var(--text-2); }

.add-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-top: 12px; }
.add-form .field { flex: 1 1 140px; }
.add-form .field.narrow { flex: 0 1 120px; }
.add-form .btn { flex: 0 0 auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 30px);
  background: #22272e; color: var(--text); border-radius: 6px;
  padding: 12px 18px; box-shadow: 0 6px 20px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-left: 3px solid var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 8px 8px 32px; }
  .tabs { grid-auto-columns: minmax(160px, 70%); gap: 10px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .countdown { text-align: left; }
  .hero h1 { font-size: 24px; }
  #map { height: 46vh; min-height: 300px; }
  .day-row { grid-template-columns: 24px 82px 1fr; padding: 8px 10px; }
  .day-row .chip { display: none; }
  .day:not(:last-child) .day-row::after { left: 19px; }
  .day-edit { margin: 2px 10px 10px 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 90px 1fr 76px; }
  .set-row.date { grid-template-columns: 24px 1fr; }
  .set-row.date .field { grid-column: 2; }
}

/* ============================================================
   Erweiterungen: Konto, Teilen, Hafeninfo, Schiff
   ============================================================ */
[hidden] { display: none !important; }
.col.span { margin-bottom: 16px; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; }
.brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--text-2); font-weight: 500; letter-spacing: .02em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.sync { width: 8px; height: 8px; border-radius: 50%; background: #5b6676; }
.sync.on { background: var(--teal); box-shadow: 0 0 0 3px rgba(127,227,198,.15); }
.sync.busy { background: var(--amber); }
.sync.off { background: var(--red); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; font-weight: 500; }
.user-chip:hover { background: var(--card-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #10202a; flex: none; }
.avatars { display: inline-flex; }
.avatars .avatar { border: 2px solid #283c5c; margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

.tab .shared { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tab.active .shared { color: #22424a; }

.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.1); color: #d5dde6; }
.updated { font-size: 12px; color: #9fb0c2; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; }
.auth-hero { padding: 26px 24px 20px; background: linear-gradient(105deg, #2b5560 0%, #2a4659 38%, #283c5c 100%); }
.auth-hero h1 { margin: 8px 0 4px; font-size: 26px; font-weight: 900; }
.auth-hero p { margin: 0; color: #c4d0dc; }
.auth-body { padding: 20px 24px 24px; display: grid; gap: 12px; }
.auth-body .btn { width: 100%; padding: 12px; }
.auth-switch { text-align: center; color: var(--text-2); font-size: 13px; }
.auth-switch button { background: none; border: 0; color: var(--teal); font-weight: 500; padding: 0; }
.invite-banner { padding: 12px 14px; border-radius: 10px; background: var(--teal-dim); color: var(--text); border: 1px solid rgba(127,227,198,.3); }
.form-error { color: var(--red); font-size: 13px; min-height: 1em; }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 1px solid var(--card-border); border-radius: 16px; background: var(--card); color: var(--text); width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 64px rgba(0,0,0,.55); }
.modal::backdrop { background: rgba(5, 10, 20, .65); backdrop-filter: blur(2px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card-2); border-bottom: 1px solid var(--card-border); }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 700; flex: 1; min-width: 0; }
.modal-head .sub { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 400; margin-top: 2px; }
.modal-close { border: 0; background: rgba(255,255,255,.06); color: var(--text); width: 34px; height: 34px; border-radius: 50%; font-size: 16px; flex: none; }
.modal-close:hover { background: rgba(255,255,255,.12); }
.modal-content { padding: 16px 18px 20px; display: grid; gap: 16px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}

/* ---------- Hafeninfo ---------- */
.flag { font-size: 30px; line-height: 1; }
.port-hero { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; }
.port-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #263246; }
.extract { color: #d3dbe5; line-height: 1.5; margin: 0; }
.extract.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.src { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.src a, a.link { color: var(--teal); text-decoration: none; }
.src a:hover, a.link:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fact { background: rgba(0,0,0,.16); border: 1px solid var(--card-border); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.fact small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.fact b { display: block; font-weight: 500; margin-top: 3px; overflow-wrap: anywhere; }
.fact.hl { border-color: rgba(127,227,198,.35); }
.fact.hl b { color: var(--teal); }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
@media (max-width: 640px) { .port-hero { grid-template-columns: 1fr; } .port-hero img { aspect-ratio: 16 / 9; } }

/* ---------- Schiff ---------- */
.ship-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 16px; }
.ship-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 10px; background: #263246; display: block; }
.ship-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.ship-title h3 { margin: 0; font-size: 22px; font-weight: 900; }
.ship-title span { color: var(--teal); font-weight: 500; }
.ship-card .facts { margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.cabin-svg { width: 100%; height: auto; display: block; }
.cabin-box { background: rgba(0,0,0,.16); border: 1px solid var(--card-border); border-radius: 10px; padding: 12px; }
.cabin-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.cabin-legend b { color: var(--text); font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.plan { position: relative; display: block; background: rgba(0,0,0,.2); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; color: var(--text); text-decoration: none; }
.plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #fff; }
.plan .pdf { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 34px; background: #263246; }
.plan span { display: block; padding: 6px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(10,16,26,.75); color: #ddd; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 1000px) { .ship-card { grid-template-columns: 1fr; } }

/* ---------- Teilen ---------- */
.member { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.member:last-child { border-bottom: 0; }
.member small { display: block; color: var(--text-2); font-size: 12px; }
.member select { background: var(--field); border: 0; border-radius: 6px; padding: 6px 8px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--card-border); border-radius: 8px; padding: 9px 10px; color: var(--teal); }

/* Nur-Lesen */
body.ro .mut { display: none !important; }
body.ro .day-edit .field, body.ro .settings .field, body.ro .ship-card .field, body.ro .modal .field { opacity: .8; }

.port-hero.noimg { grid-template-columns: 1fr; }
.modal .add-form .field.narrow, .modal .row > .field.narrow { flex-basis: 170px; }
.ship-card > div:first-child > :first-child.ship-title { margin-top: 0; }

.cabin-note { margin: 8px 0 0; font-size: 12.5px; color: #c9d3de; line-height: 1.45; }

/* ---------- Sprachauswahl ---------- */
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b3c4' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px;
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: 6px 26px 6px 12px; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer;
}
.lang-select:hover { background-color: var(--card-2); }
.lang-select option { background: #2a2e35; }
.auth-hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.auth-hero .lang-select { background-color: rgba(10,16,26,.35); text-transform: none; letter-spacing: 0; }
.field .lang-select { width: 100%; border: 0; border-radius: 0; padding: 0; background: none; }

.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Größere Kabinen- und Buchungsdaten ---------- */
.cabin-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.cabin-facts .fact { padding: 10px 12px; }
.cabin-facts .fact small { font-size: 11px; }
.cabin-facts .fact b { font-size: 19px; font-weight: 700; margin-top: 4px; }
.cabin-facts .fact.wide { grid-column: 1 / -1; }
.cabin-facts .fact.wide b { font-size: 16px; font-weight: 500; }
.cabin-facts .fact em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cabin-note { font-size: 14px; }

.settings .field input, .settings .field textarea { font-size: 16px; }
.settings .field > span { font-size: 12px; }
.set-row.date { grid-template-columns: 24px 1fr minmax(200px, 300px); }
.set-row.date .lbl { font-size: 16px; font-weight: 500; }

#bookings .li { padding: 11px 0; }
#bookings .li b { font-size: 15.5px; }
#bookings .li small { font-size: 13px; }
#bookings .amount { font-size: 15.5px; }
#bookings .chip { font-size: 12px; padding: 3px 10px; }
@media (max-width: 640px) { .set-row.date { grid-template-columns: 24px 1fr; } }

/* ---------- Einstellungen: Ansicht ---------- */
.settings-head { margin: 2px 0 4px; }
.set-row.view { grid-template-columns: 24px minmax(110px, 0.8fr) 1.4fr; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.set-row.view:last-child { border-bottom: 0; }
.set-row.view .lbl { font-size: 14px; color: var(--text-2); }
.set-row.view .val { font-size: 16.5px; font-weight: 500; }
.set-row.view .val small { color: var(--text-2); font-weight: 400; font-size: 13px; margin-left: 6px; }
.set-row.view .val.empty-val { color: var(--text-3); font-weight: 400; }
.set-row.view.wide { grid-template-columns: 24px 1fr; }
.set-row.view.wide .lbl { display: none; }
.set-row.view.wide .val { font-size: 15px; font-weight: 400; }
@media (max-width: 640px) { .set-row.view { grid-template-columns: 24px 1fr; } .set-row.view .val { grid-column: 2; } }

/* ---------- Deckplan-Import ---------- */
.plan-drop { border: 1.5px dashed rgba(127,227,198,.35); border-radius: 12px; padding: 12px; display: grid; gap: 10px; transition: background .15s, border-color .15s; }
.plan-drop.over { background: var(--teal-dim); border-color: var(--teal); }
.drop-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }

/* ---------- Kompakter Kopfbereich mit Logo und zentriertem Countdown ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 14px 20px; border-radius: 14px; margin-bottom: 16px;
}
.hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero-text { min-width: 0; }
.hero h1 { font-size: 22px; margin: 3px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .eyebrow { font-size: 10.5px; }
.hero .region { font-size: 14px; }
.hero .dates { font-size: 12px; margin-top: 4px; }
.line-logo {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.line-logo img { width: 72%; height: 72%; object-fit: contain; }
.line-logo svg { display: none; width: 28px; height: 28px; color: var(--teal); }
.line-logo.fallback { background: rgba(10,16,26,.35); box-shadow: none; border: 1px solid rgba(127,227,198,.35); }
.line-logo.fallback svg { display: block; }
.countdown { text-align: center; display: flex; flex-direction: column; align-items: center; }
.countdown strong { font-size: 46px; line-height: 1; }
.countdown span { margin: 4px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #c9d4df; }
.hero-actions { justify-content: flex-end; margin-top: 0; }

/* ---------- Karte links neben der Route ---------- */
.map-route { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.map-route .map-card { margin-bottom: 0; position: sticky; top: 12px; }
.map-route #map { height: 520px; min-height: 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr auto; }
  .hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .map-route { grid-template-columns: 1fr; }
  .map-route .map-card { position: static; }
  .map-route #map { height: 380px; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; text-align: left; gap: 12px; padding: 14px 16px; }
  .countdown { flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; }
  .countdown span { margin: 0; }
  .hero h1 { font-size: 20px; white-space: normal; }
  .map-route #map { height: 300px; }
}
