/* =====================================================================
   Reload – Design «Petrol & Glas»
   Dunkles Petrol, halbtransparente Glas-Bubbles, Signal Lime als einziger Akzent.
   Alle Farben über die Variablen in :root.
   ===================================================================== */

:root {
  --petrol: #102D35;
  --petrol-2: #163C46;
  --petrol-mid: #0F2D36;
  --petrol-deep: #0A1E24;
  --teal: #2B6A6C;
  --teal-2: #3E8A86;
  --ice: #E8F7F5;
  --lime: #D9FA57;

  --text: var(--ice);
  --text-2: rgba(232, 247, 245, 0.75);   /* Sekundärtext */
  --text-3: rgba(232, 247, 245, 0.55);   /* Beschriftungen */
  --line: rgba(232, 247, 245, 0.16);
  --line-strong: rgba(232, 247, 245, 0.25);

  --glass-bg: linear-gradient(160deg, rgba(232, 247, 245, 0.12), rgba(232, 247, 245, 0.03) 45%), rgba(8, 28, 34, 0.5);
  --glass-border: 1px solid rgba(232, 247, 245, 0.16);
  --glass-shadow: 0 18px 44px rgba(3, 14, 18, 0.45), inset 0 1px 0 rgba(232, 247, 245, 0.22);
  --glass-shadow-hover: 0 26px 60px rgba(3, 14, 18, 0.6), inset 0 1px 0 rgba(232, 247, 245, 0.3);
  --glass-blur: blur(22px) saturate(140%);
  --inner-bg: rgba(232, 247, 245, 0.06);
  --inner-border: 1px solid rgba(232, 247, 245, 0.12);
  --pill-bg: rgba(232, 247, 245, 0.1);
  --pill-border: 1px solid rgba(232, 247, 245, 0.35);
  --lime-shadow: 0 8px 24px rgba(217, 250, 87, 0.28);

  --radius: 24px;
  --radius-inner: 16px;
  --header-h: 76px;
}

/* ---------- Grundlagen ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.6; color: var(--text);
  background: linear-gradient(180deg, var(--petrol-2) 0%, var(--petrol-mid) 45%, var(--petrol-deep) 100%);
  background-color: var(--petrol-deep);
  min-height: 100vh; position: relative; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--lime); }
::selection { background: var(--lime); color: var(--petrol); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
input[type=checkbox] { accent-color: var(--lime); width: 16px; height: 16px; }
.inline-link { color: var(--lime); font-weight: 600; cursor: pointer; }
.lime { color: var(--lime); }
.muted { color: var(--text-3); }
.small { font-size: 11px; }
.label-hint { color: var(--lime); font-size: 10px; font-weight: 600; }

/* ---------- Hintergrund-Ebenen (scrollen mit, nicht fixiert) ---------- */
.bg-hero {
  position: absolute; top: 0; left: 0; right: 0; height: 1000px; overflow: hidden;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.bg-hero .blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-hero .b1 { width: 720px; height: 720px; left: -160px; top: -120px; background: var(--teal); opacity: 0.75; }
.bg-hero .b2 { width: 520px; height: 520px; right: 6%; top: 60px; background: var(--lime); opacity: 0.22; }
.bg-hero .b3 { width: 640px; height: 640px; left: 34%; top: 300px; background: var(--petrol-deep); opacity: 0.9; }
.bg-hero .b4 { width: 560px; height: 560px; right: -180px; top: 380px; background: var(--teal-2); opacity: 0.5; }
.bg-hero .riffel {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(232, 247, 245, 0.06) 0 1px, transparent 1px 9px);
}
.bg-arc {
  position: absolute; left: 0; right: 0; bottom: 0; height: 520px; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(217, 250, 87, 0.28), transparent 60%),
    radial-gradient(80% 100% at 50% 130%, rgba(43, 106, 108, 0.55), transparent 70%);
}
nav, .page, .config-warning { position: relative; z-index: 1; }

/* ---------- Glas-Bubbles ---------- */
.nav-tabs, .step, .trust-item, .audience-card, .search-bar, .category-tile, .filter-bar, .listing-card,
.calc-card, .dash-card, .dash-stats .strip-item, .modal, .toast, .tracking-sidebar, .truck-detail, .sub-box,
.empty-state, .map-wrap, .map-empty div, .hero-float, .cta-box, .config-warning {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  position: relative;
}
/* Glanzlinie oben */
.step::before, .trust-item::before, .audience-card::before, .search-bar::before, .category-tile::before,
.filter-bar::before, .listing-card::before, .calc-card::before, .dash-card::before, .dash-stats .strip-item::before,
.modal::before, .tracking-sidebar::before, .truck-detail::before, .sub-box::before, .empty-state::before,
.hero-float::before, .cta-box::before, .map-wrap::after {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(232, 247, 245, 0.55), transparent);
}
/* Griff oben mittig bei hervorgehobenen Karten */
.hero-float::after, .modal::after, .cta-box::after, .sub-box::after {
  content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 3px; margin-left: -20px;
  border-radius: 3px; background: rgba(232, 247, 245, 0.65); pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-tabs, .step, .trust-item, .audience-card, .search-bar, .category-tile, .filter-bar, .listing-card,
  .calc-card, .dash-card, .dash-stats .strip-item, .modal, .toast, .tracking-sidebar, .truck-detail, .sub-box,
  .empty-state, .map-wrap, .map-empty div, .hero-float, .cta-box, .config-warning { background: rgba(16, 45, 53, 0.85); }
}

