﻿/* =========================================================================
   Taxi Live Tracking - Glassmorphism Dark Theme
   Single stylesheet, mobile-first, kein Framework, keine Praeprozessoren.
   Tokens via :root, Statusfarben als data-attribute.
   ========================================================================= */

/* ---------- 0. Reset & Basis --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg) fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
img, svg, video, canvas, audio, iframe, embed, object { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:root {
  /* Farbpalette - dunkles Theme */
  --bg-0: #07091a;
  --bg-1: #0b1020;
  --bg-2: #131938;
  --bg-3: #1c2350;
  --text:   #e7ecff;
  --text-2: #aab3d6;
  --text-3: #6f78a3;

  --accent:      #5b8cff;       /* Hauptakzent */
  --accent-soft: rgba(91,140,255,.18);
  --accent-2:    #8a6cff;

  /* Status */
  --free:    #2ee08a;
  --busy:    #ff5c6b;
  --break:   #ffc24b;
  --offline: #6b7390;

  /* Glass */
  --glass-bg:     rgba(255,255,255,.06);
  --glass-bg-2:   rgba(255,255,255,.10);
  --glass-border: rgba(255,255,255,.12);
  --glass-blur:   16px;
  --glass-radius: 16px;
  --glass-shadow: 0 10px 30px rgba(0,0,0,.45);

  /* Spacing & Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
}

/* ---------- 1. Layout-Hintergrund --------------------------------- */
body {
  background:
    radial-gradient(1200px 600px at 8% -10%,  rgba(91,140,255,.25), transparent 60%),
    radial-gradient(1000px 500px at 110% 0%, rgba(138,108,255,.18), transparent 55%),
    radial-gradient(900px  500px at 50% 110%, rgba(46,224,138,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
  background-attachment: fixed;
}

/* ---------- 2. Glass-Helfer --------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--glass-shadow);
}

/* ---------- 3. Utilities ------------------------------------------ */
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- 4. Statusfarben --------------------------------------- */
:root {
  --status-free:    #2ee08a;
  --status-busy:    #ff5c6b;
  --status-break:   #ffc24b;
  --status-offline: #6b7390;
}
.status-dot, .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--status-offline);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  flex-shrink: 0;
}
.status-dot[data-status="free"],    .dot-free    { background: var(--status-free);    box-shadow: 0 0 0 3px rgba(46,224,138,.18); }
.status-dot[data-status="busy"],    .dot-busy    { background: var(--status-busy);    box-shadow: 0 0 0 3px rgba(255,92,107,.18); }
.status-dot[data-status="break"],   .dot-break   { background: var(--status-break);   box-shadow: 0 0 0 3px rgba(255,194,75,.18); }
.status-dot[data-status="offline"], .dot-offline { background: var(--status-offline); }

.status-dot {
  width: 12px; height: 12px;
  position: relative;
}
.status-dot[data-status="free"]::after,
.status-dot[data-status="busy"]::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid currentColor;
  animation: pulse 1.6s ease-out infinite;
  color: var(--status-free);
}
.status-dot[data-status="busy"]::after { color: var(--status-busy); }

