/* traveletto (vorher Travelmanager): Seitennavigation, Quicksand, Reisemuster (Stil vom 10.10.2026), traveletto-Optik am Ende der Datei.
   The old token names (--navy, --coral …) stay as aliases so older rules keep working. */
/* Elements with the hidden attribute stay hidden, whatever display a class sets. */
[hidden] { display: none !important; }
/* Quicksand, SIL Open Font License 1.1 (assets/fonts/OFL.txt), served from here instead of Google. */
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/quicksand-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/quicksand-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #ffffff; --card: #ffffff; --border: #d5dcde; --fg: #1a1f22; --muted: #5e696c; --chip: #edf6fb;
  --nav-bg: #edf6fb; --nav-fg: #1a1f22; --nav-muted: #5e696c; --nav-border: #bcd1db; --nav-active-bg: #cae5f3; --nav-active-fg: #02689d;
  --accent: #027cbb; --accent-fg: #ffffff; --link: #0278b5; --nav-link: #0274af;
  --trip-head-bg: #027cbb; --trip-head-fg: #ffffff; --trip-head-sub: #ffffff;
  --accent-2: #ffd333; --accent-2-solid: #ffd333; --accent-2-fg: #1c1917; --accent-2-text: #7d6719;
  --credits-solid: #ffd333; --credits-solid-fg: #1c1917; --credits-soft: #f0f0db; --credits-text: #7d6719; --credits-meter: #ffd333;
  --deadline: #ffd333; --deadline-title: #856e1b; --deadline-soft: #fffae9; --deadline-solid: #ffd333; --deadline-solid-fg: #1c1917; --deadline-tile: #fffcf3;
  --deadline-badge-bg: #ffd333; --deadline-badge-fg: #1c1917; --deadline-badge-urgent-bg: #dc2626; --deadline-badge-urgent-fg: #ffffff;
  --deadline-urgent: #dc2626; --deadline-urgent-title: #dc2626; --deadline-urgent-soft: #fbe7e7; --deadline-urgent-solid: #dc2626; --deadline-urgent-solid-fg: #ffffff; --deadline-urgent-tile: #fdf2f2;
  --pattern: url(/assets/muster-hell.svg);
  --radius: 14px;
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --navy: var(--accent); --navy-deep: #015d8c; --navy-fg: var(--accent-fg); --navy-soft: var(--nav-active-bg);
  --coral: #e8574a; --coral-soft: #fde6e2; --amber: #b45309; --amber-soft: #fdefd3;
  --shadow: 0 1px 2px rgba(2, 60, 90, .05), 0 4px 16px rgba(2, 60, 90, .05);
  --green: #15803d; --green-soft: #dcf3e4; --line: var(--border);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121515; --card: #1b2123; --border: #2e383c; --fg: #e8eded; --muted: #979d9d; --chip: #182d37;
    --nav-bg: #182d37; --nav-fg: #e8eded; --nav-muted: #979d9d; --nav-border: #29414d; --nav-active-bg: #12445c; --nav-active-fg: #69b6de;
    --accent: #027cbb; --accent-fg: #ffffff; --link: #359dd2; --nav-link: #4ea9d8;
    --trip-head-bg: #027cbb; --trip-head-fg: #ffffff; --trip-head-sub: #ffffff;
    --accent-2: #ffd333; --accent-2-solid: #ffd333; --accent-2-fg: #1c1917; --accent-2-text: #ffdc5c;
    --credits-solid: #ffd333; --credits-solid-fg: #1c1917; --credits-soft: #464e36; --credits-text: #ffdc5c; --credits-meter: #ffd333;
    --deadline: #ffda52; --deadline-title: #ffda52; --deadline-soft: #494526; --deadline-solid: #ffd333; --deadline-solid-fg: #1c1917; --deadline-tile: #323325;
    --deadline-badge-bg: #ffd333; --deadline-badge-fg: #1c1917; --deadline-badge-urgent-bg: #dc2626; --deadline-badge-urgent-fg: #ffffff;
    --deadline-urgent: #e14747; --deadline-urgent-title: #e55d5d; --deadline-urgent-soft: #422224; --deadline-urgent-solid: #dc2626; --deadline-urgent-solid-fg: #ffffff; --deadline-urgent-tile: #2e2223;
    --pattern: url(/assets/muster-dunkel.svg);
    --navy-deep: #0b3a55;
    --coral: #ff7a6b; --coral-soft: #43201e; --amber: #fbbf24; --amber-soft: #3b2c0b;
    --shadow: none; --green: #4ade80; --green-soft: #12301f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 500 15px/1.5 var(--font);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .25rem; font-weight: 700; text-wrap: balance; }
h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 32px 0 10px; font-weight: 700; }
h3 { font-size: 1.2rem; margin: 0; font-weight: 700; }
b, strong { font-weight: 700; }
code { font-size: .9em; background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); margin-top: 0; }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.error { color: var(--coral); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 48px 20px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- app frame: side navigation on wide screens, top bar with a drop-down menu on phones */
.app { min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--nav-fg); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.brand-mark .ic { width: 18px; height: 18px; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; width: 248px; z-index: 20; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; padding: calc(22px + env(safe-area-inset-top, 0px)) 14px 18px;
  background: var(--nav-bg); color: var(--nav-fg); border-right: 1px solid var(--nav-border);
}
.side-brand { padding: 0 10px 22px; }
.side-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 2px 14px; padding: 10px 12px;
  border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-weight: 700;
}
.side-add:hover { text-decoration: none; filter: brightness(1.08); }
.side-add .ic { width: 18px; height: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--nav-fg); font-weight: 600; }
.side-nav a .ic { color: var(--nav-muted); }
.side-nav a:hover { text-decoration: none; background: color-mix(in srgb, var(--nav-active-bg) 55%, transparent); }
.side-nav a.active { background: var(--nav-active-bg); color: var(--nav-active-fg); font-weight: 700; }
.side-nav a.active .ic { color: inherit; }
.side-nav a span:first-of-type { flex: 1; }
.side-nav hr { border: 0; height: 1px; background: var(--nav-border); margin: 10px 10px; }
.count { background: var(--accent-2-solid); color: var(--accent-2-fg); border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 700; }
.side-fill { flex: 1; min-height: 16px; }
.side-credits {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; align-items: center;
  border: 1px solid var(--nav-border); background: var(--card); border-radius: var(--radius); padding: 12px; font-size: .82rem;
}
.cr-ring { grid-row: 1 / span 3; width: 52px; height: 52px; position: relative; display: grid; place-items: center; color: var(--credits-text); }
.cr-ring svg { position: absolute; inset: 0; width: 52px; height: 52px; }
.cr-ring .trk { fill: none; stroke: var(--nav-border); stroke-width: 3.5; }
.cr-ring .val { fill: none; stroke: var(--credits-meter); stroke-width: 3.5; stroke-linecap: round; }
.cr-ring .ic { position: relative; width: 20px; height: 20px; }
.cr-num { color: var(--nav-fg); font-weight: 700; font-size: 1.1rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cr-num small { font-size: .8rem; font-weight: 600; }
.cr-num:hover { text-decoration: none; color: var(--nav-active-fg); }
.cr-sub { color: var(--nav-muted); }
.cr-link { color: var(--credits-text); font-weight: 700; justify-self: start; }
.side-credits.is-low .cr-sub, .side-credits.is-empty .cr-sub { color: var(--deadline-urgent-title); font-weight: 700; }
.side-credits.is-low .val, .side-credits.is-empty .val { stroke: var(--deadline-urgent); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 6px 0; font-size: .85rem; color: var(--nav-muted); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--nav-active-bg); color: var(--nav-active-fg); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.side-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user form { margin: 0; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--nav-muted); border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--nav-fg); background: var(--nav-active-bg); filter: none; }
.content { margin-left: 248px; min-height: 100vh; }
/* The pattern stays put while the content scrolls: a fixed layer behind the content column
   (background-attachment: fixed is ignored by iOS Safari). */