/* Innere Boxen */
.offer-row, .contact-box, .locked-box, .suggest-box, .kv > div, .verify-box, .terms-box, .info-item,
.tracking-card, .lc-route, .form-error, .calc-adv {
  background: var(--inner-bg); border: var(--inner-border); border-radius: var(--radius-inner);
}

/* Klickbare Karten */
.listing-card, .category-tile, .tracking-card, .hero-float { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.listing-card:hover, .category-tile:hover, .hero-float:hover {
  transform: translateY(-3px); border-color: rgba(217, 250, 87, 0.45); box-shadow: var(--glass-shadow-hover);
}

/* ---------- Buttons ---------- */
.btn-primary, .signup-btn, .modal-submit, .search-btn, .btn-sm.primary, .action-btn.primary, .backhaul-btn {
  background: var(--lime); color: var(--petrol); border: 1px solid var(--lime);
  border-radius: 999px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: var(--lime-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-secondary, .login-btn, .btn-sm, .action-btn, .filter-tab, .sb-tab, .detail-close, .modal-close {
  background: var(--pill-bg); color: var(--ice); border: var(--pill-border);
  border-radius: 999px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-primary:hover, .signup-btn:hover, .modal-submit:hover, .search-btn:hover, .btn-sm.primary:hover, .action-btn.primary:hover,
.btn-secondary:hover, .login-btn:hover, .btn-sm:hover, .action-btn:hover, .filter-tab:hover { transform: translateY(-2px); }
.btn-secondary:hover, .login-btn:hover, .btn-sm:hover, .action-btn:hover, .filter-tab:hover { background: rgba(232, 247, 245, 0.16); }
.btn-primary { padding: 15px 28px; font-size: 16px; }
.btn-secondary { padding: 15px 28px; font-size: 16px; }
.modal-submit { width: 100%; padding: 14px; font-size: 15px; margin-top: 8px; }
.btn-sm { padding: 8px 14px; font-size: 12px; font-weight: 600; }
.btn-sm.primary { padding: 8px 14px; font-size: 12px; }
.btn-sm.danger { border-style: dashed; color: var(--text-2); }
.btn-primary:disabled, .modal-submit:disabled, .btn-sm:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: none; color: var(--lime); font-weight: 600; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Navigation ---------- */
nav {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 32px;
  background: linear-gradient(180deg, rgba(10, 30, 36, 0.55), rgba(10, 30, 36, 0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--ice); cursor: pointer; letter-spacing: -0.02em; }
.logo::before {
  content: ''; width: 26px; height: 26px; border-radius: 9px; background: var(--lime);
  box-shadow: inset 0 0 0 5px var(--lime), inset 0 0 0 8px var(--petrol), 0 0 18px rgba(217, 250, 87, 0.45);
}
.nav-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; }
.nav-tabs::before { display: none; }
.nav-tab {
  padding: 9px 16px; border: none; background: transparent; color: var(--text-2);
  font-weight: 500; font-size: 14px; cursor: pointer; border-radius: 999px; font-family: inherit; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-tab:hover { color: var(--ice); }
.nav-tab.active { background: var(--ice); color: var(--petrol); font-weight: 600; }
.nav-tab.auth-only { display: none; }
body.logged-in .nav-tab.auth-only { display: inline-block; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.login-btn { padding: 9px 18px; font-size: 13px; }
.signup-btn { padding: 9px 18px; font-size: 13px; }
.logout-btn { display: none; }
body.logged-in .logout-btn { display: inline-block; }
body.logged-in .login-btn:not(.logout-btn), body.logged-in .signup-btn { display: none; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--petrol);
  display: none; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: var(--lime-shadow);
}
.user-avatar.visible { display: flex; }

.config-warning { margin: 12px 32px 0; padding: 12px 18px; border-radius: 16px; font-size: 13px; font-weight: 600; text-align: center; border-color: rgba(217, 250, 87, 0.5); }

/* ---------- Seiten ---------- */
.page { display: none; min-height: calc(100vh - var(--header-h)); }
.page.active { display: block; }

/* ---------- Typografie & Sektionen ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 32px 0; }
.section-label {
  display: flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 18px; height: 2px; background: var(--lime); border-radius: 2px; flex-shrink: 0; }
.section-heading { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; }
.section-sub { color: var(--text-2); font-size: 1.05rem; font-weight: 300; max-width: 60ch; margin-bottom: 36px; }

/* ---------- Hero ---------- */
.hero-section { max-width: 1200px; margin: 0 auto; padding: 56px 32px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; min-height: 520px; }
.hero-copy { align-self: end; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; margin-bottom: 26px;
  background: var(--pill-bg); border: var(--pill-border); border-radius: 999px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ice); font-size: 13px; font-weight: 500;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; margin-bottom: 26px; }
.hero-title .accent { font-weight: 600; color: var(--lime); }
.hero-subtitle { font-size: 1.1rem; font-weight: 300; color: var(--text-2); max-width: 52ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-float { align-self: start; margin-top: 10px; padding: 26px 22px 20px; cursor: pointer; animation: float 9s ease-in-out infinite; }
.hero-float .hero-float-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hero-float .hero-float-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.hero-load { display: flex; flex-direction: column; gap: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Kennzahlen-Reihe */
.stats-strip { max-width: 1200px; margin: 56px auto 0; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-strip .strip-item { padding: 6px 24px; border-left: 1px solid rgba(232, 247, 245, 0.2); }
.stats-strip .strip-item:first-child { border-left: none; padding-left: 0; }
.strip-value { white-space: nowrap; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; color: var(--ice); }
.stats-strip .strip-item:first-child .strip-value { color: var(--lime); }
.strip-label { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ---------- Schritte, Vertrauen, Zielgruppen ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; }
.step-number {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ice); color: var(--petrol);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.step:nth-child(3) .step-number { background: var(--lime); box-shadow: var(--lime-shadow); }
.step-icon, .aud-icon, .trust-icon, .category-icon {
  width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(232, 247, 245, 0.08); border: 1px solid rgba(232, 247, 245, 0.16);
  box-shadow: inset 0 1px 0 rgba(232, 247, 245, 0.18); margin-bottom: 16px;
}
.step:nth-child(3) .step-icon, .trust-item:nth-child(3) .trust-icon, .audience-card:nth-child(3) .aud-icon {
  background: var(--lime); border-color: var(--lime); box-shadow: var(--lime-shadow);
}
.step-title, .aud-title, .trust-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--ice); }
.step-desc, .trust-desc { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { padding: 22px; }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-card { padding: 28px; }
.aud-list { list-style: none; }
.aud-list li { padding: 6px 0; color: var(--text-2); font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.aud-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex-shrink: 0; transform: translateY(-2px); }

/* Abschluss-CTA */
.cta-section { max-width: 1000px; margin: 0 auto; padding: 72px 32px 96px; }
.cta-box {
  padding: 52px 40px; text-align: center; border-color: rgba(217, 250, 87, 0.3);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(217, 250, 87, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(43, 106, 108, 0.55), rgba(16, 45, 53, 0.6));
}
.cta-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-text { color: var(--text-2); font-size: 1.05rem; margin-bottom: 26px; }

/* ---------- Marktplatz ---------- */
.marketplace { max-width: 1240px; margin: 0 auto; padding: 48px 32px 96px; }
.marketplace-hero { text-align: center; padding-bottom: 10px; }
.mp-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px; }
.mp-title .accent { color: var(--lime); font-weight: 600; }
.mp-sub { font-size: 1.05rem; font-weight: 300; color: var(--text-2); max-width: 60ch; margin: 0 auto; }
.search-bar { display: flex; gap: 8px; max-width: 880px; margin: 28px auto 0; padding: 8px; border-radius: 999px; }
.search-bar::before { left: 40px; right: 40px; }
.search-input { flex: 1; background: transparent; border: none; padding: 12px 18px; color: var(--ice); font-size: 15px; outline: none; font-family: inherit; min-width: 0; }
.search-input::placeholder { color: rgba(232, 247, 245, 0.5); }
.search-btn { padding: 12px 24px; font-size: 15px; white-space: nowrap; }
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.category-tile { padding: 22px; cursor: pointer; }
.category-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.category-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.category-count, .listing-type, .tag, .verify-tag, .verified-badge, .st, .status-badge, .lc-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  background: rgba(232, 247, 245, 0.08); border: 1px solid rgba(232, 247, 245, 0.18);
  color: var(--ice); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.category-count { margin-top: 12px; color: var(--lime); border-color: rgba(217, 250, 87, 0.35); background: rgba(217, 250, 87, 0.08); }
.section-title { font-size: 1.4rem; font-weight: 300; letter-spacing: -0.02em; margin: 40px 0 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.offer-count { font-size: 12px; color: var(--lime); font-weight: 600; }
.filter-bar { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; padding: 18px; margin-top: 20px; align-items: end; }
.filter-bar .form-group { margin: 0; }
.filter-tabs, .dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab, .sb-tab { padding: 8px 16px; font-size: 13px; }
.filter-tab.active, .sb-tab.active { background: var(--ice); color: var(--petrol); border-color: var(--ice); }

/* Auftrags-Karten */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listing-card { padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-top-left { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--ice); }
.lbl { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.val { display: block; font-size: 14px; font-weight: 500; color: var(--ice); }
.lc-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; }
.lc-route .right, .lc-bottom .right { text-align: right; }
.lc-arrow {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(217, 250, 87, 0.14); border: 1px solid rgba(217, 250, 87, 0.45); color: var(--lime); font-weight: 700;
}
.lc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.price-big { display: block; font-size: 1.35rem; font-weight: 700; color: var(--lime); letter-spacing: -0.01em; line-height: 1.2; }
.price-none { display: block; font-size: 14px; font-weight: 600; color: var(--ice); }
.listing-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.mini-avatar {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; margin-right: 6px; vertical-align: middle;
  background: rgba(232, 247, 245, 0.14); border: 1px solid rgba(232, 247, 245, 0.3); color: var(--ice);
}
.verify-tag, .verified-badge { margin-left: 6px; color: var(--lime); border-color: rgba(217, 250, 87, 0.35); background: rgba(217, 250, 87, 0.08); font-size: 10px; padding: 2px 8px; }
.listing-price { font-size: 1.15rem; font-weight: 700; color: var(--lime); }

/* Leere Zustände */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 52px 24px; color: var(--text-2); }
.empty-state .big { font-size: 34px; margin-bottom: 10px; }
.empty-state .empty-title { font-size: 1.25rem; font-weight: 600; color: var(--ice); margin-bottom: 6px; }
.empty-state .empty-text { font-size: 14px; max-width: 460px; margin: 0 auto; line-height: 1.6; }
.empty-state .hero-ctas { justify-content: center; }

/* ---------- Status-Badges ---------- */
.st { text-transform: uppercase; letter-spacing: 0.05em; font-size: 10px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.st-offen, .st-angeboten, .st-angenommen { background: rgba(232, 247, 245, 0.1); }
.st-gebucht, .st-unterwegs, .st-vergeben { background: rgba(232, 247, 245, 0.22); border-color: rgba(232, 247, 245, 0.4); }
.st-zugestellt { background: var(--lime); border-color: var(--lime); color: var(--petrol); }
.st-storniert, .st-abgelehnt, .st-zurueckgezogen, .st-abgelaufen { background: transparent; color: var(--text-3); border-style: dashed; }
.status-badge { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 9px; }
.status-live { background: var(--lime); border-color: var(--lime); color: var(--petrol); }
.status-loading { background: rgba(232, 247, 245, 0.22); }
.status-done { color: var(--text-3); }
.stars { color: var(--lime); letter-spacing: 1px; }

/* ---------- Formulare ---------- */
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(232, 247, 245, 0.08); border: 1px solid rgba(232, 247, 245, 0.25);
  color: var(--ice); padding: 11px 14px; border-radius: 14px; font-size: 14px; outline: none; font-family: inherit;
  color-scheme: dark; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-textarea { resize: vertical; min-height: 70px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(232, 247, 245, 0.5); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(217, 250, 87, 0.22); }
.form-input:disabled { opacity: 0.6; }
.form-select option, select option { background: var(--petrol); color: var(--ice); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-error { border-left: 3px solid var(--lime); color: var(--ice); padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }
.form-legend { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin: 18px 0 10px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.checkbox-row input { margin-top: 3px; flex-shrink: 0; }
.checkbox-inline { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); margin: 6px 0 14px; }

/* ---------- Modals ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000; padding: 20px; justify-content: center; align-items: center;
  background: rgba(10, 30, 36, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }
.modal { padding: 38px 34px 30px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; animation: modalIn 0.3s ease; }
.modal.wide { max-width: 700px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; font-size: 18px; line-height: 1; z-index: 3; }
.modal-title { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 6px; padding-right: 40px; }
.modal-sub { color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
.modal-switch { text-align: center; margin-top: 16px; color: var(--text-2); font-size: 13px; }
.modal-switch a { color: var(--lime); font-weight: 600; cursor: pointer; }
.modal-success { text-align: center; padding: 16px 0; }
.modal-success .check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--lime); color: var(--petrol); box-shadow: var(--lime-shadow);
}
.success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.role-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.role-option {
  padding: 14px 8px; text-align: center; cursor: pointer; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid rgba(232, 247, 245, 0.16); box-shadow: inset 0 1px 0 rgba(232, 247, 245, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.role-option:hover { transform: translateY(-2px); }
.role-option.selected { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(217, 250, 87, 0.18), inset 0 1px 0 rgba(232, 247, 245, 0.18); }
.role-option .ricon { font-size: 24px; margin-bottom: 4px; }
.role-option .rlabel { font-size: 12px; font-weight: 600; }
.role-option .rdesc { font-size: 10px; color: var(--text-3); margin-top: 2px; line-height: 1.3; }
.verify-box { padding: 14px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.verify-box strong { color: var(--ice); }
.verify-icon { font-size: 18px; flex-shrink: 0; }
.terms-box { padding: 12px 14px; margin-bottom: 14px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.terms-box strong { color: var(--lime); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.kv > div { padding: 10px 12px; border-radius: 14px; }
.kv .k { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.kv .v { font-size: 14px; font-weight: 600; }
.kv .v.lime { color: var(--lime); }
.suggest-box { padding: 12px 14px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.suggest-box strong { color: var(--lime); }
.star-pick { display: flex; gap: 6px; margin: 6px 0 12px; }
.star-pick button { background: none; border: none; cursor: pointer; color: rgba(232, 247, 245, 0.3); font-size: 30px; padding: 0; }
.star-pick button.on { color: var(--lime); }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ice); animation: modalIn 0.25s ease; max-width: 90vw; text-align: center; }
.toast.error { border-color: var(--lime); box-shadow: var(--glass-shadow), 0 0 0 1px var(--lime); }

/* ---------- Rechner ---------- */
.calc-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.calc-card { padding: 26px; }
.calc-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.calc-result { position: sticky; top: calc(var(--header-h) + 16px); }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.calc-line small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.calc-line .amt { font-weight: 600; color: var(--ice); white-space: nowrap; }
.calc-line.sub { color: var(--ice); font-weight: 700; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.calc-total .lbl { font-size: 14px; font-weight: 700; color: var(--ice); text-transform: none; letter-spacing: 0; }
.calc-total .val { display: inline-block; font-size: 2rem; font-weight: 700; color: var(--lime); border-bottom: 3px solid var(--lime); line-height: 1.15; padding-bottom: 2px; }
.calc-meta { font-size: 12px; color: var(--text-3); margin-top: 8px; }
details.calc-adv { margin-top: 14px; padding: 12px 14px; }
details.calc-adv summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--lime); }
details.calc-adv[open] summary { margin-bottom: 12px; }

/* ---------- Dashboard ---------- */
.dash { max-width: 1200px; margin: 0 auto; padding: 40px 32px 96px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.dash-sub { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.dash-stats .strip-item { padding: 20px 22px; }
.dash-stats .strip-value { font-size: 2.6rem; font-weight: 300; color: var(--ice); }
.dash-stats .strip-item:first-child .strip-value { color: var(--lime); }
.dash-tabs { margin-bottom: 18px; }
.dash-list { display: grid; gap: 14px; }
.dash-card { padding: 22px; }
.dash-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.dash-card-title { font-size: 1.05rem; font-weight: 600; }
.listing-route { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin: 8px 0; flex-wrap: wrap; }
.arrow { color: var(--lime); }
.offer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; margin-top: 10px; }
.offer-row .who { font-size: 14px; font-weight: 600; }
.offer-row .msg { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.offer-row .price { font-size: 1.2rem; font-weight: 700; color: var(--lime); }
.offer-right { text-align: right; }
.offer-right .btn-row { justify-content: flex-end; margin-top: 6px; }
.contact-box { padding: 14px; margin-top: 12px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.contact-box strong { color: var(--ice); }
.locked-box { padding: 12px 14px; margin-top: 10px; font-size: 13px; color: var(--text-2); border-style: dashed; }
.timeline { display: flex; gap: 4px; margin-top: 12px; }
.timeline span { flex: 1; height: 4px; border-radius: 3px; background: rgba(232, 247, 245, 0.12); }
.timeline span.on { background: var(--lime); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.sub-box { padding: 30px 26px 24px; }
.sub-box .section-label { margin-bottom: 4px; }
.sub-price { font-size: 2.4rem; font-weight: 300; letter-spacing: -0.03em; margin: 6px 0; }

/* ---------- Tracking ---------- */
.tracking-layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; padding: 16px 24px 24px; height: calc(100vh - var(--header-h)); }
.tracking-sidebar { overflow-y: auto; padding-bottom: 8px; }
.sidebar-header { padding: 22px 22px 16px; position: sticky; top: 0; z-index: 3; background: linear-gradient(180deg, rgba(16, 45, 53, 0.95), rgba(16, 45, 53, 0.75)); border-radius: var(--radius) var(--radius) 0 0; }
.sidebar-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.sidebar-subtitle { font-size: 12px; color: var(--text-3); }
.tracking-card { margin: 10px 14px 0; padding: 14px 16px; cursor: pointer; }
.tracking-card:hover { border-color: rgba(217, 250, 87, 0.45); }
.tracking-card.active { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(217, 250, 87, 0.15); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.truck-id { font-weight: 600; font-size: 13px; }
.route-info { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.route-dot.end { background: var(--ice); }
.route-line { width: 2px; height: 8px; background: var(--line-strong); margin-left: 3px; }
.map-wrap { overflow: hidden; }
.map-wrap::after { z-index: 600; }
#map { height: 100%; background: var(--petrol-deep); }
.leaflet-container { background: var(--petrol-deep); font-family: inherit; }
/* Umschalter Karte / Grau / Luftbild */
.leaflet-control-layers { background: rgba(16, 45, 53, 0.92) !important; color: var(--ice); border: var(--glass-border) !important; border-radius: 14px !important; box-shadow: var(--glass-shadow) !important; }
.leaflet-control-layers-expanded { padding: 6px 10px; font-size: 12px; font-weight: 600; }
.leaflet-control-layers label { margin: 3px 0; cursor: pointer; }
.leaflet-control-layers input { accent-color: var(--lime); margin-right: 4px; }
.leaflet-bar a, .leaflet-bar a:hover { background: rgba(16, 45, 53, 0.9); color: var(--ice); border-bottom-color: var(--line); }
.leaflet-bar { border: var(--glass-border) !important; border-radius: 14px !important; overflow: hidden; box-shadow: var(--glass-shadow) !important; }
.leaflet-control-attribution { background: rgba(10, 30, 36, 0.7) !important; color: var(--text-3) !important; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: rgba(16, 45, 53, 0.95); color: var(--ice); border: var(--glass-border); box-shadow: var(--glass-shadow); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ice); }
.map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 550; pointer-events: none; }
.map-empty div { padding: 18px 22px; font-size: 14px; font-weight: 500; max-width: 360px; text-align: center; border-radius: 18px; }
/* Karten-Marker */
.map-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--petrol); box-shadow: 0 2px 10px rgba(3, 14, 18, 0.6); }
.map-dot.start { background: var(--lime); }
.map-dot.end { background: var(--ice); }
.vehicle-marker { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.vehicle-body {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--lime); border: 3px solid var(--petrol); font-size: 20px; position: relative; z-index: 2;
  box-shadow: 0 6px 18px rgba(3, 14, 18, 0.55); animation: bob 1.5s ease-in-out infinite;
}
.pulse-ring { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(217, 250, 87, 0.4); animation: pulseRing 1.8s ease-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* Detail-Panel auf der Karte */
.truck-detail {
  position: absolute; top: 16px; right: 16px; width: 360px; padding: 24px; z-index: 600;
  max-height: calc(100% - 32px); overflow-y: auto; color: var(--ice);
  transform: translateX(calc(100% + 40px)); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.truck-detail.open { transform: translateX(0); }
.detail-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; font-size: 18px; z-index: 3; }
.detail-header { display: flex; align-items: center; gap: 14px; padding-right: 36px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--lime); color: var(--petrol); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.driver-name { font-size: 16px; font-weight: 600; color: var(--ice); }
.driver-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.verified-badge { margin: 6px 4px 0 0; }
.detail-rating { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--lime); }
.detail-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-section:last-of-type { border-bottom: none; }
.detail-label { font-size: 0.68rem; font-weight: 600; color: var(--lime); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.route-display { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.route-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.route-row .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.start { background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 250, 87, 0.2); }
.dot.end { background: var(--ice); box-shadow: 0 0 0 4px rgba(232, 247, 245, 0.15); }
.route-connector { width: 2px; height: 18px; background: linear-gradient(to bottom, var(--lime), var(--ice)); margin-left: 4px; }
.route-city { font-weight: 600; color: var(--ice); }
.route-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-item { padding: 9px 11px; border-radius: 12px; }
.info-key { font-size: 0.65rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.info-val { font-size: 13px; font-weight: 600; color: var(--ice); }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--petrol); }
.live-dot { width: 6px; height: 6px; background: var(--petrol); border-radius: 50%; animation: pulse 1.2s infinite; }
.big-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; }
.big-stat-label { font-size: 13px; color: var(--text-2); }
.big-stat-val { font-size: 16px; font-weight: 600; color: var(--ice); }
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.action-btn { padding: 10px; font-size: 12px; }
.action-btn.primary { padding: 10px; font-size: 12px; }


/* =====================================================================
   Phase 2: Live-Karte als Startseite, schwebender Preisrechner, Footer
   ===================================================================== */
.map-hero {
  position: relative; height: calc(100vh - var(--header-h) - 16px); min-height: 640px; margin: 0 16px;
  border-radius: 28px; overflow: hidden; border: var(--glass-border); box-shadow: var(--glass-shadow);
  background: var(--petrol-deep);
}
.home-map { position: absolute; inset: 0; z-index: 1; }
/* dunkler Verlauf unten links, damit der Titel gut lesbar bleibt */
.map-hero-copy::before {
  content: ''; position: absolute; inset: -140px -200px -60px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 30, 36, 0.88), rgba(10, 30, 36, 0));
}
.map-hero .leaflet-top.leaflet-left { top: 64px; }
.map-legend { position: absolute; top: 16px; left: 16px; z-index: 500; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 460px); align-items: center; }
.map-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: rgba(10, 30, 36, 0.72); border: 1px solid rgba(232, 247, 245, 0.2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: all 0.2s ease;
}
.map-chip b { font-weight: 700; color: var(--ice); }
.map-chip.on { color: var(--ice); border-color: rgba(232, 247, 245, 0.45); }
.map-chip.chip-loads.on { border-color: var(--lime); }
.map-chip .chip-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.chip-loads .chip-icon { background: var(--lime); color: var(--petrol); }
.chip-runs .chip-icon { background: var(--ice); color: var(--petrol); font-weight: 800; }
.chip-vehicles .chip-icon { background: var(--teal-2); }
.map-chip:not(.on) { opacity: 0.6; }
.map-empty-note { flex-basis: 100%; font-size: 13px; color: var(--ice); padding: 8px 14px; border-radius: 14px; background: rgba(10, 30, 36, 0.72); border: 1px dashed rgba(217, 250, 87, 0.45); max-width: 420px; }

/* Titel liegt über der Karte, lässt Klicks aber durch (ausser auf Buttons) */
.map-hero-copy { position: absolute; left: 32px; bottom: 32px; z-index: 500; max-width: min(560px, calc(100% - 480px)); pointer-events: none; }
.map-hero-copy .hero-ctas, .map-hero-copy button { pointer-events: auto; }
.map-hero-copy .hero-title { font-size: clamp(2.4rem, 4.8vw, 4.6rem); margin-bottom: 18px; text-shadow: 0 4px 30px rgba(3, 14, 18, 0.6); }
.map-hero-copy .hero-subtitle { margin-bottom: 22px; color: var(--text); text-shadow: 0 2px 16px rgba(3, 14, 18, 0.8); }
.map-hero-copy .hero-badge { margin-bottom: 18px; }

.calc-panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px; width: 390px; z-index: 600; overflow-y: auto;
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(232, 247, 245, 0.12), rgba(232, 247, 245, 0.03) 45%), rgba(8, 28, 34, 0.78);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--glass-border); box-shadow: var(--glass-shadow);
}
.calc-panel .section-label { margin-bottom: 6px; }
.calc-panel-title { font-size: 1.35rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 16px; }
.calc-route { padding: 10px 14px; margin: -2px 0 14px; font-size: 13px; color: var(--text-2); background: var(--inner-bg); border: var(--inner-border); border-radius: 14px; }
.calc-route strong { color: var(--lime); }
.calc-empty { padding: 14px; font-size: 13px; color: var(--text-3); text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; margin-top: 12px; }
#calcResult { margin-top: 6px; }
#calcResult .calc-total { margin-top: 10px; }
details.calc-breakdown { margin-top: 14px; }
details.calc-breakdown summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--lime); }
details.calc-breakdown[open] summary { margin-bottom: 4px; }

