/* KFZ-Masi – Website
   Schriften: Clash Display (Fontshare, frei nutzbar) und Xanh Mono (Google Fonts, OFL), lokal eingebunden. */

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Xanh Mono';
  src: url('../fonts/xanh-mono-normal-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Xanh Mono';
  src: url('../fonts/xanh-mono-normal-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Xanh Mono';
  src: url('../fonts/xanh-mono-italic-latin.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Xanh Mono';
  src: url('../fonts/xanh-mono-italic-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #00A1C5;
  --bg: #191717;
  --bg-2: #211e1e;
  --text: #ffffff;
  --soft: #bfb9b5;
  --line: rgba(255, 255, 255, 0.12);
  --display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Xanh Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  font-synthesis: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--accent); color: var(--bg); padding: 10px 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.c { font-family: var(--display); font-weight: 500; font-synthesis: none; }
.caps { text-transform: uppercase; letter-spacing: 0.075em; }
.label {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 14px;
}
.soft { color: var(--soft); }
.logo {
  display: block;
  aspect-ratio: 1600 / 458;
  background: url('../img/logo.webp') center / contain no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid var(--accent);
  font-family: var(--display); font-weight: 500; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: transparent;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--fill { background: var(--accent); color: var(--bg); }
.btn--fill:hover { background: #ffffff; border-color: #ffffff; color: var(--bg); }
.btn--light { border-color: var(--text); color: var(--text); }
.btn--light:hover { background: var(--text); color: var(--bg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(25, 23, 23, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  min-height: 72px;
}
.site-header .logo { width: 112px; flex: none; }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; justify-content: flex-end; }
.nav a:not(.btn) {
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 0;
}
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { min-height: 42px; padding: 8px 20px; font-size: 13px; }
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; padding-top: 14px; padding-bottom: 10px; gap: 10px; }
  .site-header .logo { width: 96px; align-self: center; }
  .nav { justify-content: center; gap: 4px 20px; }
  .nav .btn { display: none; }
  .site-header { position: static; }
}

/* Abschnitte */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 18px; color: var(--soft); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 112px); text-align: center; }
.hero .logo { width: min(640px, 82%); margin: 0 auto; }
.hero-words {
  max-width: 680px; margin: clamp(32px, 5vw, 52px) auto 0;
  display: grid; gap: 14px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(16px, 2.4vw, 28px);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero-words div { display: flex; justify-content: space-between; gap: 24px; }
.hero-words div.center { justify-content: center; }
.est {
  display: inline-block; margin-top: clamp(28px, 4vw, 44px);
  padding: 10px 34px; border: 2px solid var(--accent); border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.hero-text { max-width: 600px; margin: clamp(32px, 4vw, 48px) auto 0; font-size: clamp(19px, 2vw, 24px); color: var(--soft); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Leistungen */
.list { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 56px minmax(160px, 1fr) 2fr; align-items: baseline; gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.row .nr { font-family: var(--display); font-size: 14px; color: var(--accent); }
.row .name { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: 0.06em; text-transform: uppercase; }
.row .txt { color: var(--soft); }
.row .txt a { color: var(--accent); border-bottom: 1px solid currentColor; }
@media (max-width: 680px) {
  .row { grid-template-columns: 40px 1fr; }
  .row .txt { grid-column: 2; }
}

/* Fahrzeuge: Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: var(--accent); color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2626; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-type { font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: 0.03em; }
.card-facts { color: var(--soft); font-size: 16px; }
.card-price { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--accent); }
.badge {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: var(--bg);
}
.badge--verkauft { background: #ffffff; color: var(--bg); }
.card.is-verkauft .card-img img { filter: grayscale(1) brightness(.6); }
.empty {
  border: 1px dashed var(--line); border-radius: 16px; padding: clamp(32px, 5vw, 56px);
  text-align: center; color: var(--soft);
}
.empty .actions { margin-top: 24px; }
.more { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* Fahrzeug-Detail */
.back { display: inline-flex; gap: 8px; font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #2a2626; border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumbs a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.thumbs a:hover, .thumbs a.is-active { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: 0.03em; margin-top: 10px; }
.detail .price { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 38px); color: var(--accent); }
.facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; text-align: right; }
.call { margin-top: 28px; padding: 24px; border-radius: 16px; background: var(--accent); color: var(--bg); }
.call p { font-size: 17px; }
.call .btn { margin-top: 16px; width: 100%; border-color: var(--bg); background: var(--bg); color: #ffffff; }
.call .btn:hover { background: #ffffff; color: var(--bg); border-color: #ffffff; }
.call a.mail { display: inline-block; margin-top: 12px; border-bottom: 1px solid currentColor; }
.desc { margin-top: clamp(40px, 5vw, 64px); max-width: 760px; }
.desc p + p { margin-top: 1em; }
.desc p { color: var(--soft); }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; }
.note { margin-top: 18px; font-size: 15px; color: var(--soft); font-style: italic; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 9, 9, 0.94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--text); background: rgba(25, 23, 23, .6); color: var(--text);
  font: 500 22px/1 var(--display); cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--soft); font-size: 15px; }

/* Wir */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about p { color: var(--soft); }
.about p + p { margin-top: 1em; }
.about-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #2a2626; }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-img { aspect-ratio: 4 / 3; } }

/* Kontakt */
.contact { background: var(--accent); color: var(--bg); }
.contact .label { color: var(--bg); }
.contact a:hover { color: #ffffff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-grid p { margin-top: 14px; font-size: clamp(18px, 1.6vw, 21px); }
.contact-grid a { border-bottom: 1px solid currentColor; }
.hours { margin-top: 14px; }
.hours div + div { margin-top: 12px; }
.hours .day { font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact .actions { justify-content: flex-start; margin-top: 40px; }
.contact .btn { border-color: var(--bg); color: var(--bg); }
.contact .btn:hover { background: var(--bg); color: #ffffff; }
.contact .btn--fill { background: var(--bg); color: #ffffff; }
.contact .btn--fill:hover { background: #ffffff; color: var(--bg); border-color: #ffffff; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h1 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: 0.06em; text-transform: uppercase; }
.legal h2 { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 44px; }
.legal p, .legal ul { margin-top: 14px; color: var(--soft); }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--accent); border-bottom: 1px solid currentColor; }
.todo { background: #ffe066; color: #191717; padding: 0 4px; border-radius: 3px; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--soft); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .logo { width: 92px; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-links { display: flex; gap: 24px; }
