/* GET A VAN Buchungskalender. Tokens wie css/site.css und mieten/mappe.css, eigenständig hochladbar. */
@font-face { font-family: "Archivo"; src: url("archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --y: #ffd305; --y-soft: #fff4bf; --ink: #151513; --ink-2: #2a2924;
  --stone-50: #f7f5f0; --stone-100: #eeebe3; --stone-200: #e0dbcf; --stone-600: #5f5a50;
  --ok: #1d7a3e; --err: #b3261e; --wa: #25d366; --wa-ink: #062b13; --focus: #0b57d0;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif; --wide: 116%; --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone-50); color: var(--ink); font: 400 1rem/1.5 var(--font); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-stretch: var(--wide); font-weight: 820; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--stone-600); } .small { font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1em; border: 2px solid transparent; border-radius: 3px; background: none; font-weight: 700; cursor: pointer; text-decoration: none; transition: background-color .15s, box-shadow .15s, transform .12s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn--ink { background: var(--ink); color: #fff; } .btn--ink:hover { box-shadow: 4px 4px 0 var(--y); }
.btn--y { background: var(--y); color: var(--ink); }
.btn--line { border-color: var(--stone-200); background: #fff; } .btn--line:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--danger { color: var(--err); border-color: currentColor; background: #fff; }
.btn--block { width: 100%; }
.btn--icon { min-width: 44px; padding: 0; }
.ico { width: 20px; height: 20px; flex: none; }

/* Login */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.auth__card { width: min(100%, 400px); background: #fff; padding: 28px 22px; }
.auth__alt { margin: 14px 0 0; text-align: center; }
.linkbtn { border: 0; background: none; padding: 8px 4px; font: inherit; color: var(--ink, #151513); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth__logo { width: 140px; margin: 0 0 22px; }
.auth__bar { height: 8px; width: 60px; background: var(--y); transform: skewX(-20deg); margin: 0 0 16px; }

/* Formular */
.f { display: block; margin-bottom: 12px; min-width: 0; }
.f > span { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
.f > span em { font-style: normal; font-weight: 400; color: var(--stone-600); }
.f input, .f select, .f textarea { width: 100%; min-height: 46px; padding: 9px 11px; border: 2px solid var(--stone-200); border-radius: 2px; background: #fff; font-size: 1rem; }
.f input[type="color"] { padding: 3px; height: 46px; }
.f textarea { min-height: 70px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--y); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.row5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 6px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.msg { padding: 10px 12px; border: 2px solid var(--err); background: #fbeceb; color: var(--err); font-weight: 600; margin: 10px 0; }
.note { padding: 10px 12px; background: var(--y-soft); margin: 10px 0; font-size: .92rem; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 6px 12px; border: 2px solid var(--stone-200); background: #fff; border-radius: 2px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.seg button { transition: background-color .15s, border-color .15s, color .15s; }
.seg button[aria-pressed="true"] { border-color: var(--ok); background: var(--ok); color: #fff; }

/* Kopf und Navigation */
.top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; max-width: 1400px; margin: 0 auto; }
.top__logo { height: 28px; width: auto; background: #fff; padding: 3px 5px; border-radius: 2px; }
.top__t { font-weight: 800; font-stretch: var(--wide); font-size: .95rem; }
.top__sp { flex: 1; }
.tabs { display: none; gap: 4px; }
.tabs button { min-height: 40px; padding: 6px 14px; border: 0; background: none; color: #d9d6cc; font-weight: 700; cursor: pointer; border-radius: 2px; }
.tabs button[aria-current="page"] { background: var(--y); color: var(--ink); }
.bnav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--stone-200); padding-bottom: env(safe-area-inset-bottom); }
.bnav button { display: grid; justify-items: center; gap: 2px; min-height: var(--nav-h); padding: 8px 4px; border: 0; background: none; font-size: .75rem; font-weight: 700; color: var(--stone-600); cursor: pointer; }
.bnav button[aria-current="page"] { color: var(--ink); }
.bnav button[aria-current="page"] .ico { background: var(--y); outline: 6px solid var(--y); border-radius: 2px; }
@media (min-width: 900px) { .tabs { display: flex; } .bnav { display: none; } }

main { max-width: 1400px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 90px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { main { padding: 22px 24px 60px; } }
.fabs { position: fixed; z-index: 31; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.fabs .btn { min-height: 56px; padding: 0 18px; box-shadow: 0 6px 20px rgba(21,21,19,.25); }
@media (min-width: 900px) { .fabs { bottom: 24px; right: 24px; } }

/* Standortfilter und Kalender-Werkzeugleiste */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 12px; scrollbar-width: none; }
.chips button { flex: none; min-height: 38px; padding: 5px 14px; border: 2px solid var(--stone-200); background: #fff; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.bar__t { font-weight: 820; font-stretch: var(--wide); font-size: 1.1rem; min-width: 0; flex: 1; }
@media (max-width: 600px) { .bar__t { order: -1; flex-basis: 100%; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: .85rem; font-weight: 600; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* Wochen-Zeitleiste: Zeilen = Fahrzeuge, Spalten = Tage */
.tl { overflow-x: auto; background: #fff; border: 1px solid var(--stone-200); -webkit-overflow-scrolling: touch; }
.tl__grid { display: grid; grid-template-columns: 132px repeat(7, minmax(90px, 1fr)); min-width: 760px; }
.tl__h { position: sticky; top: 0; padding: 8px 6px; border-bottom: 1px solid var(--stone-200); font-size: .8rem; font-weight: 700; text-align: center; background: var(--stone-50); }
.tl__h.is-today { background: var(--y); }
.tl__h b { display: block; font-size: 1.05rem; font-stretch: var(--wide); }
.tl__v { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--stone-100); background: #fff; font-weight: 700; font-size: .85rem; line-height: 1.2; }
.tl__v small { display: block; font-weight: 400; color: var(--stone-600); }
.tl__row { position: relative; grid-column: 2 / -1; min-height: 62px; border-bottom: 1px solid var(--stone-100); background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--stone-100) calc(100% / 7 - 1px) calc(100% / 7)); cursor: copy; }
.tl__loc { grid-column: 1 / -1; padding: 6px 8px; background: var(--stone-100); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; position: sticky; left: 0; }
.bk { position: absolute; top: 7px; bottom: 7px; min-width: 22px; padding: 4px 7px; border-radius: 3px; overflow: hidden; font-size: .75rem; line-height: 1.2; font-weight: 700; cursor: pointer; border: 0; text-align: left; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.bk span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bk.is-unpaid::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); box-shadow: 0 0 0 2px #fff; }
.now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err); z-index: 1; pointer-events: none; }

/* Monat */
.mo { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--stone-200); }
.mo__h { padding: 6px; font-size: .75rem; font-weight: 800; text-align: center; background: var(--stone-50); border-bottom: 1px solid var(--stone-200); }
.mo__d { min-height: 92px; padding: 4px; border-right: 1px solid var(--stone-100); border-bottom: 1px solid var(--stone-100); cursor: pointer; min-width: 0; background: #fff; text-align: left; border-top: 0; border-left: 0; display: block; font: inherit; }
.mo__d.is-out { background: var(--stone-50); color: var(--stone-600); }
.mo__d.is-today .mo__n { background: var(--y); }
.mo__n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; font-weight: 800; font-size: .85rem; border-radius: 2px; }
.mo__b { display: block; margin-top: 3px; padding: 2px 4px; border-radius: 2px; font-size: .68rem; line-height: 1.25; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo__more { font-size: .7rem; font-weight: 700; color: var(--stone-600); }
@media (max-width: 600px) { .mo__d { min-height: 64px; } .mo__b { font-size: 0; height: 6px; padding: 0; } .mo__more { font-size: .65rem; } }

/* Liste */
.day { margin-bottom: 16px; }
.day__h { font-weight: 800; font-stretch: var(--wide); margin: 0 0 6px; }
.item { display: flex; gap: 12px; align-items: stretch; width: 100%; padding: 0; margin-bottom: 6px; background: #fff; border: 1px solid var(--stone-200); text-align: left; cursor: pointer; font: inherit; }
.item__c { width: 8px; flex: none; }
.item__b { flex: 1; padding: 10px 12px 10px 0; min-width: 0; }
.item__t { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.item__s { font-size: .88rem; color: var(--stone-600); }
.tag { display: inline-block; padding: 1px 7px; font-size: .72rem; font-weight: 800; border-radius: 2px; background: var(--stone-100); margin-left: 4px; }
.tag--err { background: #fbeceb; color: var(--err); } .tag--ok { background: #e6f3ea; color: var(--ok); }
.empty { padding: 30px 16px; text-align: center; color: var(--stone-600); background: #fff; border: 1px dashed var(--stone-200); }

/* Übersicht */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--stone-200); padding: 14px; min-width: 0; }
.kpi__k { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-600); }
.kpi__v { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 850; font-stretch: var(--wide); font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; overflow-wrap: anywhere; }
.kpi__s { font-size: .82rem; color: var(--stone-600); margin-top: 2px; }
.kpi--y { background: var(--y); border-color: var(--y); } .kpi--y .kpi__k, .kpi--y .kpi__s { color: var(--ink-2); }
.kpi--ink { background: var(--ink); border-color: var(--ink); color: #fff; } .kpi--ink .kpi__k, .kpi--ink .kpi__s { color: #cfccc2; }
.card { background: #fff; border: 1px solid var(--stone-200); padding: 16px; margin-bottom: 16px; min-width: 0; }
.grid2 { display: grid; gap: 0 16px; } @media (min-width: 1000px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 10px; }
.chart__c { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; min-width: 0; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.chart__bar { align-self: end; position: relative; background: var(--stone-200); border-radius: 2px 2px 0 0; min-height: 2px; }
.chart__bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); border-radius: 2px 2px 0 0; }
.chart__c.is-sel .chart__bar { background: #f3dd73; } .chart__c.is-sel .chart__bar i { background: var(--ink); }
.chart__l { font-size: .7rem; font-weight: 700; text-align: center; color: var(--stone-600); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 6px; white-space: nowrap; border-bottom: 1px solid var(--stone-100); text-align: right; font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; }
.tbl th { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--stone-600); }
.tbl tfoot td { font-weight: 800; border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.hide-sm { } @media (max-width: 600px) { .hide-sm { display: none; } .tbl th, .tbl td { padding: 9px 4px; } .tbl th { letter-spacing: 0; } }

/* Verwaltung */
.alist { display: grid; gap: 6px; margin-bottom: 12px; }
.arow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--stone-50); border: 1px solid var(--stone-200); cursor: pointer; text-align: left; font: inherit; width: 100%; }
.arow b { flex: 1; min-width: 0; }
.arow.is-off { opacity: .55; }

/* Dialog */
dialog.sheet { width: min(100%, 560px); max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 10px 10px 0 0; background: #fff; color: var(--ink); overflow: hidden; }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 4px; } }
dialog.sheet::backdrop { background: rgba(21,21,19,.55); }
.sheet__h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--stone-200); }
.sheet__h h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.sheet__b { padding: 16px; overflow-y: auto; max-height: calc(92dvh - 130px); }
.sheet__f { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--stone-200); background: var(--stone-50); }
.sheet__f .btn--ink { flex: 1; }
.quote { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px; background: var(--stone-50); border: 1px solid var(--stone-200); margin: 4px 0 12px; }
.quote strong { font-size: 1.4rem; font-weight: 850; font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.quote.is-conflict { border-color: var(--err); background: #fbeceb; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--nav-h) + 86px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; border-radius: 3px; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Absagen: gestrichelt, damit sie sich klar von Buchungen unterscheiden */
.tl__v--abs { color: var(--err); font-size: .8rem; background: #fdf6f5; }
.tl__row--abs { background-color: #fdf6f5; cursor: default; }
.bk--abs { background: repeating-linear-gradient(-45deg, #fff 0 6px, #fbeceb 6px 12px) !important; box-shadow: inset 0 0 0 2px var(--err); color: var(--err); }
.mo__abs { display: block; margin-top: 3px; font-size: .68rem; font-weight: 800; color: var(--err); }
.item--abs { border-style: dashed; border-color: var(--err); }
.item--abs .item__c { background: repeating-linear-gradient(-45deg, var(--err) 0 4px, #fff 4px 8px); }
/* Balken für Verteilungen */
.hbar { display: grid; grid-template-columns: minmax(0, 9em) 1fr 3em; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .88rem; }
.hbar__l { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__t { height: 14px; background: var(--stone-100); border-radius: 2px; overflow: hidden; }
.hbar__t i { display: block; height: 100%; background: var(--ink); }
.hbar__v { text-align: right; font-weight: 700; }
@media (max-width: 600px) { .mo__abs { font-size: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--err) 0 3px, #fff 3px 6px); } }
.sheet .kpi { padding: 10px; } .sheet .kpi__k { font-size: .66rem; letter-spacing: .02em; }
/* Lohnt sich ein weiteres Fahrzeug? */
.cap__t td { white-space: normal; padding: 8px 4px; }
.cap__t td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
/* Erfolg: Million-Zähler, animierte Grafiken, Meilenstein-Feier */
.mio { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.mio::after { content: ""; position: absolute; right: -30px; top: 18px; width: 150px; height: 18px; background: var(--y); transform: skewX(-20deg); opacity: .9; }
.mio .kpi__k { color: #cfccc2; }
.mio__v { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); font-weight: 870; font-stretch: var(--wide); line-height: 1.05; margin: 6px 0 14px; }
.mio__bar { height: 16px; background: #34332d; border-radius: 2px; overflow: hidden; }
.mio__bar i { display: block; height: 100%; width: 0; background: var(--y); transition: width 1.6s var(--ease); }
.mio__l { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: #cfccc2; margin: 6px 0 12px; }
.mio__n { font-size: 1.05rem; margin: 0 0 6px; } .mio__n b { color: var(--y); font-size: 1.4rem; font-stretch: var(--wide); }
.mio .muted { color: #cfccc2; } .mio b { color: #fff; }
.fact { padding: 0 0 10px; margin: 0 0 10px; border-bottom: 1px solid var(--stone-100); }
.spruch { margin: 0; padding: 12px; background: var(--y-soft); font-weight: 600; }
.lcharts { display: grid; gap: 18px; } @media (min-width: 1000px) { .lcharts { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }
.lchart__h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: .92rem; }
.lchart__c { height: 150px; }
.chart__bar.grow { height: 0; transition: height .9s var(--ease); }
.chart__bar em { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); font-style: normal; font-size: .62rem; font-weight: 800; white-space: nowrap; padding-bottom: 2px; color: var(--stone-600); }
.chart__c.is-sel .chart__bar { box-shadow: 0 0 0 2px var(--ink); }
.party { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(21,21,19,.6); overflow: hidden; }
.party__card { position: relative; z-index: 2; width: min(100%, 380px); background: #fff; padding: 26px 22px 20px; text-align: center; animation: pop .5s var(--ease); }
.party__badge { display: inline-block; padding: 4px 12px; background: var(--y); font-weight: 850; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; transform: skewX(-12deg); }
.party__t { font-size: 2rem; font-weight: 870; font-stretch: var(--wide); margin: 12px 0 6px; line-height: 1.1; }
.party p { font-size: 1.05rem; margin: 0 0 18px; }
.confetti { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 1px; animation: fall linear forwards; z-index: 1; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.party__sep { border: 0; border-top: 1px solid var(--stone-200); margin: 4px 0 16px; }
/* Partner-Profile in der Verwaltung */
.plist { display: grid; gap: 8px; } @media (min-width: 900px) { .plist { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.pcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; background: #fff; border: 2px solid var(--stone-200); text-align: left; cursor: pointer; font: inherit; transition: border-color .12s, box-shadow .12s; }
.pcard:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--y); }
.pcard.is-off { opacity: .55; }
.pcard__av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--ink); color: var(--y); font-weight: 870; font-size: 1.2rem; transform: skewX(-8deg); }
.pcard__av--lg { width: 58px; height: 58px; font-size: 1.6rem; }
.pcard__b { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pcard__v { display: flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 700; margin-top: 3px; }
.pcard__v .dot { margin-right: 2px; }
.pcard__u { text-align: right; font-weight: 850; font-stretch: var(--wide); white-space: nowrap; }
.pcard__u small { display: block; font-size: .7rem; font-weight: 600; color: var(--stone-600); font-stretch: 100%; }
.pprof { display: flex; gap: 14px; align-items: center; }

/* Mietmappe in der Buchung */
.mpbox { margin: 14px 0 6px; padding: 14px; border: 2px solid var(--ink); background: #fff; }
.mpbox h3 { margin: 0 0 8px; }
.mpsteps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.mpsteps li { display: flex; justify-content: space-between; gap: 10px; padding-left: 26px; position: relative; font-size: .92rem; }
.mpsteps li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border: 2px solid var(--stone-200); border-radius: 50%; }
.mpsteps li.is-done::before { background: var(--ok); border-color: var(--ok); }
.mpsteps li span { color: var(--stone-600); text-align: right; }
.mpbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Schlüsselbox-Code */
.keys { display: grid; gap: 6px; margin: 0 0 12px; } @media (min-width: 900px) { .keys { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.keyrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; background: var(--ink); color: #fff; border: 0; border-radius: 3px; text-align: left; cursor: pointer; font: inherit; }
.keyrow .ico { color: var(--y); }
.keyrow__t { flex: 1; min-width: 0; display: grid; } .keyrow__t .muted { color: #cfccc2; }
.keyrow__c { font-size: 1.35rem; font-weight: 870; letter-spacing: .1em; color: var(--y); white-space: nowrap; }
.keyrow.is-empty { background: var(--y-soft); color: var(--ink); } .keyrow.is-empty .ico, .keyrow.is-empty .keyrow__c { color: var(--ink); } .keyrow.is-empty .muted { color: var(--stone-600); }

/* Heute: Abholungen, Rückgaben, überfällig */
.today { border-left: 4px solid var(--y); }
.today__h { margin: 12px 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-600); }
.today__h:first-of-type { margin-top: 0; } .today__h.is-err { color: var(--err); }
.today__r { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--stone-100); }
.today__b { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.today__b > span { display: grid; min-width: 0; } .today__b .dot { margin-top: 6px; flex: none; }
.today__tags .tag { margin: 4px 4px 0 0; }
.btn--sm { min-height: 36px; padding: .35em .8em; font-size: .88rem; }

/* Fotos vorher/nachher und Nachzahlungen in der Mietmappe-Box */
.fv { margin: 10px 0; } .fv summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.fv__g { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: start; }
.fv__g > b { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-600); }
.fv__l { font-size: .85rem; font-weight: 700; padding-top: 4px; }
.fv__c { display: grid; gap: 4px; min-width: 0; } .fv__c img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--stone-100); }
.nzlist { list-style: none; margin: 8px 0; padding: 0; } .nzlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--stone-100); } .nzlist li > span:first-child { flex: 1; min-width: 0; }
.custnote { margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--y); background: var(--y-soft); font-size: .92rem; } .custnote.is-warn { border-color: var(--err); background: #fbeceb; }
.wrfind { display: flex; gap: 6px; margin-left: auto; } .wrfind input { width: 8.5em; min-height: 36px; padding: 4px 8px; border: 1px solid var(--stone-200); border-radius: 3px; font: inherit; text-transform: uppercase; }
@media (max-width: 560px) { .today__r { flex-wrap: wrap; } .today__r > .mpbtns { width: 100%; justify-content: flex-end; } }

/* Treueprogramm: Stempelkarte */
.treue { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--stone-200); background: #fff; font-size: .92rem; }
.treue > span:nth-child(2) { flex: 1; min-width: 12em; }
.treue.is-due { border-color: var(--ink); background: var(--y-soft); }
.treue__k { display: inline-flex; gap: 4px; }
.stamp { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--stone-200); display: inline-block; }
.stamp.is-on { background: var(--ink); border-color: var(--ink); }
.stamp.is-gift { border-color: var(--ink); border-style: dashed; } .stamp.is-gift.is-on { background: var(--y); border-style: solid; }

/* Partner: eigener Gewinn gross und freudig */
.gain { position: relative; overflow: hidden; margin: 0 0 18px; padding: 20px 18px 16px; background: var(--y); color: var(--ink); border-radius: 4px; }
.gain::after { content: ""; position: absolute; right: -30px; bottom: 16px; width: 140px; height: 18px; background: var(--ink); transform: skewX(-20deg); opacity: .9; }
.gain__k { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gain__v { font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 900; line-height: 1.05; margin: 4px 0 6px; letter-spacing: -.01em; }
.gain__s { font-weight: 700; max-width: 28em; }
.gain__y { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2px solid rgba(21,21,19,.2); }
.gain__y b { font-size: 1.35rem; font-weight: 900; }
.gain__spark { position: absolute; right: 16px; top: 12px; font-size: 1.6rem; animation: gainSpark 2.4s ease-in-out infinite; }
@keyframes gainSpark { 0%, 100% { transform: scale(.8) rotate(0); opacity: .5; } 50% { transform: scale(1.2) rotate(20deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gain__spark { animation: none; } }

/* Buchhaltung */
.hbar--chf { grid-template-columns: minmax(0, 11em) 1fr auto; }
.belegbtn { cursor: pointer; }
.belegprev { display: block; max-width: 220px; max-height: 260px; margin-top: 10px; border: 1px solid var(--stone-200); border-radius: 3px; }
.belegprev[hidden] { display: none; }
