


/* ==== Reset & Base ==== */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Poppins',sans-serif;background:#f5f8fc;padding-top:120px}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 120px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;

  /* Vertikal (oben hell → unten dunkel) + horizontal gespiegelt */
  background: linear-gradient(180deg, #2c5364 0%, #203a43 60%, #0f2027 100%),
              linear-gradient(270deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.logo-container{display:flex;align-items:flex-end;height:100%;margin-left:-10px}
.logo{height:120px;width:auto}

/* ==== Links (Layout) ==== */
.nav-links{display:flex;align-items:center;gap:24px;list-style:none}
.nav-links li{position:relative}
.nav-links a{
  display:inline-flex;align-items:center;gap:6px;
  text-decoration:none;color:#fff;font-weight:500;font-size:18.5px;
  transition:color .25s ease
}
.nav-links a:hover{color:#00ffcc}
.nav-links .active>a{color:#00ffcc;border-bottom:2px solid #00ffcc}

/* ==== Pill-Stil + Hover / Press ==== */
.nav-links>li:not(.active)>a{
  position:relative;overflow:hidden;
  padding:7px 14px;border-radius:14px;
  background:rgba(0,0,0,.2);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter:saturate(120%) blur(2px);
  backdrop-filter:saturate(120%) blur(2px);
  transition:background-color .25s ease,box-shadow .25s ease,transform .18s ease,color .25s ease;
}
.nav-links>li:not(.active)>a:hover,
.nav-links>li:not(.active)>a:focus{
  background:rgba(0,0,0,.3);
  color:#00ffcc;
  box-shadow:0 8px 22px rgba(0,184,169,.18), inset 0 1px 0 rgba(255,255,255,.14);
  outline:none;
}
.nav-links>li:not(.active)>a:active{transform:translateY(1px) scale(.985)}
/* Glanz-Sweep */
.nav-links>li:not(.active)>a::before{
  content:"";position:absolute;inset:0;left:-130%;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.15) 50%,transparent 100%);
  transform:skewX(-20deg);opacity:0;transition:transform .55s ease,opacity .35s ease;pointer-events:none
}
.nav-links>li:not(.active)>a:hover::before,
.nav-links>li:not(.active)>a:focus::before{transform:translateX(230%) skewX(-20deg);opacity:.9}
/* Ripple */
.nav-links>li:not(.active)>a::after{
  content:"";position:absolute;top:50%;left:50%;width:10px;height:10px;border-radius:999px;
  background:radial-gradient(circle at center,rgba(0,184,169,.45),transparent 70%);
  transform:translate(-50%,-50%) scale(0);transition:transform .35s ease;pointer-events:none
}
.nav-links>li:not(.active)>a:active::after{transform:translate(-50%,-50%) scale(14)}

/* ==== Neuer Pfeil (näher am Text + Animationen) ==== */
.nav-arrow{
  display:inline-block;margin-left:2px;width:.9em;text-align:center;line-height:1;opacity:.9;
  transform:translateY(1px) rotate(0deg);transition:
    transform .22s cubic-bezier(.3,.7,.2,1.2),
    opacity .2s ease,color .2s ease, letter-spacing .2s ease
}
.nav-arrow::before{content:"❯"}              /* schlanker Rechts-Pfeil */
.dropdown>a:hover .nav-arrow,
.dropdown>a:focus .nav-arrow{color:#00ffcc;opacity:1;letter-spacing:.5px}
.dropdown>a:active .nav-arrow{transform:translateY(2px) rotate(10deg) scale(1.08)}
.dropdown>a[aria-expanded="true"] .nav-arrow{transform:translateY(2px) rotate(90deg)} /* nach unten */

/* ==== Dropdown (connected) ==== */
.dropdown-menu{
  position:absolute;top:calc(100% + 12px);left:0;min-width:230px;
  background:#1b2a37;border-radius:14px;border:1px solid rgba(255,255,255,.08);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  list-style:none;padding:8px 0;
  opacity:0;transform:translateY(6px) scale(.98);
  pointer-events:none;transition:opacity .22s ease, transform .22s ease;
  z-index:2000
}
/* Connector unter dem Pill – perfekt zentriert */
.dropdown.open > a::after{
  content:"";position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);
  width:22px;height:12px;border-radius:0 0 10px 10px;background:#1b2a37;
  border-left:1px solid rgba(255,255,255,.08);
  border-right:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 12px rgba(0,0,0,.22);pointer-events:none
}
/* wenn offen, Pill optisch verbinden */
.dropdown.open > a{
  background:rgba(0,0,0,.34);
  border-color:rgba(0,255,204,.22);
  box-shadow:0 12px 26px rgba(0,184,169,.16), inset 0 1px 0 rgba(255,255,255,.18);
}

.dropdown-menu.show{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}

.dropdown-menu li{width:100%}
.dropdown-menu a{
  display:block;padding:12px 16px;color:#fff;font-size:15px;
  transition:background .18s ease, padding-left .18s ease
}
.dropdown-menu a:hover,
.dropdown-menu a:focus{background:#2a3a48;color:#00ffcc;outline:none;padding-left:20px}

/* ==== CTA ==== */
.highlight-link{
  color:#00ffcc;border:2px solid #00ffcc;border-radius:12px;padding:6px 14px;transition:all .3s ease
}
.highlight-link:hover{background:#00ffcc;color:#003344}

/* ==== Mobile ==== */
.hamburger{display:none;font-size:26px;color:#fff;background:none;border:none;cursor:pointer}
.mobile-shortcuts{display:none}

@media (max-width:900px){
  body{padding-top:80px}

  .navbar{height:80px;padding:0 20px}
  .logo{height:70px}
  .logo-container{margin-left:-10px;margin-bottom:8px}

  .navbar-right-mobile{display:flex;align-items:center;gap:12px}

  .mobile-shortcuts{display:flex;gap:12px;align-items:center}
  .mobile-shortcuts a{
    display:flex;align-items:center;justify-content:center;width:40px;height:40px;
    background:rgba(0,184,169,.12);border-radius:50%;color:#00b8a9;font-size:18px;
    transition:transform .2s ease, background-color .2s ease, color .2s ease
  }
  .mobile-shortcuts a:hover{background:rgba(0,184,169,.2);color:#009e92;transform:scale(1.1)}

  .hamburger{display:block}

  /* Burger-Menü Panel */
  .nav-links{
    display:none;flex-direction:column;position:absolute;top:80px;left:0;right:0;
    background:#1a2733;padding:20px;gap:15px;border-radius:0px;
    box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:999
  }
  .nav-links.active{display:flex}

  /* Zentrierte Links (CTA bleibt rund, weil wir gleich nur .dropdown überschreiben) */
  .nav-links a{
    font-size:16px;
    padding:14px 16px;
    display:flex;align-items:center;justify-content:center;gap:8px;
    border-radius:12px;
    background:rgba(255,255,255,.04);
    transition:background-color .25s ease, transform .15s ease, color .25s ease
  }
  .nav-links a:hover{background:rgba(255,255,255,.08);transform:scale(1.03)}
  .nav-links a:active{transform:scale(.97);background:rgba(0,184,169,.15)}
  .dropdown > a{width:100%} /* volle Klickfläche */

  /* >>> Nur DROPDOWN kantig (Trigger + Menü + Items) <<< */
  .dropdown > a{ border-radius:0; }
  .dropdown.open > a{ border-radius:0; }
  .dropdown-menu{ border-radius:0; }
  .dropdown-menu a{ border-radius:0; } /* falls später abgerundet wird, hier hart auf 0 */

  /* Pfeil näher am Text + Rotation beim Öffnen */
  .nav-arrow{
    display:inline-block;margin-left:6px;line-height:1;opacity:.95;
    transition:transform .22s cubic-bezier(.3,.7,.2,1.2), color .2s ease
  }
  .dropdown > a:hover .nav-arrow{color:#00ffcc}
  .dropdown > a[aria-expanded="true"] .nav-arrow{transform:rotate(90deg)} /* nach unten */

  /* Mobile-Dropdown: standardmäßig zu, weich ausfahren */
  .dropdown-menu{
    position:static;min-width:unset;border:none;
    background:#253544;box-shadow:none;margin-top:8px;

    display:block;max-height:0;opacity:0;overflow:hidden;pointer-events:none;padding:0;
    transform:none;
    transition:max-height .28s ease, opacity .22s ease, padding .22s ease
  }
  .dropdown.open .dropdown-menu{
    max-height:1000px;opacity:1;pointer-events:auto;padding:6px 0
  }

  /* Mobile: kein Connector unter dem Pill */
  .dropdown.open > a::after{display:none}
}
  
  
  
  
  
  
  /* Container */
  .container {
    display: flex;
    width: 100%;
    min-height: 100vh;
  }
  
  /* Sidebar */
  .sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e3e9ef;
    padding: 24px 20px;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
  }
  
  /* Sidebar Titel */
  .sidebar-title {
    font-size: 13px;
    color: #6c7a89;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 20px;
  }
  
  /* Menüliste */
  .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Menüeinträge */
  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    color: #1a2a33;
    background-color: #f9fbfc;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
  }
  
  .sidebar-link i {
    font-size: 16px;
    color: #00b8a9;
    flex-shrink: 0;
  }
  
  /* Hover */
  .sidebar-link:hover {
    background-color: #e6f7f5;
    border: 1px solid #00b8a9;
    color: #00b8a9;
  }
  
  .sidebar-link:hover i {
    color: #00b8a9;
  }
  
  /* Aktiver Menüpunkt */
  .sidebar-link.active {
    background-color: #00b8a9;
    color: #ffffff;
    border: 1px solid #00b8a9;
    font-weight: 600;
  }
  
  .sidebar-link.active i {
    color: #ffffff;
  }
  
  /* Trennlinie */
  .menu-divider {
    height: 1px;
    background-color: #e3e9ef;
    border: none;
    margin: 24px 0;
  }
  
  
  .car-card-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }
  
  .car-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: auto;
    margin-top: 80px;
  }
  
  .car-card-actions button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  .publish-btn {
    background-color: #6c757d; /* Standard: Offline */
    color: white;
  }
  
  .publish-btn.published {
    background-color: #00b8a9; /* Veröffentlicht: Türkis */
  }
  
  .publish-btn:hover {
    background-color: #009d94;
  }
  
  .edit-btn {
    background-color: #f1f5f9;
    color: #1a2a33;
  }
  
  .edit-btn:hover {
    background-color: #e2e8f0;
  }
  
  .title {
    font-size: 30px;
    font-weight: 600;
    color: #1a2a33;
    margin: 25px 0 20px;
    margin-left: 3px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  
  
  .content {
    width: 100%;
    max-width: 1200px;
    margin-left: 15px; /* statt auto: manuell nach links rücken */
    padding: 0 20px 0 0;
  }
  
  .car-card.horizontal {
    width: 100%;
    max-width: none; /* Kein Limit mehr */
    margin: 0 0 28px 0px;
    display: grid;
    grid-template-columns: 300px 1fr; /* Gleichmäßige Breite */
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #e3e9ef;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    min-height: 220px;
    max-height: 280px;
  }
  
  .car-card.horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }
  
  .car-card-media {
    background-color: #f3f6f9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    width: 100%;
    height: 260px; /* Feste Höhe reduziert */
  }
  
  .media-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
  }
  
  .slides {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.35s ease-in-out;
    
    /* NEU: */
    will-change: transform;
  }
  
  .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    
    /* NEU: */
    min-width: 100%;
    box-sizing: border-box;
  }
  
  .slide.active {
    display: block;
  }
  
  .slide img,
  .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 32, 39, 0.7);
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease;
  }
  
  .media-arrow:hover {
    background: rgba(0, 184, 169, 0.9);
  }
  
  .media-arrow.left {
    left: 10px;
  }
  
  .media-arrow.right {
    right: 10px;
  }
  
  .car-details {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
  }
  
  .car-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .car-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2a33;
    margin: 0;
  }
  
  .car-price {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #f1f5f9;
    padding: 6px 14px;
    border-radius: 10px;
    display: inline-block;
    min-width: 76px;
    text-align: center;
    line-height: 1.3;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  
  .car-subtitle {
    font-size: 13px;
    color: #6c7a89;
    margin: 2px 0 8px;
  }
  
  .car-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px 16px;
    font-size: 13px;
    color: #37444f;
    border-top: 1px solid #e3e9ef;
    padding-top: 10px;
  }
  
  .car-info-grid p {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .car-info-grid i {
    color: #00b8a9;
    font-size: 13px;
  }
  
  .dealer-info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e6eaf0;
    font-size: 12.5px;
    color: #6b7a88;
    font-style: italic;
    line-height: 1.4;
  }
  
  .hidden {
    display: none !important;
  }
  .visible {
    display: block !important;
  }
 /* Verkäufer-Row mit Logo/Initialen */
