    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --yellow:    #F5C200;
      --yellow-dk: #d4a800;
      --dark:      #1a1a1a;
      --dark-nav:  #111111;
      --white:     #ffffff;
      --blue:      #3a5bd9;
      --blue-dk:   #2d4bbf;

      /* ─── FONT STACKS ─── */
      --font-primary: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont,
                      'Segoe UI Variable', 'Segoe UI', sans-serif;
      --font-accent:  'Fjord One', 'Palatino Linotype', 'Book Antiqua',
                      Palatino, 'Georgia Pro', Georgia, serif;

      /* ─── TYPESCALE 1.25 · Base 18px ─── */
      --text-tiny:  0.64rem;   /* 11.52px */
      --text-small: 0.8rem;    /* 14.4px  */
      --text-p:     1rem;      /* 18px    */
      --text-h6:    1.25rem;   /* 22.5px  */
      --text-h5:    1.563rem;  /* 28.13px */
      --text-h4:    1.953rem;  /* 35.16px */
      --text-h3:    2.441rem;  /* 43.95px */
      --text-h2:    3.052rem;  /* 54.93px */
      --text-h1:    3.815rem;  /* 68.66px */

      /* ─── GRID ─── */
      --container-width: 1200px;
      --gutter: 24px;
      --margin: 30px;

      /* ─── CHECKER ─── */
      --checker-size: 24px;
    }

    /* ─── BASE TYPOGRAPHY ─── */
    html { font-size: 18px; }

    body {
      font-family: var(--font-primary);
      font-size: var(--text-p);
      font-weight: 400;
      line-height: 1.6;
      background: var(--dark);
      color: var(--white);
      overflow-x: hidden;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-primary);
      font-weight: 700;
      line-height: 1.15;
    }
    h1 { font-size: var(--text-h1); font-weight: 800; }
    h2 { font-size: var(--text-h2); font-weight: 700; }
    h3 { font-size: var(--text-h3); font-weight: 700; }
    h4 { font-size: var(--text-h4); font-weight: 600; }
    h5 { font-size: var(--text-h5); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
    h6 { font-size: var(--text-h6); font-weight: 500; }
    p  { font-size: var(--text-p);  font-weight: 400; }
    small      { font-size: var(--text-small); }
    .text-tiny { font-size: var(--text-tiny);  }
    .font-accent { font-family: var(--font-accent); font-weight: 400; }

    /* ─── CONTAINER + GRID ─── */
    .container {
      width: 100%;
      max-width: var(--container-width);
      margin: 0 auto;
      padding: 0 var(--margin);
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: var(--gutter);
    }

    /* ─── BTN BASE ─── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-primary);
      font-weight: 700;
      text-decoration: none;
      border: none;
      cursor: pointer;
      border-radius: 8px 0 8px 8px;   /* Design-spezifischer Radius */
      transition: background 0.2s, transform 0.15s;
    }
    .btn:hover { transform: translateY(-1px); }

    /* ─── NAV ─── */
    nav {
      background: var(--dark-nav);
      position: relative;
      z-index: 100;
	  padding: 24px 0; 
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
    }

    .logo {
      font-family: var(--font-primary);
      font-size: var(--text-h6);
      font-weight: 700;
      color: var(--white);
      text-decoration: none;
      letter-spacing: 0.01em;
    }
    .logo span { color: var(--yellow); }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
    }
    .nav-links a {
      color: var(--white);
      text-decoration: none;
      font-size: var(--text-p);
      font-weight: 500;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--yellow); }

    .btn-kontakt {
      gap: 10px;
      background: var(--yellow);
      color: var(--dark);
      font-size: var(--text-p);
      padding: 8px 16px;
    }
    .btn-kontakt:hover { background: var(--yellow-dk); }
    .btn-kontakt .x-icon {
      width: 16px;
      height: 16px;
      background: var(--dark);
      color: var(--yellow);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 900;
      flex-shrink: 0;
      border-radius: 2px;
    }

    /* ─── CHECKERBOARD (wiederverwendbar) ─── */
    .checker {
      height: var(--checker-size);
      width: 100%;
      overflow: hidden;
      display: flex;
      flex-shrink: 0;
    }
    .checker-strip {
      display: flex;
      width: 100%;
      height: 100%;
    }
    .checker-cell {
      height: 100%;
      flex: none;
    }
    .checker-cell:nth-child(odd)  { background: var(--yellow); }
    .checker-cell:nth-child(even) { background: var(--dark); }

    /* Checker Variante für hellen Hintergrund (Fuhrpark) */
    .checker--light .checker-cell:nth-child(even) { background: #f0ede8; }

    /* ─── HERO ─── */
    .hero {
      position: relative;
      min-height: calc(100vh - 240px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('../assets/images/hero-bg.jpg');
      background-size: cover;
      background-position: center;
      filter: brightness(0.45);
      z-index: 0;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.0) 40%,
        rgba(0,0,0,0.0) 60%,
        rgba(0,0,0,0.55) 100%
      );
      z-index: 1;
    }

    .hero-body {
      position: relative;
      z-index: 2;
      padding-bottom: 56px;   /* Platz für Checker unten */
    }

    .hero-content {
      grid-column: 1 / span 12;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero-sub {
      font-size: var(--text-small);
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--white);
      margin-bottom: 16px;
      opacity: 0.85;
    }

    .hero-title {
      font-size: var(--text-h1);
      font-weight: 800;
      line-height: 1.0;
      color: var(--white);
      margin-bottom: 32px;
    }
    .hero-title .accent {
      font-family: var(--font-accent);
      font-weight: 400;
      color: var(--yellow);
    }

    .btn-dashboard {
      background: var(--yellow);
      color: var(--dark);
      font-size: var(--text-p);
      padding: 14px 32px;
      letter-spacing: 0.04em;
    }
    .btn-dashboard:hover { background: var(--yellow-dk); }

    /* Checker am unteren Rand des Hero */
    .hero-checker {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 3;
    }

    /* ─── FUHRPARK ─── */
    .fuhrpark {
      background: #f0ede8;
      color: var(--dark);
      padding: 80px 0 0;       /* kein padding-bottom — Checker übernimmt */
      position: relative;
    }
	
	/* Fuhrpark Filter Select — blau */
	#filter-fuhrpark {
	  background: var(--blue);
	  color: var(--white);
	}
	#filter-fuhrpark:hover { background: var(--blue-dk); }
	
	.auto-fahrer {
		min-height: 1.4em;
	}
	/* Pfeil auch weiß */
	#filter-fuhrpark + .select-wrap::after,
	.section-header .select-wrap::after {
	  border-top-color: var(--white);
	}

    .section-sub {
      font-size: var(--text-tiny);
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #888;
      margin-bottom: 8px;
    }

    .section-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 40px;
    }

    .section-header h2 {
      color: var(--dark);
      line-height: 1;
      margin-top: 4px;
    }

    .btn-filter {
      gap: 10px;
      background: var(--blue);
      color: var(--white);
      font-size: var(--text-small);
      padding: 10px 18px;
      align-self: center;
      white-space: nowrap;
      flex-shrink: 0;
    }
	
    .btn-filter:hover { background: var(--blue-dk); }

    /* Cards Grid */
    .fuhrpark-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      column-gap: var(--gutter);
      row-gap: 56px;              /* mehr Zeilenabstand für Überlappung */
      padding-bottom: 160px;
    }

    .auto-card {
      background: var(--white);
      border-radius: 12px;
      border: 2px solid transparent;
      padding: 28px 28px 0;
      display: flex;
      flex-direction: column;
      overflow: visible;          /* erlaubt Überlappung */
      transition: border-color 0.2s, box-shadow 0.2s;
      cursor: pointer;
    }
    .auto-card:hover,
    .auto-card.active {
      border-color: var(--blue);
      box-shadow: 0 4px 24px rgba(58, 91, 217, 0.15);
    }

    .auto-card h4 {
      color: var(--dark);
      margin-bottom: 10px;
    }

    .auto-card > p {
      color: #666;
      font-size: var(--text-small);
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .btn-mehr {
      background: var(--blue);
      color: var(--white);
      font-size: var(--text-tiny);
      padding: 8px 18px;
      width: fit-content;
      margin-bottom: 20px;
    }
    .btn-mehr:hover { background: var(--blue-dk); }

    .auto-card-img {
      height: 160px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      margin-top: auto;
      margin-bottom: -32px;
    }
    .auto-card-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: bottom center;
    }
    .auto-card-img svg,
    .auto-card-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: bottom center;
    }

    /* ─── POWERED BY ─── */
    .powered-by {
      position: absolute;
      bottom: 40px;        /* über dem Checkerboard */
      right: var(--margin);
      max-width: 140px;
      z-index: 4;
    }
    /* ─── DASHBOARD ─── */
    .dashboard {
      background: var(--dark);
      color: var(--white);
	  padding-bottom: 120px;
    }

    .dashboard h2 {
      color: var(--white);
      margin-bottom: 24px;
	  margin-top: 48px;
    }

    .dashboard-filters {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Custom Select Wrapper */
    .select-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .select-wrap select {
      appearance: none;
      -webkit-appearance: none;
      background: var(--yellow);
      color: var(--dark);
      font-family: var(--font-primary);
      font-size: var(--text-small);
      font-weight: 600;
      border: none;
      border-radius: 8px 0 8px 8px;
      padding: 8px 36px 8px 14px;
      cursor: pointer;
      outline: none;
      transition: background 0.2s;
    }
    .select-wrap select:hover { background: var(--yellow-dk); }

    /* Pfeil-Icon */
    .select-wrap::after {
      content: '';
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 6px solid var(--dark);
    }

    /* ─── FOOTER ─── */
    .footer {
      background: var(--dark-nav);
      color: var(--white);
      padding: 0 0 64px 0;
    }

    .footer-inner {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gutter);
      padding-bottom: 48px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
	  padding-top: 48px; 
    }

    .footer-logo .logo {
      display: inline-block;
      margin-bottom: 12px;
    }

    .footer-logo p {
      font-size: var(--text-small);
      color: rgba(255,255,255,0.5);
    }

    .footer-nav ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-nav a {
      color: rgba(255,255,255,0.6);
      text-decoration: none;
      font-size: var(--text-small);
      font-weight: 500;
      transition: color 0.2s;
    }
    .footer-nav a:hover { color: var(--yellow); }

    .footer-contact p:first-child {
      font-size: var(--text-h6);
      font-weight: 700;
      margin-bottom: 10px;
    }

    .footer-contact p:last-child {
      font-size: var(--text-small);
      color: rgba(255,255,255,0.5);
      line-height: 1.6;
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
    }

    .footer-bottom p {
      font-size: var(--text-tiny);
      color: rgba(255,255,255,0.35);
    }

    .footer-powered-by {
      max-width: 110px;
      opacity: 0.6;
    }

    /* ─── ABOUT US ─── */
    .about-us {
      background: #f0ede8;
      color: var(--light);
      padding: 80px 0;
	  background-image: url("../assets/images/ueber-uns-bg.jpg");
	  background-repeat: no-repeat;
	  background-position: center center;
	  background-size: cover;
    }

    .about-us .section-header {
      margin-bottom: 48px;
    }
	
	#ueber-uns .section-sub {
		color: white;
		padding-top: 96px;
	}

    .about-us .section-header h2 {
      color: var(--light);
    }

    .about-text {
      grid-column: 1 / span 6;
      display: flex;
      flex-direction: column;
      gap: 20px;
      justify-content: center;
    }

    .about-text p {
      color: #EEE;
      line-height: 1.7;
    }

    .about-image {
      grid-column: 7 / span 6;
    }

    .about-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
    }

    /* ─── AUTO CARD ERWEITERUNGEN ─── */
    .auto-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px; 
    }

    .auto-card-header h4 { margin-bottom: 0; }

    /* Status Badge */
    .auto-status {
      font-size: var(--text-small);
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      letter-spacing: 0.04em;
    }
    .status--aktiv {
      background: #d4f5e2;
      color: green;
    }
    .status--steht {
      background: #e8e8e8;
	  font-weight: 800;
      color: red;
    }

    /* Fahrername */
    .auto-fahrer {
      font-size: var(--text-small);
      color: #888;
      margin-bottom: 12px !important;
    }

    /* Meta: km + ladestand nebeneinander */
    .auto-meta {
      display: flex;
      justify-content: space-between;
      font-size: var(--text-tiny);
      color: #555;
      margin-bottom: 8px;
	  flex-direction: column;
	  gap: 20px;
    }
    .auto-meta strong { font-weight: 700; color: var(--dark); }

    /* Ladebalken */
    .auto-ladebalken {
      width: 100%;
      height: 6px;
      background: #e0e0e0;
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .auto-ladebalken-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.4s ease;
    }
    .ladebalken--gruen { background: #2ecc71; }
    .ladebalken--gelb  { background: #f39c12; }
    .ladebalken--rot   { background: #e74c3c; }

    /* ─── DASHBOARD FILTER ─── */
    .dashboard-filters {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 48px;
    }

    .dashboard-filters .select-wrap select {
      background: var(--yellow);
      color: var(--dark);
    }

    /* Date Input gleich aussehen wie Select */
    .select-wrap--date input[type="date"] {
      appearance: none;
      background: var(--yellow);
      color: var(--dark);
      font-family: var(--font-primary);
      font-size: var(--text-small);
      font-weight: 600;
      border: none;
      border-radius: 8px 0 8px 8px;
      padding: 8px 14px;
      cursor: pointer;
      outline: none;
    }
    .select-wrap--date input[type="date"]:hover {
      background: var(--yellow-dk);
    }

    /* ─── KPI GRID ─── */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gutter);
    }

    .kpi-box {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .kpi-icon {
      font-size: 1.6rem;
      margin-bottom: 4px;
    }

    .kpi-label {
      font-size: var(--text-tiny);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
    }

    .kpi-wert {
      font-size: var(--text-h3);
      font-weight: 800;
      color: var(--yellow);
      line-height: 1;
    }

    .kpi-einheit {
      font-size: var(--text-small);
      color: rgba(255,255,255,0.4);
    }
	
	#karte {
    width: 100%;
    height: 460px;    ← das ist entscheidend
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ─── LEAFLET Map ─── */
    .karte-wrap {
      margin-top: 56px;
      padding-bottom: 80px;
    }

    .karte-wrap h3 {
      color: var(--white);
      margin-bottom: 20px;
	  padding-top: 48px !important;
    }

    #karte {
      width: 100%;
      height: 460px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.1);
    }
	
	    /* ─── LAYOUT SWITCHER ─── */

    /* BENTO */
    .kpi-grid--bento {
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .kpi-grid--bento .kpi-box:nth-child(1) {
      grid-column: 1;
      grid-row: 1 / 3;
    }
    .kpi-grid--bento .kpi-box:nth-child(2) {
      grid-column: 2;
      grid-row: 1;
    }
    .kpi-grid--bento .kpi-box:nth-child(3) {
      grid-column: 3;
      grid-row: 1;
    }
    .kpi-grid--bento .kpi-box:nth-child(4) {
      grid-column: 2;
      grid-row: 2;
    }
    .kpi-grid--bento .kpi-box:nth-child(5) {
      grid-column: 3;
      grid-row: 2;
    }

    /* MASONRY — simuliert mit unterschiedlichen min-heights */
    .kpi-grid--masonry {
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: auto;
      align-items: start;
    }
    .kpi-grid--masonry .kpi-box:nth-child(1) { min-height: 280px; }
    .kpi-grid--masonry .kpi-box:nth-child(2) { min-height: 380px; }
    .kpi-grid--masonry .kpi-box:nth-child(3) { min-height: 220px; }
    .kpi-grid--masonry .kpi-box:nth-child(4) { min-height: 320px; }
    .kpi-grid--masonry .kpi-box:nth-child(5) { min-height: 260px; }

    .kpi-grid--masonry .kpi-chart-wrap {
      height: auto;
      flex: 1;
      min-height: 80px;
    }

    /* Smooth Transition beim Wechsel */
    .kpi-grid {
      transition: all 0.3s ease;
    }
    .kpi-box {
      transition: all 0.3s ease;
    }
	#filter-layout {
	background: var(--blue);
	  color: var(--white);
	}
	#filter-layout:hover { background: var(--blue-dk); }
	
	/* Weißer Pfeil für Layout Select */
	.select-wrap:has(#filter-layout)::after {
	  border-top-color: var(--white);
	}

	/* Layout Select rechtsbündig */
	.select-wrap:has(#filter-layout) {
	  margin-left: auto;
	}

    /* ─── AUTO LADESTAND ANIMATION ─── */
    .auto-card-img {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
    }

    .auto-img {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: bottom;
    }

    /* Graues Bild — immer voll sichtbar im Hintergrund */
    .auto-img--grau {
      filter: grayscale(1) brightness(0.4);
      z-index: 1;
    }

    /* Gelbes Bild — von unten hochgeclippt je nach Ladestand */
    .auto-img--gelb {
      filter: sepia(1) saturate(8) hue-rotate(5deg) brightness(1.1);
      z-index: 2;
      clip-path: inset(calc(100% - var(--ladestand, 0%)) 0 0 0);
      transition: clip-path 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* ─── KPI BOX HEADER + TOGGLE ─── */
    .kpi-box-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4px;
    }

    .kpi-box-header .kpi-icon {
      margin-bottom: 0;
    }

    .kpi-toggle {
      display: flex;
      gap: 4px;
    }

    .kpi-toggle-btn {
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.4);
      border: none;
      border-radius: 6px 0 6px 6px;
      font-family: var(--font-primary);
      font-size: var(--text-tiny);
      font-weight: 700;
      padding: 4px 10px;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }

    .kpi-toggle-btn:hover {
      background: rgba(255,255,255,0.15);
      color: var(--white);
    }

    .kpi-toggle-btn.active {
      background: var(--yellow);
      color: var(--dark);
    }
	    /* ─── AUTO CARD HEADER RECHTS ─── */
    .auto-card-header-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 4px;
    }
 
    .auto-card-header-right .auto-fahrer {
      font-size: var(--text-tiny);
      color: #888;
      font-weight: 600;
      margin-bottom: 0 !important;
      min-height: auto;
      text-align: right;
    }
 