body.has-pattern .content { position: relative; isolation: isolate; }
body.has-pattern .content::before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 248px; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 220px 220px;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 36px 32px 72px; }
.mbar, .scrim { display: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.madd { display: none; }

@media (max-width: 960px) {
  .mbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25;
    height: calc(60px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 4px 0 16px;
    background: var(--nav-bg); border-bottom: 1px solid var(--nav-border);
  }
  .mbar .brand { flex: 1; }
  .burger { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--nav-fg); }
  .burger:hover { filter: none; }
  .burger .ic { width: 24px; height: 24px; }
  .burger[aria-expanded="true"] .ic:first-child, .burger[aria-expanded="false"] .ic:last-child { display: none; }
  .side {
    display: none; top: calc(60px + env(safe-area-inset-top, 0px)); bottom: auto; right: 0; width: auto; max-height: calc(100vh - 60px);
    padding: 10px 12px 18px; border-right: 0; border-radius: 0 0 22px 22px; box-shadow: 0 14px 32px rgba(0, 0, 0, .18); z-index: 24;
  }
  body.menu-open .side { display: flex; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 23; background: rgba(10, 20, 26, .45); }
  .side-brand, .side-add, .side-fill { display: none; }
  .side-nav a { padding: 13px 12px; font-size: 1.02rem; }
  .side-credits { margin-top: 12px; }
  .content { margin-left: 0; }
  body.has-pattern .content::before { left: 0; }
  .wrap { padding: 22px 16px 72px; }
  .madd {
    display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px 0 10px; border-radius: 999px;
    background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: .92rem;
  }
  .madd:hover { text-decoration: none; }
  .madd .ic { width: 18px; height: 18px; }
}

.notice, .alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.notice { background: var(--chip); }
.alert { background: var(--coral-soft); }
.alert-soft { background: var(--amber-soft); }

/* ---------- badges & pills */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badges:empty { display: none; }
.badge { display: inline-block; font-size: .74rem; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; font-weight: 500; }
.badge-soft { background: var(--navy-soft); color: var(--fg); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-coral { background: var(--coral); color: #fff; font-weight: 700; }
.badge-muted { background: var(--chip); color: var(--muted); }
.pill { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--trip-head-fg) 16%, transparent); color: var(--trip-head-fg); white-space: nowrap; font-weight: 600; }
.pill-count { background: var(--accent-2-solid); color: var(--accent-2-fg); font-weight: 700; }
.pill-live { background: var(--coral); color: #fff; font-weight: 700; }
.badge-deadline { background: var(--deadline-badge-bg); color: var(--deadline-badge-fg); font-weight: 700; }
.badge-deadline-urgent { background: var(--deadline-badge-urgent-bg); color: var(--deadline-badge-urgent-fg); font-weight: 700; }

/* ---------- deadlines */
/* Storno box: yellow head, the whole box turns red as soon as a deadline is 0–3 days away. */
.deadlines-box {
  --dl-solid: var(--deadline-solid); --dl-solid-fg: var(--deadline-solid-fg);
  background: var(--card); border: 1px solid var(--dl-solid); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.deadlines-box.is-urgent { --dl-solid: var(--deadline-urgent-solid); --dl-solid-fg: var(--deadline-urgent-solid-fg); }
.dl-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--dl-solid); color: var(--dl-solid-fg); }
.dl-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--dl-solid-fg) 16%, transparent); }
.dl-head h2 { margin: 0; color: inherit; font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.dl-head p { margin: 1px 0 0; font-size: .86rem; }
.deadlines { list-style: none; margin: 0; padding: 0; }
.deadlines > li { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); }
.deadlines-box .deadlines > li:first-child { border-top: 0; }
.card.deadlines { padding: 0; }
.card.deadlines > li:first-child { border-top: 0; }

/* ---------- trips */
.trip { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow); }
.trip-head {
  list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: flex-start;
  padding: 18px 22px; color: var(--trip-head-fg); background: var(--trip-head-bg);
}
.trip-head::-webkit-details-marker { display: none; }
.trip-head h3 { color: var(--trip-head-fg); }
.trip-country { font-weight: 500; font-size: .95rem; opacity: .8; }
.trip-sub { color: var(--trip-head-sub); font-size: .9rem; margin-top: 2px; }
.trip-meta { display: flex; align-items: center; gap: 10px; }
.trip-types { letter-spacing: 2px; font-size: 1.05rem; }
.trip:not([open]) .trip-head { background: color-mix(in srgb, var(--trip-head-bg) 88%, #000); }
.trip.is-cancelled .trip-head { background: var(--chip); color: var(--muted); }
.trip.is-cancelled .trip-head h3 { color: var(--muted); text-decoration: line-through; }
.trip.is-cancelled .trip-sub { color: var(--muted); }

.plan { padding: 6px 0 10px; }
.day { display: grid; grid-template-columns: 110px 1fr; gap: 0 12px; padding: 10px 22px; border-top: 1px solid var(--border); }
.day:first-child { border-top: 0; }
.day-label { display: flex; flex-direction: column; padding-top: 10px; }
.day-label strong { font-size: .92rem; }
.day-label span { font-size: .78rem; color: var(--muted); }
.day.is-today .day-label strong { color: var(--coral); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 46px 36px 1fr; align-items: start; gap: 0 8px; padding: 8px 0; }
.entry-time { font-variant-numeric: tabular-nums; font-weight: 600; padding-top: 7px; font-size: .9rem; }
.entry-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex: none;
  background: color-mix(in srgb, var(--c, #64748b) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #64748b) 35%, transparent);
}
.entry-body { min-width: 0; padding-top: 5px; flex: 1; }
.entry-title { font-weight: 600; color: var(--fg); }
.entry-sub { color: var(--muted); font-size: .88rem; }
.entry.is-cancelled .entry-title { text-decoration: line-through; color: var(--muted); }
.entry.is-cancelled .entry-icon { filter: grayscale(1); opacity: .6; }

/* ---------- booking view */
.bv { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.bv-head { padding: 22px 24px 18px; border-top: 6px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--card)); }
.bv-type { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, var(--c) 80%, var(--fg)); }
.bv-head h1 { margin-top: 6px; }
.bv-when { color: var(--muted); }
.bv.is-cancelled h1 { text-decoration: line-through; color: var(--muted); }
.bv-section { padding: 4px 24px 18px; border-top: 1px solid var(--border); }
.bv-section h2 { margin: 16px 0 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; margin: 0; }
.facts div.wide { grid-column: 1 / -1; }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.prose { margin: 0; white-space: normal; }
.segments { list-style: none; margin: 0; padding: 0; }
.segments li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); }
.segments li:first-child { border-top: 0; }
.seg-date { font-weight: 600; font-size: .92rem; padding-top: 2px; }
.seg-route { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.seg-arrow { color: var(--c); font-weight: 700; }
.bv-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }

/* ---------- inbox */
.mails { list-style: none; margin: 0; padding: 0; }
.card.mails { padding: 0; }
.mails > li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid var(--border); }
.mails > li:first-child { border-top: 0; }
.mail-main { flex: 1; min-width: 0; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.mail-actions form { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.filters a { padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: .85rem; }
.filters a.active { background: var(--navy); color: var(--navy-fg); }
.filters a:hover { text-decoration: none; }
.form-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }

/* ---------- forms */
label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--fg); background: var(--bg);
  padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border); width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button, .button {
  font: inherit; font-weight: 600; cursor: pointer; display: inline-block; padding: 9px 16px;
  border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-fg);
}
button:hover, .button:hover { filter: brightness(1.12); text-decoration: none; }
button.secondary, .button.secondary { background: var(--chip); color: var(--fg); }
button.small { padding: 5px 10px; font-size: .85rem; }
button.danger { background: var(--coral-soft); color: var(--coral); }
button.link { background: none; color: var(--muted); padding: 0; font-weight: 400; }
button.link:hover { color: var(--fg); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }

.edit-form h1 { margin-bottom: 8px; }
.edit-form fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.edit-form legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 10px; }
.edit-form .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.edit-form .grid > legend { grid-column: 1 / -1; }
.edit-form .wide { grid-column: 1 / -1; }
.edit-form .hint { margin: 0; font-size: .8rem; color: var(--muted); }
.edit-form > .actions { margin-top: 26px; }
.type-fields { border-left: 4px solid var(--c) !important; padding-left: 14px !important; }
.type-fields legend { color: color-mix(in srgb, var(--c) 80%, var(--fg)); }
.type-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.type-picker legend { width: 100%; }
.type-option { flex-direction: row; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-option span {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg); font-size: .88rem;
  background: var(--card);
}
.type-option input:checked + span { background: color-mix(in srgb, var(--c) 16%, var(--card)); border-color: var(--c); font-weight: 600; }
.type-option input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.segments-edit { display: flex; flex-direction: column; gap: 10px; }
.seg-label { font-size: .82rem; font-weight: 600; }
.seg-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end;
  padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 6%, var(--bg)); border: 1px solid var(--border);
}
.seg-row .seg-remove { justify-self: start; padding-bottom: 10px; }
.segments-edit .seg-add { align-self: flex-start; }

/* ---------- login */
body.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
body.login-page { background: linear-gradient(140deg, var(--navy-deep), var(--accent) 70%); }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--accent-2-solid); }
.login button { margin-top: 8px; }

@media (max-width: 600px) {
  .wrap { padding-top: 20px; }
  .day { grid-template-columns: 1fr; padding: 10px 16px; }
  .day-label { flex-direction: row; gap: 8px; align-items: baseline; padding-top: 4px; }
  .trip-head { padding: 16px; }
  .segments li { grid-template-columns: 1fr; gap: 2px; }
  .bv-head, .bv-section, .bv-foot { padding-left: 16px; padding-right: 16px; }
  .mails > li { flex-wrap: wrap; padding: 12px 16px; }
  .mails > li .mail-actions { justify-content: flex-start; width: 100%; }
  .deadlines > li { flex-wrap: wrap; padding: 12px 16px; }
}

