/* ============================================================
   CARWORLD — brand layer
   Hand-written tokens + components. Loaded AFTER tailwind.css.
   Swap --brand to match the official logo and the whole UI follows.
   ============================================================ */

:root {
  /* ---- Brand tokens (derived from the CARWORLD logo) ---- */
  --ink:        #15171c;   /* primary text (near-black navy) */
  --ink-soft:   #444a55;   /* secondary text */
  --muted:      #6b7280;   /* captions */
  --surface:    #ffffff;
  --panel:      #f3f6fa;   /* soft blue-grey panels */
  --panel-2:    #eaeff6;
  --line:       #e2e8f0;   /* hairlines */
  --line-dark:  #2a3350;   /* hairlines on navy */

  --navy:       #1d2747;   /* rich navy — logo background */
  --navy-deep:  #141a30;   /* deeper navy for gradients */
  --navy-edge:  #14161f;   /* near-black navy edge */

  --brand:      #0c74cf;   /* electric azure — the logo accent */
  --brand-dark: #0a5ca8;   /* hover / pressed */
  --brand-soft: #4f9be6;   /* brighter blue on dark surfaces */
  --brand-tint: #e9f2fc;   /* soft blue wash */
  --star:       #f5a623;   /* review stars */
  --ok:         #15803d;   /* confirmed */
  --ok-tint:    #e7f4ec;
  --warn:       #b45309;   /* pending */
  --warn-tint:  #fbf0e2;
  --danger:     #d92d20;   /* reject / cancel (destructive) */
  --danger-tint:#fdecea;
  --stop:       #6b7280;   /* cancelled (neutral) */
  --stop-tint:  #eef1f5;

  /* ---- Type: display / body / utility (engineered, motorsport-signage) ---- */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-cond:    "Saira Condensed", "Archivo Narrow", "Archivo", sans-serif;

  /* ---- Motion (strong custom curves, per design-eng) ---- */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 14px;
  /* layered shadows: ambient occlusion + key light */
  --shadow-sm: 0 1px 2px rgba(20,26,48,.06), 0 1px 1px rgba(20,26,48,.04);
  --shadow-md: 0 2px 6px rgba(20,26,48,.04), 0 14px 32px -14px rgba(20,26,48,.22);
  --shadow-lg: 0 4px 12px rgba(20,26,48,.05), 0 32px 64px -28px rgba(20,26,48,.32);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

::selection { background: var(--brand); color: #fff; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Signature: the "speed marker" ----------
   A short angled red bar that flags every section eyebrow.
   Brand-derived, used consistently, quiet everywhere else. */
.marker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
.marker::before {
  content: "";
  width: 26px;
  height: 10px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
}
.marker--light { color: var(--brand-soft); }
.marker--light::before { background: var(--brand-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease-out),
              border-color .18s var(--ease-out),
              color .18s var(--ease-out),
              transform .12s var(--ease-out),
              box-shadow .18s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost   { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-dark    { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }
  .btn-ghost:hover   { border-color: var(--ink); background: var(--ink); color: #fff; }
  .btn-dark:hover    { background: #000; }
}
.btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }
}
.btn-lg { font-size: 1.06rem; padding: 1.1rem 1.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #d4dade;
  }
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}
.icon-tile svg { width: 26px; height: 26px; }

/* hero — navy world, matches the logo */
.hero { background: radial-gradient(125% 120% at 72% 6%, #26345a 0%, #1a2340 46%, #141a30 100%); }

/* check dot in hero trust list */
.check-dot { position: relative; width: 20px; height: 20px; border-radius: 999px; background: var(--brand-tint); flex: none; }
.check-dot::after { content:""; position:absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-dot--light { background: rgba(255,255,255,.14); }
.check-dot--light::after { border-color: var(--brand-soft); }

/* service card CTA link */
.service-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  color: var(--brand);
  transition: gap .16s var(--ease-out), color .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-cta:hover { gap: .7rem; color: var(--brand-dark); }
}

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 1.1em; height: 1.1em; }

/* ---------- Reviews carousel (mobile) ---------- */
.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 1px 1.25rem;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .review-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    padding-bottom: 0;
  }
}

/* ---------- Booking: slot chips ---------- */
.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.field {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: .85rem 1rem;
  transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.field::placeholder { color: #9aa1a8; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2341474d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.6rem; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .55rem; }
.slot {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  padding: .7rem .4rem;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .14s var(--ease-out), background-color .14s var(--ease-out), color .14s var(--ease-out), transform .1s var(--ease-out);
}
.slot:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .slot:hover { border-color: var(--ink); }
}
.slot.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot-empty { color: var(--muted); font-size: .92rem; padding: .5rem 0; }

/* date pills */
.date-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.date-row::-webkit-scrollbar { display: none; }
.date-pill {
  font-family: var(--font-display);
  text-align: center;
  padding: .55rem .3rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .14s var(--ease-out), background-color .14s var(--ease-out), color .14s var(--ease-out);
}
.date-pill .dow { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.date-pill .dnum { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.date-pill .mon { font-size: .68rem; color: var(--muted); }
.date-pill.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-pill.is-selected .dow, .date-pill.is-selected .mon { color: rgba(255,255,255,.7); }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
}
.badge::before { content:""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.badge-pending   { color: var(--warn); background: var(--warn-tint); }
.badge-confirmed { color: var(--ok);   background: var(--ok-tint); }
.badge-cancelled { color: var(--stop); background: var(--stop-tint); }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; left: 0; right: 0; bottom: 1.25rem; display: grid; justify-items: center; gap: .5rem; z-index: 80; pointer-events: none; padding: 0 1rem; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: .65rem;
  background: var(--ink); color: #fff;
  font-size: .95rem; font-weight: 500;
  padding: .85rem 1.1rem; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 30rem;
  animation: toast-in .26s var(--ease-out);
}
.toast.toast-ok  { border-left: 4px solid #4ade80; }
.toast.toast-err { border-left: 4px solid #f87171; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .btn:active, .slot:active { transform: none; }
}

/* ---------- Sticky mobile action bar ---------- */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .mobilebar { display: none; } }

/* spinner */
.spin { width: 1.1em; height: 1.1em; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 999px; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin ---------- */
.adm-input { width: 100%; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 11px; padding: .8rem 1rem; transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.adm-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.tab { font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .55rem .9rem; border-radius: 10px; cursor: pointer; color: var(--ink-soft); transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
.tab.is-active { background: var(--ink); color: #fff; }
.adm-row { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .16s var(--ease-out); }
.adm-row:hover { border-color: #d4dade; }
.mini-btn { font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: .45rem .7rem; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: all .14s var(--ease-out); }
.mini-btn:active { transform: scale(.96); }
.mini-btn-ok   { color: var(--ok);   border-color: #bfe2cb; }
.mini-btn-ok:hover   { background: var(--ok); color:#fff; border-color: var(--ok); }
.mini-btn-stop { color: var(--danger); border-color: #f3c6c2; }
.mini-btn-stop:hover { background: var(--danger); color:#fff; border-color: var(--danger); }
.mini-btn-del  { color: var(--stop); }
.mini-btn-del:hover  { background: var(--ink); color:#fff; border-color: var(--ink); }

/* active filter button */
.filter-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* availability time chips */
.av-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: .4rem .3rem .4rem .7rem;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface);
}
.av-del {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  border: 0; background: transparent; color: var(--danger);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.av-del:hover { background: var(--danger-tint); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--panel-2); padding: .1em .4em; border-radius: 5px; }

/* ============================================================
   REDESIGN v2 — frontend-design direction + Emil interaction polish
   ============================================================ */

/* ---- Engineered numerals: condensed face for data/labels ---- */
.stat-num,
.date-pill .dnum,
.slot { font-family: var(--font-cond); letter-spacing: .01em; }
.slot { font-weight: 700; font-size: 1.04rem; }
.date-pill .dnum { font-weight: 700; }

/* ---- HERO: gradient backdrop + floating brand logo ---- */
.hero {
  position: relative;
  /* Brand gradient photo as the backdrop; left-side scrim keeps the
     headline readable, brightest part stays on the right for the logo. */
  background:
    linear-gradient(90deg, rgba(9,14,32,.78) 0%, rgba(9,14,32,.42) 42%, rgba(9,14,32,0) 72%),
    url("/assets/hero-bg.webp") center / cover no-repeat,
    #0a1024;
  isolation: isolate;
}
/* grid texture removed — the gradient backdrop now carries the depth */
.hero::before { content: none; }

/* italic accent echoing the logo's speed wordmark */
.hl-accent { font-style: italic; color: #fff; }

/* ---- Header scrolled state ---- */
header.scrolled {
  background: rgba(20,26,48,.96);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.7);
}

/* ---- Staggered reveal (set --i per item in JS) ---- */
[data-stagger] > .reveal { transition-delay: calc(var(--i, 0) * 55ms); }

/* ---- Press feedback on pickable chips ---- */
.slot, .date-pill { will-change: transform; }
.slot:active, .date-pill:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .slot:active, .date-pill:active { transform: none; }
}

/* ---- Toast: transition-based, enters & exits from bottom ---- */
.toast {
  transform: translateY(120%);
  opacity: 0;
  animation: none; /* override earlier keyframe approach */
  transition: transform .26s var(--ease-out), opacity .26s var(--ease-out);
  will-change: transform, opacity;
}
.toast.is-in  { transform: translateY(0); opacity: 1; }
.toast.is-out {
  transform: translateY(120%); opacity: 0;
  transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}

/* ---- Mobile action bar: slides up on load ---- */
.mobilebar {
  transition: transform .42s var(--ease-drawer);
}
@starting-style {
  .mobilebar { transform: translateY(110%); }
}

/* ---- Button: content can blur during async state ---- */
.btn > .btn-label { transition: filter .2s var(--ease-out), opacity .2s var(--ease-out); }
.btn.is-busy > .btn-label { filter: blur(2px); opacity: .65; }

/* ============================================================
   v3 ADDITIONS — Notice banner · TÜV seal · FAQ accordion · counters
   Hand-written, token-driven, Emil-style motion (ease-out, <300ms,
   reduced-motion safe). Loaded after everything above.
   ============================================================ */

/* ---------- Announcement banner (admin-controlled) ----------
   Sits above the sticky header in normal flow. Collapsed to 0 height
   until JS opens it, so there is no flash before the fetch resolves.
   Height animates via the grid-rows 0fr→1fr trick (no JS measuring). */
.cw-banner {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease-drawer);
  background: var(--navy-deep);
  color: #fff;
}
.cw-banner.is-open { grid-template-rows: 1fr; }
.cw-banner__inner {
  overflow: hidden;
  min-height: 0;
}
.cw-banner__row {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 80rem;
  margin-inline: auto;
  padding: .7rem 1rem;
  font-size: .95rem;
  line-height: 1.45;
}
@media (min-width: 640px) { .cw-banner__row { padding-inline: 1.5rem; } }
.cw-banner__icon { flex: none; display: grid; place-items: center; }
.cw-banner__icon svg { width: 1.25rem; height: 1.25rem; }
.cw-banner__text { flex: 1; font-weight: 500; }
.cw-banner__text b { font-weight: 700; }
.cw-banner__close {
  flex: none;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.0);
  color: inherit; cursor: pointer;
  transition: background-color .16s var(--ease-out), transform .12s var(--ease-out);
}
.cw-banner__close svg { width: 1.05rem; height: 1.05rem; }
.cw-banner__close:hover { background: rgba(255,255,255,.16); }
.cw-banner__close:active { transform: scale(.92); }

/* Level variants */
.cw-banner--info   { background: var(--brand);      color: #fff; }
.cw-banner--warning{ background: #b45309;            color: #fff; }
.cw-banner--closed { background: #c0271d;            color: #fff; }
.cw-banner--info .cw-banner__icon    { color: #dcebfb; }
.cw-banner--warning .cw-banner__icon { color: #ffe6c2; }
.cw-banner--closed .cw-banner__icon  { color: #ffd9d4; }

@media (prefers-reduced-motion: reduce) {
  .cw-banner { transition: none; }
}

/* ---------- TÜV / HU·AU trust band + seal ---------- */
.tuev-band {
  background:
    radial-gradient(120% 140% at 12% 0%, #223056 0%, #1a2340 48%, #141a30 100%);
  color: #fff;
  position: relative;
  isolation: isolate;
}
/* grid texture removed per brand direction */
.tuev-band::before { content: none; }

/* An- & Verkauf teaser logo (transparent PNG on dark) — soft glow lifts it off the navy */
.ankauf-art { position: relative; display: grid; place-items: center; }
.ankauf-art__glow {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(79,155,230,.32), rgba(79,155,230,.05) 58%, transparent 72%);
  filter: blur(20px); z-index: 0;
}
.ankauf-art img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.45));
}

/* ---------- Mobile hamburger menu ---------- */
.cw-burger {
  position: relative; width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
}
.cw-burger span {
  position: absolute; display: block;
  width: 24px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .28s var(--ease-out), opacity .18s var(--ease-out);
}
.cw-burger span:nth-child(1) { transform: translateY(-7px); }
.cw-burger span:nth-child(3) { transform: translateY(7px); }
.cw-burger.is-open span:nth-child(1) { transform: rotate(45deg); }
.cw-burger.is-open span:nth-child(2) { opacity: 0; }
.cw-burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

.cw-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: rgba(17,22,42,.985);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease-drawer);
}
.cw-menu.is-open { grid-template-rows: 1fr; box-shadow: 0 24px 44px -22px rgba(0,0,0,.7); }
.cw-menu__inner { overflow: hidden; min-height: 0; }
.cw-menu__nav { display: flex; flex-direction: column; padding: .25rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); }
.cw-menu__nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .95rem .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s var(--ease-out);
}
.cw-menu__nav a:hover { color: #fff; }
.cw-menu__nav a[aria-current="page"] { color: var(--brand-soft); }
.cw-menu__call svg { width: 1.15rem; height: 1.15rem; color: var(--brand-soft); }
.cw-menu__nav .btn { justify-content: center; margin-top: 1rem; border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .cw-menu { transition: none; } .cw-burger span { transition: none; } }
/* burger/menu set their own display, which would beat Tailwind's lg:hidden — restore it on desktop */
@media (min-width: 1024px) {
  .cw-burger.lg\:hidden { display: none; }
  .cw-menu.lg\:hidden { display: none; }
}

/* Circular inspection-style seal (our own mark, brand-coloured) */
.seal {
  width: min(74%, 16rem);
  margin-inline: auto;
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__spin { transform-origin: 50% 50%; animation: seal-spin 38s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal__spin { animation: none; } }

/* small inline "geprüft" chip used in hero + footer */
.trust-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .01em;
  padding: .42rem .7rem .42rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.trust-chip svg { width: 1.05rem; height: 1.05rem; color: var(--brand-soft); }

/* feature ticks inside the TÜV band */
.tuev-list { display: grid; gap: .9rem; }
.tuev-list li { display: flex; gap: .7rem; align-items: flex-start; }
.tuev-list .tick {
  flex: none; margin-top: .15rem;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(79,155,230,.18);
  display: grid; place-items: center; color: var(--brand-soft);
}
.tuev-list .tick svg { width: 13px; height: 13px; }

/* ---------- FAQ accordion ----------
   Answer height animates with the grid-rows trick; chevron rotates.
   ease-out, ~220ms — feels instant, never sluggish (per design-eng). */
.faq-list { display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.faq-item.is-open { border-color: #d4dade; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem;
  color: var(--ink);
  padding: 1.15rem 1.25rem;
  background: transparent; border: 0; cursor: pointer;
}
.faq-q:hover { color: var(--brand); }
.faq-chevron {
  flex: none; width: 22px; height: 22px; color: var(--muted);
  transition: transform .24s var(--ease-out), color .18s var(--ease-out);
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .24s var(--ease-out);
}
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; min-height: 0; }
.faq-a__inner {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft); font-size: 1rem; line-height: 1.65;
}
.faq-a__inner a { color: var(--brand); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .faq-a-wrap, .faq-chevron { transition: none; }
}

/* ---------- Animated counters (reviews trust stats) ---------- */
.count-stat .count-num { font-variant-numeric: tabular-nums; }

/* notice level badges (admin) */
.badge-info   { color: var(--brand-dark); background: var(--brand-tint); }
.badge-closed { color: var(--danger);     background: var(--danger-tint); }

/* level select swatch in the notice composer */
.lvl-hint { display:inline-flex; align-items:center; gap:.4rem; font-size:.82rem; color:var(--muted); }
.lvl-dot { width:9px; height:9px; border-radius:999px; }

/* ============================================================
   v4 REDESIGN — real CARWORLD logo art + interaction polish
   New brand assets (logo / favicon / hero art) wired in here.
   Token-driven, reduced-motion safe, layered on the v1–v3 system.
   ============================================================ */

/* ---------- Scroll / reading progress bar ----------
   Thin azure line at the very top edge; fill scales with scroll %. */
.scrollbar {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.scrollbar > span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-soft) 65%, #8cc2f5 100%);
  box-shadow: 0 0 10px rgba(79,155,230,.55);
  transition: transform .12s linear;
}

/* ---------- Header logo: subtle lift on hover ---------- */
.logo-img {
  transform-origin: left center;
  transition: transform .3s var(--ease-out), filter .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .logo-link:hover .logo-img {
    transform: scale(1.035);
    filter: drop-shadow(0 5px 16px rgba(79,155,230,.4));
  }
}

/* ---------- HERO brand art ----------
   The navy "carworld" graphic, masked so its rectangular edges
   dissolve into the hero gradient, with an ambient glow + slow float. */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 .5rem;
}
.hero-art__glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%,
              rgba(79,155,230,.42), rgba(79,155,230,.06) 56%, transparent 72%);
  filter: blur(16px);
  z-index: 0;
  animation: hero-glow 7.5s var(--ease-in-out) infinite;
}
.hero-art__img {
  position: relative;
  z-index: 1;
  width: min(82%, 430px);
  height: auto;
  margin-inline: auto;
  display: block;
  /* transparent logo floats on the gradient — drop-shadow gives it lift */
  filter: drop-shadow(0 24px 46px rgba(0,0,0,.5));
  animation: hero-float 7.5s var(--ease-in-out) infinite;
  will-change: transform;
}
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hero-glow  { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .hero-art__img, .hero-art__glow { animation: none; }
}

/* ---------- Service cards: accent rule grows + icon energises ---------- */
#services-grid .card { position: relative; overflow: hidden; }
#services-grid .card::before {
  content: ""; position: absolute; left: 0; top: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
#services-grid .icon-tile {
  transition: transform .26s var(--ease-out),
              background-color .26s var(--ease-out),
              color .26s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  #services-grid .card:hover::before { transform: scaleX(1); }
  #services-grid .card:hover .icon-tile {
    background: var(--brand); color: #fff;
    transform: translateY(-2px) scale(1.06);
  }
}

/* ---------- Service-highlights strip: same energised tile on hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .card-lift:hover .icon-tile { background: var(--brand); color: #fff; }
}

/* ---------- Review cards: quote watermark + warmer hover ---------- */
.review-track figure {
  position: relative; overflow: hidden;
  transition: background-color .2s var(--ease-out),
              border-color .2s var(--ease-out),
              transform .2s var(--ease-out);
}
.review-track figure::after {
  content: "\201C";
  position: absolute; top: -.55rem; right: .7rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 5rem; line-height: 1;
  color: rgba(255,255,255,.07);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .review-track figure:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-3px);
  }
}

