/* ============================================================
   GebrauchtPKWs.de – Haupt-Stylesheet
   ============================================================ */

:root {
  --bg:    #F2F1EE;
  --card:  #FFFFFF;
  --nav:   #FFFFFF;
  --b:     #E8E5DF;
  --bs:    #F0EEE9;
  --ink:   #18160F;
  --sl:    #3A3830;
  --mid:   #6B6860;
  --mu:    #9C9A94;
  --blue:  #1E4FD8;
  --bl:    #EBF0FF;
  --bm:    #C5D0FA;
  --gr:    #0A6E3F;
  --grl:   #E8F7EF;
  --wr:    #B85A00;
  --wrl:   #FEF3E2;
  --rd:    #B91C1C;
  --rdl:   #FEF2F2;
  --pr:    #C97A00;
  --prl:   #FEF9EC;
  --pg:    linear-gradient(135deg,#F59E0B,#EF4444);
  --hg:    linear-gradient(160deg,#08122A 0%,#0F2463 48%,#1E40AF 100%);
  --ss:    0 1px 4px rgba(24,22,15,.07);
  --sm:    0 3px 12px rgba(24,22,15,.09);
  --md:    0 6px 24px rgba(24,22,15,.11);
  --lg:    0 14px 48px rgba(24,22,15,.13);
  --r:     7px;
  --rm:    11px;
  --rl:    16px;
  --rx:    22px;
  --rxx:   30px;
  --nh:    62px;
  --fh:    'Cabinet Grotesk', sans-serif;
  --fb:    'Epilogue', sans-serif;
}

[data-dark] {
  --bg:   #0E0D0A;
  --card: #181714;
  --nav:  #181714;
  --b:    #262420;
  --bs:   #1E1C18;
  --ink:  #F0EDE6;
  --sl:   #C8C4BC;
  --mid:  #8A8780;
  --mu:   #4E4C47;
  --bl:   #1A2550;
  --bm:   #1C2E6A;
  --grl:  #051F10;
  --wrl:  #231500;
  --rdl:  #1F0A0A;
  --prl:  #1E1100;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  transition: background .2s, color .2s;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font-family: var(--fb); cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--b);
  border-radius: var(--r);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,79,216,.1);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239C9A94' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=range] { -webkit-appearance: none; height: 4px; background: var(--b); border-radius: 2px; border: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); cursor: pointer; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--b); border-radius: 3px; }

/* ── Utility ───────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--mu); }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop      { 0%{transform:scale(.75)} 70%{transform:scale(1.08)} 100%{transform:scale(1)} }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes pulseBorder { 0%,100%{box-shadow:0 0 0 0 rgba(201,122,0,.3)} 50%{box-shadow:0 0 0 8px rgba(201,122,0,0)} }

.fu { animation: fadeUp .38s cubic-bezier(.2,0,.1,1) both; }
.fi { animation: fadeIn .22s ease both; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #fff;
  padding: 10px 20px; border-radius: var(--rm); font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(30,79,216,.28);
  transition: filter .14s, transform .12s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card); color: var(--ink);
  padding: 10px 20px; border-radius: var(--rm); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--b);
  transition: filter .14s, transform .12s;
}
.btn-secondary:hover { filter: brightness(1.04); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--mid); padding: 8px 14px; border-radius: var(--r);
  border: 1.5px solid var(--b); font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.btn-ghost:hover { background: var(--bs); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--rdl); color: var(--rd);
  padding: 7px 14px; border-radius: var(--r);
  border: 1.5px solid #fecaca; font-size: 13px; font-weight: 600;
}

.btn-premium {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--pg); color: #fff;
  padding: 9px 18px; border-radius: var(--rm); font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,122,0,.28);
  transition: filter .14s, transform .12s;
}
.btn-premium:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-full { width: 100%; }
.btn-sm   { padding: 6px 14px; font-size: 12px; border-radius: var(--r); }
.btn-lg   { padding: 13px 26px; font-size: 16px; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
#main-nav {
  background: var(--nav);
  border-bottom: 1px solid var(--b);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--ss);
  backdrop-filter: blur(12px);
  height: var(--nh);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 900; font-family: var(--fh); color: var(--ink);
  text-decoration: none; letter-spacing: -.4px; flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px; border-radius: 9px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.nav-logo .accent { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.btn-nav {
  padding: 7px 13px; border-radius: var(--r); font-size: 13px; font-weight: 600;
  color: var(--mid); transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 5px; position: relative;
}
.btn-nav:hover { background: var(--bl); color: var(--blue); }
.btn-nav.active { background: var(--bl); color: var(--blue); }
.nav-divider { width: 1px; height: 22px; background: var(--b); margin: 0 4px; }
.icon-btn { padding: 7px 10px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rd); color: #fff; border-radius: 10px;
  padding: 1px 6px; font-size: 10px; font-weight: 800; margin-left: 2px;
}
.hamburger { display: none; font-size: 22px; padding: 6px; color: var(--ink); }

/* ── Mobile Nav ────────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--nav); border-top: 1px solid var(--b); z-index: 190; height: 57px;
  box-shadow: 0 -2px 16px rgba(0,0,0,.07);
}
.mobile-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 9px; font-weight: 600; color: var(--mu);
}
.mobile-nav .mob-insert {
  background: var(--blue); color: #fff; width: 42px; height: 42px;
  border-radius: 50%; font-size: 20px; margin: 0 12px; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(30,79,216,.35); flex: 0;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hg);
  padding: 62px 20px 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 30px 30px; pointer-events: none;
}
.hero-inner { max-width: 740px; margin: 0 auto; text-align: center; position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px; padding: 5px 16px; margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-family: var(--fh); font-size: clamp(28px,5.5vw,52px); font-weight: 900;
  color: #fff; line-height: 1.06; margin-bottom: 14px; letter-spacing: -1.5px;
}
.hero-sub { font-size: 16px; color: rgba(255,255,255,.68); margin-bottom: 32px; line-height: 1.6; }

/* Hero Search Box */
.hero-search {
  background: var(--card); border-radius: var(--rx);
  padding: 8px 8px 8px 16px; display: flex; gap: 8px;
  max-width: 660px; margin: 0 auto 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  align-items: center; flex-wrap: wrap;
}
.hero-search input {
  flex: 1; min-width: 110px; border: none; box-shadow: none;
  font-size: 15px; background: transparent; padding: 6px 0;
}
.hero-search select {
  border: none; box-shadow: none; font-size: 13px;
  background: transparent; min-width: 105px;
}
.hero-divider { width: 1px; height: 26px; background: var(--b); flex-shrink: 0; }

/* Hero Cats */
.hero-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-cat-btn {
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 7px 15px; color: #fff; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(6px); transition: background .15s;
}
.hero-cat-btn:hover { background: rgba(255,255,255,.22); }

/* Hero Tools */
.hero-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-tool-btn {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px; padding: 6px 14px; color: #fff; font-size: 12px;
  backdrop-filter: blur(6px); transition: background .15s;
}
.hero-tool-btn:hover { background: rgba(255,255,255,.22); }

/* ── Stats Strip ───────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--card); border-bottom: 1px solid var(--b); padding: 13px 20px;
}
.stats-inner {
  max-width: 1100px; margin: 0 auto; display: flex; gap: 26px;
  justify-content: center; flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.stat-num { font-weight: 800; font-size: 15px; font-family: var(--fh); }

/* ── Section Headers ───────────────────────────────────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2 { font-size: 20px; font-weight: 800; font-family: var(--fh); }
.section-header a { font-size: 13px; font-weight: 600; color: var(--blue); }

/* ── Grid Layouts ──────────────────────────────────────────────────────────── */
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr);       gap: 13px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr);       gap: 13px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(248px,1fr)); gap: 14px; }