/* ---------- day plan v2: where am I, arrival times */
.day { grid-template-columns: 96px 1fr; }
.day-body { min-width: 0; padding-top: 8px; }
.day-where { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.day-where .where { color: var(--fg); font-weight: 600; }
.day.is-quiet { padding-top: 6px; padding-bottom: 6px; }
.day.is-quiet .day-label { padding-top: 8px; }
.day.is-quiet .day-label strong { font-weight: 500; color: var(--muted); }
.entry { grid-template-columns: 64px 36px 1fr; }
.entry-time { display: flex; flex-direction: column; line-height: 1.25; padding-top: 6px; font-weight: 400; }
.entry-time strong { font-size: .98rem; }
.entry-time .until { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-port .entry-title { font-weight: 500; }
.itinerary li { grid-template-columns: 110px 1fr; }
.itinerary .seg-main { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.itinerary li.is-sea strong { color: var(--muted); font-weight: 500; }
@media (max-width: 600px) {
  .day { grid-template-columns: 1fr; }
  .day-body { padding-top: 2px; }
  .entry { grid-template-columns: 58px 34px 1fr; }
}
.extracted { margin-top: 8px; }
.extracted summary { cursor: pointer; color: var(--link); }
.extracted pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; font-size: .78rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.day-where .nobed { color: var(--amber); font-weight: 600; }

/* ---------- plan grid: days as rows, program | on the move | nights as columns.
   Wide: tiles side by side, wide bars. Narrow: tiles stacked, slimmer bars.
   Very narrow (or several parallel bars): thin bars with rotated text. */
.pg-wrap { container-type: inline-size; }
.pg { --cd: 64px; --cl: 150px; --cn: 190px; display: grid; }
.pg.lanes-0 { grid-template-columns: var(--cd) minmax(0, 1fr) var(--cn); }
.pg.lanes-1 { grid-template-columns: var(--cd) minmax(0, 1fr) var(--cl) var(--cn); }
.pg.lanes-2 { grid-template-columns: var(--cd) minmax(0, 1fr) var(--cl) var(--cl) var(--cn); }
.pg.lanes-3 { grid-template-columns: var(--cd) minmax(0, 1fr) var(--cl) var(--cl) var(--cl) var(--cn); }
.pg-h { grid-row: 1; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.pg-h-short { display: none; }
.pg-date { grid-column: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 4px 8px; background: var(--bg); border-bottom: 1px solid var(--border); text-align: center; }
.pg-date b { font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-wd { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; white-space: nowrap; }
.pg-date.is-today b { color: var(--coral); }
.pg-day { grid-column: 2; padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pg-where { font-size: .78rem; font-weight: 600; color: var(--muted); }
.pg-where.is-port { color: var(--fg); }
.pg-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-tile {
  flex: 0 1 230px; min-width: 150px; display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 9px;
  background: color-mix(in srgb, var(--c) 10%, var(--card)); box-shadow: inset 3px 0 0 var(--c); color: var(--fg);
}
.pg-tile:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 17%, var(--card)); }
.pg-tile.is-cancelled { opacity: .55; }
.pg-tile.is-cancelled .pg-title { text-decoration: line-through; }
.pg-ic { font-size: 15px; flex: none; }
.pg-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pg-time { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-title { font-size: .88rem; font-weight: 500; overflow-wrap: anywhere; }
.pg-bg { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.pg-bar {
  margin: 6px 4px; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  font-size: .8rem; line-height: 1.3; z-index: 1; min-width: 0; min-height: 0; overflow: hidden;
}
.pg-bar:hover { text-decoration: none; filter: brightness(1.05); }
.pg-span { background: color-mix(in srgb, var(--c) 15%, var(--card)); color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), inset 0 3px 0 var(--c); }
.pg-night { background: var(--navy); color: #fff; }
.pg-night.is-air { background: var(--navy-soft); color: var(--fg); }
.pg-b-top, .pg-b-bottom { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pg-b-top b { font-weight: 700; overflow-wrap: anywhere; }
.pg-b-top small, .pg-b-bottom small { font-size: .74rem; opacity: .85; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pg-b-bottom { border-top: 1px dashed color-mix(in srgb, currentColor 35%, transparent); padding-top: 5px; }
.pg-b-rot { display: none; }

/* narrow: stacked tiles, slimmer columns */
@container (max-width: 700px) {
  .pg { --cd: 44px; --cl: 78px; --cn: min(30%, 190px); }
  .pg-mo { display: none; }
  .pg-day { padding: 8px; }
  .pg-tiles { flex-direction: column; gap: 5px; }
  .pg-tile { flex: none; min-width: 0; padding: 6px 8px; }
  .pg-bar { margin: 5px 3px; padding: 7px 6px; font-size: .74rem; }
  .pg-b-top small, .pg-b-bottom small { font-size: .68rem; }
  .pg-h { padding: 8px 6px; font-size: .62rem; }
  /* several bars side by side do not fit upright: slim them and turn the text */
  .pg.lanes-2, .pg.lanes-3 { --cl: 30px; }
  .pg.lanes-2 .pg-span, .pg.lanes-3 .pg-span { padding: 6px 0; align-items: center; justify-content: flex-start; }
  .pg.lanes-2 .pg-span > :not(.pg-b-rot), .pg.lanes-3 .pg-span > :not(.pg-b-rot) { display: none; }
  .pg.lanes-2 .pg-span .pg-b-rot, .pg.lanes-3 .pg-span .pg-b-rot { display: block; }
}
/* very narrow: "on the move" bars slim with rotated text; nights stay wide and upright.
   Fallback .n-slim (set in index.php): several bars side by side and no single night, then nights turn slim too. */
@container (max-width: 420px) {
  .pg { --cl: 30px; }
  .pg.n-slim { --cn: 34px; }
  .pg-h { text-align: center; }
  .pg-h-lanes .pg-h-long, .pg.n-slim .pg-h-long { display: none; }
  .pg-h-lanes .pg-h-short, .pg.n-slim .pg-h-short { display: inline; }
  .pg-h-night { padding-left: 4px; padding-right: 4px; letter-spacing: .04em; }
  .pg-span, .pg.n-slim .pg-night { padding: 6px 0; align-items: center; justify-content: flex-start; }
  .pg-span > :not(.pg-b-rot), .pg.n-slim .pg-night > :not(.pg-b-rot) { display: none; }
  .pg-span .pg-b-rot, .pg.n-slim .pg-night .pg-b-rot { display: block; }
}
.pg-b-rot { writing-mode: vertical-rl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; font-weight: 600; line-height: 1; max-height: 100%; font-variant-numeric: tabular-nums; }
.trip .pg-wrap { border-top: 0; }
.login-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.login form { display: flex; flex-direction: column; gap: 8px; }
.login .code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.login .login-alt { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .88rem; }
.login .login-alt button { margin: 0; }
.research-note { margin: 0 0 10px; font-size: .84rem; color: var(--muted); background: var(--navy-soft); border-radius: 8px; padding: 6px 10px; }
.trip-edit { color: var(--trip-head-fg); font-size: .82rem; border: 1px solid color-mix(in srgb, var(--trip-head-fg) 40%, transparent); border-radius: 999px; padding: 2px 10px; }
.trip-edit:hover { text-decoration: none; border-color: var(--trip-head-fg); }
.trip-form { display: grid; gap: 22px; }
.trip-form section { display: grid; gap: 10px; }
.trip-form h2 { margin: 0; }
.pick-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pick-list li { border-top: 1px solid var(--line); }
.pick-list li:first-child { border-top: 0; }
.pick-list label { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; color: var(--fg); font-size: .92rem; cursor: pointer; }
.pick-list input { width: auto; }
.pick-list .muted { font-size: .82rem; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row-form label { flex: 1 1 240px; }
.extra-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--coral); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }

/* ---------- account page, documents */
.konto-section { margin-bottom: 18px; }
.konto-section h2 { margin-top: 0; font-size: 1.1rem; }
.konto-section .actions { margin-top: 12px; }
.copy-url input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.konto-section h3 { font-size: 1rem; margin: 18px 0 8px; }
.app-list { list-style: none; padding: 0; margin: 0; }
.app-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.app-list li:first-child { border-top: 0; }
.key-box { margin-top: 16px; }
.key-box summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
pre.cmd { white-space: pre-wrap; word-break: break-all; background: var(--chip); border-radius: 8px; padding: 10px 12px; font-size: .8rem; margin: 6px 0; }
.help-steps { padding-left: 1.2rem; }
.help-steps li { margin: 6px 0; }
.help-examples { display: grid; gap: 8px; padding: 0; list-style: none; }
.help-examples li { background: var(--chip); border-radius: 8px; padding: 8px 12px; font-style: italic; }
.source-note { font-size: .82rem; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--fg); }
label.check input { width: auto; }
.files { list-style: none; padding: 0; margin: 0; }
.files li { padding: 4px 0; }

/* ---------- statistics
   Categorical slots (viz-1..6) validated for CVD and contrast on --card in light and dark; card colours
   checked for WCAG 4.5:1 with their text colour (on-light = ink, on-dark = white). */
:root {
  --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; --viz-5: #e87ba4; --viz-6: #008300; --viz-rest: #a3a9b5;
  --series-1: var(--viz-1); --series-2: var(--viz-2);
  --tc-gruen: #8bc34a; --tc-gelb: #f2b632; --tc-rot: #c8403c; --tc-lila: #7d3c98; --tc-petrol: #1f7a7c;
  --tc-orange: #f08a4b; --tc-blau: #2f6fc4; --tc-tuerkis: #127262; --tc-pink: #c23b74; --tc-jahr: #a3c8ef;
  --tc-ink: #152036; --map-visited: var(--viz-1); --map-city: #152036;
  --hm-1: #dbe9fb; --hm-2: #a9cbf3; --hm-3: #6aa3e8; --hm-4: #2a78d6; --hm-5: #1b4f91;
}
@media (prefers-color-scheme: dark) {
  :root {
    --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; --viz-5: #d55181; --viz-6: #008300; --viz-rest: #5d6b82;
    --map-city: #e6ebf5;
    --hm-1: #1e3358; --hm-2: #24497f; --hm-3: #2f66b0; --hm-4: #3987e5; --hm-5: #8bb8f0;
  }
}
.filter-sep { flex: 0 0 12px; }
.section-title { font-size: 1.1rem; margin: 26px 0 12px; }
.stats-hero { text-align: center; margin-bottom: 16px; }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-hero { font-size: 3.2rem; font-weight: 700; line-height: 1.15; margin: 4px 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 18px 0 0; }
.kpis div { background: var(--chip); border-radius: 10px; padding: 10px 8px; }
.kpis dt { font-size: .75rem; color: var(--muted); }
.kpis dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 700; }
.small-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.small-kpis dd { font-size: 1.15rem; }

.shares { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 28px 32px; margin-bottom: 18px; }
.shares h2, .money h2, .milestones h2, .map-card h2 { margin: 0 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut { width: 104px; height: 104px; flex: 0 0 104px; }
.donut circle { transition: opacity .15s; }
.donut circle:hover { opacity: .8; }
.donut-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; line-height: 1.6; }
.donut-list.inline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.swatch.round { border-radius: 50%; }
.line-key { display: inline-block; width: 16px; height: 0; border-top: 2px solid; margin-right: 6px; vertical-align: middle; }
.line-key.route-flug { border-color: var(--viz-1); }
.line-key.route-zug { border-color: var(--viz-2); }
.split-bar { margin-top: 12px; display: grid; gap: 4px; }
.split-track { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--chip); }
.split-track.big { height: 16px; margin-top: 8px; }
.split-track i { display: block; height: 100%; }

.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-bottom: 18px; }
.top-card { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  --tc-text: #fff; --tc-bar: rgba(255, 255, 255, .92); --tc-line: rgba(255, 255, 255, .28); }
.top-card.on-light { --tc-text: var(--tc-ink); --tc-bar: rgba(21, 32, 54, .78); --tc-line: rgba(21, 32, 54, .18); }
.top-card header, .top-card .tc-body { background: var(--tc); color: var(--tc-text); }
.top-card header { padding: 18px 18px 6px; text-align: center; }
.top-card h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: inherit; }
.top-card .tc-body { padding: 6px 18px 18px; flex: 1; }
.tc-list { list-style: none; margin: 0; padding: 0; }
.tc-list li { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(28px, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--tc-line); font-size: .95rem; }
.tc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-bar i { display: block; height: 12px; border-radius: 0 3px 3px 0; background: var(--tc-bar); }
.tc-val { font-weight: 700; font-size: .85rem; min-width: 2.2em; }
.top-card footer { background: var(--card); padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tc-total { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.tc-total-label { color: var(--muted); margin-top: 4px; }
.tc-note { background: var(--card); color: var(--muted); font-size: .75rem; margin: -10px 0 0; padding: 0 18px 12px; }
.tc-toggle { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-toggle button { padding: 4px 12px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  border-radius: 999px; background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.tc-toggle button[aria-pressed="true"] { background: var(--muted); border-color: var(--muted); color: var(--card); }
.top-card .tc-toggle { flex-direction: column; align-items: stretch; }

.wide-card { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; }
.wide-card header { background: var(--tc-jahr); color: var(--tc-ink); padding: 16px 18px; text-align: center; }
.wide-card header h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: inherit; }
.wide-body { background: var(--card); padding: 16px 18px; }
.year-toggle { justify-content: center; margin-bottom: 8px; }
.year-chart { width: 100%; height: auto; display: block; }
.year-chart .grid { stroke: var(--border); stroke-width: 1; }
.year-chart .tick { fill: var(--muted); font-size: 11px; }
.year-chart .bar { fill: var(--viz-1); }
.year-chart .bar:hover { opacity: .85; }
.year-chart .bar-val { fill: var(--fg); font-size: 11px; font-weight: 600; }
.data-table { border-collapse: collapse; margin-top: 8px; }
.data-table th, .data-table td { text-align: right; padding: 3px 12px 3px 0; border-bottom: 1px solid var(--border); }
.data-table th:first-child, .data-table td:first-child { text-align: left; }

.map-card { margin-bottom: 18px; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.map-head h2 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); margin: 10px 0 6px; }
.map-wrap svg.world { width: 100%; height: auto; display: block; }
.world path { fill: var(--chip); stroke: var(--card); stroke-width: .5; vector-effect: non-scaling-stroke; }
.world .dot { fill: var(--chip); }
.world .route { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .8; }
.world .route-flug { stroke: var(--viz-1); }
.world .route-zug, .world .route-faehre { stroke: var(--viz-2); }
.world .city { r: 1.8; fill: var(--map-city); stroke: var(--card); stroke-width: 1; vector-effect: non-scaling-stroke; }
.world.europe .city { r: 2.6; }
.country-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }

.heatmap-wrap { overflow-x: auto; }
.heatmap { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; font-size: .8rem; }
.heatmap th { color: var(--muted); font-weight: 500; }
.heatmap thead th:first-child, .heatmap tbody th { text-align: left; width: 3.2em; }
.heatmap td { height: 30px; border-radius: 4px; text-align: center; background: var(--chip); color: var(--tc-ink); font-weight: 600; }
.heatmap .hm-1 { background: var(--hm-1); } .heatmap .hm-2 { background: var(--hm-2); } .heatmap .hm-3 { background: var(--hm-3); }
.heatmap .hm-4 { background: var(--hm-4); color: #fff; } .heatmap .hm-5 { background: var(--hm-5); color: #fff; }
@media (prefers-color-scheme: dark) {
  .heatmap td { color: var(--fg); } .heatmap .hm-5 { color: var(--tc-ink); }
}

.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.record { padding: 16px; }
.record-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.record-value { font-size: 1.5rem; font-weight: 700; margin: 2px 0; }

.money { margin-bottom: 18px; }
.money-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.milestones { margin-bottom: 18px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge-ms { background: var(--navy-soft); color: var(--fg); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.meter { margin-top: 10px; }
.meter-head { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; margin-bottom: 4px; flex-wrap: wrap; }
.meter-track { height: 10px; border-radius: 5px; background: var(--chip); overflow: hidden; }
.meter-track i { display: block; height: 100%; background: var(--viz-1); border-radius: 5px; }
.sources { margin-top: 24px; }
@media (max-width: 600px) {
  .stat-hero { font-size: 2.3rem; }
  .shares, .money-grid { grid-template-columns: 1fr; }
  .year-chart .tick, .year-chart .bar-val { font-size: 20px; }
  .heatmap { font-size: .66rem; border-spacing: 2px; } .heatmap td { height: 24px; }
  .heatmap thead th:first-child, .heatmap tbody th { width: 2.7em; }
}

/* ---------- credits */
/* Buying credits: in the credits colour (second accent), like the ring in the side navigation. */
button.coral, .button.coral { background: var(--credits-solid); color: var(--credits-solid-fg); }
.button.small { padding: 5px 10px; font-size: .85rem; }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.badge-green { background: var(--green-soft); color: var(--green); font-weight: 600; }
.credit-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.credit-balance b { font-size: 2.6rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.credit-meter { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; margin-top: 12px; }
.credit-meter i { display: block; height: 100%; background: var(--credits-meter); border-radius: 99px; }
.credit-meter-legend { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.sub-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 12px 0 0; }
.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; margin-top: 16px; }
.ledger td { padding: 7px 0; border-top: 1px solid var(--border); vertical-align: top; }
.ledger td.amount { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.ledger td.amount.plus { color: var(--green); }
.ledger td.amount small { color: var(--muted); font-weight: 400; }
.ledger td > small { display: block; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.ledger.costs { margin-top: 0; }
.ledger.costs tr:first-child td { border-top: 0; }
.credit-wait { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.offer {
  position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0;
}
.offer.best { border: 2px solid var(--credits-solid); }
.offer .ribbon {
  position: absolute; top: -10px; left: 14px; background: var(--credits-solid); color: var(--credits-solid-fg); font-size: .66rem; font-weight: 700;
  padding: 1px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em;
}
.offer-name { font-weight: 700; }
.offer-price { font-size: 1.6rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.offer-price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.offer-per { font-size: .8rem; color: var(--muted); }
.offer button { margin-top: 8px; align-self: flex-start; }
.offers-form .konto-section h2 { font-size: .78rem; margin-bottom: 12px; }
label.consent { align-items: flex-start; margin: 4px 0 8px; }
label.consent input { margin-top: 4px; flex: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .78rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 640px; }
.admin-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--chip);
}
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .r { text-align: right; }
.row-form label.narrow { flex: 0 1 200px; }

/* ---------- add a booking: upload, forwarding */
/* Add booking: forwarding address first, then upload, the manual form at the bottom (linked from the top). */
.add-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 12px 0 8px; }
.add-forward p { margin: 0 0 8px; }
.add-forward p:last-child { margin-bottom: 0; }
.jump-link { font-weight: 700; white-space: nowrap; }
.manual-title { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.add-card h2 { margin-top: 0; }
.drop-form { display: grid; gap: 12px; }
.drop-zone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px;
  border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; color: var(--fg); font-size: .95rem; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--navy); background: var(--navy-soft); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { font-size: 1.8rem; line-height: 1; }
.drop-files { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.forward-address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.05rem; overflow-wrap: anywhere; }
.manual-title { margin-top: 28px; }

/* ---------- friends: people lists, finding, invite link */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub-title { font-size: .95rem; margin: 22px 0 6px; }
.sub-title .small { font-weight: 500; }
.pav { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.pav.sm { width: 26px; height: 26px; font-size: .62rem; }
.pav.xs { width: 20px; height: 20px; font-size: .52rem; }
.pav.lg { width: 52px; height: 52px; font-size: 1.05rem; }
.people { list-style: none; margin: 0; padding: 0; }
.people > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.people > li:first-child { border-top: 0; padding-top: 4px; }
.people.compact > li { padding: 8px 0; }
.people .who { flex: 1 1 160px; min-width: 0; }
.people .who b { display: block; overflow-wrap: anywhere; }
.people .who span { font-size: .82rem; color: var(--muted); }
.people .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.people form, .acts form { margin: 0; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; cursor: pointer; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 200px; display: grid; gap: 10px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
button.link.danger-link { color: var(--coral); }
.find-phone { margin-top: 12px; }
.find-phone summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .92rem; }
.phone-form { display: grid; gap: 10px; margin-top: 10px; }
.phone-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 10px; align-items: end; }
.phone-form > button { justify-self: start; }
@media (max-width: 600px) { .phone-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .phone-row label:first-child { grid-column: 1 / -1; } }
.find-msg { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--coral-soft); font-size: .92rem; }
.find-msg.ok { background: var(--green-soft); }
#hinzufuegen .row-form + .find-phone { margin-top: 10px; }
.share-groups { display: grid; gap: 2px; margin: 4px 0 12px 26px; }
.share-groups label.check { margin-top: 6px; }
label.check.strong { color: var(--fg); font-weight: 700; }
label.check input:disabled + span { opacity: .55; }
.share-ask h2 { margin-top: 0; font-size: 1.1rem; text-transform: none; letter-spacing: 0; color: var(--fg); }
.invite { max-width: 420px; gap: 12px; }
.invite h1 { font-size: 1.35rem; margin: 4px 0 0; }
.invite-who { display: flex; align-items: center; gap: 12px; }
.invite-who b { display: block; font-size: 1.15rem; }
.invite .button { text-align: center; }

/* ---------- statistics compared with friends */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--nav-bg); border: 1px solid var(--nav-border); }
.seg a { padding: 6px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.seg a:hover { text-decoration: none; color: var(--fg); }
.seg a.active { background: var(--card); color: var(--nav-active-fg); box-shadow: 0 1px 3px rgba(2, 60, 90, .15); }
.friend-kpis dd small { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.compare-card { border: 1px solid var(--border); }
.compare-card .wide-body { display: grid; gap: 10px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 4px; border-radius: 999px; border: 1.5px solid var(--border);
  color: var(--muted); font-size: .82rem; font-weight: 700; }
.pick-chip:hover { text-decoration: none; border-color: var(--p, var(--accent)); color: var(--fg); }
.pick-chip.on { background: var(--p); border-color: var(--p); color: #fff; }
.pick-chip.is-full, .pick-chip.is-off { opacity: .5; cursor: not-allowed; }
.pick-hint { margin: 0; }
.table-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 7px 10px; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; vertical-align: top; }
.cmp thead th { border-top: 0; vertical-align: bottom; font-size: .8rem; font-weight: 700; padding-bottom: 10px; }
.cmp th:first-child, .cmp td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--card); color: var(--muted); font-weight: 600; }
.cmp .ph { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cmp td { min-width: 96px; }
.cmp td .val { font-weight: 600; }
.cmp td.best { background: var(--deadline-soft); }
.cmp td.best .val { font-weight: 800; }
.cmp td.best .val::after { content: " ★"; color: var(--accent-2-text); font-size: .8em; }
.cmp td.na { color: var(--muted); }
.cmp .sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; white-space: normal; max-width: 160px; margin-left: auto; }
.cbar { display: block; height: 6px; border-radius: 3px; background: var(--chip); margin-top: 4px; overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: 3px; margin-left: auto; }
.cmp tr.grp td { padding-top: 14px; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
.rank-grid { gap: 16px; }
.rank-group { grid-column: 1 / -1; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 6px 0 -6px; }
.rank-card .tc-list li { grid-template-columns: 18px minmax(0, 1.7fr) minmax(28px, 1fr) auto; gap: 8px; padding: 6px; }
.rank-card .tc-n { font-size: .78rem; font-weight: 700; opacity: .8; text-align: right; font-variant-numeric: tabular-nums; }
.rank-card .tc-name a { color: inherit; font-weight: 600; }
.rank-card .tc-val { text-align: right; font-variant-numeric: tabular-nums; }
.rank-card .tc-list li.me { background: var(--card); color: var(--fg); border-radius: 8px; border-bottom-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); margin: 3px -2px; }
.rank-card .tc-list li.me .tc-bar i { background: var(--tc); }
.rank-card .tc-list li.me .tc-n { opacity: 1; }
.rank-card .tc-list li.gap { display: block; text-align: center; font-size: .76rem; font-weight: 700; opacity: .85; padding: 5px 0; }
.rank-card .tc-total { font-size: 2.3rem; }
.podest { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: 6px;
  background: var(--accent-2-solid); color: var(--accent-2-fg); border-radius: 999px; padding: 1px 7px; }
.tc-more { padding: 4px 11px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1.5px solid var(--border); white-space: nowrap; }
.tc-more[aria-expanded="true"] { background: var(--muted); border-color: var(--muted); color: var(--card); }

/* =====================================================================
/* traveletto: nur Optik. Gleiche Elemente, gleiche Größen, gleiche Abstände wie style.css;
   geändert werden Farben, Flächen, Bilder, Schatten und Rundungen. Einzige inhaltliche Änderung: Logo statt Zeichen + Name. */
:root {
  --bg: #fbfcfe; --card: #ffffff; --border: #dde5f0; --fg: #13203f; --muted: #56627c; --chip: #edf3fd;
  --nav-bg: #f6f9fe; --nav-fg: #13203f; --nav-muted: #56627c; --nav-border: #e0e7f2; --nav-active-bg: #e2ecfc; --nav-active-fg: #1a54c2;
  --accent: #1f62d6; --accent-fg: #ffffff; --link: #1a58c8; --nav-link: #1a58c8;
  --trip-head-bg: #1f5dcc; --trip-head-fg: #ffffff; --trip-head-sub: #dce7fb;
  --credits-text: #8a5d00;
  --navy-deep: #173f9a; --navy-soft: #e2ecfc;
  --shadow: 0 1px 2px rgba(19, 32, 63, .04), 0 10px 28px rgba(19, 32, 63, .08);
  --shadow-strong: 0 2px 4px rgba(19, 32, 63, .04), 0 14px 34px rgba(19, 32, 63, .1);
  --radius: 16px;
  --btn-grad: linear-gradient(180deg, #3b7ff0, #1f5fd6);
  --trip-shade: linear-gradient(90deg, rgba(10, 52, 150, .5) 0%, rgba(10, 52, 150, .18) 55%, rgba(10, 52, 150, .22) 100%);
  --deko-opacity: 1; --palm-opacity: 1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141d; --card: #172031; --border: #27334a; --fg: #e8edf6; --muted: #9ba7bc; --chip: #1b2a44;
    --nav-bg: #131b29; --nav-fg: #e8edf6; --nav-muted: #9ba7bc; --nav-border: #243049; --nav-active-bg: #1c3260; --nav-active-fg: #9cbcff;
    --accent: #2f6fe0; --accent-fg: #ffffff; --link: #8ab0ff; --nav-link: #8ab0ff;
    --trip-head-bg: #2458c4; --trip-head-sub: #d3e0fb;
    --credits-text: #ffd34d; --navy-deep: #0f2a66; --navy-soft: #1c3260;
    --shadow: none; --shadow-strong: none;
    --btn-grad: linear-gradient(180deg, #3a7cf0, #2459cc);
    --trip-shade: linear-gradient(90deg, rgba(6, 18, 48, .62) 0%, rgba(6, 18, 48, .38) 55%, rgba(6, 18, 48, .45) 100%);
    --deko-opacity: .3; --palm-opacity: .5;
  }
}

/* Logo statt Zeichen + Name (gleicher Platz, gleiche Abstände) */
.brand-logo { display: block; height: auto; }
.side-brand .brand-logo { width: 196px; max-width: 100%; }
.mbar .brand-logo { height: 38px; width: auto; }
@media (prefers-color-scheme: dark) {
  /* Der Schriftzug ist dunkel: im Dunkelmodus eine weiße Fläche dahinter, ohne Abstände zu verändern */
  .brand-logo { background: #ffffff; border-radius: 8px; box-shadow: 0 0 0 5px #ffffff; }
  .side-brand .brand-logo { width: 186px; }
  .mbar .brand-logo { height: 34px; }
}

.login-brand .brand-logo { width: 220px; max-width: 100%; }

/* Seitenleiste */
.side-add { background: var(--btn-grad); border-radius: 12px; box-shadow: 0 8px 18px -8px rgba(31, 95, 214, .6), inset 0 1px 0 rgba(255, 255, 255, .22); }
.side-nav a { border-radius: 12px; }
.side-credits { border-color: transparent; border-radius: 16px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .side-credits { border-color: var(--nav-border); } }
.madd { background: var(--btn-grad); box-shadow: 0 6px 14px -6px rgba(31, 95, 214, .6); }

/* Die Inhaltsspalte trägt Kopfbild und Palmblätter als Ebenen dahinter, auch wenn das Reisemuster aus ist. */
.content { position: relative; isolation: isolate; }

/* Kopfbild (Meer, Berge, Küstenort) hinter Titel und Stornofristen, läuft nach unten in den Seitengrund aus.
   Liegt als Hintergrund-Ebene unter dem Inhalt, verschiebt nichts. */
body.app .content::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: -1; pointer-events: none;
  aspect-ratio: 1800 / 647; min-height: 160px; max-height: 420px;
  background: url(/assets/deko/kopf.webp) right top / cover no-repeat; opacity: var(--deko-opacity);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
/* Palmblätter fest unten rechts, hinter den Karten */
.wrap::after {
  content: ""; position: fixed; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  width: clamp(140px, 19vw, 300px); aspect-ratio: 700 / 429;
  background: url(/assets/deko/palme.webp) right bottom / contain no-repeat; opacity: var(--palm-opacity);
}

/* Stornofristen: gelbe Fläche mit Ticket im Kopf; rot, wenn eine Frist in 0–3 Tagen abläuft */
.deadlines-box { border-color: transparent; border-radius: 18px; box-shadow: var(--shadow-strong); }
.dl-head { background: url(/assets/deko/storno.webp) right center / auto 100% no-repeat, linear-gradient(180deg, #fddb3c, #fce474); }
.deadlines-box.is-urgent .dl-head { background: linear-gradient(rgba(220, 38, 38, .9), rgba(220, 38, 38, .9)), url(/assets/deko/storno.webp) right center / auto 100% no-repeat, #dc2626; }
.dl-ic { border-radius: 12px; background: rgba(245, 158, 11, .28); box-shadow: inset 0 0 0 1px rgba(146, 64, 14, .2); }
.deadlines-box.is-urgent .dl-ic { background: rgba(255, 255, 255, .18); box-shadow: none; }
.deadlines .entry-icon { background: color-mix(in srgb, var(--c, #64748b) 10%, var(--card)); box-shadow: none; border-radius: 12px; }

/* Reisekarten: neutrales Reisebild im Kopf, solange es kein Bild zum Reiseziel gibt (Schritt 2).
   Links abgedunkelt für den Titel; Reisearten und "Bearbeiten" bekommen eine dunkle Unterlage, weil das Bild rechts hell wird. */
.trip { border-color: transparent; border-radius: 18px; box-shadow: var(--shadow-strong); }
@media (prefers-color-scheme: dark) { .trip { border-color: var(--border); } }
.trip .trip-head, .trip:not([open]) .trip-head {
  background: var(--trip-shade), url(/assets/deko/reise.webp) center 42% / cover no-repeat, var(--trip-head-bg);
}
.trip:not([open]) .trip-head { filter: saturate(.9) brightness(.9); }
.trip-head h3, .trip-sub { text-shadow: 0 1px 8px rgba(6, 30, 90, .35); }
/* Fläche hinter den Reisearten über box-shadow, damit sich nichts verschiebt */
.trip-types { background: rgba(8, 40, 110, .38); border-radius: 8px; box-shadow: 0 0 0 5px rgba(8, 40, 110, .38); }
.trip-edit { background: rgba(8, 40, 110, .38); border-color: rgba(255, 255, 255, .45); }
.pill-count { box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.pg-h, .pg-date { background: color-mix(in srgb, var(--chip) 45%, var(--card)); }

/* Impressum und Datenschutz: kleine Links unter dem Anmeldefeld und unten in der Seitenleiste */
body.center.login-page { grid-template-rows: 1fr auto; }
.login-page .card.login { align-self: center; }
.login-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; font-size: .82rem; }
.login-legal a { color: rgba(255, 255, 255, .85); }
.side-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0 4px; font-size: .74rem; }
.side-legal a { color: var(--nav-muted); }

/* ---------- Meine Reisen (reisen.php): Jahr-Auswahl mit Filter-Symbol, Suche, Reisen nach Jahr als kompakte Zeilen */
.rs-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; }
.rs-year, .rs-search { position: relative; display: flex; align-items: center; }
.rs-year { flex: 1 1 190px; }
.rs-search { flex: 999 1 300px; min-width: 0; }
.rs-ic { position: absolute; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; color: var(--muted); }
.rs-ic-l { left: 14px; }
.rs-ic-r { right: 14px; }
.rs-tools select, .rs-tools input { min-height: 48px; font-size: 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); padding: 11px 16px 11px 44px; }
.rs-tools select { appearance: none; -webkit-appearance: none; font-weight: 700; padding-right: 42px; cursor: pointer; }
.rs-tools select option { color: var(--fg); background: var(--card); }
.rs-year.is-set select { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.rs-year.is-set .rs-ic { color: var(--accent-fg); }
.rs-result { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.rs-result a { font-weight: 700; }
.ry-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.ry-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--fg); }
.ry-meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.rs-today { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--amber); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.rs-today::before, .rs-today::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--amber) 40%, transparent); }
.tr { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-strong); }
.tr-row { list-style: none; display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; min-height: 76px; cursor: pointer; }
.tr-row::-webkit-details-marker { display: none; }
.tr-row:hover { background: color-mix(in srgb, var(--chip) 55%, var(--card)); }
.tr-thumb { flex: none; width: 64px; height: 52px; border-radius: 12px; background: var(--trip-shade), var(--th-img-m, var(--th-img, url(/assets/deko/reise.webp))) right center / cover no-repeat, var(--trip-head-bg); }
.tr.is-past .tr-thumb { filter: saturate(.55); }
.tr.is-cancelled .tr-thumb { filter: grayscale(1); opacity: .6; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-title { font-weight: 700; font-size: 1.05rem; }
.tr-country { font-weight: 500; font-size: .92rem; color: var(--muted); margin-left: 8px; }
.tr.is-cancelled .tr-title { text-decoration: line-through; color: var(--muted); }
.tr-sub { font-size: .88rem; color: var(--muted); }
.tr-types { letter-spacing: 2px; font-size: 1rem; white-space: nowrap; }
.tr-pill { font-size: .78rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-weight: 700; background: var(--chip); color: var(--muted); }
.tr-pill.is-count { background: var(--accent-2-solid); color: var(--accent-2-fg); }
.tr-pill.is-live { background: var(--coral); color: #fff; }
.tr-chev { display: flex; color: var(--muted); transition: transform .15s; }
.tr[open] .tr-chev { transform: rotate(180deg); }
.tr-body { border-top: 1px solid var(--border); }
.tr .pg-wrap { border-top: 0; }
.tr-load { display: block; padding: 18px 16px; }
.tr-foot { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--border); font-size: .88rem; font-weight: 700; }
.rs-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 48px 20px; margin-top: 24px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); }
.rs-empty b { color: var(--fg); font-size: 1.1rem; }
@media (max-width: 600px) {
  .tr-row { gap: 12px; padding: 10px 12px 10px 10px; min-height: 68px; }
  .tr-thumb { width: 48px; height: 44px; border-radius: 10px; }
  .tr-types { display: none; }
  .tr-country { margin-left: 6px; }
  .ry-head { margin-top: 24px; }
}

/* Übersicht: statt "Vergangen" ein Verweis auf Meine Reisen */
.past-link { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 18px 22px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--chip) 60%, var(--card)); color: var(--fg); }
.past-link:hover { text-decoration: none; border-color: var(--accent); }
.past-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--nav-active-bg); color: var(--nav-active-fg); }
.past-link b { display: block; font-size: 1.02rem; }
.past-link small { color: var(--muted); font-size: .88rem; }
.past-go { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); white-space: nowrap; }
@media (max-width: 600px) { .past-link { padding: 16px; gap: 12px; } .past-go span { display: none; } }

