/* =====================================================================
   Müller Swiss Automobile — Design System
   Dark & Premium: Chrom auf Schwarz mit feinem Schweizer Rot
   ===================================================================== */

/* ---------- 0. Schriften (lokal gehostet, SIL Open Font License) ------
   Archivo für Überschriften, Inter für Fliesstext.
   Lokal eingebunden, damit keine Daten an Google übertragen werden.
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  --bg:            #060607;
  --bg-2:          #0A0A0D;
  --surface:       #101015;
  --surface-2:     #16161C;
  --surface-3:     #1D1D24;

  --line:          rgba(255,255,255,.075);
  --line-2:        rgba(255,255,255,.13);
  --line-3:        rgba(255,255,255,.22);

  --text:          #F3F4F6;
  --text-2:        #A8AEB8;
  --text-3:        #6C727C;

  --red:           #D8232A;
  --red-2:         #F2373F;
  --red-glow:      rgba(216,35,42,.35);

  --silver:        #C9CED6;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow:    0 18px 50px -18px rgba(0,0,0,.85);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.95);

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 158px;        /* Kopfzeile oben auf der Seite */
  --header-h-stuck: 104px;  /* Kopfzeile, sobald gescrollt wird */

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Archivo', 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-stuck) + 20px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01','cv05';
}
body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 22%, var(--bg-2) 78%, var(--bg) 100%); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Zweispaltige Abschnitte, die auf schmalen Bildschirmen untereinander rutschen */
.split {
  display: grid; align-items: start;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.split--text  { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4.5vw, 64px); }
.split--form  { grid-template-columns: minmax(0, .9fr)  minmax(0, 1.2fr); }
.split--wizard{ grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
@media (max-width: 900px) {
  .split, .split--text, .split--form, .split--wizard { grid-template-columns: 1fr; }
}

.hr { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); border: 0; }

/* ---------- 4. Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 108%;
  line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance;
}

.h-xl, .h-lg, .h-md, .h-sm { font-family: var(--font-display); font-stretch: 108%; }
.h-xl { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.038em; font-stretch: 114%; }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.035em; }
.h-md { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.03em; }
.h-sm { font-size: clamp(1.12rem, 1.7vw, 1.32rem); letter-spacing: -.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.eyebrow--center::after {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(270deg, var(--red), transparent);
}

.lead { font-size: clamp(1rem, 1.35vw, 1.14rem); color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }

.chrome {
  background: linear-gradient(178deg, #FFFFFF 0%, #EEF1F5 20%, #B4BCC7 50%, #FFFFFF 68%, #C4CBD4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.red { color: var(--red-2); }

.section-head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head .h-lg { margin-top: 16px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid var(--line-2);
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-3); background: var(--surface-3); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, #F4F6F8, #C6CCD4);
  color: #0B0B0E; border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(255,255,255,.28);
}
.btn--primary:hover { background: linear-gradient(180deg, #FFFFFF, #D6DBE2); box-shadow: 0 18px 40px -14px rgba(255,255,255,.4); }

.btn--red {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff; border-color: transparent;
  box-shadow: 0 14px 34px -14px var(--red-glow);
}
.btn--red:hover { box-shadow: 0 20px 44px -14px var(--red-glow); background: linear-gradient(180deg, #FF4B52, #E02830); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.05); }

.btn--sm { padding: 10px 18px; font-size: .84rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; color: var(--text);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow:hover { gap: 13px; border-color: var(--red); }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,6,7,.94) 40%, rgba(6,6,7,0));
  pointer-events: none;
}
.header.is-stuck {
  height: var(--header-h-stuck);
  background: rgba(8,8,11,.93);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.header.is-stuck::after { opacity: 0; }

.header__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 13px; width: 100%;
}
.brand { display: flex; align-items: center; flex: none; }
.brand__logo {
  height: 90px; width: auto;
  transition: height .35s var(--ease);
}
.header.is-stuck .brand__logo { height: 56px; }

.header__row2 { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 15px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ''; display: block; height: 2px; width: 18px; margin: 4px auto -4px;
  background: var(--red); border-radius: 2px;
}
.header__tel { margin-left: 14px; }

.burger {
  display: none; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line-2);
  align-items: center; justify-content: center;
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%);
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: .3s var(--ease); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 89;
  background: rgba(6,6,8,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 28px var(--gut) 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.mobile-nav a.mnav-link {
  padding: 16px 4px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.mobile-nav a.mnav-link span { color: var(--text-3); font-size: .78rem; font-weight: 500; text-align: right; }
.mobile-nav .mnav-foot { margin-top: 28px; display: grid; gap: 12px; }

/* Ab hier wird die Navigation eingeklappt: eine Zeile, Logo mittig, Menue rechts */
@media (max-width: 1080px) {
  :root { --header-h: 82px; --header-h-stuck: 74px; }
  .header__inner { flex-direction: row; justify-content: center; position: relative; }
  .header__row2 { display: none; }
  .brand__logo { height: 54px; }
  .header.is-stuck .brand__logo { height: 46px; }
  .burger { display: flex; }
}
@media (max-width: 420px) {
  .brand__logo { height: 46px; }
  .header.is-stuck .brand__logo { height: 40px; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(160,175,195,.16) 0%, transparent 58%),
    radial-gradient(70% 55% at 82% 12%, rgba(216,35,42,.13) 0%, transparent 60%),
    linear-gradient(180deg, #08080B 0%, #060607 60%, #060607 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(85% 65% at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 65% at 50% 35%, #000 0%, transparent 78%);
}
.hero__ridge {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: min(1600px, 150%); z-index: -1; opacity: .5;
  pointer-events: none;
}
.hero__inner { position: relative; width: 100%; }
.hero__content { max-width: 780px; }
.hero .h-xl { margin-top: 22px; }
.hero .lead { margin-top: 22px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.trust {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 34px;
}
.trust li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-2); }
.trust svg { width: 17px; height: 17px; color: var(--red-2); flex: none; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--line-3), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0%,100% { opacity: .3; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- 8. Page header (Unterseiten) ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(38px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 130% at 22% 0%, rgba(160,175,195,.13), transparent 62%),
    radial-gradient(60% 100% at 92% 0%, rgba(216,35,42,.10), transparent 65%),
    var(--bg);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }

/* ---------- 9. Karten / Fahrzeuge ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, #0C0C10 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }

.vcard { display: flex; flex-direction: column; }
.vcard__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(160deg, #14141A, #08080B);
}
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.055); }
.vcard__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,6,8,.78) 100%);
  pointer-events: none;
}

.badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; max-width: calc(100% - 28px); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  background: rgba(10,10,13,.72); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge--red { background: var(--red); border-color: transparent; color: #fff; }
.badge--sold { background: rgba(10,10,13,.86); color: var(--text-3); }

.vcard__price {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-display); font-stretch: 110%;
  font-size: 1.24rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  padding: 7px 14px; border-radius: 12px;
  background: rgba(8,8,11,.7); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.vcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.vcard__brand { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.vcard__title { margin-top: 7px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.022em; line-height: 1.3; }
.vcard__specs {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.vcard__specs div { min-width: 0; }
.vcard__specs dt { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.vcard__specs dd { font-size: .85rem; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard__foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vcard__link::after { content: ''; position: absolute; inset: 0; }

/* Platzhalter-Grafik */
.ph { width: 100%; height: 100%; display: block; }

/* ---------- 10. Filterleiste ---------- */
.filters {
  position: sticky; top: var(--header-h-stuck); z-index: 40;
  background: rgba(9,9,12,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: .92rem; color: var(--text);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  min-height: 46px;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(242,55,63,.6); background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(216,35,42,.14);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236C727C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: #14141A; color: var(--text); }

.filters .field { flex: 1 1 150px; min-width: 130px; }
.filters .field--search { flex: 2 1 240px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.results-bar strong { font-size: 1.05rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .8rem; font-weight: 600; color: var(--text-2);
  background: var(--surface); transition: .22s var(--ease); cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip.is-active { background: var(--text); color: #0B0B0E; border-color: transparent; }

.empty {
  text-align: center; padding: clamp(48px, 8vw, 90px) 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-2);
}
.empty svg { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--text-3); }

/* ---------- 11. Fahrzeug-Detail ---------- */
.detail { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: minmax(0, 1.65fr) minmax(300px, .95fr); align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } }

.gallery__main {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #15151B, #08080B); border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(8,8,11,.66); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: .25s var(--ease); z-index: 2;
}
.gallery__nav:hover { background: rgba(20,20,26,.9); border-color: var(--line-3); }
.gallery__nav--prev { left: 14px; } .gallery__nav--next { right: 14px; }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__count {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: rgba(8,8,11,.7); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
}
.thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.thumb {
  aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: #101015; opacity: .55; transition: .25s var(--ease); cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; border-color: var(--red); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,4,6,.96);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1300px, 96vw); max-height: 88vh; width: auto; border-radius: var(--r); object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(20,20,26,.8); }

.spec-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 30px;
}
.spec-strip > div { background: var(--surface); padding: 18px 16px; }
.spec-strip dt { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.spec-strip dd { margin-top: 6px; font-family: var(--font-display); font-stretch: 108%; font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }

.datatable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.datatable tr { border-bottom: 1px solid var(--line); }
.datatable tr:last-child { border-bottom: 0; }
.datatable th { text-align: left; font-weight: 500; color: var(--text-2); padding: 13px 0; width: 48%; }
.datatable td { text-align: right; font-weight: 600; padding: 13px 0; font-variant-numeric: tabular-nums; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 26px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.feature-list svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--red-2); }

.aside-card {
  position: sticky; top: calc(var(--header-h-stuck) + 22px);
  background: linear-gradient(180deg, var(--surface-2), #0C0C10);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow);
}
@media (max-width: 1000px) { .aside-card { position: static; } }
.price-big { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.032em; font-variant-numeric: tabular-nums; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
}

/* ---------- 12. Feature-Tiles / Steps ---------- */
.tile {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, #0A0A0E 100%);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.02));
  border: 1px solid var(--line-2); margin-bottom: 20px;
}
.tile__icon svg { width: 21px; height: 21px; color: var(--silver); }
.tile h3 { font-size: 1.06rem; margin-bottom: 9px; }
.tile p { font-size: .92rem; color: var(--text-2); }

.steps { counter-reset: s; display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: -13px; left: 0;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  background: var(--bg); padding-right: 14px; color: var(--red-2);
}
.step h3 { font-size: 1.06rem; margin-bottom: 9px; }
.step p { font-size: .92rem; color: var(--text-2); }

/* ---------- 13. CTA-Band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: clamp(34px, 5.5vw, 72px);
  background: linear-gradient(135deg, #131319 0%, #0A0A0D 55%, #120C0E 100%);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 120% at 88% 15%, rgba(216,35,42,.20), transparent 62%),
    radial-gradient(60% 110% at 8% 90%, rgba(170,185,205,.12), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band__grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: center; }
@media (max-width: 860px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- 14. Formulare ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid .col-2 { grid-column: span 2; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .col-2 { grid-column: span 1; } }

.field--req > label::after { content: ' *'; color: var(--red-2); }
.field__hint { font-size: .76rem; color: var(--text-3); }
.field__err { font-size: .78rem; color: var(--red-2); display: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.field.has-error .field__err { display: block; }

.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: .87rem; color: var(--text-2); cursor: pointer; }
.checkline input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--red); flex: none; cursor: pointer; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface-2); font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: .22s var(--ease); text-align: center;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--line-3); }
.opt:has(input:checked) { background: var(--text); color: #0B0B0E; border-color: transparent; }

.form-note { font-size: .8rem; color: var(--text-3); }

.wizard__bar { display: flex; gap: 10px; margin-bottom: 30px; }
.wizard__bar div { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); transition: background-color .35s var(--ease); }
.wizard__bar div.is-done { background: var(--red); }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard__actions { margin-top: 28px; display: flex; gap: 12px; justify-content: space-between; }

.form-status {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: .9rem; display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: rgba(90,200,130,.45); background: rgba(50,140,90,.13); }
.form-status.is-err { border-color: rgba(216,35,42,.5); background: rgba(216,35,42,.12); }

/* ---------- 15. Kontakt / Karte ---------- */
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.86) hue-rotate(180deg); }

.info-list li { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 19px; height: 19px; color: var(--red-2); flex: none; margin-top: 3px; }
.info-list dt { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.info-list dd { margin-top: 4px; font-weight: 600; }
.info-list dd a:hover { color: var(--red-2); }

.hours { width: 100%; font-size: .92rem; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours td { padding: 11px 0; }
.hours td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--red-2); }

/* ---------- 16. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(48px, 6vw, 76px) 30px; }
.footer__grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
.footer li + li { margin-top: 11px; }
.footer a { color: var(--text-2); font-size: .92rem; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer__brand img { height: 96px; width: auto; margin-bottom: 20px; margin-left: -4px; }
.footer__bottom {
  margin-top: clamp(38px, 5vw, 58px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--text-3);
}
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: .25s var(--ease);
}
.socials a:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- 17. Sticky mobile call bar + WhatsApp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.5);
  transition: transform .28s var(--ease);
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 28px; height: 28px; }
@media (max-width: 700px) { .fab { bottom: 84px; width: 50px; height: 50px; } .fab svg { width: 25px; height: 25px; } }

.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 81; display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  background: rgba(9,9,12,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; padding: 13px 12px; font-size: .87rem; }
@media (max-width: 700px) { .callbar { display: flex; } body { padding-bottom: 72px; } }

/* ---------- 18. Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 19. Prosa (Impressum/Datenschutz) ---------- */
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.45rem; margin-top: 44px; margin-bottom: 14px; }
.prose h3 { font-size: 1.08rem; margin-top: 28px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--text-2); font-size: .96rem; }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 12px; display: grid; gap: 8px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--red); }
.prose strong { color: var(--text); }

/* ---------- 20. Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.stack { display: grid; }
.stack-sm { gap: 10px; } .stack-md { gap: 18px; } .stack-lg { gap: 30px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-sm { gap: 10px; } .gap-md { gap: 18px; }
.wrap-flex { flex-wrap: wrap; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.sticky-aside { position: sticky; top: calc(var(--header-h-stuck) + 22px); }
@media (max-width: 900px) { .sticky-aside { position: static; } }