/* ---------- Section eyebrow gets a hairline tail for rhythm ---------- */
.btn-primary { position: relative; }

/* ---------- Booking submit: brand sheen on hover ---------- */
@media (hover: hover) and (pointer: fine) {
  #booking-submit:hover { box-shadow: 0 10px 30px -10px rgba(12,116,207,.6); }
}

/* ============================================================
   v5 — An- & Verkauf: car listing cards + lightbox gallery
   ============================================================ */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 380px));
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  /* keep a lone listing from sitting awkwardly far left */
  .car-grid { justify-content: safe center; }
}
.car-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4dade; }
}
.car-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--panel-2);
  cursor: pointer;
  overflow: hidden;
}
.car-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .car-card:hover .car-media img { transform: scale(1.04); } }
.car-media__empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted);
}
.car-media__empty svg { width: 3rem; height: 3rem; opacity: .4; }
.car-count {
  position: absolute; right: .6rem; bottom: .6rem;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(20,26,48,.78); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  padding: .25rem .55rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.car-count svg { width: .9rem; height: .9rem; }
.car-status {
  position: absolute; left: .6rem; top: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .03em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; color: #fff;
}
.car-status--reserved { background: var(--warn); }
.car-status--sold { background: var(--stop); }
.car-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.car-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.car-price { font-family: var(--font-cond); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; color: var(--brand); margin-top: .35rem; }
.car-price small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.car-specs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 .9rem; }
.car-spec {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--line);
  padding: .3rem .55rem; border-radius: 8px;
}
.car-spec svg { width: .95rem; height: .95rem; color: var(--brand); }
.car-desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.car-foot { margin-top: auto; padding-top: 1rem; display: flex; gap: .55rem; }