@keyframes pulse {
  0%   { transform: scale(.7); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot[data-status="free"]::after,
  .status-dot[data-status="busy"]::after { animation: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
}
.badge[data-status="free"]    { color: var(--status-free);    background: rgba(46,224,138,.12); border-color: rgba(46,224,138,.35); }
.badge[data-status="busy"]    { color: var(--status-busy);    background: rgba(255,92,107,.12); border-color: rgba(255,92,107,.35); }
.badge[data-status="break"]   { color: var(--status-break);   background: rgba(255,194,75,.12); border-color: rgba(255,194,75,.35); }
.badge[data-status="offline"] { color: var(--text-2);        background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
.badge[data-status="new"]       { color: #7fb0ff; background: rgba(91,140,255,.14); border-color: rgba(91,140,255,.38); }
.badge[data-status="assigned"],
.badge[data-status="confirmed"] { color: var(--status-break); background: rgba(255,194,75,.12); border-color: rgba(255,194,75,.35); }
.badge[data-status="picked_up"],
.badge[data-status="on_route"]  { color: var(--status-busy); background: rgba(255,92,107,.12); border-color: rgba(255,92,107,.35); }
.badge[data-status="completed"] { color: var(--status-free); background: rgba(46,224,138,.12); border-color: rgba(46,224,138,.35); }
.badge[data-status="cancelled"] { color: var(--text-2); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }

/* ---------- 5. Login-Seite ---------------------------------------- */
.page-login { display: flex; align-items: center; justify-content: center; padding: var(--gap-5); min-height: 100dvh; }
.login-shell { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: var(--gap-4); }
.login-card { padding: 28px; }
.login-head { display: flex; align-items: center; gap: var(--gap-3); margin-bottom: var(--gap-4); }
.brand { display: flex; align-items: center; gap: var(--gap-3); }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; box-shadow: 0 6px 20px rgba(91,140,255,.4);
}
.login-card h1 { font-size: 18px; margin: 0 0 2px; }
.login-card .muted { font-size: 13px; margin: 0; }

.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.04); border-radius: 10px; margin-bottom: var(--gap-4); }
.tab {
  flex: 1; padding: 8px 12px; border: 0; background: transparent;
  color: var(--text-2); border-radius: 8px; font-weight: 600; font-size: 13px;
}
.tab.is-active { background: var(--accent-soft); color: var(--text); }

.field-group { display: flex; flex-direction: column; gap: var(--gap-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: .02em; }
.field input,
.order-form input,
.order-form select,
.order-form textarea,
.order-actions select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.field input::placeholder,
.order-form input::placeholder,
.order-form textarea::placeholder { color: var(--text-3); }
.field input:focus,
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus,
.order-actions select:focus { border-color: var(--accent); background: rgba(91,140,255,.08); outline: none; }
.order-form select,
.order-actions select { color-scheme: dark; }

.form-actions { margin-top: var(--gap-4); display: flex; gap: var(--gap-2); }
.btn-primary {
  position: relative;
  width: 100%;
  padding: 13px 18px;
  border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(91,140,255,.35);
  transition: transform .08s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .7; filter: saturate(.7); cursor: progress; }
.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: white; animation: spin .8s linear infinite; margin-left: 8px; }
.btn-primary.is-loading .btn-spinner { display: inline-block; }
.btn-primary.is-loading .btn-label   { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,.10); }

.form-error {
  margin: var(--gap-3) 0 0; color: var(--status-busy); font-size: 13px; min-height: 1em;
}
.form-hint { margin: var(--gap-3) 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.form-hint code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; font-size: 11.5px; }

.login-foot { text-align: center; color: var(--text-3); }

/* ---------- 6. App-Bar (sticky) ---------------------------------- */
.app-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-3);
  margin: 12px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
}
.app-bar-l, .app-bar-r { display: flex; align-items: center; gap: var(--gap-3); }
.app-bar-id { display: flex; flex-direction: column; line-height: 1.15; }
.app-bar-id strong { font-size: 14px; }
.app-bar-id small  { font-size: 11.5px; color: var(--text-2); }
.conn { color: var(--text-2); display: inline-flex; align-items: center; }
.conn[data-state="ok"]     { color: var(--status-free); }
.conn[data-state="warn"]   { color: var(--status-break); }
.conn[data-state="off"]    { color: var(--status-busy); }
.legend { display: none; gap: var(--gap-3); align-items: center; font-size: 12px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }

@media (min-width: 880px) {
  .legend { display: inline-flex; }
}

/* ---------- 7. Driver-App ----------------------------------------- */
.page-driver { display: flex; flex-direction: column; min-height: 100dvh; }
.driver-main { flex: 1; display: flex; flex-direction: column; gap: var(--gap-3); padding: 0 12px 96px; }

.map-wrap { position: relative; overflow: hidden; min-height: 360px; flex: 1; }
.map { position: absolute; inset: 0; background: var(--bg-2); }
.map-error {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.4); color: var(--text-2); padding: 20px; text-align: center;
}
.map-error[hidden] { display: none !important; }
.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--text-2);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    var(--bg-2);
  background-size: 36px 36px;
}