/* Karten-Marker */
.mk { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 6px 16px rgba(3, 14, 18, 0.6); transition: transform 0.15s ease; }
.mk:hover { transform: scale(1.12); }
.mk-load { background: var(--lime); border: 3px solid var(--petrol); color: var(--petrol); }
.mk-run { background: var(--ice); border: 3px solid var(--petrol); color: var(--petrol); font-weight: 800; font-size: 17px; }
.mk-veh { background: var(--teal-2); border: 3px solid var(--ice); }

/* Detail-Fenster auf der Karte */
.reload-popup .leaflet-popup-content-wrapper { border-radius: 18px; padding: 2px; }
.reload-popup .leaflet-popup-content { margin: 14px 16px; min-width: 220px; }
.mp-kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.mp-title { font-size: 1rem; font-weight: 600; color: var(--ice); line-height: 1.3; margin-bottom: 4px; }
.mp-route { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.mp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 10px 12px; background: var(--inner-bg); border: var(--inner-border); border-radius: 12px; }
.mp-facts .lbl { font-size: 0.62rem; }
.mp-facts .val { font-size: 13px; }
.mp-note { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.mp-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Adress-Vorschläge */
.ac-host { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3000; max-height: 270px; overflow-y: auto;
  background: rgba(16, 45, 53, 0.98); border: 1px solid rgba(232, 247, 245, 0.25); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(3, 14, 18, 0.6); padding: 4px;
}
.form-group > .ac-list { top: auto; }
.ac-item {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 9px 12px; border: none;
  background: transparent; color: var(--ice); font-family: inherit; cursor: pointer; border-radius: 10px;
}
.ac-item:hover, .ac-item.active { background: rgba(217, 250, 87, 0.12); }
.ac-main { font-size: 14px; font-weight: 500; }
.ac-sub { font-size: 12px; color: var(--text-3); }

/* Textseiten (Über uns, AGB, Datenschutz, Impressum) */
.text-page { max-width: 880px; margin: 0 auto; padding: 56px 32px 40px; }
.text-card {
  padding: 30px; border-radius: var(--radius); background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.text-card h2 { font-size: 1.15rem; font-weight: 600; margin: 22px 0 8px; }
.text-card h2:first-child { margin-top: 0; }
.text-card p { color: var(--text-2); margin-bottom: 10px; }
.ph { color: var(--lime); font-style: italic; }

/* Footer */
.site-footer { position: relative; z-index: 1; margin: 72px 16px 16px; padding: 40px 32px 22px; border-radius: 28px; background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand p { color: var(--text-2); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.footer-col a, .footer-bottom a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--lime); }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); text-align: center; }
#tracking ~ .site-footer { margin-top: 24px; }

