/* ===== Automobile Oststeinbek – Stylesheet =====
   Design: "Nacht & Messing" – dunkel, cinematisch, Messing-Gold.
   Fonts selbst gehostet (DSGVO – keine Google-Server). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --bg-3: #1b1f26;
  --border: #2a2f38;
  --border-2: #363c47;
  --text: #eef0f3;
  --muted: #a4abb6;
  --dim: #6f7885;
  --accent: #c9a24b;      /* Messing */
  --accent-hover: #e0bd6c; /* Messing hell */
  --accent-deep: #9c7a2f;  /* Messing gedämpft */
  --maxw: 1220px;
  --radius: 3px;
  --disp: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(201, 162, 75, .28); }

h1, h2, h3 { font-family: var(--disp); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.1rem); }
.section { padding: clamp(3.2rem, 9vw, 6.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.center { text-align: center; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .74rem; color: var(--accent); font-weight: 700; margin: 0 0 1.2rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--accent); color: #161009; padding: .5rem 1rem; border-radius: 6px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--accent); color: #161009;
  font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  padding: .85rem 1.55rem; border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #161009; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { background: transparent; color: var(--accent-hover); border-color: var(--accent); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-whatsapp { background: #1faa54; color: #fff; }
.btn-whatsapp:hover { background: #26c162; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,15,18,.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.brand-logo { width: 44px; height: 44px; transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(14deg); }
.brand-name { font-family: var(--disp); font-size: 1rem; line-height: 1.12; font-weight: 700; letter-spacing: .01em; }
.brand-name strong { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); font-size: .92rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-hover); }
.nav-toggle, .nav-toggle-label { display: none; }
.nav-cta { color: #161009; }

/* Hero */
.hero { position: relative; padding: clamp(4rem, 12vw, 8rem) 0;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(201,162,75,.13), transparent 60%),
  linear-gradient(180deg, #12141a, var(--bg)); border-bottom: 1px solid var(--border); }
.hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 7vw, 5.6rem); }
.hero h1 .accent, .hero h1 em { font-style: normal; color: var(--accent-hover); }
.hero .lead { margin-bottom: 2.2rem; font-size: 1.18rem; color: #d6dae0; }
.hero-photo { display: flex; align-items: flex-end; min-height: min(82vh, 780px); padding: clamp(6rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 4.8rem); background:
  linear-gradient(90deg, rgba(13,15,18,.85) 0%, rgba(13,15,18,.45) 46%, transparent 78%),
  linear-gradient(180deg, rgba(13,15,18,.55) 0%, rgba(13,15,18,.2) 42%, rgba(13,15,18,.82) 84%, var(--bg) 100%),
  var(--hero-img) center / cover no-repeat, var(--bg); }
.hero-photo .container { width: 100%; }
.hero-tag { position: absolute; top: 6.2rem; right: clamp(1rem, 4vw, 2.1rem); font-family: var(--disp); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-deep); padding: .5rem .9rem; background: rgba(13,15,18,.4); backdrop-filter: blur(3px); }

/* Trust band (Bewertungszahlen) */
.trust-band { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; flex-direction: column; gap: .3rem; padding: 1.7rem 1.6rem; border-left: 1px solid var(--border); color: var(--text); }
.trust-grid > .trust-item:first-child { border-left: 0; }
.trust-value { font-family: var(--disp); font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; }
.trust-value .stars { font-size: 1.2rem; }
.trust-label { font-size: .8rem; color: var(--dim); letter-spacing: .02em; }
a.trust-item:hover .trust-label { color: var(--accent-hover); }

/* Sterne & Bewertungen */
.stars { color: var(--accent); letter-spacing: .12em; }
.rating-line { display: inline-flex; gap: .5rem; align-items: baseline; margin-top: .4rem; font-size: .88rem; color: var(--accent); }
.rating-line:hover { color: var(--accent-hover); }
.reviews-band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.review-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.review-stats .stat { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; transition: border-color .25s; }
.review-stats .stat:hover { border-color: var(--accent-deep); }
.stat-value { font-family: var(--disp); font-size: 2rem; font-weight: 700; color: var(--accent-hover); line-height: 1; }
.stat-value small { font-size: 1rem; color: var(--dim); }
.stat-label { font-size: .82rem; color: var(--muted); }
.review-quote { font-family: var(--disp); font-size: 1.3rem; font-style: normal; font-weight: 600; color: var(--text); }

/* Grid cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); border-color: var(--accent-deep); box-shadow: var(--shadow); }
.card h3 { color: var(--text); }

/* Vehicle cards */
.vehicle { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.vehicle .thumb { position: relative; aspect-ratio: 3/2; background: var(--bg-3); display: grid; place-items: center; color: var(--dim); font-size: .85rem; border-bottom: 1px solid var(--border); overflow: hidden; }
.vehicle .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .4s; filter: brightness(.94); }
.vehicle:hover .thumb img { transform: scale(1.06); filter: brightness(1); }
.vehicle h3 { font-size: 1.35rem; }
.vehicle h3 a { color: inherit; }
.vehicle h3 a:hover { color: var(--accent-hover); }
.vehicle .body { padding: 1.3rem 1.4rem 1.45rem; display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.vehicle .foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.vehicle .price { margin: 0; font-family: var(--disp); color: var(--accent-hover); font-weight: 700; font-size: 1.45rem; }
.vehicle .go { font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; transition: color .2s; }
.vehicle:hover .go { color: var(--accent-hover); }
.badge { display: inline-block; align-self: flex-start; background: rgba(13,15,18,.72); border: 1px solid var(--accent-deep); color: var(--accent-hover); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .28rem .7rem; border-radius: 2px; margin-bottom: .85rem; }

/* Fahrzeug-Detailseite */
.crumbs { font-size: .88rem; margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-hover); }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.detail-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .3em; }
.detail-price { font-family: var(--disp); font-size: 2rem; font-weight: 700; color: var(--accent-hover); margin: 0 0 .3rem; }
.detail-side { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); position: sticky; top: 90px; }
.gallery-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; margin-top: .6rem; }
.gallery-thumb { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--bg-3); transition: border-color .2s, opacity .2s; opacity: .7; }
.gallery-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.detail-desc { margin-top: 2.2rem; max-width: 72ch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--dim); font-weight: 600; width: 45%; }
.feature-list { list-style: none; margin: 0; padding: 0; columns: 2; font-size: .9rem; color: var(--muted); }
.feature-list li { padding: .25rem 0; break-inside: avoid; }
.feature-list li::before { content: "✓ "; color: var(--accent); }
.sold .thumb img { filter: grayscale(.5) brightness(.8); }
.sold-tag { position: absolute; top: .8rem; left: .8rem; background: rgba(13,15,18,.8); border: 1px solid var(--accent-deep); color: var(--accent-hover); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .28rem .7rem; border-radius: 2px; }