/* ── Card ──────────────────────────────────────────────────────────────────── */
.listing-card {
  background: var(--card); border-radius: var(--rl); border: 1px solid var(--b);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--lg); }
.listing-card.premium {
  border: 2px solid var(--pr);
  box-shadow: 0 4px 22px rgba(201,122,0,.2);
  animation: pulseBorder 3s ease-in-out infinite;
}

.card-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; user-select: none;
}
.card-img .emoji { filter: drop-shadow(0 4px 12px rgba(0,0,0,.15)); }
.card-img .prem-badge { position: absolute; top: 9px; left: 9px; }
.card-img .cat-badge  { position: absolute; top: 9px; right: 9px; }
.card-img .vhb-badge  {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}

.card-body { padding: 12px 14px 14px; }
.card-title {
  font-size: 14px; font-weight: 700; font-family: var(--fh); color: var(--ink);
  margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-price { font-size: 18px; font-weight: 800; color: var(--blue); font-family: var(--fh); margin-bottom: 9px; }
.card-meta  { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-bottom: 9px; }
.card-meta-item { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--mid); }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--bs);
}
.card-footer-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 2px; }
.card-action-btn {
  background: none; border: none; color: var(--mu); padding: 3px;
  transition: color .15s; font-size: 16px;
}
.card-action-btn:hover { color: var(--blue); }
.card-action-btn.fav-active { color: #EF4444; }
.card-action-btn.cmp-active { color: #5B21B6; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-premium {
  background: var(--pg); color: #fff;
  box-shadow: 0 2px 8px rgba(201,122,0,.38);
  animation: pop .3s ease;
}
.badge-haendler { background: var(--bl);  color: var(--blue); }
.badge-privat   { background: var(--grl); color: var(--gr); }
.badge-active   { background: var(--grl); color: var(--gr); }
.badge-cat-pkw  { background: rgba(30,79,216,.14); color: #1E4FD8; }
.badge-cat-lkw  { background: rgba(184,90,0,.14);  color: #B85A00; }
.badge-cat-caravan { background: rgba(10,110,63,.14); color: #0A6E3F; }
.badge-cat-motorcycle { background: rgba(91,33,182,.14); color: #5B21B6; }

/* ── Feature Cards (Homepage) ──────────────────────────────────────────────── */
.feature-card {
  border-radius: var(--rl); padding: 20px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--md); }
.feature-card .feat-icon { font-size: 26px; margin-bottom: 8px; }
.feature-card .feat-title { font-size: 14px; font-weight: 800; font-family: var(--fh); margin-bottom: 3px; }
.feature-card .feat-desc  { font-size: 12px; color: var(--mid); line-height: 1.5; }

/* ── Search Page ───────────────────────────────────────────────────────────── */
.search-layout {
  display: flex; gap: 20px; align-items: flex-start;
  max-width: 1320px; margin: 0 auto; padding: 22px 20px;
}

/* Sidebar */
.search-sidebar {
  width: 240px; flex-shrink: 0; background: var(--card);
  border-radius: var(--rl); border: 1px solid var(--b);
  padding: 18px; position: sticky; top: 74px;
  max-height: calc(100vh - 94px); overflow-y: auto;
  box-shadow: var(--sm);
}
.sidebar-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.sidebar-title { font-size: 14px; font-weight: 700; font-family: var(--fh); display: flex; align-items: center; gap: 6px; }
.filter-count { background: var(--blue); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.filter-reset { font-size: 12px; color: var(--blue); font-weight: 600; }
.filter-group { margin-bottom: 14px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 5px; }
.filter-group input, .filter-group select { width: 100%; padding: 9px 12px; }
.filter-group select { padding-right: 28px; }
.filter-row { display: flex; gap: 6px; }
.filter-row input { flex: 1; min-width: 0; }
.seller-btns { display: flex; gap: 5px; }
.seller-btn {
  flex: 1; padding: 7px 4px; border: 1.5px solid var(--b); border-radius: var(--r);
  font-size: 11px; font-weight: 700; color: var(--mid);
  transition: background .15s, color .15s, border-color .15s;
}
.seller-btn.active { background: var(--bl); color: var(--blue); border-color: var(--blue); }

.alert-hint {
  margin-top: 4px; padding: 13px; background: var(--wrl);
  border-radius: var(--rm); border: 1px solid #FDE68A;
}
.alert-hint-title { font-size: 12px; font-weight: 700; color: var(--wr); margin-bottom: 5px; }
.alert-hint-sub   { font-size: 11px; color: #A16207; margin-bottom: 8px; }
.alert-hint-btn   { width: 100%; background: var(--wr); color: #fff; border: none; border-radius: var(--r); padding: 7px 0; font-size: 12px; font-weight: 700; }

/* Results area */
.search-results { flex: 1; min-width: 0; }
.results-bar {
  background: var(--card); border-radius: var(--rl); border: 1px solid var(--b);
  padding: 10px 14px; margin-bottom: 13px; display: flex; gap: 9px;
  align-items: center; flex-wrap: wrap; box-shadow: var(--sm);
}
.search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 7px;
  background: var(--bg); border-radius: var(--r); padding: 7px 12px; min-width: 180px;
}
.search-input-wrap input { border: none; box-shadow: none; background: transparent; flex: 1; }
.results-sort { padding: 8px 28px 8px 11px; border-radius: var(--r); }
.view-btns { display: flex; gap: 4px; }
.view-btn {
  width: 33px; height: 33px; border-radius: var(--r);
  border: 1.5px solid var(--b); background: var(--card); color: var(--mu);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.view-btn.active { background: var(--bl); color: var(--blue); border-color: var(--blue); }

.results-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 13px; flex-wrap: wrap; gap: 8px;
}
.results-count { font-size: 14px; font-weight: 600; }
.active-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.active-filter { padding: 3px 10px; background: var(--bl); color: var(--blue); border-radius: 20px; font-size: 11px; font-weight: 700; }

.no-results { text-align: center; padding: 56px 20px; background: var(--card); border-radius: var(--rx); border: 1px solid var(--b); }
.no-results .no-icon { font-size: 48px; margin-bottom: 12px; }
.no-results h3 { font-size: 16px; font-weight: 700; font-family: var(--fh); color: var(--mid); margin-bottom: 7px; }
.load-more { text-align: center; margin-top: 22px; }

/* List view */
.listing-list { display: flex; flex-direction: column; gap: 11px; }
.listing-card-list {
  background: var(--card); border-radius: var(--rl); border: 1px solid var(--b);
  overflow: hidden; cursor: pointer; box-shadow: var(--sm); display: flex;
  transition: transform .18s, box-shadow .18s;
}
.listing-card-list:hover { transform: translateY(-4px); box-shadow: var(--lg); }
.listing-card-list .card-img { width: 180px; min-height: 135px; flex-shrink: 0; }

/* ── Detail Modal ──────────────────────────────────────────────────────────── */
.detail-overlay {
  position: fixed; inset: 0; background: rgba(8,18,42,.68); z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; overflow-y: auto; backdrop-filter: blur(5px);
  animation: fadeIn .2s;
}
.detail-modal {
  background: var(--card); border-radius: var(--rxx); width: 100%; max-width: 850px;
  margin-bottom: 20px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.4); animation: fadeUp .22s ease;
}
.detail-gallery { position: relative; height: 285px; overflow: hidden; }
.gallery-main {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 84px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.88); border: none; border-radius: 50%;
  width: 35px; height: 35px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--md); font-size: 16px;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.gallery-dot { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s, background .2s; }
.gallery-dot.active { width: 18px; background: #fff; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 20px; }

.detail-header { padding: 20px 24px 0; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.detail-title { font-size: 22px; font-weight: 800; font-family: var(--fh); margin-bottom: 3px; line-height: 1.2; }
.detail-price { font-size: 26px; font-weight: 800; color: var(--blue); font-family: var(--fh); margin-bottom: 6px; }
.detail-meta  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mu); }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }

.detail-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--b); overflow-x: auto; }
.detail-tab {
  padding: 10px 16px; background: none; border: none; font-size: 13px;
  font-weight: 500; color: var(--mid); position: relative; white-space: nowrap;
  transition: color .15s;
}
.detail-tab:hover { color: var(--blue); }
.detail-tab.active { font-weight: 700; color: var(--blue); }
.detail-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px; background: var(--blue); border-radius: 2px 2px 0 0;
}
.detail-body { padding: 22px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 9px; margin-bottom: 20px; }
.spec-cell { background: var(--bg); border-radius: var(--r); padding: 9px 12px; border: 1px solid var(--b); }
.spec-label { font-size: 10px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.spec-value { font-size: 13px; font-weight: 700; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(188px,1fr)); gap: 8px; }
.feature-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--b); font-size: 13px; font-weight: 500; }
.feature-check { color: var(--gr); }

