@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap");

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #64748b;
  --accent-from: #5b4cff;
  --accent-to: #8b5cf6;
  --logo-yellow: #ffcc00;
  --logo-black: #000000;
  --white: #0b1220; /* text color */
  --border: rgba(0, 0, 0, 0.12);
  --radius: 12px;
}

/* Touch / iPad optimizations */
@media (pointer: coarse) {
  .btn, button, .details-toggle, .upload-cta, .scan-cta {
    min-height: 44px;
    padding: 10px 14px;
    touch-action: manipulation;
  }

  /* Ensure larger hit area for the details toggle */
  .details-toggle{ right:10px; bottom:10px; padding:10px 12px; }

  /* Make modal dialogs more comfortable on tablets */
  .modal { max-width: 96% !important; margin: 12px !important; }

  /* Avoid hover-only interactions: mirror hover styles to active/focus */
  .vehicle-action-item:active, .vehicle-action-item:focus, .vehicle-action-item:hover { background: #f6f9ff; }
}

/* Landscape/tablet breakpoint adjustments */
@media (min-width: 768px) and (max-width: 1200px) {
  main { padding: 20px; }
  .card { border-radius: 12px; }
}

/* Right column weather card styling */
#weatherCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--logo-black);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* no explicit body padding — header uses position:sticky and stays in flow */

.navbar {
  /* full-width header wrapper; inner layout handled by .navbar-inner */
  width: 100%;
  position: relative;
  z-index: 12001;
}
/* Ensure header remains above chat overlay (overrides inline page styles) */
header.navbar {
  z-index: 12001 !important;
  /* translucent fallback for browsers without backdrop-filter */
  background: rgba(255,255,255,0.55);
  background-color: rgba(255,255,255,0.55);
  /* visual blur effect on supported browsers */
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 2px 16px rgba(3,11,24,0.06);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

/* inner centered container for navbar content */
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px; /* reduced header height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar::after {
  /* divider removed — keep pseudo-element disabled so pages with different header markup don't show a line */
  content: "";
  display: none;
}
.logo {
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  display: inline-block;
  margin-left: 0; /* ensure no default left offset */
}

/* ensure logo color wins over more general .navbar a rules */
.navbar .logo {
  color: var(--logo-yellow);
}

/* Place logo at the left edge of the viewport while keeping header content centered */
.logo.fixed-left {
  position: static;
  left: auto;
  top: auto;
  z-index: 12005;
}
.logo span {
  color: var(--logo-black);
}

/* make sure navbar-scoped span keeps desired color */
.navbar .logo span {
  color: var(--logo-black);
}
.logo:hover {
  color: var(--logo-yellow);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  justify-content: center;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--logo-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-inner nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  position: relative;
  z-index: 12002;
}

/* ensure nav items align to top of header when header uses flex-start */
.navbar nav > * {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .navbar nav {
    position: static;
    margin-left: auto;
    top: auto;
    right: auto;
    z-index: inherit;
  }
}

/* Make settings button square and center the gear SVG */
.navbar #settingsBtn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.navbar #settingsBtn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Tidy settings button appearance */
.navbar #settingsBtn {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  color: var(--logo-black);
}
.navbar #settingsBtn:hover {
  background: #f5f7fb;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 17, 26, 0.06);
}
.navbar #settingsBtn:active {
  transform: translateY(0);
}
.navbar #settingsBtn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Phone emoji button for dispo on Fahrer page */
.phone-emoji-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}
.phone-emoji-btn:active {
  transform: translateY(1px);
}

/* Bottom navigation for Fahrer page */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(56px, 9vh, 80px);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 12002;
}
.bottom-nav .btn {
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  padding: 8px 8px;
}
.bottom-nav .btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.bottom-nav .btn.active {
  color: var(--logo-black);
  font-weight: 700;
}
.page-with-bottom-nav main {
  padding-bottom: 120px;
}
.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
/* Generic .btn for links and buttons to share the same sizing and appearance */
.btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}
.navbar a.btn {
  /* keep a-specific selector for any link-specific tweaks */
  color: var(--muted);
}