/* Feature cards (Warum wir / Leistungen) */
.feat { display: grid; gap: .9rem; }
.feat-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: center; transition: border-color .25s; }
.feat-card:hover { border-color: var(--accent-deep); }
.feat-ic { width: 46px; height: 46px; border: 1px solid var(--accent-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.feat-ic svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.feat-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4.2rem); align-items: center; }
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* CTA band */
.cta-band { position: relative; background: var(--bg-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(201,162,75,.14), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: .65rem 0; border-bottom: 1px solid var(--border); }
.info-list li strong { display: block; color: var(--dim); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .15rem; }

/* Notice / placeholder */
.notice { background: rgba(201,162,75,.08); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--muted); font-size: .92rem; }

/* Prose (legal pages) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 3.2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { font-family: var(--disp); font-weight: 700; font-size: 1.25rem; color: var(--accent); margin-bottom: .5rem; }
.site-footer h3 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .2em; color: var(--dim); font-weight: 700; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-hover); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-bottom { padding: 1.2rem 0 2rem; border-top: 1px solid var(--border); font-size: .85rem; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-2, .split, .contact-grid, .footer-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .feature-list { columns: 1; }
  .trust-grid, .review-stats { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(odd) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hero-photo { min-height: 74vh; background:
    linear-gradient(180deg, rgba(13,15,18,.65), rgba(13,15,18,.35) 45%, rgba(13,15,18,.88) 85%, var(--bg)),
    var(--hero-img) center / cover no-repeat, var(--bg); }
  .hero-tag { display: none; }
  .nav-toggle-label { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; cursor: pointer; }
  .nav-toggle-label span { display: block; height: 2px; width: 24px; background: var(--text); transition: .2s; }
  .site-nav { position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem clamp(1rem,4vw,2rem) 1.5rem; transform: translateY(-120%); transition: transform .25s ease; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: .9rem 0; }
  .nav-cta { margin-top: 1rem; text-align: center; justify-content: center; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
