:root {
  --paper: #efe6d6;
  --paper-2: #e7dcc7;
  --surface: #fbf6ec;
  --surface-2: #f4ecdd;
  --ink: #26331f;
  --ink-soft: #4a5340;
  --muted: #847a64;
  --line: #d8cbb2;
  --line-soft: #e4d9c4;
  --pine: #2c4231;
  --pine-2: #3a5841;
  --amber: #bd5e2b;
  --amber-2: #a44d20;
  --sun: #d99021;
  --good: #4d7a3e;
  --warn: #c08a1e;
  --bad: #b1452c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(40, 32, 16, .06), 0 8px 24px -12px rgba(40, 32, 16, .28);
  --shadow-lg: 0 10px 40px -12px rgba(40, 32, 16, .4);
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Topographische Hintergrundtextur */
.topo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(140% 120% at 100% 0%, rgba(189,94,43,.07), transparent 45%),
    radial-gradient(120% 120% at 0% 100%, rgba(44,66,49,.10), transparent 50%),
    repeating-radial-gradient(circle at 22% 18%, transparent 0 26px, rgba(132,122,100,.08) 26px 27px);
}

/* App-Bar */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px;
  background: linear-gradient(var(--paper), rgba(239,230,214,.85));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; }
.mark { width: 30px; height: 30px; color: var(--pine); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: .14em; font-size: 1.02rem; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.spin svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Layout */
.screen-wrap { padding: 18px 16px calc(120px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; font-family: var(--display); font-style: italic; }
.screen { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.screen-title {
  font-family: var(--display); font-weight: 600; font-size: 1.85rem; line-height: 1.05;
  letter-spacing: -.01em; margin-bottom: 2px;
}
.screen-kicker { font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; color: var(--amber); font-weight: 600; }
.screen-head { margin-bottom: 18px; }

/* Karten */
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px;
}
.card.tap { cursor: pointer; transition: transform .12s, box-shadow .2s; }
.card.tap:active { transform: scale(.985); }

.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack { display: flex; flex-direction: column; gap: 4px; }

.item-title { font-weight: 600; font-size: 1.02rem; }
.item-sub { font-size: .82rem; color: var(--muted); }

/* Chips & Badges */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip.good { background: #e8f0e0; color: var(--good); border-color: #cfe0c0; }
.chip.warn { background: #f6ecd2; color: #97690f; border-color: #e8d4a3; }
.chip.bad  { background: #f6dcd3; color: var(--bad); border-color: #ecc3b6; }
.chip.pine { background: var(--pine); color: var(--surface); border-color: var(--pine); }
.chip.dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* Dashboard-Spezifika */
.hero {
  background: linear-gradient(150deg, var(--pine), var(--pine-2));
  color: var(--surface); border: none; position: relative; overflow: hidden;
}
.hero::after {
  content:""; position:absolute; right:-30px; top:-30px; width:150px; height:150px; border-radius:50%;
  background: radial-gradient(circle, rgba(217,144,33,.45), transparent 70%);
}
.hero .screen-kicker { color: var(--sun); }
.hero .big { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; margin-top: 4px; }
.hero .meta { opacity: .85; font-size: .85rem; margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); }
.stat .num { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.stat .lbl { font-size: .76rem; color: var(--muted); margin-top: 4px; }

.section-label {
  font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink);
  margin: 22px 2px 10px; display: flex; align-items: center; gap: 8px;
}
.section-label .count { font-style: normal; font-family: var(--body); font-size: .72rem; color: var(--muted);
  background: var(--surface-2); border:1px solid var(--line); padding: 1px 8px; border-radius: 999px; }

/* Erinnerungs-Zeile */
.reminder { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.reminder:last-child { border-bottom: none; }
.reminder .when { font-family: var(--display); font-weight: 600; font-size: .95rem; text-align: right; min-width: 76px; }
.dot-status { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-status.good { background: var(--good); } .dot-status.warn { background: var(--warn); } .dot-status.bad { background: var(--bad); }

/* Listenelemente */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 9px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .12s;
}
.list-item:active { transform: scale(.99); }
.leadicon { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); color: var(--pine);
  display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.leadicon svg { width: 20px; height: 20px; }
.leadicon.amber { color: var(--amber); background: #f7e9df; border-color: #ecd4c4; }
.leadicon.img { overflow: hidden; background: var(--surface-2); }
.leadicon.img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Checkliste */
.check-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); }
.check-row:last-child { border-bottom: none; }
.cbox { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; cursor: pointer; background: var(--surface); }
.cbox.on { background: var(--pine); border-color: var(--pine); }
.cbox svg { width: 15px; height: 15px; color: var(--surface); opacity: 0; }
.cbox.on svg { opacity: 1; }
.check-row.done .check-text { text-decoration: line-through; color: var(--muted); }
.check-text { flex: 1; }
.progress { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pine), var(--good)); border-radius: 999px; transition: width .3s; }

/* Buttons */
.btn {
  font-family: var(--body); font-weight: 600; font-size: .95rem; border: none; border-radius: 13px;
  padding: 13px 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--pine); color: var(--surface); }
.btn.amber { background: var(--amber); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #f6dcd3; color: var(--bad); border: 1px solid #ecc3b6; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 13px; font-size: .85rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* Empty State */
.empty { text-align: center; padding: 40px 18px; color: var(--muted); }
.empty .ill { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--line); }
.empty .ill svg { width: 100%; height: 100%; }
.empty h3 { font-family: var(--display); font-weight: 600; color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 4px; }

/* Segmented control */
.segmented { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 16px; }
.segmented button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: 9px; font-family: var(--body); font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Tab-Bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(251,246,236,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 8px 6px calc(8px + var(--safe-b));
}
.tab { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); padding: 4px 0; font-family: var(--body); }
.tab svg { width: 23px; height: 23px; }
.tab span { font-size: .66rem; font-weight: 600; letter-spacing: .01em; }
.tab.active { color: var(--pine); }
.tab.active svg { transform: translateY(-1px); }