/* Authenticated dashboard header variant (only for dashboard) */
.navbar-auth {
  background: rgba(255,255,255,0.98);
}
.navbar-auth .navbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar-auth .nav-left {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 28px;
}
.navbar-auth .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}
.navbar-auth .nav-item:hover { color: var(--logo-black); opacity:0.95 }
.navbar-auth .nav-item.active{
  color: var(--logo-black);
  font-weight: 700;
}
.navbar-auth .nav-item.active::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 28px;
  height: 3px;
  background: var(--logo-black);
  border-radius: 3px;
}
.navbar-auth .nav-right { margin-left: auto; }
.navbar-auth .profile-btn {
  background: #fff;
  border: 1px solid rgba(3,11,24,0.06);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--logo-black);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11,17,26,0.04);
}
.navbar-auth .profile-btn:hover { transform: translateY(-1px) }

.navbar-auth .logout-btn {
  background: #fff;
  border: none;
  color: var(--logo-black);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
}
.navbar-auth .logout-btn:active { transform: translateY(0) }

@media (max-width:900px){
  .navbar-auth .nav-left { display:none }
  .navbar-auth .mobile-menu-toggle { display:block }
}
.btn.active{background:#f5f7fb;border-color:rgba(0,0,0,0.08)}

/* Active navigation link styling */
.navbar a.btn.active,
.navbar a.btn[aria-current="page"] {
  color: var(--logo-black);
  font-weight: 700;
  border-color: rgba(0, 0, 0, 0.12);
  background: transparent;
}

/* Ensure buttons in the navbar (anchors and button elements) share the same height and alignment */
.navbar .btn,
.navbar button.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  min-height: 36px;
}
.user-name-btn {
  padding: 8px 12px;
}

/* User menu button matches other navbar buttons */
.user-name-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 500;
}
.user-name-btn:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(88, 80, 200, 0.06);
  border-color: var(--accent-from);
}

/* Dropdown menu styling */
.user-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 6px;
  border-radius: 8px;
  min-width: 160px;
  z-index: 2200;
  display: none;
}
.user-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px;
  border-radius: 10px;
  min-width: 180px;
  z-index: 2200;
  display: none;
}
.user-submenu .user-submenu-item {
  display: block;
  padding: 10px 12px;
  color: var(--logo-black);
  text-decoration: none;
  border-radius: 6px;
}
.user-submenu .user-submenu-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
#userMenuContainer {
  position: relative;
}

/* Large profile menu panel */
.user-submenu {
  min-width: 300px;
  max-width: 360px;
  padding: 0;
  overflow: hidden;
}
.user-menu-panel {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}
.user-menu-panel .um-top {
  background: transparent;
}
.user-menu-panel .um-avatar svg {
  background: #f5f7fb;
  border-radius: 50%;
  padding: 8px;
  color: var(--logo-black);
}
.user-menu-panel .um-name {
  font-weight: 700;
}
.user-menu-panel .um-email {
  color: var(--muted);
  font-size: 0.95rem;
}
.user-submenu .user-submenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--logo-black);
  text-decoration: none;
}

/* Login page: make header fixed and add top padding to avoid overlap when scrolling */
body.login-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12001;
}
body.login-page main {
  padding-top: 72px; /* space for fixed header */
}
.user-submenu .user-submenu-item .chev {
  color: var(--muted);
}
.user-submenu .user-submenu-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.user-submenu .user-submenu-item {
  cursor: pointer;
}
.user-submenu .um-actions {
  padding: 12px;
}

/* Mobile-specific adjustments for index / homepage */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 12px;
  }
  .logo.fixed-left {
    left: 10px;
    top: 12px;
    font-size: 18px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  /* hide the desktop nav on small screens; mobile menu can be implemented separately */
  .navbar nav {
    display: none !important;
  }
  .hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    align-items: stretch;
  }
  .hero .hero-text h1 {
    font-size: 1.6rem;
    margin: 0;
    text-align: left;
    color: var(--logo-black);
  }
  .hero .hero-card {
    width: 100%;
    padding: 12px;
  }
  .features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .feature {
    background: var(--card);
    color: var(--logo-black);
    padding: 12px;
    border-radius: 12px;
  }
  /* make buttons larger and easier to tap */
  .btn {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
  }
  /* Toast fit to viewport on mobile */
  #toast {
    left: 12px !important;
    right: 12px !important;
    bottom: 16px !important;
    max-width: none;
    width: auto;
  }

  /* mobile: header stays in flow; no top padding required */
  /* Modal inner spacing reduced on small screens */
  .modal .modal-body {
    padding: 20px 18px !important;
  }
}
.user-submenu .um-list {
  padding: 6px 0;
}
.user-submenu .um-section input {
  width: 100%;
  box-sizing: border-box;
}
.user-submenu .um-footer {
  padding: 8px;
}