.contact-dealer-card {
  background: linear-gradient(135deg,var(--bl),var(--bm));
  border-radius: var(--rl); padding: 15px 18px; margin-bottom: 16px;
  display: flex; gap: 13px; align-items: center;
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form textarea { resize: vertical; min-height: 95px; padding: 10px 13px; }
.contact-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard-layout { max-width: 1100px; margin: 0 auto; padding: 26px 20px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 22px; }
.kpi-card { background: var(--card); border-radius: var(--rl); padding: 16px 19px; border: 1px solid var(--b); display: flex; align-items: center; gap: 12px; box-shadow: var(--sm); }
.kpi-icon { width: 42px; height: 42px; border-radius: var(--rm); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.kpi-value { font-size: 21px; font-weight: 800; font-family: var(--fh); }
.kpi-label { font-size: 12px; color: var(--mu); }

.dash-tabs { display: flex; border-bottom: 1px solid var(--b); margin-bottom: 20px; overflow-x: auto; }
.dash-tab { padding: 9px 14px; background: none; border: none; font-size: 12px; font-weight: 500; color: var(--mid); white-space: nowrap; position: relative; transition: color .15s; }
.dash-tab:hover { color: var(--blue); }
.dash-tab.active { font-weight: 700; color: var(--blue); }
.dash-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--blue); border-radius: 2px 2px 0 0; }