/* FAB */
.fab {
  position: fixed; right: 18px; bottom: calc(78px + var(--safe-b)); z-index: 45;
  width: 56px; height: 56px; border-radius: 18px; border: none; cursor: pointer;
  background: var(--amber); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(189,94,43,.6);
}
.fab svg { width: 26px; height: 26px; }
.fab:active { transform: scale(.92); }
.fab.hidden { display: none; }

/* Sheet (Modal) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(38,30,16,.45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--surface); border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  padding: 8px 18px calc(26px + var(--safe-b)); max-width: 720px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.sheet.open { transform: translateY(0); }
.sheet .grip { width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 14px; }
.sheet-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft);
  font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 3;
}
.sheet-close:active { transform: scale(.92); }
.sheet h2 { padding-right: 44px; }
.sheet h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: 16px; letter-spacing: -.01em; }
.sheet .sub-h { font-family: var(--display); font-style: italic; font-size: 1.05rem; margin: 18px 0 8px; }

/* Formulare */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; max-width: 100%; min-width: 0; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px;
}
.field input[type="date"], .field input[type="number"] { -webkit-appearance: none; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); background: #fff; }
.field textarea { resize: vertical; min-height: 76px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid .field { margin-bottom: 0; min-width: 0; }
.hint { font-size: .74rem; color: var(--muted); margin-top: 5px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }

/* Detailansicht-Zeilen */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); font-size: .85rem; }
.kv .v { font-weight: 600; text-align: right; }

/* Stops in Reise */
.stop { display: flex; gap: 12px; padding: 4px 0; }
.stop .timeline { display: flex; flex-direction: column; align-items: center; }
.stop .node { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--pine); background: var(--surface); margin-top: 4px; }
.stop .line { flex: 1; width: 2px; background: var(--line); margin: 3px 0; }
.stop:last-child .line { display: none; }
.stop .body { flex: 1; padding-bottom: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 12px; font-size: .88rem; font-weight: 500;
  z-index: 60; opacity: 0; pointer-events: none; transition: all .3s; box-shadow: var(--shadow-lg); max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.del-link { color: var(--bad); font-weight: 600; font-size: .85rem; background: none; border: none; cursor: pointer; padding: 6px; }

/* Bestätigungs-Dialog */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: rgba(38,30,16,.5); opacity: 0; pointer-events: none; transition: opacity .18s;
}
.confirm-overlay.open { opacity: 1; pointer-events: auto; }
.confirm-card {
  background: var(--surface); border-radius: 18px; padding: 22px 20px 18px; max-width: 360px; width: 100%;
  box-shadow: var(--shadow-lg); transform: scale(.96); transition: transform .18s;
}
.confirm-overlay.open .confirm-card { transform: scale(1); }
.confirm-msg { font-family: var(--display); font-size: 1.12rem; color: var(--ink); margin-bottom: 18px; line-height: 1.3; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; }