.status-panel { padding: 14px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: var(--text); font-size: 13px; font-weight: 600;
  transition: background .12s, border-color .12s, transform .08s;
}
.status-btn:hover { background: rgba(255,255,255,.08); }
.status-btn:active { transform: translateY(1px); }
.status-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,140,255,.10);
}
.status-btn .status-dot { width: 14px; height: 14px; }
#last-send { margin: 10px 2px 0; }

.ride-panel { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ride-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ride-tab {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text-2);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}
.ride-tab.is-active { color: var(--text); background: var(--accent-soft); border-color: var(--accent); }
.ride-list { display: flex; flex-direction: column; gap: 10px; max-height: 42dvh; overflow-y: auto; }
.ride-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 12px;
}
.ride-card header,
.order-item header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ride-card dl { display: grid; grid-template-columns: 74px 1fr; gap: 5px 10px; margin: 0; font-size: 13px; }
.ride-card dt { color: var(--text-2); }
.ride-card dd { margin: 0; word-break: break-word; }
.ride-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ride-actions .btn-primary,
.ride-actions .btn-ghost { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; }
.ride-actions .btn-primary { grid-column: 1 / -1; }

/* ---------- 8. Admin-Grid ---------------------------------------- */
.page-admin { display: flex; flex-direction: column; min-height: 100dvh; }
.admin-grid {
  flex: 1; display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 0 12px 12px;
  min-height: 0;
}
.admin-grid .map-wrap { min-height: 320px; }
.sidebar {
  display: flex; flex-direction: column;
  min-height: 280px;
  max-height: 50vh;
  overflow: hidden;
}

.dispatch-panel {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dispatch-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dispatch-widgets span {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dispatch-widgets strong { font-size: 18px; line-height: 1; }
.dispatch-widgets small { color: var(--text-2); font-size: 11px; }
.order-form { display: flex; flex-direction: column; gap: 8px; }
#order-search {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
}
#order-search::placeholder { color: var(--text-3); }
#order-search:focus { border-color: var(--accent); background: rgba(91,140,255,.08); outline: none; }
.import-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.file-picker {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text-2);
  font-size: 12px;
}
.file-picker input { width: 100%; font-size: 12px; color: var(--text-2); }
.import-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(91,140,255,.08);
  border: 1px solid rgba(91,140,255,.22);
  border-radius: 12px;
  padding: 10px;
}
.import-preview[hidden] { display: none !important; }
.import-preview header { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.import-preview header strong { font-size: 13px; }
.import-preview .btn-primary { width: auto; padding: 8px 10px; font-size: 12px; }
.import-table { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.import-table article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 8px;
}
.import-table article.is-incomplete { border-color: rgba(255,194,75,.45); }
.import-table strong { font-size: 13px; }
.import-table span,
.import-table small { color: var(--text-2); font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form-grid input:nth-child(3),
.form-grid input:nth-child(4) { grid-column: 1 / -1; }
.form-grid input[type="hidden"] { display: none; }
.form-grid input[name="start_address"],
.form-grid input[name="destination_address"] { grid-column: 1 / -1; }
.driver-order-form[hidden] { display: none !important; }
.order-form input,
.order-form select,
.order-form textarea,
.order-actions select { padding: 9px 10px; font-size: 13px; }
.order-form textarea { resize: vertical; min-height: 54px; }
.check-inline { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; }
.check-inline input { width: auto; accent-color: var(--accent); }
.order-list { display: flex; flex-direction: column; gap: 8px; max-height: 36dvh; overflow-y: auto; }
.order-list .empty,
.ride-list .empty { color: var(--text-3); padding: 14px; text-align: center; font-size: 13px; }
.order-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px;
}
.order-item p { margin: 0 0 5px; color: var(--text); font-size: 13px; word-break: break-word; }
.order-item small { display: block; color: var(--text-2); font-size: 11.5px; }
.order-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin: 9px 0 6px; }
.order-actions .btn-ghost { padding: 7px 9px; }

@media (min-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr 360px;
    grid-template-rows: 1fr;
  }
  .sidebar { max-height: calc(100dvh - 100px); }
}

@media (min-width: 1180px) {
  .admin-grid { grid-template-columns: 1fr 430px; }
}