.dash-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card { background: var(--card); border-radius: var(--rl); border: 1px solid var(--b); overflow: hidden; box-shadow: var(--sm); }
.dash-card-header { padding: 13px 17px; border-bottom: 1px solid var(--b); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; font-family: var(--fh); }

.msg-row { padding: 11px 17px; border-bottom: 1px solid var(--bs); display: flex; gap: 10px; align-items: flex-start; }
.msg-row.unread { background: rgba(30,79,216,.03); }
.msg-avatar { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.msg-name { font-size: 12px; font-weight: 700; }
.msg-text { font-size: 11px; color: var(--mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-re   { font-size: 10px; color: var(--blue); margin-top: 2px; }
.msg-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 3px; }

.my-ad-row { padding: 10px 17px; border-bottom: 1px solid var(--bs); display: flex; gap: 10px; align-items: center; cursor: pointer; transition: background .15s; }
.my-ad-row:hover { background: var(--bs); }
.my-ad-thumb { width: 38px; height: 38px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.my-ad-title { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-ad-meta  { font-size: 11px; color: var(--mid); display: flex; gap: 8px; align-items: center; margin-top: 2px; }

.ad-manage-row { background: var(--card); border-radius: var(--rl); border: 1px solid var(--b); padding: 13px 17px; margin-bottom: 9px; display: flex; gap: 13px; align-items: center; flex-wrap: wrap; box-shadow: var(--sm); }
.ad-manage-thumb { width: 52px; height: 52px; border-radius: var(--rm); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ad-manage-info { flex: 1; min-width: 150px; }
.ad-manage-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Insert Form ───────────────────────────────────────────────────────────── */
.insert-layout { max-width: 610px; margin: 0 auto; padding: 26px 20px; }
.form-stepper { display: flex; align-items: flex-start; margin-bottom: 26px; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-family: var(--fh); z-index: 1; transition: background .3s; }
.step-circle.done   { background: var(--blue); color: #fff; }
.step-circle.active { background: var(--blue); color: #fff; }
.step-circle.future { background: var(--b); color: var(--mu); }
.step-label { font-size: 10px; color: var(--mu); margin-top: 4px; text-align: center; }
.step-label.active { color: var(--blue); font-weight: 700; }
.step-connector { position: absolute; top: 14px; left: 58%; right: 0; height: 2px; background: var(--b); transition: background .3s; }
.step-connector.done { background: var(--blue); }

.form-card { background: var(--card); border-radius: var(--rx); border: 1px solid var(--b); padding: 24px; box-shadow: var(--sm); animation: fadeIn .2s; }
.form-card-title { font-size: 14px; font-weight: 700; font-family: var(--fh); margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--b); }

.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 13px; }
.form-group  { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea { padding: 10px 13px; }
.form-group textarea { resize: vertical; min-height: 105px; }
.form-nav { display: flex; gap: 8px; margin-top: 4px; }

.radio-group { display: flex; gap: 9px; }
.radio-label {
  display: flex; align-items: center; gap: 7px; cursor: pointer; flex: 1;
  padding: 10px 13px; border: 1.5px solid var(--b); border-radius: var(--rm);
  background: var(--card); transition: background .15s, border-color .15s;
}
.radio-label.selected { background: var(--bl); border-color: var(--blue); }
.radio-label span { font-size: 13px; font-weight: 600; }

.upload-zone {
  border: 2px dashed var(--b); border-radius: var(--rl);
  padding: 30px; text-align: center; background: var(--bg); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-zone:hover { border-color: var(--blue); background: var(--bl); }
.upload-icon { font-size: 36px; margin-bottom: 7px; }

.premium-upsell {
  background: linear-gradient(135deg,var(--prl),#FEF3C7);
  border: 2px solid var(--pr); border-radius: var(--rl);
  padding: 17px 21px; margin-bottom: 16px;
}
.premium-upsell h4 { font-size: 14px; font-weight: 800; font-family: var(--fh); color: #92400e; margin-bottom: 5px; }
.premium-upsell p  { font-size: 13px; color: #78350f; line-height: 1.7; margin-bottom: 11px; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.summary-cell { background: var(--bg); border-radius: var(--r); padding: 8px 11px; border: 1px solid var(--b); }
.summary-cell .s-label { font-size: 10px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.summary-cell .s-value { font-size: 12px; font-weight: 700; }

.legal-note { background: var(--bg); border-radius: var(--r); padding: 10px 13px; font-size: 12px; color: var(--mu); line-height: 1.7; margin-bottom: 16px; }

/* ── Forms & Modals ─────────────────────────────────────────────────────────── */
#modal-overlay {
  position: fixed; inset: 0; background: rgba(8,18,42,.65); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(5px); animation: fadeIn .2s;
}
.modal {
  background: var(--card); border-radius: var(--rxx); width: 100%; max-width: 500px;
  padding: 32px; position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.4);
  animation: fadeUp .22s ease; max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 14px; color: var(--mid); }
.modal-logo { font-size: 14px; font-weight: 800; font-family: var(--fh); margin-bottom: 16px; }
.modal h2 { font-size: 20px; font-weight: 800; font-family: var(--fh); margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--mu); margin-bottom: 20px; }
.modal .form-group { margin-bottom: 14px; }
.modal .form-group label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.modal .form-group input { width: 100%; padding: 10px 13px; }
.modal-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--mu); font-size: 13px; }
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--b); }
.modal-switch { font-size: 13px; color: var(--mu); margin-top: 18px; text-align: center; }
.forgot-link { font-size: 11px; font-weight: 600; color: var(--blue); text-transform: none; letter-spacing: 0; }

.input-pw-wrap { position: relative; }
.input-pw-wrap input { width: 100%; padding-right: 40px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--mu); font-size: 15px; }
.pw-strength { height: 4px; border-radius: 2px; background: var(--b); margin-top: 5px; overflow: hidden; }
.pw-strength-bar { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }

.btn-oauth {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; background: var(--card); border: 1.5px solid var(--b);
  border-radius: var(--rm); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.btn-oauth:hover { background: var(--bs); }

.form-error   { background: var(--rdl); color: var(--rd); padding: 10px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; margin-bottom: 14px; border: 1px solid #fecaca; }
.form-success { background: var(--grl); color: var(--gr); padding: 10px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; margin-bottom: 14px; border: 1px solid #bbf7d0; }

.checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; color: var(--sl); width: 100%; box-sizing: border-box; }
.checkbox-label span { flex: 1; min-width: 0; line-height: 1.5; white-space: normal; word-wrap: break-word; }
.checkbox-label input { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; accent-color: var(--blue); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Message Modal ──────────────────────────────────────────────────────────── */
.msg-listing-info { background: var(--bg); border-radius: var(--r); padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }
.msg-form-wrap textarea { width: 100%; padding: 10px 13px; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: var(--bg); padding: 11px 17px; border-radius: 11px;
  font-size: 13px; font-weight: 600; font-family: var(--fb);
  animation: toastIn .3s ease both; box-shadow: 0 4px 20px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 8px; max-width: 290px;
  pointer-events: auto;
}
.toast-icon { font-size: 16px; }

/* ── Finance Calc ──────────────────────────────────────────────────────────── */
.finance-layout { max-width: 680px; margin: 0 auto; padding: 26px 20px; }
.finance-result-card { background: linear-gradient(135deg,var(--grl),rgba(10,110,63,.08)); border: 1px solid rgba(10,110,63,.2); border-radius: var(--rl); padding: 22px; text-align: center; margin-bottom: 24px; }
.finance-rate { font-size: 40px; font-weight: 800; color: var(--gr); font-family: var(--fh); }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
.slider-group { display: flex; flex-direction: column; gap: 5px; }
.slider-header { display: flex; justify-content: space-between; }
.slider-label { font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; }
.slider-value { font-size: 12px; font-weight: 700; }
.finance-summary { background: var(--bg); border-radius: var(--rm); padding: 13px 17px; border: 1px solid var(--b); }
.finance-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--b); font-size: 13px; }
.finance-row:last-child { border: none; }

/* ── Cookie Banner ─────────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 190;
  width: calc(100% - 40px); max-width: 680px;
  background: var(--card); border: 1px solid var(--b); border-radius: var(--rx);
  padding: 18px 22px; box-shadow: var(--lg); animation: slideDown .35s ease;
}
.cookie-inner { display: flex; gap: 13px; align-items: flex-start; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-title { font-size: 14px; font-weight: 700; font-family: var(--fh); margin-bottom: 4px; }
.cookie-sub   { font-size: 12px; color: var(--mid); line-height: 1.6; }
.cookie-actions { display: flex; gap: 7px; flex-shrink: 0; }

/* ── CTA Band ───────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--hg); border-radius: var(--rxx); padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 24px 24px; pointer-events: none; }
.cta-band h2 { font-size: 22px; font-weight: 800; font-family: var(--fh); color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,.7); max-width: 460px; line-height: 1.6; }

/* ── Compare Float Button ──────────────────────────────────────────────────── */
#cmp-float {
  position: fixed; bottom: 75px; left: 50%; transform: translateX(-50%); z-index: 150;
  animation: fadeUp .3s ease;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: #09100A; color: rgba(255,255,255,.5);
  padding: 38px 20px 26px; margin-top: 56px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(168px,1fr)); gap: 22px; margin-bottom: 30px; }
.footer-brand { font-size: 16px; font-weight: 800; font-family: var(--fh); color: #fff; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 8px; margin-top: 13px; }
.footer-social a { width: 30px; height: 30px; background: rgba(255,255,255,.08); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.footer-col-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 11px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.footer-link:hover { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-hr { height: 1px; background: rgba(255,255,255,.08); margin: 0 0 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 11px; font-size: 12px; }

/* ── History Timeline ───────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--b); }
.timeline-item { position: relative; margin-bottom: 16px; padding-left: 17px; }
.timeline-dot { position: absolute; left: -22px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 2px solid var(--b); }
.timeline-dot.current { background: var(--blue); border-color: var(--blue); }
.timeline-year { font-size: 10px; color: var(--mu); margin-bottom: 2px; }
.timeline-title { font-size: 13px; font-weight: 700; }
.timeline-desc { font-size: 12px; color: var(--mid); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .nom { display: none !important; }
  .hamburger { display: block; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 57px; }

  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .hero h1 { font-size: 28px; letter-spacing: -.5px; }
  .hero-search { flex-wrap: wrap; }

  .search-sidebar { display: none; }
  .search-layout { flex-direction: column; padding: 14px 16px; }
  .search-results { width: 100%; }

  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-2col { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .spec-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .cta-band { padding: 28px 24px; }

  .modal { max-width: 100%; margin: 0; border-radius: var(--rx) var(--rx) 0 0; }
  #modal-overlay { align-items: flex-end; padding: 0; }

  .finance-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  #cmp-float { bottom: 70px; width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-auto { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .hero-cats { gap: 6px; }
  .detail-tabs { flex-wrap: wrap; }
}

/* ── Checkbox Fix im Register-Modal ─────────────────────────────────────────── */
.modal .form-group label.checkbox-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
  color: var(--sl);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.modal .form-group label.checkbox-label span {
  flex: 1;
  min-width: 0;
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
}
.modal .form-group label.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

/* ── Edit Modal Fix ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(8,18,42,.65); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(5px);
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn .2s;
}