/* make the large menu responsive on small screens */
@media (max-width: 720px) {
  .user-submenu {
    right: 8px;
    left: 8px;
    min-width: auto;
    max-width: none;
  }
}

/* When container has .open, show menu */
#userMenuContainer.open .user-submenu {
  display: block;
}

/* Modal improvements for profile/password modal */
.modal {
  max-width: 420px;
  padding: 16px;
  position: relative;
}
.modal .modal-body h2 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--logo-black);
}
.modal .modal-body {
  padding: 6px 0;
}
.modal .modal-body label {
  display: block;
  margin-bottom: 6px;
  color: var(--logo-black);
  font-weight: 500;
}
.modal .modal-body input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--logo-black);
  outline: none;
}
.modal .modal-body input:focus {
  box-shadow: 0 6px 20px rgba(88, 80, 200, 0.06);
  border-color: var(--accent-from);
}
.modal .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.modal .field-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}
.modal .modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 120ms ease;
  box-shadow: none;
}
.modal .modal-close svg {
  display: block;
  width: 14px;
  height: 14px;
}
.modal .modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--logo-black);
  transform: translateY(-1px);
}
.modal .modal-close:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(88, 80, 200, 0.12);
  background: rgba(88, 80, 200, 0.06);
  color: var(--logo-black);
}

/* Modal overlay to display centered popups */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 24, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 14000;
}
.modal-overlay[aria-hidden="false"] {
  display: flex;
}
.modal-overlay .modal {
  background: var(--card);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(3, 11, 24, 0.25);
  padding: 20px;
}

/* Hero and other styles (rest of stylesheet) */
.hero {
  max-width: 1100px;
  margin: 36px auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  padding: 28px;
  align-items: center;
}
.hero-text h1 {
  font-size: 44px;
  margin: 0 0 12px 0;
  color: var(--logo-black);
  line-height: 1.05;
}
.hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  object-fit: cover;
  border-radius: 14px; /* abgerundete Ecken */
  display: block;
  box-shadow: 0 8px 28px rgba(3,11,24,0.12);
}
.hero-text p {
  color: var(--muted);
  margin: 0 0 18px 0;
  max-width: 60ch;
}
.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: #2563eb; /* blue */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37,99,235,0.12);
  border: none; /* remove default border that appears dark */
}
.btn-primary:focus{ outline:none; box-shadow: 0 8px 28px rgba(37,99,235,0.18); }

/* Specific styling for the top "Fahrzeug hinzufügen" button */
#addVehicleTopBtn {
  background: #2563eb; /* blue */
  color: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(37,99,235,0.12);
}
#addVehicleTopBtn:hover {
  background: #1e40af;
}

/* Make the "Exportieren" button label blue to match the add button */
#exportBtn {
  background: transparent;
  color: #2563eb;
  border: 1px solid var(--border);
  font-weight: 600;
}
#exportBtn:hover{
  background: rgba(37,99,235,0.06);
}

.hero-card .card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
/* make the weather card visually distinct */
.hero-card .card.server-card {
  max-width: 360px;
}

/* Weather widget specific styles */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}
.weather-widget .w-left {
  font-size: 48px;
  line-height: 1;
  color: var(--logo-black);
}
.weather-widget .w-right .w-temp {
  font-size: 28px;
  font-weight: 700;
  color: var(--logo-black);
}
.weather-widget .w-right .w-cond {
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .weather-widget .w-left {
    font-size: 36px;
  }
  .hero {
    grid-template-columns: 1fr 280px;
  }
}