.map-stats {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(7,9,26,.6);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 6px 10px; font-size: 12px; color: var(--text-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.map-stats [data-k="free"]    { color: var(--status-free); font-weight: 700; }
.map-stats [data-k="busy"]    { color: var(--status-busy); font-weight: 700; }
.map-stats [data-k="break"]   { color: var(--status-break); font-weight: 700; }
.map-stats [data-k="offline"] { color: var(--text-2); }

/* ---------- 9. Sidebar / Fahrerliste ----------------------------- */
.sidebar-head { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.sidebar-head input[type="search"] {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 9px 12px; border-radius: 10px; font-size: 14px;
}
.sidebar-head input[type="search"]:focus { border-color: var(--accent); outline: none; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text-2);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.chip.is-active { color: var(--text); background: var(--accent-soft); border-color: var(--accent); }

.driver-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.driver-list .empty { color: var(--text-3); padding: 16px; text-align: center; font-size: 13px; }
.driver-item {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 10px; border-radius: 10px; cursor: pointer; user-select: none;
  transition: background .12s;
}
.driver-item:hover { background: rgba(255,255,255,.06); }
.driver-item.is-active { background: var(--accent-soft); }
.driver-item .meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.driver-item .meta strong { font-size: 14px; }
.driver-item .meta small  { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.driver-item .when { font-size: 11px; color: var(--text-3); }

.sidebar-foot { padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.08); color: var(--text-3); text-align: right; }

/* ---------- 10. Driver-Popup (Admin) ----------------------------- */
.driver-popup {
  position: fixed; right: 16px; bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  z-index: 50;
  transform: translateY(0); opacity: 1;
  transition: transform .2s, opacity .2s;
}
.driver-popup[hidden] { display: none; }
.driver-popup h3 { margin: 0 0 8px; font-size: 16px; }
.popup-close {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: 0; color: var(--text-2); font-size: 22px; line-height: 1;
  width: 32px; height: 32px; border-radius: 8px;
}
.popup-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
.popup-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.popup-grid dt { color: var(--text-2); }
.popup-grid dd { margin: 0; word-break: break-word; }

@media (min-width: 980px) {
  .driver-popup { right: 392px; }
}

/* ---------- 11. Toast --------------------------------------------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 16px;
  padding: 10px 14px;
  background: rgba(7,9,26,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  animation: toastIn .2s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 12. Install-Checkliste -------------------------------- */
.check-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px;
}
.check.is-ok   { border-color: rgba(46,224,138,.35); background: rgba(46,224,138,.08); }
.check.is-fail { border-color: rgba(255,92,107,.35); background: rgba(255,92,107,.08); }
.check-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.10); flex-shrink: 0; }
.check.is-ok   .check-mark { background: rgba(46,224,138,.25); color: var(--status-free); }
.check.is-fail .check-mark { background: rgba(255,92,107,.25); color: var(--status-busy); }

/* ---------- 13. Google Maps Optik-Anpassungen --------------------- */
.gm-style-iw, .gm-style-iw-c, .gm-style-iw-d { background: rgba(15,18,40,.92) !important; color: var(--text) !important; border-radius: 12px !important; }
.gm-style-iw button.gm-ui-hover-effect { background: rgba(255,255,255,.08) !important; }
.gm-style-iw .gm-style-iw-t::after { background: linear-gradient(45deg, rgba(15,18,40,.92) 50%, transparent 50%) !important; }
.gmnoprint, .gm-svpc, .gm-fullscreen-control { filter: invert(1) hue-rotate(180deg) saturate(.6); }

/* ---------- 14. Vollbild-Toggle (Admin) -------------------------- */
:fullscreen .app-bar,
:-webkit-full-screen .app-bar { margin: 8px; }
:fullscreen .map-stats,
:-webkit-full-screen .map-stats { font-size: 14px; padding: 8px 12px; }

/* ---------- 15. Sehr kleine Screens ------------------------------ */
@media (max-width: 360px) {
  .status-grid { grid-template-columns: 1fr 1fr 1fr; }
  .app-bar { padding: 8px 10px; margin: 8px; }
  .app-bar-r .btn-ghost { padding: 6px 8px; font-size: 12px; }
}

/* ---------- 16. Print --------------------------------------------- */
@media print {
  body { background: white; color: black; }
  .glass { background: white; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
  .app-bar, .sidebar, .map-wrap, .toast { display: none !important; }
}
