@font-face {
  font-family: 'Fraunces';
  src: url('./vendor/fonts/fraunces.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('./vendor/fonts/instrument-sans.woff') format('woff');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ground: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #141414;
  --muted: #5E5A54;
  --line: #E7E1D6;
  --field: #DDD6C8;
  --teal: #0E6B6B;
  --teal-dark: #0B4F4F;
  --teal-soft: #E3EEEE;
  --sand: #F1EADB;
  --warn: #8A4B0F;
  --warn-soft: #FBEEDD;
  --danger: #A12B1F;
  --night: #111111;
  --brand: #0E6B6B;
  --brand-deep: #0A5252;
  --brand-ink: #0B4F4F;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100%;
  position: relative;
  padding-bottom: calc(96px + var(--safe-bottom));
}

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: var(--safe-top);
}
.top-inner {
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px;
}
.top-title { flex: 1; min-width: 0; text-align: center; }
.top-title b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title small { display: block; font-size: 12px; color: var(--muted); }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 44px; border: none; background: transparent; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

.brandbar { background: var(--brand); color: #fff; padding-top: var(--safe-top); }
.brandbar .top-inner { height: 64px; padding: 0 12px 0 20px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.12em; }
.brand span { font-size: 13px; color: #CFCBC2; }
.brandbar .icon-btn { color: #fff; }
.brandbar .icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sync {
  height: 44px; padding: 0 8px; border: none; background: transparent; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.sync svg { width: 18px; height: 18px; }
.sync.warn { color: var(--warn); }
.sync.ok { color: var(--teal); }
.brandbar .sync { color: #D6EBEA; }
.brandbar .sync.warn { color: #F2C08A; }
.brandbar .sync.ok { color: #FFFFFF; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner {
  margin: 8px 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: var(--warn-soft); color: #5A3209; display: flex; gap: 10px; align-items: flex-start;
}
.banner a { color: #5A3209; font-weight: 600; }
.banner.info { background: var(--teal-soft); color: #1F3E3E; }
.banner.info a { color: #1F3E3E; }

/* ---------- Bausteine ---------- */
.section-label {
  padding: 22px 20px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.card {
  margin: 0 16px; background: var(--surface); border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); font-weight: 600; }
.h1 { margin: 0; font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--brand-ink); }
.empty {
  margin: 0 16px; padding: 18px 16px; border: 1px dashed #CFC6B5; border-radius: 16px; font-size: 14px; color: var(--muted); text-align: center;
}

.btn {
  height: 52px; padding: 0 20px; border-radius: 26px; border: none; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; width: 100%;
}
.btn:hover { color: #fff; background: #2a2a28; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--field); }
.btn.secondary:hover { background: #fbfaf7; color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid #E5C7C2; }
.btn.danger:hover { background: #fdf3f2; color: var(--danger); }
.btn.small { height: 44px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn svg { width: 20px; height: 20px; }

.fab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(16px + var(--safe-bottom));
  background: linear-gradient(to top, var(--ground) 70%, transparent);
  pointer-events: none;
}
.fab-bar > * { pointer-events: auto; max-width: 528px; margin: 0 auto; }
.fab-bar .btn { box-shadow: 0 6px 20px rgba(0,0,0,0.18); height: 56px; border-radius: 28px; font-size: 16px; }
.btn-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

/* ---------- Formulare ---------- */
.form { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field > .label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.field .hint { font-size: 11px; font-weight: 600; color: var(--teal); }
.input, select.input, textarea.input {
  height: 46px; border: 1px solid var(--field); border-radius: 10px; padding: 0 12px; font-size: 16px;
  background: var(--surface); width: 100%; min-width: 0; appearance: none; -webkit-appearance: none;
}
textarea.input { height: 80px; padding: 10px 12px; resize: vertical; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E5A54' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(14,107,107,0.15); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.with-btn { display: flex; gap: 8px; }
.with-btn .input { flex: 1; }
.square-btn {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; border: 1px solid var(--field); background: var(--surface);
  color: var(--teal); display: inline-flex; align-items: center; justify-content: center;
}
.square-btn svg { width: 20px; height: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--field); background: var(--surface);
  font-size: 13px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.amount-card { align-items: center; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; }
.amount-row { display: flex; align-items: baseline; gap: 8px; justify-content: center; }
.amount-input {
  width: 160px; border: none; background: transparent; text-align: right; font-family: var(--display);
  font-size: 44px; font-weight: 600; padding: 0; font-variant-numeric: tabular-nums; min-width: 0;
}
.amount-input:focus { outline: none; }
.amount-input::placeholder { color: #C9C2B4; }
.cur-select { width: 92px; height: 46px; font-size: 16px; font-weight: 600; background-color: var(--ground); }
.eur-line { font-size: 14px; font-weight: 600; color: var(--teal-dark); text-align: center; }

.eur-box {
  background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: #2F4A4A; font-size: 13px;
}
.eur-box b { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--teal-dark); }

.receipt-head { display: flex; gap: 12px; align-items: center; }
.receipt-thumb {
  width: 64px; height: 84px; border-radius: 8px; object-fit: cover; background: var(--sand); border: 1px solid var(--line); flex: 0 0 auto;
  display: block;
}
.status-ok { color: var(--teal); font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.status-wait { color: var(--warn); font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.status-ok svg, .status-wait svg { width: 16px; height: 16px; }

.results { display: flex; flex-direction: column; border: 1px solid var(--field); border-radius: 10px; overflow: hidden; background: var(--surface); }
.results button {
  border: none; background: transparent; text-align: left; padding: 10px 12px; min-height: 48px; border-bottom: 1px solid var(--line);
}
.results button:last-child { border-bottom: none; }
.results button:hover { background: var(--ground); }

/* ---------- Karte & Übersicht ---------- */
.map-wrap { position: relative; height: 300px; background: #CFE2E4; }
.map-wrap .map { position: absolute; inset: 0; }
.map-note {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 24px; font-size: 14px; color: #33403F;
}
.map-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(17,17,17,0.78); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 12px;
}
.map-wrap .maplibregl-ctrl-bottom-right, .map-wrap .maplibregl-ctrl-bottom-left { bottom: 26px; }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important; }
.maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }

.summary {
  position: relative; z-index: 3; margin: -24px 16px 0; background: var(--surface); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.07);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.summary .big { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.link-more { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more svg { width: 16px; height: 16px; }

.list { display: flex; flex-direction: column; padding: 0 16px; }
.row {
  min-height: 60px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); padding: 8px 0;
}
.row:hover { color: var(--ink); background: rgba(0,0,0,0.015); }
.badge {
  width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex: 0 0 auto;
}
.badge.current { background: var(--teal); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-amt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.row-amt b { font-size: 15px; font-weight: 600; }
.row-amt span { font-size: 12px; color: var(--muted); }

.exp-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.exp {
  background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); text-decoration: none; color: var(--ink);
}
.exp:hover { color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05); }
.tile {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.tile svg { width: 20px; height: 20px; }
.tile.hand { background: var(--sand); color: #6B5420; }
.tile.wait { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }

/* Reisen */
.trip-card { margin: 0 16px; display: block; background: var(--surface); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.06); }
.trip-card:hover { color: var(--ink); }
.trip-card .head { position: relative; background: var(--sand); padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 30px; }
.trip-card .tag { align-self: flex-start; background: var(--teal); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.trip-card .tag.plan { background: var(--ink); }
/* Zeitleiste */
.tl { padding: 4px 6px 0; }
.tl-track { position: relative; height: 20px; }
.tl-line, .tl-done { position: absolute; left: 0; top: 9px; height: 2px; border-radius: 1px; }
.tl-line { right: 0; background: #CFC6B5; }
.tl-done { background: var(--teal); }
.tl-end { position: absolute; top: 4px; width: 2px; height: 12px; margin-left: -1px; background: #8E8677; border-radius: 1px; }
.tl-dot { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -8px; border-radius: 50%; background: var(--ink); border: 2px solid var(--sand); box-sizing: content-box; transform: translateY(-2px); }
.tl-dot.current { background: var(--teal); width: 14px; height: 14px; margin-left: -9px; border-radius: 50%; transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(14,107,107,0.18); }
.tl-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 2px -6px 0; font-variant-numeric: tabular-nums; }
.trip-card .body { padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.trip-card .name { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--brand-ink); }
.trips-past .trip-card { margin-bottom: 10px; }

/* Auswertung */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px; }
.kpi { background: var(--surface); border-radius: 12px; padding: 12px; }
.kpi b { display: block; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: #EFEAE0; overflow: hidden; margin-top: 6px; }
.bar > div { height: 8px; border-radius: 4px; background: var(--teal); }
.table-rows > div { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #EFEAE0; font-size: 14px; font-variant-numeric: tabular-nums; }
.table-rows > div:last-child { border-bottom: none; }

/* Kamera */
.capture { min-height: 100vh; background: var(--night); color: #fff; display: flex; flex-direction: column; padding-bottom: var(--safe-bottom); }
.capture .top-inner { color: #fff; }
.capture .icon-btn { color: #fff; }
.capture .icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.capture-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 16px 24px 32px; }
.capture-big {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 280px; border-radius: 20px; border: 2px dashed #4A4844; background: #1C1C1A; text-align: center; padding: 24px; cursor: pointer;
}
.capture-big:hover { border-color: #7FD1CF; }
.capture-big .cam { width: 84px; height: 84px; border-radius: 42px; background: #fff; color: var(--night); display: flex; align-items: center; justify-content: center; }
.capture-big .cam svg { width: 38px; height: 38px; }
.capture-big b { font-size: 18px; }
.capture-big span { font-size: 13px; color: #CFCBC2; }
.capture input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.capture-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.capture-alt > * {
  position: relative; min-height: 56px; border-radius: 14px; border: 1px solid #44423D; background: #222220; color: #fff; display: flex;
  align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.capture-alt > *:hover { color: #fff; border-color: #7FD1CF; }
.capture-alt svg { width: 20px; height: 20px; }
.capture .note { font-size: 12px; color: #CFCBC2; text-align: center; }

/* Anmeldung */
.login { min-height: 100vh; min-height: 100dvh; background: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: calc(28px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)); gap: 22px; }
.login h1 { margin: 4px 0 0; font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: 0.12em; }
.login .sub { font-size: 17px; color: #D6EBEA; }
.login .field > label { color: #D6EBEA; font-size: 13px; }
.login .input { background: var(--brand-deep); border-color: #3E8A8A; color: #fff; height: 50px; }
.login .input:focus { border-color: #FFFFFF; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.login .btn { background: #fff; color: var(--brand-ink); height: 54px; border-radius: 27px; }
.login .btn:hover { background: #E8F2F1; color: var(--brand-ink); }
.login .err { color: #FFE0DA; font-size: 14px; min-height: 20px; font-weight: 600; }
.login .fine { font-size: 12px; color: #CDE5E3; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  max-width: calc(100% - 32px);
}

.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.overlay button { position: absolute; top: calc(12px + var(--safe-top)); right: 12px; color: #fff; }

@media print {
  .top, .fab-bar, .banner, .no-print { display: none !important; }
  body { background: #fff; }
  #app { max-width: none; padding: 0; }
  .card, .kpi { box-shadow: none; border: 1px solid #ddd; }
}

.logo-mark { display: block; }
.brand { align-items: center; }

/* ================= Verspielte Elemente (1.5.0) ================= */

/* Buttons mit "Tiefe" – drücken sich beim Antippen ein */
.btn { background: var(--brand); box-shadow: 0 4px 0 var(--brand-deep); transition: transform .08s ease, box-shadow .08s ease, background .15s; }
.btn:hover { background: #127878; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-deep); }
.btn.secondary { background: var(--surface); color: var(--brand-ink); border: 2px solid var(--brand); box-shadow: 0 4px 0 #CFE0DD; }
.btn.secondary:hover { background: #F3F9F8; color: var(--brand-ink); }
.btn.secondary:active { box-shadow: 0 1px 0 #CFE0DD; }
.btn.danger { box-shadow: 0 3px 0 #F0D9D5; background: #fff; }
.btn.danger:active { box-shadow: 0 1px 0 #F0D9D5; }
.btn[disabled] { box-shadow: none; transform: none; }
.fab-bar .btn { height: 58px; border-radius: 29px; box-shadow: 0 5px 0 var(--brand-deep), 0 10px 24px rgba(10,82,82,.28); letter-spacing: .01em; }
.fab-bar .btn:active { box-shadow: 0 1px 0 var(--brand-deep), 0 4px 10px rgba(10,82,82,.25); }
.fab-bar .btn svg { width: 22px; height: 22px; }
.btn-row .btn.secondary { box-shadow: 0 4px 0 #CFE0DD; }
.login .btn { box-shadow: 0 4px 0 rgba(0,0,0,.22); }
.login .btn:active { box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.capture-big .cam { background: #fff; color: var(--brand); box-shadow: 0 5px 0 #CFE0DD; }

/* Kategorie-Chips mit Icon */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border-width: 2px; transition: transform .08s; }
.chip svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 0 var(--brand-deep); }
.chip[aria-pressed="true"] svg { color: #fff; }
.chip:active { transform: scale(.96); }
.cat-name { display: inline-flex; align-items: center; gap: 6px; }
.cat-name svg { width: 16px; height: 16px; color: var(--brand); }
.tile { border-radius: 14px; }
.tile svg { width: 22px; height: 22px; }

/* Kopfleiste mit Hügelkante */
.brandbar { position: relative; margin-bottom: 14px; }
.brandbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 0h120v4c-12 0-18 9-30 9S72 4 60 4 42 11 30 11 12 4 0 4z' fill='%230E6B6B'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 14px;
}
.brand .logo-mark { margin-right: 2px; }

/* Abschnittsüberschriften mit kleiner gestrichelter "Straße" */
.section-label { display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 0; border-top: 2px dashed #DDD3C1; margin-top: 1px; }
.section-label > span:first-child { white-space: nowrap; }
.section-label .link-more { flex: 0 0 auto; order: 2; }

/* Summen-Karte: kleiner Stempel-Look */
.summary { border: 2px solid var(--sand); }
.summary .big { color: var(--brand-ink); }

/* Leerzustand mit Camper */
.empty-art { display: flex; justify-content: center; margin-bottom: 8px; }

/* Szene am Seitenende */
.scene-wrap { margin: 28px 16px 24px; border-radius: 20px; overflow: hidden; line-height: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.scene { width: 100%; height: auto; min-height: 104px; display: block; }
.login .scene-wrap { margin: 0 auto; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.anim .drive { animation: drive 15s linear infinite; }
@keyframes drive { from { transform: translateX(-80px); } to { transform: translateX(470px); } }
.anim .wheel { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.anim .bounce { animation: bounce .45s ease-in-out infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-0.8px); } }
.anim .dust circle { animation: dust 1.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.anim .dust circle:nth-child(2) { animation-delay: .6s; }
@keyframes dust { from { opacity: .9; transform: translateX(0) scale(.6); } to { opacity: 0; transform: translateX(-10px) scale(1.6); } }
.anim .cloud { animation: cloud 60s linear infinite; }
@keyframes cloud { from { transform: translateX(-90px); } to { transform: translateX(420px); } }
.anim .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .35s ease-in-out infinite alternate; }
.anim .f2 { animation-duration: .27s; animation-delay: .1s; }
.anim .f3 { animation-duration: .22s; animation-delay: .05s; }
@keyframes flicker { from { transform: scale(1, 1) skewX(0deg); } to { transform: scale(.88, 1.12) skewX(4deg); } }
.anim .glow { transform-box: fill-box; transform-origin: center; animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .75; transform: scale(.95); } to { opacity: 1; transform: scale(1.06); } }
.anim .smoke { animation: smoke 3.2s ease-out infinite; opacity: 0; }
.anim .s2 { animation-delay: 1.6s; }
@keyframes smoke { 0% { opacity: .55; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(6px, -26px) scale(2.2); } }
.anim .star { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.anim .fly { animation: fly 2.4s ease-in-out infinite; }
@keyframes fly { 0%, 100% { opacity: 0; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(3px, -4px); } }

/* Camper auf der Zeitleiste */
.tl-track { margin-top: 10px; }
.tl-camper { position: absolute; left: var(--x); bottom: 9px; transform: translateX(-70%); line-height: 0; animation: tl-drive 2.6s cubic-bezier(.25,.7,.3,1) both; z-index: 2; }
@keyframes tl-drive { from { left: 0; } }
.tl-camper .wheel-once { transform-box: fill-box; transform-origin: center; animation: spin .45s linear 6; }
.trip-card .head { padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .anim *, .tl-camper, .tl-camper * { animation: none !important; }
  .anim .drive { transform: translateX(170px); }
}

/* Anmeldung: passt auf eine Bildschirmhöhe, kein heller Rand unten */
body.on-login { background: var(--brand); }
body.on-login #app { padding-bottom: 0; max-width: none; }
.login > * { width: 100%; max-width: 512px; margin-left: auto; margin-right: auto; }
.login .form { gap: 12px; }
.login .err { min-height: 0; }
.login .err:empty { display: none; }

/* Zahnrad für Einstellungen */
.sync-link { display: inline-flex; align-items: center; gap: 2px; min-width: 44px; height: 44px; justify-content: flex-end; text-decoration: none; color: var(--brand-ink); border-radius: 12px; padding: 0 6px; }
.sync-link .gear { display: inline-flex; width: 24px; height: 24px; }
.sync-link .gear svg { width: 24px; height: 24px; }
.sync-link [data-sync]:empty { display: none; }
.sync-link .sync { height: auto; padding: 0 4px 0 0; }
.brandbar .sync-link { color: #fff; }
.sync-link:hover { background: rgba(0,0,0,.04); }
.brandbar .sync-link:hover { background: rgba(255,255,255,.1); }
.login .btn { margin-top: 14px; }
