body {
      background-color: #f9f9f9;
      color: #222;
      font-family: 'Inter', sans-serif;
      margin: 0;
      padding: 1rem;
      max-width: 100%;
      box-sizing: border-box;
    }

    /* ---------- Top Menü ---------- */
    .top-menu {
      position: fixed;
      top: 0;
      left: -31px;
      width: 100%;
      background: #fff;
      padding: 1rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .top-menu h1 {
      font-size: 1.2rem;
      margin: 0;
      flex: 1;
      text-align: center;
    }

    .top-menu button {
      font-size: 0.9rem;
      padding: 0.3rem 0.6rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    /* ---------- Filterbereich ---------- */
    .filter-section {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 8px;
      padding: 1rem;
      margin-top: 120px;
      margin-bottom: 2rem;
    }

    .filter-group {
      margin-left: 0;
      margin-right: auto;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      max-width: 600px;     /* Begrenzung für Select-Filter */
      min-height: 2.4rem;
    }

    .filter-group label {
      white-space: nowrap;
      font-weight: 600;
      margin: 0;
      width: 120px;
    }

    .filter-group select {
      flex: 1;
      margin: 0;
      padding: 0.3rem;
    }

    .range-filter {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      max-width: 600px;
      min-height: 2.4rem;
    }

    .range-filter label {
      white-space: nowrap;
      font-weight: 600;
      margin: 0;
      width: 120px;
    }

    .range-filter .range-value {
      font-size: 0.8rem;
      width: 5.5rem; /* Einheitlich, genug Platz für z. B. „99999 €“ */
      width: 60px;
      text-align: right;
      flex-shrink: 0;
    }


    .range-filter input[type="range"] {
      flex: 1 1 auto;
      width: 300px;
      min-width: 150px;
      
    }

    .range-values {
      display: flex;
      gap: 0.3rem;
      font-size: 0.85rem;
      white-space: nowrap;
    }

    /* ---------- Desktop-Tabelle ---------- */
    .desktop-table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      border: 1px solid #ccc;
    }

    .desktop-table th, .desktop-table td {
      text-align: right;
      padding: 0.6rem;
      border: 1px solid #ccc;
      font-size: 0.75rem;
      min-width: 100px;
    }

    .desktop-table th {
      background: #eee;
      text-align: left;
    }

    .desktop-table td.Links {
      text-align: left;
    }

    /* ---------- Tablet-Spezifisch ---------- */
    @media only screen and (min-width: 768px) and (max-width: 1366px) {
      .hide-on-ipad {
        display: none !important;
      }
    }

    /* ---------- Mobile Darstellung ---------- */
    @media (max-width: 767px) {
      .filter-section {
        gap: 0.3rem;
        padding: 0.6rem 1rem;
      }

      .filter-group {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        min-height: 2rem;
        padding-top: 0.3rem;
      }

      .filter-group label {
        width: 100%;
        margin-bottom: 0.1rem;
        font-size: 0.9rem;
      }

      .filter-group select {
        width: 100%;
        font-size: 0.9rem;
        border-radius: 2px;
     }

      .range-filter {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
      }

      .range-filter input[type="range"] {
        width: 100%;
        margin-top: 0.3rem;
      }

      .range-filter .range-value {
        width: auto;
        text-align: right;
        align-self: flex-end;
        margin-top: -0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
      }


      .desktop-table {
        display: none;
      }

      .card-specs {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.4rem 1rem;
        font-size: 0.9rem;
      }

      .card-specs div {
        display: contents;
      }

      .card-specs span:first-child {
        padding: 4px;
        font-weight: 600;
        color: #000;
        border-radius: 2px;
        border: 1px solid #efefef;
      }

      .card-specs span:last-child {
        padding: 4px;
        text-align: left;
        color: #000;
        border-radius: 2px;
        background-color: #efefef;
      }

      .mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }

      .ev-card {
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        font-size: 0.9rem;
      }

      .ev-card h3 {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        color: #222;
      }

      .ev-card p {
        margin: 0.2rem 0;
      }

      #colorPanel {
        margin-top: 5px;
      }
    }

    /* ---------- Farb-Slider: Unabhängig vom restlichen Layout ---------- */
    #colorPanel {
      z-index: 2000;
      display: none;
      position: absolute;
      top: 3.5rem;
      right: 1rem;
      padding: 0.5rem;
      background: #f0f0f0;
      border: 1px solid #ccc;
      border-radius: 4px;
      width: 90vw;
      max-width: 180px;
      font-size: 0.75rem;
      
    }

    .color-slider {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .color-slider .slider-row {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .color-slider label {
      width: 2.5rem;
      font-weight: 600;
      font-size: 0.75rem;
      white-space: nowrap;
      flex-shrink: 0;
      margin: 5px;
    }

    .color-slider input[type="range"] {
      flex: 1 1 auto;
      width: 100%;
      max-width: 90px;
      height: 14px;
      margin: 0;
    }

    .color-slider span {
      font-family: monospace;
      font-size: 0.75rem;
      width: 2.5rem;
      text-align: right;
      flex-shrink: 0;
    }