/* Parking Operations – angelehnt an das Design der Fantissima-Webseite:
   tiefschwarzer Hintergrund, weiße Versal-Headlines mit Sperrung, stahlblauer Trennbalken (#7894ad),
   Pill-Buttons (weiß gefüllt / weiß umrandet), elegante Serifen für Zahlen und Zwischenüberschriften. */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(/fonts/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(/fonts/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(/fonts/roboto-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0d0d0f;
  --surface2: #16171c;
  --navy: #1e2238;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .35);
  --text: #fff;
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .42);
  --accent: #7894ad;                 /* Fantissima: secondary / Trennbalken */
  --warn: #e9c46a;
  --full: #eb6263;
  /* Auslastungsstufen */
  --lv-ok: #3fbf6a;
  --lv-mid: #e9c46a;
  --lv-high: #f08c3a;
  --lv-full: #eb6263;
  --head: "Avenir Next", Avenir, "Futura PT", Montserrat, Roboto, system-ui, -apple-system, sans-serif;
  --body: "Avenir Next", Avenir, Roboto, system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Didot, "Bodoni 72", "Bodoni MT", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent }
html { background: var(--bg) }
body {
  font-family: var(--body); color: var(--text); background: var(--bg);
  min-height: 100dvh; -webkit-font-smoothing: antialiased; font-weight: 400; letter-spacing: .3px;
}
button, input, select { font: inherit; color: inherit }
button { cursor: pointer; border: none; background: none; touch-action: manipulation }
a { color: inherit }
[hidden] { display: none !important }

/* Kopfzeile wie phantasialand.de: Logo mittig, kleine Versal-Links links/rechts */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(env(safe-area-inset-top) + 10px) 18px 10px; background: linear-gradient(#000 70%, #0000) }
.topbar .logo { height: 46px; width: auto; display: block; filter: invert(1) }
.topbar .side { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; justify-self: start; padding: 6px }
.topbar .side.right { justify-self: end }
.topbar .side svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.5 }

main { max-width: 760px; margin: 0 auto; padding: 0 22px calc(env(safe-area-inset-bottom) + 32px) }

/* Typografie */
.h-xl, .h-l, .h-m { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; text-align: center; line-height: 1.15 }
.h-xl { font-size: clamp(30px, 8.6vw, 56px) }
.h-l  { font-size: clamp(19px, 5.4vw, 30px); margin-top: 14px }
.h-m  { font-size: 15px; letter-spacing: 2px }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0 }
.h-serif { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7.6vw, 40px); text-align: center; line-height: 1.15 }
.lead { font-size: 17px; line-height: 1.6; text-align: center; color: var(--text); font-weight: 400 }
.lead b { font-weight: 700 }
.label { font-family: var(--head); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted) }
.muted { color: var(--muted) }
.divider { width: 64px; height: 5px; background: var(--accent); margin: 26px auto; border: 0 }

/* Buttons wie „Get tickets“ / „Discover artists“ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 15px 26px;
  border-radius: 40px; font-family: var(--head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  text-decoration: none; transition: transform .08s, background .15s, color .15s, opacity .15s; user-select: none; -webkit-user-select: none }
.btn:active { transform: scale(.97) }
.btn.primary { background: #fff; color: #000 }
.btn.outline { border: 1px solid #fff; color: #fff }
.btn.ghost { color: var(--muted); padding: 10px 14px; min-height: 0 }
.btn.danger { border: 1px solid var(--full); color: var(--full) }
.btn.small { min-height: 34px; padding: 8px 14px; font-size: 11px }
.btn:disabled { opacity: .35; pointer-events: none }
.btn.block { width: 100% }

/* Chips (Zeitraum, Ansicht, Legende) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 14px; border-radius: 40px;
  border: 1px solid var(--line-strong); font-family: var(--head); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: #fff }
@media (max-width: 430px) { .chips { gap: 6px } .chip { padding: 7px 11px; letter-spacing: 1.1px } }
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff }
.chip .sw { width: 14px; height: 3px; border-radius: 2px; flex: none }
.chip.off { opacity: .4 }
.chip.off .sw { background: var(--faint) !important }
.chip .val { font-weight: 400; color: var(--muted) }
.chip[aria-pressed="true"] .val { color: #000a }

/* Formulare */
.field { width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line-strong);
  outline: none; font-size: 17px; font-family: var(--body) }
.field:focus { border-color: #fff }
select.field { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat }
.pin { text-align: center; font-size: 28px; letter-spacing: 14px; padding-left: 32px; height: 66px }
.error { color: var(--full); text-align: center; min-height: 20px; font-size: 14px }

/* Belegungsbalken */
.bar { height: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; border-radius: 1px }
.bar > i { display: block; height: 100%; background: var(--lv-ok); width: 0; transition: width .5s ease, background-color .4s }
.bar.ok > i { background: var(--lv-ok) }
.bar.mid > i { background: var(--lv-mid) }
.bar.high > i { background: var(--lv-high) }
.bar.full > i { background: var(--lv-full) }
.bar.closed > i { background: var(--faint) }

.badge { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; border: 1px solid currentColor }
.badge.ok { color: var(--lv-ok) } .badge.mid { color: var(--lv-mid) } .badge.high { color: var(--lv-high) } .badge.full { color: var(--lv-full) }
.badge.closed { color: var(--faint) }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor }

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted) }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #0aac23; box-shadow: 0 0 0 0 #0aac2399; animation: pulse 2s infinite }
.live.off::before { background: var(--full); animation: none }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #0aac2399 } 70% { box-shadow: 0 0 0 8px #0aac2300 } 100% { box-shadow: 0 0 0 0 #0aac2300 } }

/* Graph */
.chart { position: relative; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none }
.chart svg { display: block; width: 100%; overflow: visible }
.chart .grid { stroke: rgba(255, 255, 255, .1); stroke-width: 1 }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--body) }
.chart .tip { position: absolute; top: 0; pointer-events: none; background: rgba(13, 13, 15, .94); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 10px 12px; font-size: 12px; min-width: 150px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 2 }
.chart .tip .t { font-family: var(--head); font-weight: 700; letter-spacing: 1.2px; margin-bottom: 6px }
.chart .tip .r { display: flex; align-items: center; gap: 8px; line-height: 1.7 }
.chart .tip .r i { width: 10px; height: 3px; border-radius: 2px; flex: none }
.chart .tip .r span { flex: 1; color: var(--muted) }
.chart .tip .r b { font-weight: 600 }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; letter-spacing: 1px }

dialog { margin: auto; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--text);
  padding: 26px 22px 20px; width: min(420px, calc(100vw - 32px)) }
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px) }
dialog h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 10px }
dialog p { color: var(--muted); line-height: 1.5 }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18px); transform: translateX(-50%) translateY(20px);
  background: #fff; color: #000; padding: 11px 20px; border-radius: 40px; font-size: 13px; font-weight: 600; letter-spacing: .5px;
  opacity: 0; transition: .25s; z-index: 60; pointer-events: none; max-width: calc(100vw - 32px); text-align: center }
.toast.show { opacity: 1; transform: translateX(-50%) }
.toast.err { background: var(--full); color: #fff }

.footer { text-align: center; padding: 40px 0 10px; font-family: var(--head); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted) }
.footer a { text-decoration: none; padding: 6px }
.footer .sep { margin: 0 6px; color: var(--faint) }