/* Homepage features section: left column for quick-stats, right for details */
.features {
  max-width: 1100px;
  margin: 12px auto 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 28px;
}
.features .feature {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 17, 26, 0.04);
  color: var(--logo-black);
}
.features .feature h3 {
  margin: 0 0 8px 0;
  color: var(--logo-black);
  font-size: 1.05rem;
}
.features .feature p,
.features .feature div {
  color: var(--muted);
}
.features .feature .small-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 14px;
  }
}

/* Cards should use visible text color */
.card .amount {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--logo-black);
}
.card .status {
  margin: 6px 0 0 0;
  color: var(--muted);
}
/* Generic card style used across pages (dashboard, features, etc.) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
}

/* Specific styling for the Fahrzeuge button on the dashboard */
#vehiclesBtn {
  background: #ffffff;
  color: var(--logo-black);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 10px 16px;
  border-radius: 10px;
}
#vehiclesBtn:hover {
  background: #f7f7f7;
}
/* server-card (homepage) should be left-aligned */
.hero-card .card.server-card {
  text-align: left;
}
.card .amount {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}
.card .status {
  margin: 6px 0 0 0;
  color: var(--muted);
}

/* The rest of the original stylesheet continues... */

/* Settings dropdown two-column panel */
.settings-panel {
  display: flex;
  gap: 0;
  min-width: 320px;
  max-width: 740px;
  width: 540px;
}
.settings-panel .settings-categories {
  width: 160px;
  border-right: 1px solid #eee;
  background: var(--card);
  padding: 8px;
  border-radius: 8px 0 0 8px;
}
.settings-panel .settings-categories button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--logo-black);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}
.settings-panel .settings-categories button[aria-selected="true"] {
  background: #f5f7ff;
  color: var(--logo-black);
  box-shadow: inset 0 0 0 1px rgba(88, 80, 200, 0.04);
}
.settings-panel .settings-content {
  flex: 1;
  padding: 12px 14px;
}
.settings-panel .settings-section {
  display: none;
}
.settings-panel .settings-section.active {
  display: block;
}

/* Make the settings dropdown appear as a white boxed panel */
#settingsDropdown .settings-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 17, 26, 0.08);
  overflow: hidden;
}

#settingsDropdown {
  /* ensure the outer container doesn't override the boxed look */
  pointer-events: auto;
}

@media (max-width: 720px) {
  .settings-panel {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
  }
  .settings-panel .settings-categories {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
  }
}

/* Profile card and grouped list (dashboard right column) */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.profile-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  color: var(--logo-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-name {
  font-weight: 700;
  color: var(--logo-black);
  font-size: 1rem;
}
.profile-id {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.group-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.group-card .group-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: var(--logo-black);
}

/* Thin vertical divider between left column and middle column on dashboard */
#dashboardColumns {
  position: relative;
}
#dashboardColumns > #leftCol {
  border-right: 1px solid rgba(0,0,0,0.06);
  padding-right: 12px;
  position: relative;
}

@media (max-width: 900px) {
  /* hide divider on small screens where columns stack */
  #dashboardColumns > #leftCol {
    border-right: none;
    padding-right: 0;
  }
}
.group-card .group-list {
  display: flex;
  flex-direction: column;
}
.group-card .group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--logo-black);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  background: transparent;
}
.group-card .group-item:first-of-type {
  border-top: none;
}
.group-card .group-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.group-card .group-item.active{
  background:#f5f7fb;
  border-left:3px solid rgba(88,80,200,0.12);
  padding-left:13px;
}
.group-card .group-item.active .gi-label{font-weight:700}
.gi-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-black);
  flex: 0 0 28px;
}

/* Icon image handling: prefer image files in /uploads/icons/<slug>/icon.svg
   If the image is missing, show the inline SVG fallback (.gi-fallback) */
