/* Chrisbee – Reiseplaner für zwei */

@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dmsans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dmsans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dmsans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dmsans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #eef3f1;
  --card: #ffffff;
  --ink: #15303a;
  --ink-2: #536a73;
  --ink-3: #8a9ca3;
  --line: #d6e0dd;
  --line-2: #e6ecea;
  --sea: #0f4c5c;
  --sea-2: #1b7a8c;
  --sea-wash: #dcecee;
  --sun: #f2b33d;
  --sun-wash: #fdf1d8;
  --red: #b3364a;
  --red-wash: #f8e3e6;
  --green: #2f7d55;
  --green-wash: #e1f1e8;
  /* Personen */
  --p-a: #2f6fd6;
  --p-b: #e09a12;
  --p-g: #2f8f6a;
  /* Karte */
  --map-land: #d3dedb;
  --map-visited: #1b7a8c;
  --map-planned: #f2c45f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(21, 48, 58, .06), 0 6px 20px -8px rgba(21, 48, 58, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
}
img { max-width: 100%; display: block; }
a { color: var(--sea-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
em { font-style: normal; color: var(--ink-3); font-weight: 400; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: inline-block; }

/* ---------- Grundgerüst ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 40px; }
.wrap-trip { padding-top: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(238, 243, 241, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sea); }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--sea); color: var(--sun); display: grid; place-items: center; }
.brand-mark .ic { width: 20px; height: 20px; }
.brand-name { font: 600 1.3rem var(--serif); letter-spacing: -.02em; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--ink); background: var(--line-2); }
.topnav a.on { color: var(--sea); background: var(--sea-wash); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: 600 .95rem var(--sans); color: #fff; background: var(--p-a); text-decoration: none;
}
.avatar[data-slot="b"] { background: var(--p-b); }
.avatar-lg { width: 54px; height: 54px; font-size: 1.3rem; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 500; color: var(--ink-3); text-decoration: none; padding: 6px 0; }
.tabbar a .ic { width: 23px; height: 23px; }
.tabbar a.on { color: var(--sea); }
.tabbar .tab-add { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--sea); color: var(--sun); justify-content: center; box-shadow: 0 6px 16px -6px rgba(15,76,92,.6); margin-top: -18px; }
.tabbar .tab-add .ic { width: 26px; height: 26px; stroke-width: 2.4; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar { padding: 12px 28px; }
  .wrap { padding: 28px 28px 60px; }
  .wrap-trip { padding-top: 0; }
}
@media (max-width: 859px) { .hide-mobile { display: none !important; } }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: #0b3d4a; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-glass { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.28); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: transparent; }
.icon-btn { border: 0; background: transparent; color: var(--ink-3); width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--sea-2); font: 500 .88rem var(--sans); cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-weight: 600; font-size: .9rem; }
.field > span:first-child em { font-size: .82rem; margin-left: 4px; }
input, select, textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--card); width: 100%;
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; min-height: 46px;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23536a73' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea-2); box-shadow: 0 0 0 3px rgba(27,122,140,.18); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; -webkit-appearance: auto; appearance: auto; accent-color: var(--sea); }
input[type="date"], input[type="time"] { min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.check input { width: 20px; height: 20px; }
.input-unit { position: relative; display: flex; }
.input-unit span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-unit input { padding-right: 34px; }
.input-cur { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.dt { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 8px; }
.grid-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid-dt { grid-template-columns: 1fr; } }
.eur-row { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.money-group { display: flex; flex-direction: column; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-weight: 500; font-size: .92rem; cursor: pointer; user-select: none;
}
.seg input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.seg .dot { width: 10px; height: 10px; }
.seg input:checked + span .dot { box-shadow: 0 0 0 2px #fff; }
.split-custom { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.split-custom label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.split-custom input { width: 84px; }

.form-card { background: var(--card); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.2rem; }
.narrow { max-width: 620px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.file-drop {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 12px;
  cursor: pointer; color: var(--ink-2); font-weight: 500; background: var(--paper);
}
.file-drop:hover { border-color: var(--sea-2); color: var(--sea); }
.cover-preview img { width: 100%; max-width: 320px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }

.alert { padding: 12px 16px; border-radius: 12px; background: var(--sea-wash); margin-bottom: 14px; }
.alert-error { background: var(--red-wash); color: #7a1e2d; }
.alert-ok { background: var(--green-wash); color: #1d5a3c; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%);
  z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  font-weight: 500; max-width: calc(100vw - 32px); animation: toast 4.5s ease forwards;
}
.toast-error { background: var(--red); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 6%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }
@media (min-width: 860px) { .toast { bottom: 28px; } }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 22px; }
.page-head .back { width: 100%; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.back:hover { color: var(--ink); }
.back-light { color: rgba(255,255,255,.9); }
.back-light:hover { color: #fff; }
h1.with-ic { display: flex; align-items: center; gap: 12px; }
.head-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sea-wash); color: var(--sea); display: grid; place-items: center; flex: none; }
.head-ic .ic { width: 24px; height: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.count { font: 500 .85rem var(--sans); color: var(--ink-3); margin-left: 6px; }

.empty { text-align: center; padding: 48px 20px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .empty-ic { width: 48px; height: 48px; color: var(--sea-2); stroke-width: 1.5; }
.empty p { color: var(--ink-2); }
.empty-sm { padding: 20px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); max-width: none; }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); }
.pill-now { background: var(--sun); color: var(--ink); }
.pill-upcoming { background: rgba(255,255,255,.92); color: var(--sea); }
.pill-past { background: rgba(255,255,255,.85); color: var(--ink-2); }
.pill-idee { background: rgba(255,255,255,.85); color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--p-a); flex: none; }
.dot[data-slot="b"] { background: var(--p-b); }
.dot[data-slot="g"] { background: var(--p-g); }

.bar { display: block; height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sea-2); border-radius: 4px; }
.bar-over > span { background: var(--red); }

/* ---------- Login & Installation ---------- */
.page-login { padding: 0; min-height: 100vh; background: var(--sea); }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.page-login .login-main::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: radial-gradient(circle at 20% 15%, var(--sun) 0 120px, transparent 121px),
    repeating-radial-gradient(circle at 20% 15%, transparent 0 34px, #fff 34px 35px);
}
.login-card { position: relative; width: 100%; max-width: 380px; background: var(--card); border-radius: var(--radius-lg); padding: 32px 26px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); text-align: center; }
.login-card form { text-align: left; margin-top: 22px; }
.login-mark { width: 60px; height: 60px; border-radius: 50%; background: var(--sea); color: var(--sun); display: grid; place-items: center; margin: 0 auto 14px; }
.login-mark .ic { width: 34px; height: 34px; }
.login-card h1 { font-size: 2rem; }
.install { max-width: 640px; margin: 0 auto; padding: 32px 16px 60px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.page-login .install > h1, .page-login .install > p { color: #fff; }
.page-login .install > p.alert { color: var(--ink); }
.install .card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; }
.checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.checks .ok { color: var(--green); } .checks .bad { color: var(--red); font-weight: 600; }

/* ---------- Startseite ---------- */
.wrap-start { display: flex; flex-direction: column; gap: 40px; }
.welcome {
  position: relative; display: block; min-height: 220px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(140deg, hsl(var(--hue, 190) 55% 22%), hsl(calc(var(--hue, 190) + 25) 50% 36%));
  box-shadow: var(--shadow);
}
.welcome > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,36,0) 30%, rgba(10,30,36,.75)); }
.welcome-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px; padding: 24px; }
.welcome-kicker { font-weight: 600; font-size: .9rem; opacity: .92; }
.welcome-title { font: 600 clamp(1.6rem, 4.6vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.02em; max-width: 22ch; }
.welcome-sub { opacity: .88; max-width: 46ch; }
.welcome-flags { display: flex; gap: 5px; }
.welcome-empty { background: var(--sea); }
.welcome-empty .btn { align-self: flex-start; margin-top: 6px; }
@media (min-width: 860px) { .welcome, .welcome-text { min-height: 300px; } .welcome-text { padding: 36px; } }

.world { display: grid; gap: 18px; }
.story { font: 400 clamp(1.3rem, 3.2vw, 1.85rem)/1.42 var(--serif); max-width: 34ch; letter-spacing: -.01em; }
.story .ink {
  font-weight: 600; font-style: italic; color: var(--sea); white-space: nowrap;
  background: linear-gradient(transparent 62%, rgba(242,179,61,.45) 62%, rgba(242,179,61,.45) 92%, transparent 92%);
  padding: 0 .08em;
}
.legend { display: flex; gap: 16px; margin-top: 12px; font-size: .85rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-v { background: var(--map-visited); } .lg-p { background: var(--map-planned); }
.map-wrap { background: #e3ebe9; border-radius: var(--radius-lg); padding: 10px; overflow: hidden; }
.worldmap { width: 100%; height: auto; display: block; }
.worldmap path, .worldmap circle.tiny { fill: var(--map-land); stroke: #fff; stroke-width: .5; transition: fill .2s; }
.worldmap .dot-mark { stroke: #fff; stroke-width: 1.5; }
.worldmap .dot-mark.v { fill: var(--map-visited); } .worldmap .dot-mark.p { fill: var(--map-planned); }
@media (min-width: 960px) {
  .world { grid-template-columns: 340px 1fr; align-items: center; gap: 32px; }
}

.passport { background: var(--card); border-radius: var(--radius-lg); padding: 24px 20px 28px; box-shadow: var(--shadow);
  background-image: radial-gradient(rgba(21,48,58,.05) 1px, transparent 1px); background-size: 14px 14px; }
.passport-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 10px; }
.stamp {
  --c: #2b5da8; transform: rotate(var(--rot)); color: var(--c); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  aspect-ratio: 1; padding: 10px; text-align: center; border: 2.5px solid var(--c); outline: 1px solid var(--c); outline-offset: -7px;
  mix-blend-mode: multiply; opacity: .9; transition: transform .2s, opacity .2s;
}
.stamp:hover { transform: rotate(0) scale(1.05); opacity: 1; }
.stamp-s1 { border-radius: 50%; }
.stamp-s2 { border-radius: 14px; aspect-ratio: 1.1; }
.stamp-s3 { border-radius: 50% / 38%; }
.ink-1 { --c: #2b5da8; } .ink-2 { --c: #b3364a; } .ink-3 { --c: #2f7d55; } .ink-4 { --c: #6b4aa0; }
.stamp-flag { width: 22px; height: 16px; filter: saturate(.75); }
.stamp-name { font: 600 .82rem/1.1 var(--serif); letter-spacing: .01em; max-width: 100%; overflow-wrap: anywhere; }
.stamp-year { font-size: .72rem; font-weight: 600; opacity: .85; }

.notes-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.note > .ic { width: 22px; height: 22px; color: var(--sea-2); margin-top: 2px; }
.note strong { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.note-money { background: var(--sun-wash); }
.note-money > .ic { color: #9a6a06; }

.chronicle h2 { margin-bottom: 14px; }
.chron-year { display: grid; gap: 8px; margin-bottom: 18px; }
.chron-label { font: 600 1.05rem var(--serif); color: var(--ink-2); }
.chron-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chron-card { flex: 0 0 168px; scroll-snap-align: start; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.chron-card img, .chron-ph { width: 168px; height: 118px; border-radius: 12px; object-fit: cover; }
.chron-ph { display: grid; place-items: center; color: rgba(255,255,255,.6); background: linear-gradient(140deg, hsl(var(--hue) 50% 28%), hsl(calc(var(--hue) + 25) 48% 42%)); }
.chron-ph .ic { width: 34px; height: 34px; }
.chron-title { font-weight: 600; font-size: .92rem; line-height: 1.25; margin-top: 4px; }
.chron-meta { font-size: .8rem; color: var(--ink-2); }

/* ---------- Reisen-Übersicht ---------- */
.tsection { margin-bottom: 34px; }
.tsection > h2 { margin-bottom: 14px; }
.year-head { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tcard {
  position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none;
  background: linear-gradient(140deg, hsl(var(--hue) 50% 26%), hsl(calc(var(--hue) + 25) 48% 40%)); box-shadow: var(--shadow);
}
.tcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tcard:hover > img { transform: scale(1.03); }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,36,0) 38%, rgba(10,30,36,.78)); }
.tcard-pattern { position: absolute; right: -14px; top: -10px; color: rgba(255,255,255,.12); }
.tcard-pattern .ic { width: 150px; height: 150px; stroke-width: 1.2; }
.tcard-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tcard-flags { display: flex; gap: 4px; }
.tcard-title { font: 600 1.3rem/1.15 var(--serif); letter-spacing: -.01em; }
.tcard-meta { font-size: .85rem; opacity: .9; }
.tcard-badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--sea); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-now { background: var(--sun); color: var(--ink); }
.badge-open { background: var(--sun-wash); color: #7a5205; }

/* ---------- Reise-Detail ---------- */
.hero {
  position: relative; margin: 0 -16px; min-height: 260px; color: #fff; overflow: hidden; display: flex; align-items: flex-end;
  background: linear-gradient(140deg, hsl(var(--hue) 50% 22%), hsl(calc(var(--hue) + 25) 48% 38%));
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,36,.35) 0, rgba(10,30,36,0) 30%, rgba(10,30,36,0) 45%, rgba(10,30,36,.8)); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 72px 16px 22px; display: flex; flex-direction: column; gap: 8px; }
.hero-back { position: absolute; z-index: 2; top: 14px; left: 12px; padding: 6px 10px 6px 4px; border-radius: 999px; background: rgba(10,30,36,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-flags { display: flex; gap: 5px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 500; opacity: .95; }
.hero-meta span + span::before { content: "·"; margin-right: 14px; opacity: .6; }
.hero-dest { opacity: .9; margin-top: -4px; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
@media (min-width: 860px) {
  .hero { margin: 0 -28px; min-height: 360px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .hero-inner { padding: 24px 28px 30px; }
  .hero-back { left: 24px; top: 20px; }
  .type-picker { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1176px) { .hero { margin: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); } }

.tabs { position: sticky; top: 57px; z-index: 20; display: flex; gap: 4px; margin: 0 -16px 22px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.tabs a:hover { background: var(--line-2); color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
@media (min-width: 860px) { .tabs { top: 61px; margin: 0 0 26px; padding: 12px 0; } }

.plan-layout, .cost-layout, .edit-layout { display: grid; gap: 22px; }
@media (min-width: 960px) {
  .plan-layout, .cost-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .edit-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .plan-side, .cost-side, .edit-side { position: sticky; top: 130px; }
}
.plan-layout > *, .cost-layout > *, .edit-layout > * { min-width: 0; }
.plan-side, .cost-side, .edit-side { display: flex; flex-direction: column; gap: 14px; }
.sidecard { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.sidecard-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.big { font: 600 1.7rem/1.1 var(--serif); letter-spacing: -.01em; }
.big .muted { font: 400 .95rem var(--sans); }
.settle-line { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); font-weight: 600; color: #7a5205; }
.settle-line.is-even { color: var(--green); }
.prose { line-height: 1.55; overflow-wrap: anywhere; }

.add-bar { margin-bottom: 22px; }
.add-bar-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.type-picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.type-btn { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 78px; padding: 12px 4px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: .76rem; font-weight: 500; text-align: center; }
.type-btn .ic { width: 22px; height: 22px; color: var(--sea-2); }
.type-btn:hover { border-color: var(--sea-2); }

.day { position: relative; padding-left: 22px; padding-bottom: 18px; }
.day::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 0; width: 2px; background: var(--line); }
.day::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--sea-2); }
.day-today::after { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 4px rgba(242,179,61,.3); }
.day-extra::after { border-style: dashed; border-color: var(--ink-3); }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.day-name { font: 600 1.1rem var(--serif); }
.day-date { font: 500 .88rem var(--sans); color: var(--ink-2); }
.day-sub { font-size: .85rem; color: var(--ink-2); margin: 6px 0; font-weight: 500; }
.day-empty .day-head { margin-bottom: 4px; }

.irow {
  display: grid; grid-template-columns: 44px 38px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 12px 14px 12px 10px; margin-bottom: 8px; background: var(--card); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(21,48,58,.06); border: 1px solid transparent; transition: border-color .15s;
}
.irow:hover { border-color: var(--line); }
.irow-time { font: 600 .85rem var(--sans); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.irow-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--sea-wash); color: var(--sea); display: grid; place-items: center; }
.irow-ic .ic { width: 20px; height: 20px; }
.irow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.irow-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.irow-sub { font-size: .85rem; display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--ink); }
.ref { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); background: var(--line-2); padding: 0 6px; border-radius: 5px; }
.irow-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.irow-price { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.irow-price .muted { font-weight: 400; font-size: .8rem; }
.status { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status.st-idee { background: var(--line-2); color: var(--ink-2); }
.status.st-gebucht { background: var(--sea-wash); color: var(--sea); }
.status.st-angezahlt { background: var(--sun-wash); color: #7a5205; }
.status.st-bezahlt { background: var(--green-wash); color: var(--green); }
.status.st-storniert { background: var(--red-wash); color: var(--red); }
.irow.st-idee { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; }
.irow.st-idee .irow-ic { background: var(--line-2); color: var(--ink-2); }
.irow.st-storniert { opacity: .6; }
.irow.st-storniert .irow-title { text-decoration: line-through; }
.irow-end { grid-template-columns: 44px 38px 1fr; background: transparent; box-shadow: none; padding-top: 4px; padding-bottom: 4px; }
.irow-end .irow-ic { background: transparent; width: 38px; height: 26px; color: var(--ink-3); }
.irow-end .irow-title { font-weight: 500; font-size: .9rem; }
.irow-end .irow-main { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sleep { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); margin: 2px 0 0 54px; }
.sleep-missing { color: #9a6a06; }
@media (max-width: 520px) {
  .irow { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .irow-time { display: none; }
  .irow-end { grid-template-columns: 38px 1fr; }
  .sleep { margin-left: 4px; }
  .irow .irow-time:not(:empty) { display: none; }
}

/* Kosten */
.settle-card { background: var(--card); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); margin-bottom: 26px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.settle-card.is-even { background: var(--green-wash); box-shadow: none; }
.settle-who { display: flex; align-items: center; gap: 14px; justify-content: center; }
.settle-card.is-even .settle-who { justify-content: flex-start; }
.settle-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.settle-ic .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.settle-title { font: 600 1.3rem var(--serif); }
.settle-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; max-width: 300px; text-align: center; }
.settle-amount { font: 600 clamp(1.6rem, 5vw, 2.2rem)/1 var(--serif); letter-spacing: -.02em; }
.settle-line-arrow { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px); }
.settle-line-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink-3); border-right: 0; }
.settle-form { align-self: center; width: 100%; max-width: 440px; }
.settle-form > summary { list-style: none; width: 100%; }
.settle-form > summary::-webkit-details-marker { display: none; }
.settle-form[open] > summary { display: none; }
.settle-list { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line-2); font-size: .88rem; color: var(--ink-2); }
.settle-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.big-settle { padding: 30px 22px; }

.paylist { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.paylist li + li { border-top: 1px solid var(--line-2); }
.payrow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.payrow:hover { background: #f8fbfa; }
.payrow-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--paper); color: var(--sea-2); display: grid; place-items: center; }
.payrow-ic .ic { width: 19px; height: 19px; }
.payrow-thumb { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, hsl(var(--hue) 50% 26%), hsl(calc(var(--hue) + 25) 48% 40%)); }
.payrow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.payrow-main { display: flex; flex-direction: column; min-width: 0; }
.payrow-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.payrow-sub { font-size: .82rem; color: var(--ink-2); }
.payrow-sub strong { font-weight: 600; color: var(--ink); }
.payrow-sub strong[data-slot="a"] { color: var(--p-a); } .payrow-sub strong[data-slot="b"] { color: #a86f00; } .payrow-sub strong[data-slot="g"] { color: var(--p-g); }
.payrow-sub.is-open { color: #7a5205; font-weight: 500; }
.payrow-amt { font-weight: 600; text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv { margin: 6px 0 0; display: grid; gap: 4px; }
.kv div { display: flex; justify-content: space-between; font-size: .92rem; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.payers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.payers li { display: flex; align-items: center; gap: 10px; }
.payers strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cats li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; font-size: .9rem; }
.cat-ic .ic { width: 17px; height: 17px; color: var(--sea-2); }
.cat-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.cat-bar span { display: block; height: 100%; background: var(--sea-2); border-radius: 3px; }
.cats li:not(:has(.cat-ic)) { grid-template-columns: 1fr auto; }

/* Formular Baustein */
.type-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.type-select label, .cat-select label { position: relative; }
.type-select input, .cat-select input { position: absolute; opacity: 0; pointer-events: none; }
.type-select span, .cat-select span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; text-align: center; height: 100%; }
.type-select em, .cat-select em { color: var(--ink); font-size: .74rem; font-weight: 500; line-height: 1.2; }
.type-select .ic, .cat-select .ic { width: 21px; height: 21px; color: var(--sea-2); }
.type-select input:checked + span, .cat-select input:checked + span { background: var(--sea); border-color: var(--sea); }
.type-select input:checked + span em, .cat-select input:checked + span em, .type-select input:checked + span .ic, .cat-select input:checked + span .ic { color: #fff; }
.type-select input:focus-visible + span, .cat-select input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.cat-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.field-group { display: flex; flex-direction: column; gap: 16px; }
.more summary, .copy-list summary, .danger-zone summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.more[open] summary { margin-bottom: 12px; }
.paynow { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--paper); }
.nights-hint { margin-top: -8px; }
.danger-zone { margin-top: 28px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.danger-zone form { margin-top: 10px; }
.edit-side .danger-zone { margin-top: 0; }
.mini-pays { list-style: none; padding: 0; margin: 4px 0; }
.mini-pays li + li { border-top: 1px solid var(--line-2); }
.mini-pays a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: .9rem; }
.mini-pays strong { text-align: right; font-variant-numeric: tabular-nums; }
.add-pay > summary { list-style: none; }
.add-pay > summary::-webkit-details-marker { display: none; }
.add-pay[open] > summary { display: none; }
.add-pay form { margin-top: 6px; }
.delete-inline { margin-top: 14px; }

/* Fotos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.gitem { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.gthumb { border: 0; padding: 0; width: 100%; height: 100%; cursor: zoom-in; background: none; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.cover-tag { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; }
.cover-tag .ic { width: 15px; height: 15px; fill: currentColor; }
.photo-empty { cursor: pointer; background: var(--card); border-radius: var(--radius-lg); border: 1.5px dashed var(--line); max-width: none; }
.upload-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .9rem; color: var(--ink-2); }
.upload-progress .bar { flex: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,24,.96); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: calc(100vh - 150px); object-fit: contain; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; color: #fff; z-index: 2; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.12); color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; width: 48px; height: 48px; }
.lb-nav .ic { width: 28px; height: 28px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-next .ic { transform: scaleX(-1); }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: #fff; }
.lb-caption { flex: 1 1 260px; background: rgba(255,255,255,.1); border-color: transparent; color: #fff; min-height: 40px; }
.lb-caption::placeholder { color: rgba(255,255,255,.55); }
.lb-date { font-size: .85rem; opacity: .7; }
.lb-actions { display: flex; gap: 8px; }

/* Listen */
.lists { display: grid; gap: 26px; }
@media (min-width: 860px) { .lists { grid-template-columns: 1fr 1fr; align-items: start; } }
.checklist { background: var(--card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.check-add { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; margin-bottom: 10px; }
.check-add .btn { min-height: 46px; width: 46px; padding: 0; }
.checks-list { list-style: none; padding: 0; margin: 0; }
.checks-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.checks-list li:last-child { border-bottom: 0; }
.checks-list label { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; min-width: 0; }
.checks-list input { width: 22px; height: 22px; flex: none; }
.checks-list li.done span { color: var(--ink-3); text-decoration: line-through; }
.who { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--p-a); }
.who[data-slot="b"] { background: var(--p-b); }
.copy-list { margin-top: 22px; }
.row-form { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.row-form select { flex: 1 1 220px; }

/* Länderauswahl */
.country-picker { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--sea-wash); font-size: .9rem; font-weight: 500; }
.chip button { border: 0; background: rgba(15,76,92,.12); color: var(--sea); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }

/* Einstellungen */
.settings-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
  .stamp { transition: none; }
}
@media print {
  .topbar, .tabbar, .tabs, .add-bar, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
}