@media (max-width: 900px) {
  .map-hero { height: auto; min-height: 0; display: flex; flex-direction: column; margin: 0 12px; overflow: visible; border: none; box-shadow: none; background: transparent; border-radius: 0; }
  .map-hero-copy::before { display: none; }
  .map-hero-copy { pointer-events: auto; }
  .home-map { position: relative; height: 58vh; min-height: 360px; border-radius: 24px; overflow: hidden; border: var(--glass-border); box-shadow: var(--glass-shadow); }
  .map-legend { top: 12px; left: 12px; max-width: calc(100% - 24px); }
  .map-chip { padding: 6px 10px; font-size: 12px; }
  .map-hero .leaflet-top.leaflet-left { top: 56px; }
  .map-hero-copy { position: static; max-width: none; padding: 28px 6px 8px; }
  .calc-panel { position: static; width: auto; overflow: visible; margin-top: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .text-page { padding: 36px 16px 24px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding: 30px 20px 18px; margin: 56px 12px 12px; }
  .text-card { padding: 22px 18px; }
}

/* Phase 3: Zuschläge & Preisaufschlüsselung */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 8px; }
.check-grid .checkbox-inline { margin: 4px 0; font-size: 13px; }
.extras-count { color: var(--ice); font-weight: 700; }
.ban-note { margin-top: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.5; color: var(--ice); background: rgba(217, 250, 87, 0.08); border: 1px solid rgba(217, 250, 87, 0.4); border-radius: 12px; }
.calc-breakdown-box .calc-line { font-size: 13px; padding: 7px 0; }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr; } }