/* ---------- Reise bearbeiten: Zusammenlegen als Vorschlagsliste (davor/danach) mit Bestaetigungsdialog */
.sugg { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; container-type: inline-size; }
.sugg li { border-top: 1px solid var(--line); }
.sugg li:first-child, .sugg li[hidden] + li { border-top: 0; }
.sugg li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
.sugg-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 16px; align-items: center; padding: 10px 14px; margin: 0; font-size: .92rem; }
.sugg-row .t { display: grid; gap: 1px; min-width: 0; }
.sugg-row .t .muted { font-size: .82rem; }
.sugg-row .gap { font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sugg-row .join { padding: 7px 14px; font-weight: 700; }
.sugg li.me { background: var(--chip); }
.sugg li.me .sugg-row { grid-template-columns: 1fr auto; }
.sugg li.me .t strong { color: var(--nav-active-fg); }
.sugg li.me .pill { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
@container (max-width: 520px) {
  .sugg-row { grid-template-columns: 1fr auto; }
  .sugg-row .gap { grid-column: 1; }
  .sugg-row .join { grid-row: 1 / span 2; }
}
.sugg-more { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.merge-dlg { border: 0; border-radius: var(--radius); padding: 22px; max-width: 420px; width: calc(100% - 32px); background: var(--card); color: var(--fg); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.merge-dlg[open] { display: grid; gap: 14px; }
.merge-dlg::backdrop { background: rgba(10, 30, 40, .45); }
.merge-dlg h3 { font-size: 1.15rem; text-wrap: balance; }
.merge-res { background: var(--chip); border-radius: 10px; padding: 10px 14px; font-size: .92rem; display: grid; gap: 2px; }
.merge-dlg .actions { justify-content: flex-end; }

/* ---------- Reisekopf (Übersicht): links Blau mit Kräusel-Muster, nach rechts geht es in das Bild über.
   Einstellung aus dem Clickdummy vom 11.10.2026 (Muster "kraeusel", Blau-Anteil 42 %, Stärke 0.2). Das Muster liegt als
   ::before-Ebene auf dem Blau und wird mit dem Übergang ausgeblendet. Die beiden Buttons im Kopf sind weiß mit blauer Schrift. */
/* Das Bild liegt nur in der rechten Hälfte (ab 42 % Breite, wo der Übergang beginnt) als ::after-Ebene mit "cover": ein 16:9-Bild
   passt direkt, ohne Zuschnitt. Auf dem Desktop ist davon ein waagerechtes Band zu sehen, auf dem Handy fast das ganze Bild.
   Der Übergang Blau → Bild läuft über die linken 59 % dieser Ebene (= 42 % bis 76 % des Kastens); --th-img-y wählt die Bildhöhe. */
.trip .trip-head, .trip:not([open]) .trip-head { position: relative; isolation: isolate; background: #1f5dcc; --th-img-y: 45%; }
/* Zielbilder je Reise (assets/ziele/<ort>-breit.webp für den Desktop, <ort>.webp 3:2 fürs Handy) kommen als --th-img / --th-img-m
   per Inline-Style aus trip_image_style(); ohne Zielbild bleibt das allgemeine Reisebild. */
.trip-head::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 58%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #1f5dcc 0%, rgba(31, 93, 204, 0) 59%), linear-gradient(rgba(10, 52, 150, .2), rgba(10, 52, 150, .2)), var(--th-img, url(/assets/deko/reise.webp)) right var(--th-img-y) / cover no-repeat; }
@media (max-width: 600px) { .trip-head::after { background-image: linear-gradient(90deg, #1f5dcc 0%, rgba(31, 93, 204, 0) 59%), linear-gradient(rgba(10, 52, 150, .2), rgba(10, 52, 150, .2)), var(--th-img-m, var(--th-img, url(/assets/deko/reise.webp))); } }
.trip-head::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.2; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='14' viewBox='0 0 60 14'%3E%3Cpath d='M0 7Q7.5 1 15 7T30 7T45 7T60 7' fill='none' stroke='%23fff' stroke-width='1.2' opacity='.75'/%3E%3C/svg%3E") left center repeat; -webkit-mask-image: linear-gradient(90deg, #000 calc(42% - 6%), transparent 76%); mask-image: linear-gradient(90deg, #000 calc(42% - 6%), transparent 76%); }
.trip-head > * { position: relative; z-index: 1; }
.trip .trip-add, .trip .trip-edit { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; padding: 3px 11px; border-radius: 999px; text-shadow: none; color: #1a54c2; background: #fff; border: 1px solid #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(6, 30, 90, .25); }
.trip .trip-add { padding-left: 8px; }
.trip .trip-add .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.trip .trip-add:hover, .trip .trip-edit:hover { text-decoration: none; background: #e2ecfc; border-color: #e2ecfc; }
.trip .trip-types { background: rgba(8, 40, 110, .55); box-shadow: 0 0 0 5px rgba(8, 40, 110, .55); }

/* ---------- Buchungsassistent (Übersicht, "Buchung hinzufügen" auf einer Reise): Art als Kacheln, das Wichtigste, optional alle Details */
.bk-dlg { border: 0; border-radius: var(--radius); padding: 22px; max-width: 540px; width: calc(100% - 32px); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); color: var(--fg); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.bk-dlg.is-wide { max-width: 760px; }
.bk-dlg::backdrop { background: rgba(10, 30, 40, .45); }
.bk-form { display: grid; gap: 14px; }
.bk-form h3 { font-size: 1.15rem; text-wrap: balance; margin: 0; }
.bk-step { margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.bk-intro { margin: -8px 0 0; color: var(--muted); font-size: .9rem; }
.bk-form .actions { justify-content: flex-end; margin-top: 16px; }
.bk-form .actions .spacer { flex: 1; }
.bk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bk-tile { position: relative; flex-direction: row; cursor: pointer; }
.bk-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-tile span { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font-weight: 600; font-size: .92rem; }
.bk-tile span i { font-style: normal; font-size: 1.2rem; }
.bk-tile span::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); margin: -2px 2px -2px -4px; }
.bk-tile input:checked + span { background: color-mix(in srgb, var(--c) 14%, var(--card)); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.bk-tile input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
#bkS2 { display: grid; gap: 12px; }
.bk-chosen { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--card)); border: 1px solid var(--c); font-weight: 700; font-size: .9rem; justify-self: start; }
.bk-chosen i { font-style: normal; font-size: 1.1rem; }
.bk-chosen button { padding: 0 0 0 6px; font-size: .85rem; }
.bk-form label > span:first-child { font-weight: 600; }
.bk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.bk-time { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: end; }
.bk-time label:last-child > span:first-child { font-weight: 500; color: var(--muted); }
.bk-err { display: none; color: var(--coral); font-size: .8rem; font-weight: 600; }
.bk-req.is-bad input { border-color: var(--coral); outline: 2px solid var(--coral); outline-offset: -1px; }
.bk-req.is-bad .bk-err { display: block; }
.bk-save { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.bk-save button { padding: 12px 16px; }
.bk-save .more { background: var(--chip); color: var(--fg); }
.bk-or { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }
.bk-sum { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, var(--card)); box-shadow: inset 3px 0 0 var(--c); margin-bottom: 4px; }
.bk-sum .pg-ic { font-size: 20px; }
.bk-sum b { display: block; }
.bk-sum small { color: var(--muted); }
.bk-dlg .edit-form.bk-details { padding: 0; border: 0; box-shadow: none; background: none; }
.bk-dlg .bk-details fieldset:first-of-type { margin-top: 0; }
@media (max-width: 600px) { .bk-dlg { padding: 16px; } .bk-save { grid-template-columns: 1fr; } }