.gi-icon img.gi-img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}
.vehicle-thumb {
  width: 56px;
  height: 36px;
  display: inline-block;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f7fb;
  flex: 0 0 56px;
}
.header-groups {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
  /* keep header buttons compact and aligned with navbar buttons */
  height: 40px;
}
.header-groups .group-card {
  display: none; /* hide full cards when moved */
}
.header-groups .group-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  min-height: 36px;
  color: var(--muted);
  transition: background 140ms ease, transform 90ms ease, border-color 140ms ease;
}
.header-groups .group-item:hover { background: #f5f7fb; transform: translateY(-1px); border-color: rgba(0,0,0,0.04); }
.header-overview { font-weight:700; color: var(--logo-black); }
.header-inbox { position: relative; }
.header-inbox .gi-chev { display:none }
.header-inbox .gi-label { display:inline-block; margin-left:6px; color: var(--logo-black); font-weight:600 }
.header-inbox .inbox-badge { background:var(--logo-yellow); color:#000; padding:2px 6px; border-radius:12px; font-weight:700; margin-left:8px; font-size:0.85rem }
.header-verwaltung { position: relative; }
.header-verwaltung-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 22px rgba(11,17,26,0.08);
  z-index: 60;
}
.header-verwaltung-menu .header-verwaltung-item { display:flex; align-items:center; gap:8px; padding:8px; border-radius:6px }
.header-verwaltung-menu .header-verwaltung-item:hover { background: rgba(0,0,0,0.03); }

/* Make header groups disappear on small screens (mobile menu should replace them) */
@media (max-width: 900px) {
  .header-groups { display: none; }
}

/* Layout tweaks after left column removal */
#dashboardColumns { gap: 12px; }
#middleCol { flex: 1 1 auto; min-width: 0; max-width: none; }
#rightCol { flex: 0 0 360px; }
.gi-icon .gi-fallback { display: none; }
.gi-icon.no-img .gi-fallback { display: inline-flex; }

/* Dashboard overview grid (three cards) */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch; /* make grid items stretch to equal height */
}
.overview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(11,17,26,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  height: 100%; /* ensure grid item fills the row height */
}
.overview-grid > .overview-card { height: 100%; }
.overview-card .ov-head {
  font-weight: 700;
  font-size: 1rem;
  color: var(--logo-black);
  margin-bottom: 12px;
}
.overview-card .ov-body {
  flex: 1 1 auto;
  color: var(--muted);
}
.overview-card .ov-cta {
  border-top: 1px solid rgba(0,0,0,0.04);
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overview-card .ov-cta a { text-decoration: none; color: var(--muted); font-weight:600 }

@media (max-width: 920px) {
  .overview-grid { grid-template-columns: 1fr; }
}

/* Make overview CTA links a bit lighter blue for emphasis */
.overview-card .ov-cta a {
  color: #3b82f6; /* Tailwind blue-500 - slightly lighter blue */
  font-weight: 700;
}
.overview-card .ov-cta a:hover {
  color: #1e40af; /* darker blue on hover */
  text-decoration: underline;
}
.left-col .btn.active, #leftCol .btn.active {
  background: #f5f7fb;
  border-color: rgba(0,0,0,0.08);
  color: var(--logo-black);
  font-weight: 700;
}
.gi-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gi-chev {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 280px;
  }
}

/* Inbox card styles */
.inbox-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.important-events-card,
#importantEventsCard {
  margin-right: 12px;
}

/* small hide button inside important events card */
#importantEventsCard .hide-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
#importantEventsCard .hide-btn:hover { color: var(--logo-black); }
.inbox-card .inbox-header {
  padding: 6px 0;
}
.inbox-card .inbox-list {
  padding-top: 6px;
}
.inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
}
.inbox-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.inbox-item .gi-chev {
  font-size: 0.95rem;
}