/* Bild-Vollansicht */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,16,8,.93);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; cursor: zoom-out;
}
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px;
  width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.18);
  color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.16);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-nav:active { transform: translateY(-50%) scale(.92); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(0,0,0,.45); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; z-index: 2;
}
.att-tile { cursor: pointer; }

/* Auswertung – Diagramme */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 168px; overflow-x: auto; padding-top: 6px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 44px; flex: 1; }
.bar-val { font-size: .66rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.bar { width: 60%; max-width: 34px; min-width: 16px; background: linear-gradient(var(--pine-2), var(--pine)); border-radius: 7px 7px 0 0; transition: height .4s cubic-bezier(.2,.7,.2,1); }
.bar-lbl { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.catbar { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.catbar:last-child { border-bottom: none; }
.catbar-head { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 5px; }
.catbar-head span:last-child { font-weight: 700; white-space: nowrap; }
.catbar-track { height: 9px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.catbar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--sun)); border-radius: 999px; transition: width .4s cubic-bezier(.2,.7,.2,1); }

/* Konto-Button */
.appbar-actions { display: flex; align-items: center; gap: 10px; }

.viewas-bar {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px;
  background: var(--amber); color: #fff; padding: 9px 16px calc(9px + env(safe-area-inset-top, 0px)); font-size: .85rem; font-weight: 600;
}
.viewas-bar[hidden] { display: none; }
.viewas-bar svg { width: 18px; height: 18px; flex: none; }
.viewas-bar button { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); color: #fff; font-family: var(--body); font-weight: 700; font-size: .78rem; padding: 6px 11px; border-radius: 9px; cursor: pointer; flex: none; }
.viewas-bar button:active { transform: scale(.95); }
.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--pine); color: var(--surface); font-family: var(--display); font-weight: 600;
  font-size: .9rem; cursor: pointer; display: grid; place-items: center; letter-spacing: .02em;
}
.avatar-btn:active { transform: scale(.94); }