/* ---------- Phase 4/5: Marktplatz zweiseitig, Fotos, Pflichtfelder ---------- */
.req { color: var(--lime); font-weight: 700; }
.mp-sides { display: inline-flex; gap: 6px; padding: 6px; margin-top: 22px; border-radius: 999px; background: rgba(8, 28, 34, 0.5); border: var(--glass-border); flex-wrap: wrap; }
.mp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 20px; border-radius: 999px; border: none; background: transparent; color: var(--ice); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.mp-side small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.mp-side.active { background: var(--lime); color: var(--petrol); box-shadow: var(--lime-shadow); }
.mp-side.active small { color: rgba(16, 45, 53, 0.7); }
.mp-side:focus-visible, .board-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.board-tabs { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.board-tab { padding: 10px 18px; border-radius: 999px; border: var(--pill-border); background: var(--pill-bg); color: var(--ice); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.board-tab.active { background: var(--lime); color: var(--petrol); border-color: var(--lime); }
.board-intro { margin-top: 20px; padding: 20px 22px; display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; border-radius: var(--radius); background: var(--glass-bg); border: var(--glass-border); }
.board-intro h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.board-intro p { font-size: 14px; color: var(--text-2); max-width: 640px; }
.board-intro.eco { border-color: rgba(217, 250, 87, 0.5); background: linear-gradient(160deg, rgba(217, 250, 87, 0.14), rgba(217, 250, 87, 0.02) 50%), rgba(8, 28, 34, 0.5); }
.filter-bar-6 { grid-template-columns: repeat(6, 1fr) auto; }
.board-filters { grid-template-columns: repeat(4, 1fr) auto; }
.board-filters:empty { display: none; }
.lc-ware { margin-left: 6px; font-size: 11px; color: var(--text-2); font-weight: 600; }
.tag.tag-warn { color: var(--lime); border-color: rgba(217, 250, 87, 0.45); }
details.extras-box { margin: 6px 0 14px; padding: 12px 14px; border-radius: var(--radius-inner); background: var(--inner-bg); border: var(--inner-border); }
details.extras-box summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--lime); }
details.extras-box[open] summary { margin-bottom: 12px; }
.photo-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.photo-grid { display: contents; }
.photo-thumb { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; border: var(--inner-border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(10, 30, 36, 0.85); color: var(--ice); font-size: 16px; line-height: 1; cursor: pointer; }
.photo-del:hover { background: #b3261e; }
.photo-add { width: 92px; height: 92px; border-radius: 14px; border: 1.5px dashed rgba(217, 250, 87, 0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-size: 11px; text-align: center; color: var(--lime); padding: 6px; }
.photo-add:hover { background: rgba(217, 250, 87, 0.08); }
.photo-add small { color: var(--text-3); }
.photo-picker.full .photo-add { display: none; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0 0 14px; }
.photo-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: var(--inner-border); display: block; }
.board-card .bc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 1100px) { .filter-bar-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .mp-sides { display: grid; grid-template-columns: 1fr; width: 100%; border-radius: 24px; }
  .mp-side { border-radius: 18px; }
  .filter-bar-6, .board-filters { grid-template-columns: 1fr; }
  .board-tab { flex: 1 1 calc(50% - 8px); font-size: 13px; padding: 9px 10px; }
}

/* ---------- Phase 6: Abo, Registrierung in Schritten ---------- */
.paywall { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0; padding: 16px 20px; border-radius: var(--radius-inner); border: 1px solid rgba(217, 250, 87, 0.55); background: linear-gradient(160deg, rgba(217, 250, 87, 0.16), rgba(217, 250, 87, 0.04)); font-size: 14px; line-height: 1.5; }
.paywall > div { flex: 1 1 320px; }
.marketplace-hero .paywall { text-align: left; max-width: 900px; margin: 18px auto 0; }
.signup-steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.signup-steps span { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line); }
.signup-steps span.active { color: var(--petrol); background: var(--lime); border-color: var(--lime); }
.agb-scroll { max-height: 300px; overflow-y: auto; padding: 14px 16px; margin: 6px 0 14px; border-radius: var(--radius-inner); background: rgba(8, 28, 34, 0.55); border: var(--inner-border); font-size: 13px; line-height: 1.6; color: var(--text-2); }
.agb-scroll h2 { font-size: 14px; color: var(--ice); margin: 14px 0 6px; }
.agb-scroll h2:first-child { margin-top: 0; }
.agb-scroll p { margin: 0 0 8px; }
.agb-scroll a { color: var(--lime); }
.agb-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Phase 7: Glocke, Dokumente, Vorschläge ---------- */
.bell-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: var(--pill-border); background: var(--pill-bg); color: var(--ice); font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bell-btn[hidden] { display: none; }
.bell-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--petrol); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-count[hidden] { display: none; }
.notif { padding: 12px 14px; margin-bottom: 8px; border-radius: var(--radius-inner); background: var(--inner-bg); border: var(--inner-border); cursor: pointer; }
.notif.unread { border-color: rgba(217, 250, 87, 0.55); }
.notif-title { font-weight: 600; font-size: 14px; }
.doc-upload { border-color: rgba(217, 250, 87, 0.45); }
.match-card .st { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav { padding: 10px 16px; height: auto; flex-wrap: wrap; gap: 10px; }
  .nav-tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 8px 12px; font-size: 13px; flex-shrink: 0; }
  .login-btn, .signup-btn { padding: 7px 12px; font-size: 12px; }
  body.logged-in .logout-btn { display: inline-block; }
  .hero-section { padding: 36px 16px 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero-float { margin-top: 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 22px; padding: 0 16px; margin-top: 44px; }
  .stats-strip .strip-item:nth-child(3) { border-left: none; padding-left: 0; }
  .section { padding: 64px 16px 0; }
  .steps, .audience, .categories, .trust-grid { grid-template-columns: 1fr 1fr; }
  .listings { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .dash { padding: 28px 16px 72px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .marketplace { padding: 32px 16px 72px; }
  .cta-section { padding: 64px 16px 80px; }
  .config-warning { margin: 10px 16px 0; }
  .tracking-layout { grid-template-columns: 1fr; height: auto; padding: 12px 16px 24px; }
  .tracking-sidebar { max-height: 260px; }
  .map-wrap { height: 70vh; }
  .truck-detail { width: calc(100% - 24px); right: 12px; top: 12px; }
  .bg-hero .blob { filter: blur(70px); }
}
@media (max-width: 600px) {
  .nav-actions { gap: 8px; }
  .steps, .audience, .categories, .trust-grid, .listings, .filter-bar, .dash-stats { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; row-gap: 0; }
  .stats-strip .strip-item, .stats-strip .strip-item:nth-child(3) { border-left: none; padding: 14px 0; border-top: 1px solid rgba(232, 247, 245, 0.2); }
  .stats-strip .strip-item:first-child { border-top: none; }
  .form-row, .form-row-3, .kv, .success-actions { grid-template-columns: 1fr; }
  .modal { padding: 34px 20px 24px; }
  .search-bar { border-radius: 24px; flex-direction: column; }
  .search-btn { width: 100%; }
  .bg-hero .blob { filter: blur(60px); }
  .bg-hero .b1 { width: 420px; height: 420px; }
  .bg-hero .b2 { width: 320px; height: 320px; }
  .bg-hero .b3 { width: 380px; height: 380px; left: 10%; }
  .bg-hero .b4 { width: 340px; height: 340px; }
  .offer-right { text-align: left; }
  .offer-right .btn-row { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
