/* ============================================================
   SPOTLIT ONE — components.css
   Karten · Modal · Cookie-Banner · Filter · Calculator
   ============================================================ */

/* ── 1. Fahrzeug-Karte ─────────────────────────────────────── */
.car-card {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.car-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.car-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.car-card:hover .car-card__img { transform: scale(1.05); }

.car-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.car-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  background: rgba(10,10,10,0.7);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}
.car-card__wishlist:hover,
.car-card__wishlist.active {
  background: rgba(201, 169, 98, 0.2);
  border-color: var(--gold);
}
.car-card__wishlist svg {
  width: 14px; height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s, fill 0.3s;
}
.car-card__wishlist.active svg {
  stroke: var(--gold);
  fill: var(--gold);
}

.car-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.car-card__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.car-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

.car-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.car-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.car-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

/* Auf engen Karten: Preis oben voll, Button unten voll */
@media (max-width: 480px) {
  .car-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .car-card__footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 0.65rem 1rem;
  }
}

/* Verhindert Textumbruch im Preis */
.car-card__price-amount { white-space: nowrap; }

.car-card__price {
  display: flex;
  flex-direction: column;
}
.car-card__price-from {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.car-card__price-amount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
}

/* ── 2. Service-Karte ──────────────────────────────────────── */
.service-card {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
}
.service-card:hover {
  border-color: var(--gold-dark);
  transform: scale(1.02);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
}

.service-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-card__arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.service-card:hover .service-card__arrow { gap: 10px; }

/* ── 3. USP-Kachel ─────────────────────────────────────────── */
.usp-card {
  text-align: center;
  padding: var(--space-md);
}
.usp-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.2;
}
.usp-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.usp-card__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── 4. Paket-Karte ────────────────────────────────────────── */
.package-card {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.3s, transform 0.3s;
}
.package-card:hover,
.package-card.featured {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.package-card.featured { background: rgba(201, 169, 98, 0.04); }

.package-card__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.package-card__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
}

.package-card__price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gold);
}

.package-card__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.package-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.package-card__list li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 12px;
}

/* ── 5. Ablauf-Step ────────────────────────────────────────── */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}
.step-list::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__num {
  width: 40px;
  height: 40px;
  background: var(--black-mid);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.step__text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .step-list { grid-template-columns: 1fr 1fr; }
  .step-list::before { display: none; }
}
@media (max-width: 480px) {
  .step-list { grid-template-columns: 1fr; }
}

/* ── 6. Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--black-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }

.modal__car-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.modal__body { padding: 1.5rem; }

/* ── 7. Cookie-Banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  width: calc(100vw - 48px);
  background: var(--black-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  z-index: 990;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s, opacity 0.4s;
}
.cookie-banner.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cookie-banner__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.cookie-banner__text a { color: var(--gold); }

.cookie-banner__btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-banner__btns .btn {
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

/* ── 8. Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 500;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  transition: all 0.2s;
}
.filter-pill:hover,
.filter-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 98, 0.05);
}

.filter-search {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  position: relative;
}
.filter-search input {
  width: 100%;
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.5rem 0.5rem 2.2rem;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.filter-search input:focus { border-color: var(--gold); }
.filter-search__icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

.filter-sort {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.filter-sort:focus { border-color: var(--gold); }

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.filter-toggle__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.filter-toggle input[type="checkbox"] {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.filter-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.filter-toggle input[type="checkbox"]:checked {
  background: var(--gold-dark);
}
.filter-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
  background: var(--gold);
}

.filter-stats {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}
.filter-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.filter-stat strong { color: var(--gold); }

/* ── 9. Smart Garage Widget ────────────────────────────────── */
.smart-garage {
  position: sticky;
  top: calc(var(--nav-height) + 70px);
  background: var(--black-light);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  max-width: 280px;
}

.smart-garage__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.smart-garage__empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}

.smart-garage__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.smart-garage__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--black-mid);
  border-radius: var(--radius-sm);
}
.smart-garage__item img {
  width: 48px; height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.smart-garage__item-info { flex: 1; min-width: 0; }
.smart-garage__item-name {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smart-garage__item-price {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
}
.smart-garage__item-remove {
  width: 20px; height: 20px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.smart-garage__item-remove:hover { color: var(--gold); }

/* ── 10. Preisrechner ──────────────────────────────────────── */
.calculator {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.calculator__display {
  text-align: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}
.calculator__total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.calculator__total {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.calculator__breakdown {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.calculator__discount {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 0.3rem;
}

.calculator__extras {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.extra-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}
.extra-option:hover,
.extra-option.selected { border-color: var(--gold-dark); }
.extra-option.selected { background: rgba(201, 169, 98, 0.04); }
.extra-option__info { display: flex; flex-direction: column; gap: 2px; }
.extra-option__name { font-size: 13px; color: var(--text); }
.extra-option__price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}
.extra-option input[type="checkbox"] { accent-color: var(--gold); }

/* ── 11. Kontakt-Info-Card ─────────────────────────────────── */
.contact-card {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
.contact-item__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-item__value {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}
a .contact-item__value:hover { color: var(--gold); }

/* ── 12. Map Embed ─────────────────────────────────────────── */
.map-embed {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(0.9);
}

/* ── 13. Flotte Layout ─────────────────────────────────────── */
.flotte-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-md);
  align-items: flex-start;
}
@media (max-width: 1200px) {
  .flotte-layout { grid-template-columns: 1fr; }
  .smart-garage { display: none; }
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1024px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .car-grid { grid-template-columns: 1fr; }
}

.car-grid .car-card.hidden {
  display: none;
}

/* ── 14. Hero Highlight-Karten (horizontal scroll mobile) ─── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .highlight-grid > .car-card { scroll-snap-align: start; }
  .highlight-grid::-webkit-scrollbar { display: none; }
}

/* ── 15. FAQ Accordion ─────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-item__q:hover { color: var(--gold); }
.faq-item__icon {
  width: 20px; height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-item__a { max-height: 500px; }
.faq-item__a p {
  padding-bottom: 1.25rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── 16. Success Message ───────────────────────────────────── */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-md);
}
.form-success.show { display: block; }
.form-success__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}
.form-success__icon svg {
  width: 24px; height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