/* Featured-cars slider (homepage, after booking) */
.cars-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.cars-slider::-webkit-scrollbar { display: none; }
.cars-slider > * { scroll-snap-align: start; }
@media (min-width: 640px)  { .cars-slider { grid-auto-columns: 47%; } }
@media (min-width: 1024px) { .cars-slider { grid-auto-columns: 31.7%; } }
.slider-arrow {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), opacity .15s var(--ease-out);
}
.slider-arrow svg { width: 1.4rem; height: 1.4rem; }
.slider-arrow:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.slider-arrow:disabled { opacity: .3; cursor: default; }
.slider-arrow:active { transform: scale(.94); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: 1fr auto;
  background: rgba(10,14,28,.92); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 3.5rem 1rem 1rem; min-height: 0; }
.lightbox__img { max-width: min(96vw, 1100px); max-height: 74vh; border-radius: 12px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav svg, .lightbox__close svg { width: 1.5rem; height: 1.5rem; }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
.lightbox__info { color: #fff; padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); max-width: 56rem; margin-inline: auto; width: 100%; }
.lightbox__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.lightbox__price { font-family: var(--font-cond); font-weight: 700; color: var(--brand-soft); font-size: 1.3rem; margin-left: .6rem; }
.lightbox__desc { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.6; margin-top: .5rem; white-space: pre-line; }
.lightbox__dots { display: flex; gap: .35rem; margin-top: .7rem; }
.lightbox__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); }
.lightbox__dot.is-on { background: var(--brand-soft); }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } .car-media img { transition: none; } }

