/* epay E-Charging Parking – Farben & Typo gemäß epay Brand Guidelines */
:root {
  --blue: #0A00AF;        /* Deep Confidence */
  --trust: #0000FF;       /* Trust Blue */
  --orange: #FE5000;      /* Dynamic Capital */
  --green: #00FC93;       /* Growth Green */
  --gold: #FBA43A;        /* Golden Strategy */
  --ink: #232424;         /* Deep Authority */
  --muted: #5B5C66;
  --soft: #3A3B44;
  --line: #E3E3EE;
  --line-2: #ECECF3;
  --ground: #F4F4F9;
  --chip: #EDEDF5;
  --white: #FFFFFF;
  --danger: #B83A00;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  font-family: 'Outfit', 'Century Gothic', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
/* Muss stärker sein als display:grid/flex der Bausteine, sonst wirkt hidden nicht */
[hidden] { display: none !important; }
html { scroll-padding-top: calc(90px + env(safe-area-inset-top, 0px)); }
body { margin: 0; min-height: 100vh; background: var(--ground); padding-top: env(safe-area-inset-top, 0px); }
button { font: inherit; color: inherit; }
h1, h2 { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 10px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  height: 76px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-sep { width: 1px; height: 28px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-title { font-weight: 700; font-size: 16px; color: var(--blue); }
.brand-sub { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: var(--radius-s); }
.tab {
  text-decoration: none; padding: 9px 18px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--soft);
  display: flex; align-items: center; white-space: nowrap;
}
.tab .tab-count { margin-left: 8px; }
.tab.is-active { background: var(--white); color: var(--blue); font-weight: 600; box-shadow: 0 1px 2px rgba(10,0,175,.1); }
.tab-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--blue); color: var(--white); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.me { display: flex; align-items: center; gap: 12px; }
.me-name { font-size: 14px; color: var(--soft); }
.me-admin { font-size: 14px; color: var(--soft); text-decoration: none; }
.me-admin:hover { color: var(--blue); }
.avatar {
  width: 40px; height: 40px; border-radius: 20px; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}

/* ---------- Layout ---------- */
.layout {
  max-width: 1480px; margin: 0 auto; padding: 34px 48px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start;
}
.booking { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.intro h1 { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; color: var(--blue); }
.lede { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.legend { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 4px; }
.sw-free { background: var(--white); border: 1px solid #C8C8D6; }
.sw-taken { background: #2A22C2; }
.sw-mine { background: var(--orange); }

/* ---------- Tage ---------- */
.days { display: grid; grid-template-columns: repeat(var(--day-count, 10), minmax(0, 1fr)); gap: 10px; }
.day {
  height: 88px; border-radius: 16px; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.day:hover { border-color: #C8C8D6; }
.day-wd { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.day-d { font-weight: 700; font-size: 27px; line-height: 1.1; }
.day-free { font-size: 12px; font-weight: 500; color: var(--muted); }
.day.is-full .day-free { color: var(--danger); }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(10,0,175,.28); }
.day[aria-pressed="true"] .day-free { color: var(--green); }

/* ---------- Parkfläche ---------- */
.lot {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--blue) 0%, var(--trust) 100%); /* Integrity Flow */
  border-radius: var(--radius-l); padding: 26px 30px;
  display: flex; flex-direction: column; gap: 20px;
}
.energy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lot-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C9C6FF; }
.lot-date { font-size: 15px; font-weight: 500; color: var(--white); }
.spots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.spot {
  min-height: 340px; padding: 18px 16px 16px; text-align: left; cursor: pointer;
  border-radius: var(--radius-m); border: 3px solid transparent; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.spot:hover { transform: translateY(-2px); }
.spot-top { display: flex; justify-content: space-between; align-items: center; }
.spot-icon { width: 26px; height: 26px; color: var(--blue); }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #D9FFEE; color: #00613C; white-space: nowrap; }
.spot-id { display: flex; flex-direction: column; }
.spot-prefix { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.spot-num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.spot-type { align-self: flex-start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 7px; border: 1px solid #E6E6EF; color: var(--muted); }
.spot-units { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.unit {
  border-top: 1px solid #E6E6EF; padding-top: 10px;
  display: grid; grid-template-columns: 8px minmax(0, 1fr); grid-template-areas: "label label" "dot val";
  column-gap: 7px; row-gap: 3px; align-items: center;
}
.unit-label { grid-area: label; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.unit-short { display: none; }
.unit .dot { grid-area: dot; }
.unit-val { grid-area: val; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: #00C774; flex-shrink: 0; }
.dot.taken { background: #A9A9B8; }
.dot.mine { background: var(--orange); }
.dot.ended { background: #C8C8D6; }

.spot.is-half .pill { background: #FFE9CC; color: #7A4300; }
.spot.is-mine .pill { background: var(--orange); color: var(--ink); }
.spot.is-taken { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--white); }
.spot.is-taken .pill { background: rgba(255,255,255,.16); color: var(--white); }
.spot.is-taken .spot-icon { color: rgba(255,255,255,.7); }
.spot.is-taken .spot-num { color: var(--white); }
.spot.is-taken .spot-prefix, .spot.is-taken .unit-label, .spot.is-taken .spot-type { color: #D6D4FF; }
.spot.is-taken .spot-type, .spot.is-taken .unit { border-color: rgba(255,255,255,.22); }
.spot.is-taken .dot.taken, .spot.is-taken .dot.ended { background: rgba(255,255,255,.55); }
.spot[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 16px 36px rgba(4,0,80,.45); }

/* ---------- Parkplätze: Standortkacheln ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.place {
  min-height: 190px; padding: 22px 24px; text-align: left; cursor: pointer;
  border-radius: var(--radius-m); border: 3px solid transparent; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.place:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(4,0,80,.35); }
.place-head { display: flex; align-items: center; gap: 12px; }
.place-head .spot-icon { width: 26px; height: 26px; color: var(--blue); }
.place-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--blue); }
.place-sub { font-size: 13px; color: var(--muted); }
.place-free { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.place-free b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.place-free span { font-size: 14px; color: var(--muted); }
.place.is-full { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--white); }
.place.is-full .place-name, .place.is-full .place-free b { color: var(--white); }
.place.is-full .place-sub { color: #D6D4FF; }
.place.is-full .spot-icon { color: rgba(255,255,255,.7); }
.place.is-full .place-free b { font-size: 24px; }

/* ---------- Parkplätze: Ebenen ---------- */
.floors { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--white);
  font-size: 14px; font-weight: 500;
}
.chip:hover { background: rgba(255,255,255,.16); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--blue); border-color: var(--white); font-weight: 600; }
.chip-num { font-size: 12px; font-weight: 600; opacity: .75; }

/* ---------- Parkplätze: Kacheln ---------- */
.spots-park { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.spot-p { min-height: 150px; gap: 10px; }
.spot-p .spot-num { font-size: 42px; }
.spot-floor { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.spot-p.is-taken .spot-floor { color: #D6D4FF; }
.spot-p .spot-id { margin-top: auto; }
.tag-last {
  align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  background: #EDEBFF; color: var(--blue);
}
.spot-p.is-taken .tag-last { background: rgba(255,255,255,.18); color: var(--white); }

/* ---------- Parkplätze: Fußzeile der Fläche ---------- */
.lot-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lot-note { font-size: 13px; color: #C9C6FF; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--white);
  font-size: 14px; font-weight: 600;
}
.ghost:hover { background: rgba(255,255,255,.2); }
.lot-empty { margin: 0; padding: 26px 0; text-align: center; color: #D6D4FF; font-size: 15px; }

/* ---------- Seitenleiste ---------- */
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.sheet { display: flex; flex-direction: column; gap: 18px; }
.sheet-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet-head { display: flex; flex-direction: column; gap: 6px; }
.sheet-title { font-weight: 700; font-size: 30px; letter-spacing: -0.01em; color: var(--blue); }
.sheet-sub { font-size: 14px; color: var(--muted); }
.empty {
  border: 1px dashed #C8C8D6; border-radius: 16px; padding: 22px;
  display: flex; align-items: center; gap: 14px; color: var(--soft); font-size: 14px;
}
.empty svg { flex-shrink: 0; color: var(--blue); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  min-height: 64px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; text-align: left; display: flex; align-items: center; gap: 14px;
}
.opt:hover:not(:disabled) { border-color: #B8B6E8; }
.opt:disabled { background: var(--ground); cursor: not-allowed; }
.opt[aria-pressed="true"] { border: 2px solid var(--blue); background: #F1F0FF; }
.radio {
  width: 20px; height: 20px; border-radius: 10px; border: 2px solid var(--blue); background: var(--white);
  box-shadow: inset 0 0 0 3px var(--white); flex-shrink: 0;
}
.opt:disabled .radio { border-color: #C8C8D6; }
.opt[aria-pressed="true"] .radio { background: var(--blue); }
.opt-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.opt-label { font-size: 16px; font-weight: 600; }
.opt-time { font-size: 13px; color: var(--muted); }
.opt-note { font-size: 13px; font-weight: 500; color: #00613C; text-align: right; }
.opt:disabled .opt-note { color: var(--muted); }
.opt[aria-pressed="true"] .opt-note { color: var(--blue); }
.cta {
  height: 58px; border-radius: 16px; border: none; background: var(--orange); color: var(--white);
  font-size: 19px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cta:hover:not(:disabled) { background: #E54800; }
.cta:disabled { background: var(--chip); color: var(--muted); cursor: not-allowed; }
.cta.is-busy { opacity: .7; cursor: progress; }
.cta-secondary { background: var(--white); color: var(--danger); border: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.cta-secondary:hover:not(:disabled) { background: #FFF6F1; border-color: var(--danger); }

.mine { display: flex; flex-direction: column; gap: 6px; }
.mine-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.mine-head h2 { font-weight: 700; font-size: 20px; color: var(--blue); }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: var(--white); }
.mine-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.mine-date {
  width: 50px; height: 50px; border-radius: 13px; background: var(--blue); color: var(--white); flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mine-date small { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #C9C6FF; }
.mine-date b { font-size: 20px; line-height: 1; }
.mine-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.mine-text b { font-size: 16px; font-weight: 600; }
.mine-text span { font-size: 13px; color: var(--muted); }
.btn-cancel {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  color: var(--danger); font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-cancel:hover { border-color: var(--danger); }
/* Kalender herunterladen – neben „Cancel“, aber sichtbar zurückhaltender */
.btn-ics {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  color: var(--soft); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-ics:hover { border-color: var(--blue); color: var(--blue); }
.mine-empty { margin: 0; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.euronet { align-self: flex-end; margin-top: 10px; font-size: 12px; color: var(--muted); }
.euronet strong { color: var(--ink); }

/* ---------- Popup „Meine Buchungen“ ---------- */
body.has-modal { overflow: hidden; }
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0;
  border: 1px solid var(--line); border-radius: 24px; background: var(--white); color: var(--ink);
  box-shadow: 0 30px 70px rgba(4,0,80,.3);
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(10,0,60,.45); backdrop-filter: blur(2px); }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 26px 16px; border-bottom: 1px solid var(--line-2);
}
.modal-titles { display: flex; flex-direction: column; gap: 6px; }
.modal-head h2 { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; color: var(--blue); }
/* Fokus liegt beim Öffnen auf der Überschrift (Screenreader), aber ohne sichtbaren Rahmen */
.modal-head h2:focus, .modal-head h2:focus-visible { outline: none; }
.modal-close {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: #C8C8D6; background: var(--ground); }
.modal-note {
  margin: 14px 26px 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500;
  background: #E6FFF4; border: 1px solid #7CE8B8; color: #00482C;
}
.modal-note.is-error { background: #FFF0E8; border-color: #FFB28F; color: #7A2600; }
.modal-body { overflow-y: auto; padding: 6px 26px 26px; -webkit-overflow-scrolling: touch; }
.modal-sec + .modal-sec { margin-top: 22px; }
.modal-sec h3 {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 0;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.modal-num {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--chip); color: var(--soft);
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.modal-body .mine-row:first-of-type { border-top: none; }
.mine-row.is-past { opacity: .65; }
/* Kalender und Stornieren bilden einen Block – so wandern sie gemeinsam in
   eine eigene Zeile, sobald es neben dem Text zu eng wird. */
.mine-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
@media (max-width: 560px) {
  .mine-row { flex-wrap: wrap; gap: 8px 10px; }
  .mine-text { flex: 1 1 0; }
  /* Nur wo Kalender und Stornieren zusammen stehen; ein einzelnes „Cancelled“
     in der Historie braucht keine eigene Zeile. */
  .mine-actions.is-pair { width: 100%; justify-content: flex-end; }
  .mine-actions .btn-ics, .mine-actions .btn-cancel { height: 38px; font-size: 13px; }
}
.mine-row.is-past .mine-date { background: var(--chip); color: var(--soft); }
.mine-row.is-past .mine-date small { color: var(--muted); }
.mine-state { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mine-state.is-cancelled { color: var(--danger); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 50; top: calc(92px + env(safe-area-inset-top, 0px)); right: 48px; max-width: 420px;
  padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 500;
  background: #E6FFF4; border: 1px solid #7CE8B8; color: #00482C;
  box-shadow: 0 14px 34px rgba(10,0,175,.16);
}
.toast.is-error { background: #FFF0E8; border-color: #FFB28F; color: #7A2600; }

/* ---------- Skeleton beim ersten Laden ---------- */
.skeleton { background: rgba(255,255,255,.12); border-radius: var(--radius-m); min-height: 340px; }

/* ---------- Tablet ---------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 28px 28px 36px; }
  .topbar { padding: 0 28px; }
  .spots { gap: 10px; }
  .spot { padding: 14px 12px; }
  .spot-num { font-size: 44px; }
  .toast { right: 28px; }
}

/* ---------- Mobil: Liste + Bottom-Sheet ---------- */
@media (max-width: 980px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand-sep, .brand-text, .me-name, .me-admin { display: none; }
  .brand-logo { height: 26px; }
  .tabs { padding: 3px; }
  .tab { padding: 8px 10px; font-size: 13px; }
  .tab-long { display: none; }
  .avatar { width: 44px; height: 44px; border-radius: 22px; }

  .layout { display: flex; flex-direction: column; align-items: stretch; padding: 16px 12px calc(250px + env(safe-area-inset-bottom, 0px)); gap: 20px; }
  .booking { gap: 14px; }
  .intro { padding: 0 8px; }
  .lede, .legend { display: none; }
  .days {
    display: flex; overflow-x: auto; gap: 8px; margin: 0 -12px; padding: 0 20px 4px;
    scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .days::-webkit-scrollbar { display: none; }
  .day { flex: 0 0 58px; height: 72px; border-radius: 15px; scroll-snap-align: start; }
  .day-wd { font-size: 11px; }
  .day-d { font-size: 22px; }
  .day-free { font-size: 11px; }

  .lot { border-radius: 24px; padding: 12px; gap: 8px; }
  .lot-head { display: none; }
  .spots { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .spot {
    min-height: 64px; padding: 10px 14px; border-radius: 16px; gap: 4px 14px;
    display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "id type pill" "id units pill";
    align-items: center;
  }
  .spot:hover { transform: none; }
  .spot-top { display: contents; }
  .spot-icon { display: none; }
  .pill { grid-area: pill; font-size: 11px; padding: 4px 9px; }
  .spot-id { grid-area: id; }
  .spot-prefix { font-size: 10px; }
  .spot-num { font-size: 30px; }
  .spot-type { grid-area: type; border: none; padding: 0; }
  .spot-units { grid-area: units; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .unit { border: none; padding: 0; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; }
  .unit-label { display: none; }
  .unit-short { display: inline; }
  .unit-val { font-size: 13px; }

  .places { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .place { min-height: 0; padding: 14px 16px; border-radius: 16px; }
  .place:hover { transform: none; }
  .place-name { font-size: 18px; }
  .place-free { margin-top: 6px; }
  .place-free b { font-size: 28px; }
  .floors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .floors::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; height: 34px; }
  .spots-park { grid-template-columns: minmax(0, 1fr); }
  .spot-p {
    min-height: 0; padding: 9px 14px; display: grid; gap: 1px 10px;
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "id floor pill" "id tag pill";
    align-items: center;
  }
  .spot-p .spot-id { grid-area: id; margin: 0; flex-direction: row; align-items: baseline; gap: 4px; }
  .spot-p .spot-num { font-size: 24px; }
  .spot-p .spot-prefix { font-size: 11px; }
  .spot-floor { font-size: 11px; }
  .spot-floor { grid-area: floor; }
  .spot-p .tag-last { grid-area: tag; }
  .lot-foot { justify-content: space-between; gap: 8px; }
  .lot-note { order: 3; flex-basis: 100%; }

  .side { position: static; }
  .sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    border-radius: 28px 28px 0 0; border: none; padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(10,0,175,.14); gap: 14px;
  }
  .sheet::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #D4D4E2; }
  .sheet-eyebrow { display: none; }
  .sheet-head { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
  .sheet-title { font-size: 22px; }
  .sheet-sub { font-size: 13px; text-align: right; }
  .empty { border: none; padding: 0; }
  .empty svg { display: none; }
  .opts { flex-direction: row; gap: 8px; }
  .opt { flex: 1 1 0; min-height: 60px; padding: 8px 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .opt .radio, .opt-note { display: none; }
  .opt-label { font-size: 15px; }
  .opt-time { font-size: 12px; }
  .cta { height: 56px; }
  .hide-mobile { display: none; }
  .modal {
    width: 100%; max-width: none; max-height: none;
    margin: 0 auto auto; height: 100dvh; border: none; border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .modal-head { padding: 16px 16px 12px; }
  .modal-head h2 { font-size: 21px; }
  .modal-note { margin: 12px 16px 0; }
  .modal-body { padding: 4px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .skeleton { min-height: 64px; border-radius: 16px; }
  .toast { left: 12px; right: 12px; top: calc(72px + env(safe-area-inset-top, 0px)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Abmelden (Kopfzeile, Buchung und Backend) ---------- */
.me-logout { margin: 0; display: flex; }
.me-logout button {
  width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line); background: var(--white);
  color: var(--soft); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.me-logout button:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Als App installieren (Buchung und Login) ---------- */
.install-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--soft);
}
.install-strip img { border-radius: 8px; flex: none; }
.install-strip span { flex: 1; min-width: 0; line-height: 1.3; }
.install-strip b { color: var(--ink); }
.install-strip-go {
  height: 34px; padding: 0 14px; border: 0; border-radius: 17px;
  background: var(--blue); color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; flex: none;
}
.install-strip-x {
  width: 30px; height: 30px; border: 0; border-radius: 15px; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none;
}
/* Schmale Handys: nur das epay-Zeichen statt des ganzen Schriftzugs, sonst
   drückt die Kopfzeile (Tabs, Avatar, Abmelden) das Logo aus dem Bild */
@media (max-width: 430px) {
  .topbar .brand-logo { width: 26px; object-fit: cover; object-position: left center; }
}
.install-sheet {
  width: min(440px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 24px;
  color: var(--ink); background: var(--white); box-shadow: 0 24px 60px -24px rgba(10, 0, 175, .35);
}
.install-sheet::backdrop { background: rgba(35, 36, 36, .45); }
.install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.install-head img { border-radius: 12px; flex: none; }
.install-head h2 { font-size: 20px; color: var(--blue); }
.install-head p { margin: 2px 0 0; font-size: 14px; color: var(--soft); line-height: 1.4; }
.install-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.install-glyph { vertical-align: -3px; color: var(--trust); }
.install-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--ground); font-size: 13px; color: var(--soft); line-height: 1.4; }
.install-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.install-actions button { height: 42px; padding: 0 18px; border-radius: var(--radius-s); font-weight: 600; cursor: pointer; }
.install-later { border: 1px solid var(--line); background: var(--white); color: var(--soft); }
.install-done { border: 0; background: var(--blue); color: var(--white); }
@media (max-width: 980px) {
  /* Unten am Rand wie ein Blatt, gut mit dem Daumen erreichbar */
  .install-sheet { margin: auto auto calc(12px + env(safe-area-inset-bottom, 0px)); }
}