/* Anmelde-Gate */
body.gated .tabbar, body.gated .fab, body.gated #syncBtn, body.gated #accountBtn { display: none; }
.gate { max-width: 400px; margin: 4vh auto 0; padding: 0 6px; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.gate-logo { text-align: center; margin-bottom: 22px; }
.gate-logo .mark { width: 48px; height: 48px; color: var(--pine); }
.gate-logo .name { font-family: var(--display); font-weight: 600; letter-spacing: .16em; font-size: 1.3rem; margin-top: 8px; }
.gate-logo .sub { color: var(--muted); font-size: .82rem; }
.gate .card { padding: 22px 20px; }
.gate h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-bottom: 4px; }
.gate .lead { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.auth-error { background: #f6dcd3; color: var(--bad); border: 1px solid #ecc3b6; border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin-bottom: 14px; }
.auth-ok { background: #e8f0e0; color: var(--good); border: 1px solid #cfe0c0; border-radius: 10px; padding: 12px 14px; font-size: .88rem; margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.auth-switch button { background: none; border: none; color: var(--pine); font-weight: 700; font-family: var(--body); font-size: .85rem; cursor: pointer; padding: 0 2px; }
.gate-hint { text-align: center; font-size: .74rem; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* Benutzerverwaltung */
.user-row { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.user-row .uhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.user-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--pine); display: grid; place-items: center; font-family: var(--display); font-weight: 600; flex: none; }
.user-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.user-actions .btn { flex: none; }
.chip.role-admin { background: var(--pine); color: var(--surface); border-color: var(--pine); }
.chip.st-pending { background: #f6ecd2; color: #97690f; border-color: #e8d4a3; }
.chip.st-active { background: #e8f0e0; color: var(--good); border-color: #cfe0c0; }
.chip.st-disabled { background: var(--surface-2); color: var(--muted); }
.admin-badge { position: absolute; top: 8px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #fff; font-size: .68rem; font-weight: 700; display: none; align-items: center; justify-content: center; }
.avatar-btn { position: relative; }

/* Anhänge */
.att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.att-list:empty { display: none; }
.att-chip { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 6px; max-width: 100%; }
.att-thumb { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; background: var(--paper-2); display: grid; place-items: center; color: var(--amber); }
.att-thumb svg { width: 18px; height: 18px; }
.att-name { font-size: .8rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-x { background: none; border: none; color: var(--bad); cursor: pointer; font-size: .95rem; padding: 2px 4px; flex: none; }
.att-hint { font-size: .74rem; color: var(--amber); margin-top: 2px; }

/* Anhänge-Anzeige (nur lesen) */
.att-view { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.att-tile { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--ink); }
.att-tile img { width: 72px; height: 72px; object-fit: cover; display: block; }
.att-tile.doc { width: 72px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--amber); padding: 6px; text-align: center; }
.att-tile.doc svg { width: 24px; height: 24px; }
.att-tile.doc span { font-size: .62rem; color: var(--ink-soft); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-mini { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: .78rem; }
.att-mini svg { width: 13px; height: 13px; }

/* Kalender (Startseite) */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.cal-head .icon-btn { font-size: 1.35rem; line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { margin-bottom: 4px; }
.cal-wdc { text-align: center; font-size: .66rem; font-weight: 700; color: var(--muted); padding: 2px 0; letter-spacing: .02em; min-width: 0; box-sizing: border-box; }
.cal-day { position: relative; width: 100%; aspect-ratio: 1 / 1; min-width: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: .86rem; border-radius: 9px; color: var(--ink); border: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.cal-day.empty { visibility: hidden; border-color: transparent; }
.cal-day.fer { background: #f6e7cf; border-color: #e6cfa0; }
.cal-day.hol { color: var(--bad); font-weight: 700; }
.cal-day.hol::after { content: ""; position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
.cal-day.today { outline: 2px solid var(--pine); outline-offset: -2px; font-weight: 700; }
.cal-day[data-day] { cursor: pointer; }
.cal-day[data-day]:active { background: var(--surface-2); }
.cal-dot { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--good); }
.cal-legend { display: flex; align-items: center; gap: 14px; margin-top: 13px; font-size: .72rem; color: var(--muted); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend .lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-legend .lg.hol { background: var(--bad); border-radius: 50%; }
.cal-legend .lg.fer { background: #f6e7cf; border: 1px solid #e6cfa0; }
.cal-legend .lg.trip { background: var(--good); border-radius: 50%; }
.cal-today { margin-left: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; font-family: var(--body); font-weight: 600; font-size: .72rem; color: var(--ink-soft); cursor: pointer; }

/* Hinweis im Reise-Formular */
.form-hint { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); margin: -2px 0 14px; padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.form-hint:empty { display: none; }
.form-hint strong { color: var(--ink); font-weight: 700; }

/* Beladung / Zuladung */
.load-bar { height: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.load-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pine-2), var(--pine)); border-radius: 999px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.load-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.load-row:last-child { border-bottom: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 14px; }
.chip-btn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-family: var(--body); font-size: .8rem; color: var(--ink-soft); cursor: pointer; }
.chip-btn:active { background: var(--pine); color: #fff; }

/* Überlade-Warnung (Startseite) */
.warn-banner { background: #fceaea; border: 1px solid #f0c5c5; color: var(--bad); font-size: .88rem; line-height: 1.4; padding: 13px 15px; }
.warn-banner strong { font-weight: 700; }

/* Checkliste ↔ Reise verknüpfen */
.field-sublabel { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 4px 0 8px; }
.chk-link { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.chk-opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; cursor: pointer; }
.chk-opt input { width: 18px; height: 18px; accent-color: var(--pine); flex: none; }

.catbar[data-tripjump] { cursor: pointer; }

/* Karten / Navigation */
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.nav-links .btn { flex: 1; min-width: 130px; text-decoration: none; }
.loc-row { display: flex; gap: 8px; align-items: stretch; }
.loc-row input { flex: 1; min-width: 0; }
.loc-row .btn { flex: none; white-space: nowrap; align-self: stretch; }

/* AGB-Checkbox auf der Registrierung */
.chk-opt.agb { align-items: flex-start; margin: 2px 0 14px; font-size: .8rem; line-height: 1.45; }
.chk-opt.agb input { margin-top: 2px; }

/* Suchfeld */
.search-wrap { position: relative; margin-bottom: 14px; }
.search-wrap .search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-wrap input { width: 100%; box-sizing: border-box; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-family: var(--body); font-size: .95rem; color: var(--ink); }
.search-wrap input:focus { outline: none; border-color: var(--pine); }

/* Stellplätze nach Land gruppiert */
.land-group { margin-bottom: 10px; }
.land-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); cursor: pointer; text-align: left; }
.land-head .land-name { display: flex; align-items: center; gap: 8px; }
.land-head .land-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.land-head .chev { width: 16px; height: 16px; transition: transform .2s ease; flex: none; }
.land-head.open .chev { transform: rotate(90deg); }
.land-body { padding-top: 8px; }