.dealer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* Avatar: Bild + Initialen exakt übereinander legen */
.dealer-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e3e9ef;
  background: #ffffff;
  flex-shrink: 0;
}

/* Beide Layer füllen die Fläche komplett */
.dealer-avatar img,
.dealer-avatar .dealer-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Bild-Layer (nie display:none → Safari lädt sonst nicht) */
.dealer-avatar img {
  object-fit: cover;
  display: block;
  z-index: 1;
  opacity: 0;                      /* Standard: versteckt */
  transition: opacity .2s ease;
}

/* Initialen-Layer (Fallback) */
.dealer-avatar .dealer-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: #253544;
  background: #e9eef3;
  letter-spacing: .3px;
  border-radius: 50%;
  z-index: 2;
  opacity: 1;                      /* Standard: sichtbar */
}

/* Zustände */
.dealer-avatar.has-logo img { opacity: 1; }
.dealer-avatar.has-logo .dealer-initials {
  opacity: 0;
  pointer-events: none;
}

/* Meta */
.dealer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dealer-meta .dealer-name {
  font-weight: 600;
  color: #1a2a33;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dealer-meta .dealer-location {
  color: #6b7a88;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* (optional) leichte Verfeinerungen */
@media (min-width: 700px) {
  .dealer-avatar { width: 38px; height: 38px; }
  .dealer-meta .dealer-name { font-size: 14px; }
}

/* (optional) weniger Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .dealer-avatar img { transition: none; }
}

  
  
  
  
  
  
  
  @media screen and (min-width: 1400px) {
    .content {
      margin-left: auto;
      margin-right: auto;
      padding-left: 20px;
      padding-right: 20px;
    }
    
    .car-card-wrapper {
      justify-content: center;
    }
  }
  
  
  
  
  
  
  
  
  @media screen and (min-width: 1025px) {
    
    
    .media-container,
    .slides,
    .slide,
    .slide img,
    .slide video {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
    
    
  }
  
  
  
  
  
  @media screen and (width: 1024px) and (orientation: portrait) {
    .container {
      flex-direction: column;
      padding: 0 16px;
    }
  
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #e3e9ef;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      padding: 20px 12px;
      gap: 12px;
    }
  
    .sidebar-title {
      display: none;
    }
  
    .sidebar-menu {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      gap: 10px;
    }
  
    .sidebar-link {
      flex: 1 1 45%;
      justify-content: center;
      padding: 10px 12px;
      font-size: 14px;
      text-align: center;
    }
  
    .content {
      padding: 16px;
      max-width: 100%;
      margin: 0 auto;
    }
  
    .media-container,
    .slides,
    .slide,
    .slide img,
    .slide video {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
  }
  
  
  
  
  
  
  
  
  @media screen and (max-width: 700px) {
    .container {
      flex-direction: column;
    }
    
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #e3e9ef;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      padding: 14px 10px;
      gap: 10px;
    }
    
    .sidebar-title {
      display: none;
    }
    
    .sidebar-menu {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    
    .sidebar-link {
      flex: 1 1 45%;
      justify-content: center;
      padding: 10px 10px;
      font-size: 13.5px;
      text-align: center;
    }
    
    .content {
      padding: 14px;
      margin: 0 auto;
      width: 100%;
    }
    
    .car-list {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    
    .car-card-wrapper {
      width: 100%;
      display: flex;
      flex-direction: column;
      margin-bottom: 0;
    }
    
    .car-card.horizontal {
      display: flex;
      flex-direction: column;
      border-radius: 14px;
      overflow: hidden;
      height: auto;
      min-height: 490px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }
    
    .car-card-media {
      height: 220px;
      width: 100%;
      border-radius: 14px 14px 0 0;
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .media-container,
    .slides,
    .slide,
    .slide img,
    .slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    
    .car-details {
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
    }
    
    .car-top-row {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }
    
    .car-title {
      font-size: 16px;
      font-weight: 600;
    }
    
    .car-price {
      font-size: 17px;
      padding: 6px 10px;
      background: #f1f5f9;
      border-radius: 8px;
    }
    
    .car-subtitle {
      font-size: 13px;
      color: #6c7a89;
    }
    
    .car-info-grid {
      grid-template-columns: 1fr 1fr;
      gap: 8px 12px;
      font-size: 13px;
    }
    
    .dealer-info {
      font-size: 12px;
      color: #6c7a89;
      font-style: italic;
      border-top: 1px solid #e6eaf0;
      padding-top: 8px;
      margin-top: 6px;
    }
    
  .car-card-actions {
    flex-direction: row;
    justify-content: center;
    margin: 14px auto;
    gap: 12px;
  }
    
    .car-card-actions button {
      padding: 8px 12px;
      font-size: 13px;
    }
  }
  
  
  
  
  /* Nur auf Mobile anzeigen */
  .mobile-only {
    display: none;
  }
  
  @media screen and (max-width: 700px) {
    html, body {
      scroll-behavior: smooth;
      overflow-x: hidden;
    }
  
    .car-card-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0;
      gap: 0px;
      width: 100%;
    }
  
    .car-card.horizontal {
      width: 100%;
      background-color: #ffffff;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      display: flex;
      flex-direction: column;
      min-height: 550px;
    }
  
    .car-card-media {
      width: 100%;
      height: 240px;
      background-color: #f3f6f9;
      overflow: hidden;
      flex-shrink: 0;
    }
  
    .media-container,
    .slides,
    .slide,
    .slide img,
    .slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  
    .car-details {
      padding: 18px 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
  
    .car-top-row {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }
  
    .car-title {
      font-size: 17px;
      font-weight: 600;
      color: #1a2a33;
    }
  
    .car-price {
      font-size: 18px;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 8px;
      background-color: #f1f5f9;
      color: #1a1a1a;
      white-space: nowrap;
    }
  
    .car-subtitle {
      font-size: 13.5px;
      color: #6c7a89;
    }
  
    .car-info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 14px;
      font-size: 13px;
      color: #37444f;
      border-top: 1px solid #e6eaf0;
      padding-top: 10px;
    }
  
    .car-info-grid p {
      display: flex;
      align-items: center;
      gap: 6px;
    }
  
    .dealer-info {
      font-size: 12.5px;
      color: #6c7a89;
      font-style: italic;
      border-top: 1px solid #e6eaf0;
      padding-top: 8px;
      margin-top: 4px;
      display: block;
    }
  
  .car-card-actions.mobile-only {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0 12px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
  }
  
  .car-card-actions.mobile-only button {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #dfe6ec;
    background-color: #f8fafc;
    color: #1a2a33;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
  }
  
  .car-card-actions.mobile-only button:hover {
    background-color: #e6eef4;
  }
  
    .publish-btn.published {
      background-color: #00b8a9;
      color: white;
    }
  
    .desktop-only {
      display: none;
    }
    
      .sidebar {
      width: 100%;
      padding: 14px 12px;
      border-bottom: 1px solid #e3e9ef;
      box-sizing: border-box;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }
    
    .sidebar-title {
      display: none;
    }
    
    .sidebar-menu {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      padding: 0;
      margin: 0;
      width: 100%;
      justify-content: center;
    }
    
    .sidebar-link {
      flex: 1 1 45%;
      max-width: 145px;
      padding: 10px 12px;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
      color: #1a2a33;
      background-color: #f5f8fc;
      border-radius: 10px;
      border: 1px solid #dfe6ec;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
      cursor: pointer;
      transition: background 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    
    .sidebar-link.active {
      background-color: #00b8a9;
      color: white;
      border-color: #00b8a9;
    }
    
    .sidebar-link:hover {
      background-color: #e0f7f4;
    }
    
    .menu-divider {
      display: none;}
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .chat-btn,
  .mark-read-btn {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .chat-btn {
    background-color: #00b8a9;
    color: white;
    border: none;
  }
  
  .chat-btn:hover {
    background-color: #009d94;
  }
  
  .mark-read-btn {
    background-color: #f1f5f9;
    color: #1a2a33;
    border: 1px solid #dfe6ec;
    cursor: pointer;
  }
  
  .mark-read-btn:hover {
    background-color: #e2e8f0;
  }
  
  
  
  .message-action-box {
    margin-top: 12px;
    padding: 16px 0 0;
    border-top: 1px solid #e3e9ef;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .interested-user {
    font-size: 14px;
    color: #1a2a33;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .message-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  
  
  .all-chats-button-wrapper {
    margin-bottom: 20px;
    text-align: right;
    padding-right: 20px;
  }
  
  .all-chats-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #203a43;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 14px;
  }
  
  .all-chats-btn:hover {
    background-color: #2c5364;
  }
  
  .car-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  .car-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  
  .car-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  @media screen and (max-width: 700px) {
    .all-chats-button-wrapper {
      text-align: center;
      padding-right: 0;
    }
  }
  
  
  
  
  .nachrichten-seite .car-card-actions.desktop-only {
    margin-top: 50px; /* entfernt den festen Abstand */
    justify-content: center; /* vertikal zentrieren */
    height: 100%; /* volle Höhe nutzen */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0px;
  }
  
  
  
  
  
  
  
  @media screen and (max-width: 700px) {
    .messages-list .car-card-actions.mobile-only {
      flex-direction: column;
      align-items: center;
      margin-top: 16px;
      gap: 10px;
    }
    
    .messages-list .car-card-actions.mobile-only p.interested-user {
      justify-content: center;
      text-align: center;
      width: 100%;
    }
    
    .messages-list .car-card-actions.mobile-only .chat-btn,
    .messages-list .car-card-actions.mobile-only .mark-read-btn {
      width: 100%;
      max-width: 200px;
      justify-content: center;
    }
    
    
      .title {
      font-size: 22px;
      margin-bottom: 16px;
    }
    
    .title i {
      font-size: 18px;
    }
    
    
    
      .car-top-row {
      display: block;
      margin-bottom: 4px;
    }
    
    .car-price {
      display: inline-block;
      margin-top: 6px;}
      
      
      .car-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  }
  
  
  
  
  /* Desktop only: nur ab 701px sichtbar */
  .desktop-only {
    display: flex;
  }
  
  @media screen and (max-width: 700px) {
    .desktop-only {
      display: none !important;
    }
  }
  
  
  
  
  
  
  .view-listing-btn,
  .remove-saved-btn {
    background-color: #f1f5f9;
    color: #1a2a33;
    border: 1px solid #dfe6ec;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .view-listing-btn:hover,
  .remove-saved-btn:hover {
    background-color: #e2e8f0;
    color: #00b8a9;
  }
  
  
  
  
  .contact-btn {
    background-color: #00b8a9;
    color: white;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .contact-btn:hover {
    background-color: #009d94;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
  
  
  .contact-btn i {
    font-size: 14px;
  }
  
  
  
  
  
  
  
  .relist-btn,
  .archive-btn {
    background-color: #f1f5f9;
    color: #1a2a33;
    border: 1px solid #dfe6ec;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .relist-btn:hover,
  .archive-btn:hover {
    background-color: #e2e8f0;
    color: #00b8a9;
  }






  .remove-saved-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  



 






  
  .publish-btn.published {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: default;
    font-weight: bold;
  }
  

  
  









/* =========================
   Profil-Bereich (Autohaus / Privat)
   ========================= */

   .profile-section {
    width: 100%;
    margin-bottom: 24px;
  }
  
  .profile-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e3e9ef;
    box-shadow: 0 14px 40px rgba(15, 32, 39, 0.12);
  }
  
  .profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
  }
  
  .profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .profile-logo-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;                  /* fester Kreis, wird nicht gestreckt */
    border-radius: 999px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;             /* vertikal zentriert */
    justify-content: center;         /* horizontal zentriert */
    overflow: hidden;
    color: #ffffff;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
  }
  
  .profile-logo {
    display: block;
    max-width: 80%;                  /* etwas kleiner als der Kreis */
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;  /* Bildinhalt zentrieren */
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  
  
  .profile-logo-wrapper.has-logo .profile-logo {
    opacity: 1;
  }
  
  .profile-logo-wrapper.has-logo .profile-initials {
    display: none;
  }
  
  .profile-initials {
    letter-spacing: 0.06em;
  }
  
  .profile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2733;
  }
  
  .profile-location {
    font-size: 0.9rem;
    color: #6c7a89;
  }
  
  .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }
  
  .profile-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e3e9ef;
    background: #f5f8fc;
    color: #37444f;
  }
  
  .profile-role {
    background: rgba(0, 184, 169, 0.08);
    border-color: rgba(0, 184, 169, 0.6);
    color: #007a71;
  }
  
  /* „Bei Autovisa seit …“ als eigene Zeile */
  .profile-member-since {
    font-size: 0.85rem;
    color: #9fb3c8;
  }
  
  .profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: #00b8a9;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 184, 169, 0.35);
    transition: background-color 0.15s ease, transform 0.15s ease,
      box-shadow 0.15s ease;
  }
  
  .profile-btn.secondary {
    background: #ffffff;
    color: #1a2733;
    border: 1px solid #e3e9ef;
    box-shadow: none;
  }
  
  .profile-btn i {
    font-size: 0.9rem;
  }
  
  .profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  }
  
  .profile-btn.secondary:hover {
    box-shadow: 0 10px 22px rgba(15, 32, 39, 0.12);
  }
  
  /* Body: Infos + Öffnungszeiten */
  
  .profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e3e9ef;
  }
  
  .profile-column {
    min-width: 0;
  }
  
  .profile-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2733;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .profile-subtitle i {
    font-size: 0.9rem;
    color: #00b8a9;
  }
  
  .profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
  }
  
  .profile-info-row {
    display: flex;
    gap: 8px;
  }
  
  .profile-info-row dt {
    min-width: 90px;
    color: #6c7a89;
    font-weight: 500;
  }
  
  .profile-info-row dd {
    margin: 0;
    color: #1a2733;
    flex: 1;
  }
  
  .profile-info-row a {
    color: #00b8a9;
    text-decoration: none;
  }
  
  .profile-info-row a:hover {
    text-decoration: underline;
  }
  
  .profile-opening-text {
    font-size: 0.85rem;
    color: #1a2733;
    white-space: pre-line;
    background: #f5f8fc;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px dashed #e3e9ef;
  }
  
  /* Stats-Kacheln */
  
  .profile-stats {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .profile-stat-tile {
    flex: 1 1 120px;
    background: #f5f8fc;
    border-radius: 12px;
    border: 1px solid #e3e9ef;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c7a89;
  }
  
  .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2733;
  }
  
  /* Inline-Editing */
  
  .profile-info-row.is-editable dd,
  .profile-opening-wrapper.is-editable {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .profile-edit-inline {
    border: none;
    background: none;
    cursor: pointer;
    color: #6c7a86;
    padding: 2px;
  }
  
  .profile-edit-inline i {
    font-size: 14px;
  }
  
  .profile-info-row.is-editing .profile-info-value[contenteditable="true"],
  .profile-opening-wrapper.is-editing .profile-opening-text[contenteditable="true"] {
    outline: 2px solid #00b8a9;
    border-radius: 6px;
    padding: 2px 4px;
    background: rgba(0, 184, 169, 0.04);
  }
  
  /* Händler-spezifische Elemente:
     Standard: verstecken, nur bei Händler-Profil anzeigen */
  .haendler-only {
    display: none;
  }
  
  .profile-section.profile--haendler .haendler-only {
    display: block;
  }
  
  /* Mobile */
  
  @media (max-width: 900px) {
    .profile-card {
      padding: 16px 14px;
      border-radius: 12px;
    }
  
    .profile-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  
    .profile-body {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .profile-actions {
      width: 100%;
      justify-content: flex-start;
    }
  }
  




/* ===== Bewertungen im Profil-Header (nur Händler) ===== */

.profile-rating {
  min-width: 190px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid #e3e9ef;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;            /* schiebt den Block im Header nach rechts */
}

.profile-rating-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-rating-score {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a2733;
}

.profile-rating-stars {
  display: flex;
  gap: 2px;
  font-size: 0.95rem;
}

.profile-rating-stars i {
  color: #ffc107;               /* typische Sternefarbe */
}

.profile-rating-count {
  font-size: 0.8rem;
  color: #6c7a89;
}

.profile-rating-link {
  font-size: 0.8rem;
  color: #00b8a9;
  text-decoration: none;
}

.profile-rating-link:hover {
  text-decoration: underline;
}

/* Mobile: Bewertungen unter dem Profil, linksbündig */
@media (max-width: 900px) {
  .profile-rating {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    margin-top: 8px;
  }
}