/* Stadttaxi section */
.stadttaxi-section {
  background: linear-gradient(90deg,#000000 0%, #071026 100%);
  color: #fff;
  padding: 40px 18px;
  margin: 28px 0;
  border-radius: 0; /* Ecken nicht rund */
  box-shadow: 0 12px 40px rgba(2,6,23,0.16);
}
.stadttaxi{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  gap:28px;
  align-items:center;
  flex-wrap:wrap;
}
.stadttaxi-left{flex:0 0 420px;display:flex;align-items:center;justify-content:center;position:relative}
.big-fraction{font-size:6.4rem;font-weight:900;color:#ffffff;line-height:0.9;position:relative;z-index:2;display:inline-flex;align-items:baseline;gap:8px;padding:6px 12px}
.big-fraction .one{font-size:0.44em;transform:translateY(-0.18em);opacity:0.98}
.big-fraction .slash{opacity:0.75;margin:0 6px;font-size:0.62em}
.big-fraction .three{font-size:0.95em}

/* Glow / leuchtender Hintergrund hinter der 1/3 Zahl */
/* keep only a very subtle container glow — most bloom now on the digits */
.stadttaxi-left::before{
  content: "";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:260px;
  height:120px;
  pointer-events:none;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 18%, rgba(0,0,0,0) 36%);
  filter: blur(12px);
  z-index:0;
}

/* stronger number glow: text shadow + soft radial ::after behind the fraction + pulsing */
.big-fraction{
  text-shadow: 0 6px 18px rgba(255,255,255,0.9), 0 0 36px rgba(255,255,255,0.35);
}
.big-fraction::after{
  /* make the overall fraction glow very subtle; main bloom is on digits */
  content: "";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:36%;
  height:90%;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.28) 18%, rgba(255,255,255,0.08) 38%, rgba(0,0,0,0) 60%);
  filter: blur(12px) saturate(100%);
  z-index:0;
  pointer-events:none;
  opacity:0.6;
  animation: pulseGlow 3.2s ease-in-out infinite;
}

@keyframes pulseGlow{
  0%{transform:translate(-50%,-50%) scale(0.98); opacity:0.9}
  50%{transform:translate(-50%,-50%) scale(1.06); opacity:1}
  100%{transform:translate(-50%,-50%) scale(0.98); opacity:0.9}
}

/* Bloom effect applied to the digits themselves */
.big-fraction span.one, .big-fraction span.three {
  position: relative;
  z-index: 3;
  color: #fff;
  /* toned-down crisp text shadow + subtle outer glow */
  text-shadow: 0 1px 4px rgba(0,0,0,0.45), 0 0 6px rgba(255,255,255,0.42);
}

.big-fraction span.one::before,
.big-fraction span.three::before {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 1;
  color: rgba(255,255,255,1);
  mix-blend-mode: screen;
  /* soft blurred duplicate sized to the digit (uses same glyph) */
  filter: blur(6px) saturate(105%);
  opacity: 0.6;
  pointer-events: none;
  white-space: pre;
}

/* Add an extra layer with larger blur and subtle animation for living bloom */
.big-fraction span.one::after,
.big-fraction span.three::after {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1.08);
  z-index: 0;
  color: rgba(255,255,255,0.95);
  filter: blur(14px) saturate(110%);
  opacity: 0.56;
  pointer-events: none;
  animation: bloomPulse 3.6s ease-in-out infinite;
}

@keyframes bloomPulse {
  0% { transform: translate(-50%,-50%) scale(1.03); opacity:0.88 }
  50% { transform: translate(-50%,-50%) scale(1.06); opacity:0.95 }
  100% { transform: translate(-50%,-50%) scale(1.03); opacity:0.88 }
}

/* remove round corners for right column too */
.stadttaxi-right{flex:1;min-width:260px;border-radius:0}
.stadttaxi-right{flex:1;min-width:260px}
.stadttaxi-right h2{margin:0 0 12px 0;font-size:1.8rem}
.stadttaxi-right p{margin:0 0 18px 0;color:rgba(255,255,255,0.86)}
.cta-row{display:flex;gap:12px}
.stadttaxi .btn{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.08);color:#fff}
.stadttaxi .btn:hover{transform:translateY(-4px);box-shadow:0 18px 30px rgba(0,0,0,0.25)}

@keyframes glowPulse{0%{filter:drop-shadow(0 0 0 rgba(0,0,0,0))}50%{filter:drop-shadow(0 0 28px rgba(255,255,255,0.14))}100%{filter:drop-shadow(0 0 0 rgba(0,0,0,0))}}
.big-fraction{animation:glowPulse 3.4s ease-in-out infinite}

@media (max-width:780px){
  .big-fraction{font-size:3.6rem}
  .stadttaxi-left{flex-basis:100%;justify-content:flex-start}
  .stadttaxi-right{flex-basis:100%}
}