/* ---------- Reviews: seamless auto-scroll marquee (desktop) ----------
   Mobile keeps the swipe carousel (.review-track defaults above). On
   desktop the track scrolls continuously; JS duplicates the cards so the
   loop is seamless. Pauses on hover; disabled for reduced-motion. */
@media (min-width: 768px) {
  .reviews-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .reviews-marquee .review-track {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(340px, 1fr);
    width: max-content;
    overflow: visible;
    gap: 1.25rem;
    padding-bottom: 0;
    animation: review-marquee 52s linear infinite;
  }
  .reviews-marquee:hover .review-track,
  .reviews-marquee:focus-within .review-track { animation-play-state: paused; }
  .reviews-marquee .review-track > * { scroll-snap-align: none; }
}
@keyframes review-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 0.625rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee .review-track { animation: none; }
}

/* ---------- Cascade fix: display utilities must beat .btn ----------
   brand.css loads after tailwind.css, so `.btn { display:inline-flex }`
   was overriding `.hidden` — making the header phone button show (and
   overflow) on mobile. Restore the intended responsive hiding. */
.btn.hidden { display: none; }
@media (min-width: 640px) {
  .btn.sm\:inline-flex { display: inline-flex; }
}
@media (min-width: 1024px) {
  .btn.lg\:inline-flex { display: inline-flex; }
}
