/* Pilatus GmbH: Silber, Graphit, Petrol. Keine externen Dienste beim Seitenaufruf. */

@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

/* Registriert, damit der Tonwechsel zwischen Sektionen weich überblendet */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #e7e9e8; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #14181b; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #4f585e; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(20, 24, 27, .16); }

:root {
  --silver: #e7e9e8;
  --paper: #f3f4f3;
  --ink: #14181b;
  --night: #0e1619;
  --night-2: #17242a;
  --petrol: #1f4f58;
  --petrol-light: #8fbcc2;

  --gutter: clamp(20px, 4vw, 56px);
  --radius: clamp(12px, 1.4vw, 20px);
  --sec: clamp(88px, 15vh, 190px);
  --head-h: 76px;
  --bar: 0px;

  /* kritisch gedämpfte Feder, Response 0.4 s */
  --spring: linear(0, .0816, .2431, .4129, .562, .6819, .7736, .8412, .89, .9246, .9487, .9653, .9767, .9844, .9896, .9931, .9955, .997, .998, .9987, 1);
  --glide: cubic-bezier(.16, 1, .3, 1);

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

html {
  --bg: #e7e9e8; --fg: #14181b; --muted: #4f585e; --line: rgba(20, 24, 27, .16);
  transition: --bg .8s ease, --fg .8s ease, --muted .8s ease, --line .8s ease;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
  scroll-padding-bottom: calc(var(--bar) + 16px);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
html[data-tone="dark"] { --bg: #0e1619; --fg: #e8ebea; --muted: #99a7ab; --line: rgba(232, 235, 234, .16); }

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
img, video, iframe, svg { display: block; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-weight: 400; hyphens: manual; text-wrap: balance; }
small { font-size: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--petrol-light); outline-offset: 3px; border-radius: 4px; }
html[data-tone="light"] :focus-visible { outline-color: var(--petrol); }

.wrap { width: min(100%, 1400px); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .8125rem; letter-spacing: .01em; font-weight: 500; color: var(--muted); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }

/* Textlinks: Unterstreichung wächst von links */
.page-contact a, .footer-legal a, .footer-links a, .footer-grid address a, .way-links a, .legal-body a, .hero-meta a, .sheet-contact a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--glide);
}
.page-contact a:hover, .footer-legal a:hover, .footer-links a:hover, .footer-grid address a:hover, .way-links a:hover, .legal-body a:hover, .hero-meta a:hover, .sheet-contact a:hover {
  background-size: 100% 1px;
}

/* ---------- Kopfzeile: lichtdurchlässiges Material ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--head-h);
  padding-inline: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: var(--ink);
  transition: color .4s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(231, 233, 232, .78);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  /* weiche Kante statt Trennlinie */
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
  opacity: 1;
  transition: opacity .45s ease, background-color .4s ease;
}
.site-header[data-tone="dark"] { color: #e8ebea; }
.site-header[data-tone="dark"]::before { background: rgba(14, 22, 25, .68); }
.page-home:not(.is-scrolled) .site-header::before { opacity: 0; }

.logo { display: block; transition: transform .1s ease-out; view-transition-name: site-logo; }
.site-header nav { view-transition-name: site-nav; }
.logo:active { transform: scale(.97); }
.logo img { width: 138px; height: auto; transition: filter .4s ease; filter: invert(1) brightness(.12); }
.site-header[data-tone="dark"] .logo img { filter: none; }

.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a { display: block; position: relative; padding-block: 8px; font-size: .9375rem; line-height: 1.2; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--glide);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a:active { opacity: .6; }
.site-header nav { margin-left: auto; }
.head-call { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid currentColor; font-size: .9375rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .25s ease, color .25s ease, transform .1s ease-out; }
.head-call svg { width: 18px; height: 18px; }
.head-call:active { transform: scale(.97); }


/* Bedienelement: rund, Material */
.ctl {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg);
  border: 1px solid var(--line);
  transition: background-color .25s ease, transform .1s ease-out, border-color .25s ease;
}
.ctl svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.ctl:active { transform: scale(.94); }
.ctl .i-play { visibility: hidden; }
.ctl[data-paused="true"] .i-play { visibility: visible; }
.ctl[data-paused="true"] .i-pause { visibility: hidden; }

/* ---------- Sichtbar werden beim Scrollen: einmalig, zurückhaltend ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--glide); }

/* ---------- Startseite: Hero ---------- */
.hero { height: 100svh; min-height: 460px; --p: 0; }
.hero-frame {
  position: relative; height: 100%; overflow: hidden; background: var(--night);
  color: #eef0ef;
  clip-path: inset(calc(var(--p) * 3.2vh) calc(var(--p) * 3vw) round calc(var(--p) * 26px));
  will-change: clip-path;
}
.hero-loop { position: absolute; inset: 0; }
.hero-loop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transition: opacity 2s ease;
}
.hero-loop img.is-on { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 12, 14, .9), rgba(8, 12, 14, .62) 26%, rgba(8, 12, 14, .18) 46%, rgba(8, 12, 14, 0) 62%),
    linear-gradient(to bottom, rgba(8, 12, 14, .5), rgba(8, 12, 14, 0) 18%);
}
.hero-copy {
  position: absolute; inset: auto 0 0; padding-bottom: clamp(32px, 7vh, 72px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  opacity: calc(1 - var(--p) * 1.7);
  transform: translateY(calc(var(--p) * -28px));
}
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 50px; padding: 10px 20px; border-radius: 12px;
  font-weight: 500; line-height: 1.25;
  transition: background-color .3s ease, transform .1s ease-out;
}
.btn .arrow { margin: 0; }
.btn:active { transform: scale(.97); }
.btn-light { background: #f3f4f3; color: var(--ink); }
.btn-dark { background: var(--ink); color: #f0f2f1; }
.btn-ghost { color: #f3f4f3; box-shadow: inset 0 0 0 1px rgba(243, 244, 243, .5); font-variant-numeric: tabular-nums; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(20, 24, 27, .35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 3.4vh, 32px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; }
.text-link small { font-weight: 400; color: var(--muted); }
.text-link .arrow { margin: 0; }
.hero-name { font-size: .9375rem; margin-bottom: .6em; opacity: .82; }
.hero h1 {
  font-size: clamp(2.1rem, min(6vw, 10.5svh), 5.6rem); line-height: 1.03; letter-spacing: -.028em; font-weight: 350;
  max-width: 12.5em;
}
.hero-meta { text-align: right; font-size: .9375rem; line-height: 1.5; flex: none; padding-right: 56px; font-variant-numeric: tabular-nums; opacity: .86; }
.hero-ctl { position: absolute; right: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); bottom: clamp(32px, 7vh, 72px); color: #eef0ef; border-color: rgba(238, 240, 239, .35); }
.hero h1, .hero-name { text-shadow: 0 1px 18px rgba(8, 12, 14, .45); }
.js .hero-loop img.is-on { animation: hero-in 1.4s ease both; }
@keyframes hero-in { from { opacity: 0; } }

/* ---------- Startseite: Sprachen ---------- */
.langs { padding-bottom: var(--sec); }
.langs h2 { font-size: clamp(2.1rem, 5.4vw, 5rem); line-height: 1.05; letter-spacing: -.026em; font-weight: 350; }
.langs-lead { margin-top: clamp(16px, 2.4vh, 28px); font-size: clamp(1.0625rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--muted); max-width: 40em; }
.lang-flags { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: clamp(28px, 5vh, 52px); }
.flag { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 500; transition: transform .1s ease-out, box-shadow .25s ease; }
.flag img { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.flag:active { transform: scale(.97); }

/* ---------- Startseite: Bereiche ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vh, 56px) clamp(16px, 2vw, 28px);
  padding-block: var(--sec);
}
.tile { display: block; }

.media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--night-2); aspect-ratio: 16 / 10; transition: transform .1s ease-out; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.05); transition: transform 1.4s var(--glide); }
.reveal.is-in .media img { transform: none; }
.tile:active .media { transform: scale(.988); }
.tile-label { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 16px; }
.tile-label strong { display: block; font-weight: 400; font-size: clamp(1.25rem, 1.9vw, 1.625rem); letter-spacing: -.012em; line-height: 1.2; }
.tile-label small { display: block; color: var(--muted); font-size: .9375rem; margin-top: 3px; }
.arrow { width: 20px; height: 20px; flex: none; margin-top: 5px; transition: transform .5s var(--glide); }

/* ---------- Startseite: Bildleiste ---------- */
.rail-sec { padding-top: var(--sec); }
.rail { --h: clamp(280px, 40vw, 520px); outline-offset: -2px; }
.rail-track {
  display: flex; gap: clamp(10px, 1.2vw, 16px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  scrollbar-width: none;
  cursor: grab;
  will-change: scroll-position;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail-item { flex: none; height: var(--h); aspect-ratio: var(--ar); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.rail-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rail-foot { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.rail-progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.rail-progress i { position: absolute; inset: 0; background: var(--fg); transform: scaleX(var(--rail, 0)); transform-origin: 0 50%; }
.rail-btns { display: flex; gap: 8px; }

/* ---------- Startseite: Film ---------- */
.film { padding-block: var(--sec); }
.film-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px; margin-bottom: clamp(24px, 4vh, 40px); }
.film-head h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); letter-spacing: -.02em; line-height: 1.1; font-weight: 350; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.film-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* das Original hat einen Blaustich: leicht zurücknehmen, ohne die Farbe zu verlieren */
  filter: saturate(.8) contrast(1.04);
  opacity: 0; transition: opacity 1.6s ease;
}
.film-frame video.is-on { opacity: 1; }
.film-ctl { position: absolute; right: 16px; bottom: 16px; color: #eef0ef; border-color: rgba(238, 240, 239, .4); background: rgba(14, 22, 25, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- Fußzeile ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--night); color: #d9dfdf;
  --muted: #99a7ab; --line: rgba(232, 235, 234, .16);
  padding-block: clamp(56px, 10vh, 110px) 28px;
  border-radius: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) 0 0;
  font-size: .9875rem;
  transition: none;
}
.page-home .site-footer { border-radius: 0; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); }
.footer-grid .eyebrow { margin-bottom: 14px; }
.footer-name { font-size: 1.375rem; letter-spacing: -.012em; color: #f0f2f1; margin-bottom: 10px; }
.footer-grid address p + p { margin-top: 14px; }
.footer-links { display: grid; gap: 6px; justify-items: start; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: clamp(48px, 9vh, 96px); padding-top: 24px; font-size: .875rem; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Unterseiten ---------- */
.page-head { padding-top: calc(var(--head-h) + clamp(40px, 9vh, 96px)); padding-bottom: clamp(28px, 5vh, 52px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 1.04; letter-spacing: -.028em; font-weight: 350; }
.page-lead { font-size: clamp(1.0625rem, 1.6vw, 1.375rem); line-height: 1.4; color: var(--muted); margin-top: .6em; max-width: 34em; text-wrap: pretty; }
.page-contact { display: grid; gap: 2px; justify-items: end; text-align: right; font-size: .9375rem; flex: none; padding-bottom: 4px; }
.page-photo { --pos: 50% 50%; border-radius: var(--radius); overflow: hidden; height: clamp(200px, 36vh, 400px); }
.page-stock .page-photo { height: clamp(140px, 22vh, 240px); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); view-transition-name: photo; }
.js .page-photo img { animation: photo-settle 1.5s var(--glide) both; }
@keyframes photo-settle { from { transform: scale(1.04); } }

/* Fahrzeugbestand */
.stock { padding-block: clamp(16px, 3vh, 32px) var(--sec); }
.stock-frame { border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stock-start { padding: clamp(24px, 4vw, 56px); }
.stock-start h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 350; }
.stock-start > p { margin-top: 12px; max-width: 46em; color: var(--muted); }
.stock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stock-start .stock-note { margin-top: 20px; font-size: .875rem; }
.stock-note a, .stock-help a, .fin-help a { text-decoration: underline; text-underline-offset: 2px; }
.stock-help { margin-top: 20px; }
.stock-frame iframe { width: 100%; height: 100vh; border: 0; background: #fff; opacity: 0; transition: opacity .7s ease; }
.stock-frame.is-loaded iframe { opacity: 1; }
.stock-frame.is-loading { min-height: 60vh; background: linear-gradient(100deg, var(--paper) 30%, #e4e6e5 50%, var(--paper) 70%) 0 0 / 220% 100%; animation: sheen 2.2s ease-in-out infinite; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Internationale Kunden */
.intl { padding-block: clamp(36px, 7vh, 72px) var(--sec); }
.tabs { position: relative; display: flex; width: fit-content; max-width: 100%; padding: 4px; border-radius: 14px; background: rgba(20, 24, 27, .06); margin-bottom: clamp(32px, 6vh, 56px); }
html:not(.js) .tabs { display: none; }
.tab-pill { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 10px; background: var(--paper); box-shadow: 0 1px 2px rgba(20, 24, 27, .1), 0 4px 12px rgba(20, 24, 27, .06); will-change: transform; }
.tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; font-size: .9375rem; color: var(--muted); transition: color .25s ease, transform .1s ease-out; white-space: nowrap; }
.tab img { width: 26px; height: 18px; border-radius: 2.5px; box-shadow: 0 0 0 1px var(--line); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab:active { transform: scale(.97); }
.panels { position: relative; }
.js .panel[data-off] { display: none; }
.panel-flag { display: none; }
html:not(.js) .panel { margin-bottom: 72px; }
html:not(.js) .panel-flag { display: block; margin-bottom: 16px; }
.panel:focus-visible { outline-offset: 8px; }
.sale { width: 100%; border-collapse: collapse; }
.sale th { text-align: left; font-weight: 500; font-size: .9375rem; color: var(--muted); padding: 0 32px 16px 0; width: 50%; }
.sale td { vertical-align: top; padding: 22px 32px 22px 0; border-top: 1px solid var(--line); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.4; letter-spacing: -.005em; }
.sale td + td { font-size: 1.0625rem; line-height: 1.5; }
.sale-note a { text-decoration: underline; text-underline-offset: 2px; }
.sale-note { margin-top: 12px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--paper); max-width: 68ch; line-height: 1.6; }

/* Finanzierung */
.fin { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 6vw, 96px); align-items: start; padding-block: clamp(36px, 7vh, 72px) var(--sec); }
.fin h2 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.22; letter-spacing: -.015em; margin-bottom: 18px; }
.fin li { padding-block: 16px; border-top: 1px solid var(--line); line-height: 1.5; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.fin li:last-child { border-bottom: 1px solid var(--line); }
.fin-doc { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--paper); }
.fin-help { margin-top: 18px; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; margin-top: 16px; padding: 14px 20px; border-radius: 12px; background: var(--ink); color: #f0f2f1; line-height: 1.3; transition: background-color .3s ease, transform .1s ease-out; }
.doc .arrow { margin: 0; }
.doc:active { transform: scale(.985); }

/* Anfahrt */
.way { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(16px, 3vh, 32px) clamp(48px, 9vh, 96px); align-items: start; }
.way-photo { padding-bottom: var(--sec); }
.way-copy > * + * { margin-top: 18px; }
.way-copy .btn { margin-top: 24px; }
.way-name { font-size: clamp(1.375rem, 2.2vw, 1.875rem); letter-spacing: -.015em; line-height: 1.2; }
.hours { display: grid; gap: 4px; max-width: 340px; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.way-btns { display: grid; gap: 10px; max-width: 340px; margin-top: 24px; }
.way-copy .way-btns .btn { margin-top: 0; }
.map { position: relative; aspect-ratio: 10 / 7; border-radius: var(--radius); overflow: hidden; background: #e4e7e6; box-shadow: 0 0 0 1px var(--line); }
.map img { width: 100%; height: 100%; object-fit: cover; }
/* Die Spitze des Pins steht genau in der Bildmitte: dort liegt die Adresse */
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.map-pin span { padding: 7px 12px; border-radius: 9px; background: var(--ink); color: #f3f4f3; font-size: .875rem; font-weight: 500; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 18px rgba(14, 22, 25, .28); }
.map-pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--petrol); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(14, 22, 25, .4); margin-bottom: -7px; }
.map figcaption { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(243, 244, 243, .9); color: var(--ink); font-size: .75rem; line-height: 1.3; }

/* Rechtstexte */
.legal { display: grid; grid-template-columns: minmax(220px, 3fr) 8fr; gap: clamp(32px, 6vw, 96px); padding-block: 24px var(--sec); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--head-h) + 24px); max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto; font-size: .875rem; line-height: 1.35; scrollbar-width: thin; }
.legal-toc summary { display: none; }
.legal-toc ul { margin: 0 0 16px; display: grid; gap: 2px; }
.legal-toc li a { display: block; padding: 4px 0 4px 12px; color: var(--muted); border-left: 1px solid var(--line); transition: color .25s ease, border-color .25s ease; }
.legal-toc li a:hover, .legal-toc li a.is-here { color: var(--fg); border-left-color: currentColor; }
.legal-body { max-width: 70ch; hyphens: auto; }
.legal-body h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; margin-top: 2.4em; }
.legal-body #german > :first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.125rem; font-weight: 500; margin-top: 2em; line-height: 1.3; }
.legal-body h4, .legal-body h5 { font-size: 1rem; font-weight: 500; margin-top: 1.6em; }
.legal-body p, .legal-body ul { margin-top: .8em; line-height: 1.62; }
.legal-body ul { padding-left: 1.1em; list-style: disc; }
.legal-body a { overflow-wrap: anywhere; background-size: 100% 1px; }

/* ---------- Menü-Sheet (schmale Viewports) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(14, 22, 25, .48); opacity: 0; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border-radius: 22px 22px 0 0;
  background: rgba(243, 244, 243, .94);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  /* Zweiter Schatten verlängert die Unterkante: beim Hochziehen entsteht keine Lücke */
  box-shadow: 0 -12px 40px rgba(14, 22, 25, .22), 0 160px 0 0 #f3f4f3;
  color: var(--ink);
  transform: translateY(100%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.sheet.is-scrollable { touch-action: pan-y; }
.sheet-handle { display: grid; place-items: center; height: 28px; touch-action: none; cursor: grab; }
.sheet-handle::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: rgba(20, 24, 27, .28); }
.sheet-nav a { display: block; padding: 14px 0; border-top: 1px solid rgba(20, 24, 27, .12); line-height: 1.2; font-size: 1.3125rem; letter-spacing: -.012em; }
.sheet-nav li:first-child a { border-top: 0; }
.sheet-nav a:active { opacity: .55; }
.sheet-contact { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(20, 24, 27, .12); font-size: .9375rem; line-height: 1.75; }
.sheet-hours { grid-column: 1 / -1; color: #4f585e; }
.sheet-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 18px; }
.sheet-legal a { display: inline-flex; align-items: center; min-height: 40px; }

/* ---------- Seitenübergänge ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease-out both; }
::view-transition-new(root) { animation: vt-in .6s var(--spring) both; }
::view-transition-group(site-logo), ::view-transition-group(site-nav) { animation-duration: .35s; }
::view-transition-group(photo) { animation-duration: .6s; animation-timing-function: var(--spring); overflow: hidden; border-radius: var(--radius); }
::view-transition-old(photo), ::view-transition-new(photo) { height: 100%; object-fit: cover; animation-duration: .4s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html.is-leaving body { opacity: 0; transition: opacity .16s ease-out; }

/* ---------- Untere Leiste ---------- */
.tabbar { display: none; }

/* ---------- Geräte mit echtem Hover ---------- */
@media (hover: hover) {
  .ctl:hover { border-color: currentColor; }
  .tile:hover .media img { transform: scale(1.025); transition-duration: 1s; }
  .tile:hover .arrow, .btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
  .btn-light:hover { background: #fff; }
  .btn-dark:hover, .doc:hover { background: var(--petrol); }
  .doc:hover .arrow { transform: translateY(2px); }
  .flag:hover { box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(20, 24, 27, .08); }
  .head-call:hover { background: currentColor; }
  .head-call:hover span, .head-call:hover svg { filter: invert(1); }
  .btn-ghost:hover { background: rgba(243, 244, 243, .14); }
  .btn-line:hover { background: rgba(20, 24, 27, .06); }
  .legal-body a:hover { background-size: 0 1px; }
}
@media (hover: none) {
  .rail-btns { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 65rem) {
  :root { --head-h: 60px; --bar: calc(62px + env(safe-area-inset-bottom)); }
  .site-header { transition: color .4s ease, transform .4s var(--spring); }
  .is-head-hidden .site-header:not(:focus-within) { transform: translateY(-100%); }
  .site-header nav, .head-call { display: none; }
  .logo { padding-block: 10px; }
  .logo img { width: 120px; }
  .ctl { width: 44px; height: 44px; flex: none; }
  .footer-grid address a, .way-links a { display: inline-block; padding-block: 11px; line-height: 1.4; }
  .footer-grid address p + p { margin-top: 4px; }
  .way-links { margin-top: 8px !important; }
  .page-contact a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; }
  .footer-legal { gap: 0 22px; }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

  .tabbar {
    position: fixed; inset: auto 0 0; z-index: 55;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(243, 244, 243, .86);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 -1px 0 rgba(20, 24, 27, .1);
    color: var(--ink);
    transition: background-color .5s ease, color .5s ease;
  }
  html[data-tone="dark"] .tabbar { background: rgba(14, 22, 25, .8); color: #e8ebea; box-shadow: 0 -1px 0 rgba(232, 235, 234, .12); }
  .tabbar a, .tabbar button {
    display: grid; justify-items: center; align-content: center; gap: 2px;
    min-height: 50px; padding: 3px 2px; border-radius: 10px;
    font-size: .6875rem; line-height: 1.2; font-weight: 500; letter-spacing: .005em;
    transition: background-color .15s ease;
  }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current] { color: var(--petrol); }
  html[data-tone="dark"] .tabbar a[aria-current] { color: var(--petrol-light); }
  .tabbar a:active, .tabbar button:active { background: rgba(127, 137, 141, .2); }

  .hero-copy { padding-bottom: calc(clamp(20px, 4vh, 44px) + var(--bar)); }
  .hero-ctl { bottom: calc(clamp(20px, 4vh, 44px) + var(--bar)); }
  .site-footer { padding-bottom: calc(24px + var(--bar)); }
}
@media (max-width: 860px) {
  /* Auf dem Handy steht der Text höher im Bild, deshalb reicht der Verlauf weiter hinauf */
  .hero-scrim { background: linear-gradient(to top, rgba(8, 12, 14, .94), rgba(8, 12, 14, .82) 38%, rgba(8, 12, 14, .38) 56%, rgba(8, 12, 14, 0) 72%), linear-gradient(to bottom, rgba(8, 12, 14, .5), rgba(8, 12, 14, 0) 16%); }
  .hero-copy { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-main { width: 100%; }
  .hero-meta { text-align: left; padding-right: 60px; min-height: 44px; }
  .hero-actions { display: grid; }

  /* Bereiche: Fahrzeugbestand groß, die übrigen kompakt als Liste */
  .tiles { display: block; padding-block: clamp(32px, 6vh, 64px); }
  .tile { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; min-height: 92px; padding-block: 12px; margin: 0; border-top: 1px solid var(--line); }
  .tile-a { display: block; padding: 0 0 20px; border-top: 0; }
  .tile .media { aspect-ratio: 4 / 3; border-radius: 10px; }
  .tile-a .media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .tile-label { padding-top: 0; align-items: center; }
  .tile-a .tile-label { padding-top: 12px; }
  .tile-label strong { font-size: 1.125rem; line-height: 1.25; }
  .tile-a .tile-label strong { font-size: 1.375rem; }
  .tile-label small { font-size: .875rem; }
  .arrow { margin-top: 0; }

  .langs { padding-top: 16px; }
  .lang-flags { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .flag { min-height: 56px; }
  .rail { --h: clamp(220px, 62vw, 340px); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid address { padding-top: 0; line-height: 1.9; }
  .footer-links { gap: 0; }
  .footer-links a { display: block; padding-block: 8px; }
  .footer-legal a { padding-block: 10px; }

  .page-head { padding-top: calc(var(--head-h) + 12px); padding-bottom: 16px; gap: 10px 24px; }
  .page-head h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .page-contact { display: flex; flex-wrap: wrap; gap: 0 18px; justify-items: start; text-align: left; padding: 0; }
  .legal-page .page-contact { display: none; }
  .page-photo { height: clamp(120px, 22svh, 200px); }
  .way-photo .page-photo { height: clamp(180px, 30svh, 280px); }

  .stock-actions .btn { width: 100%; }
  .stock-frame iframe { height: calc(100svh - var(--bar) - 24px); }

  .intl { padding-top: 20px; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-bottom: 24px; }
  .tabs:has(.tab:nth-of-type(2):last-of-type) { grid-template-columns: repeat(2, 1fr); }
  .tab { flex-direction: column; gap: 4px; min-height: 60px; padding: 8px 2px; justify-content: center; font-size: .875rem; }
  .sale, .sale tbody, .sale tr, .sale td { display: block; width: 100%; }
  .sale thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sale tr { padding-block: 16px; border-top: 1px solid var(--line); }
  .sale tr:first-child { border-top: 0; padding-top: 0; }
  .sale td { border: 0; padding: 0; font-size: 1.0625rem; }
  .sale td + td { margin-top: 12px; }
  .sale td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }

  .fin { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .way, .legal { grid-template-columns: 1fr; }
  .way { gap: 24px; }
  .way-btns, .hours { max-width: none; }
  .map { aspect-ratio: 4 / 3; }

  .legal { gap: 8px; padding-top: 0; }
  .legal-toc { position: static; max-height: none; overflow: visible; border-block: 1px solid var(--line); font-size: .9375rem; }
  .legal-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 500; cursor: pointer; list-style: none; }
  .legal-toc summary::-webkit-details-marker { display: none; }
  .legal-toc summary::after { content: ""; width: 9px; height: 9px; margin: -4px 4px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .3s ease; }
  .legal-toc[open] summary::after { transform: translateY(4px) rotate(225deg); }
  .legal-toc li a { min-height: 44px; display: flex; align-items: center; }
  .legal-body { padding-top: 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .film-frame { aspect-ratio: 4 / 3; }
}
/* Handy quer: wenig Höhe */
@media (max-height: 480px) and (max-width: 65rem) {
  .sheet-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .sheet-nav li:nth-child(2) a { border-top: 0; }
  .sheet-contact { grid-template-columns: auto auto 1fr; }
  .hero { min-height: 0; }
  .hero-scrim { background: linear-gradient(to right, rgba(14, 22, 25, .82), rgba(14, 22, 25, .28) 62%, rgba(14, 22, 25, .1)); }
  .hero-name { display: none; }
  .hero-actions { display: flex; margin-top: 12px; }
  .sheet-hours { grid-column: auto; }
  .sheet-legal { grid-column: 1 / -1; }
  .page-photo { height: 120px; }
}

/* ---------- Bedienungshilfen ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
  .hero-frame { clip-path: none; }
  .hero-copy { opacity: 1; transform: none; }
  .js .hero-loop img.is-on, .js .page-photo img { animation: none; }
  .media img, .reveal.is-in .media img, .tile:hover .media img { transform: none; transition: none; }
  .stock-frame.is-loading { animation: none; }
  .arrow, .tile:hover .arrow { transition: none; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .2s !important; animation-name: -ua-view-transition-fade-in !important; }
  ::view-transition-old(*) { animation-name: -ua-view-transition-fade-out !important; }
  .site-header { transition: none; }
  .scrim { transition: opacity .2s ease; }
  .sheet { transition: opacity .2s ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--silver); -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }
  .site-header[data-tone="dark"]::before { background: var(--night); }
  .sheet, .tabbar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html[data-tone="dark"] .tabbar { background: var(--night); }
  .film-ctl { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  html, html[data-tone="dark"] { --muted: var(--fg); --line: currentColor; }
  .site-header::before { background: var(--silver); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header[data-tone="dark"]::before { background: var(--night); }
  .hero-scrim { background: rgba(14, 22, 25, .68); }
}
@media print {
  .site-header, .sheet, .scrim, .ctl, .tabs, .tabbar { display: none !important; }
  .js .panel[data-off] { display: block; }
  .js .reveal { opacity: 1; transform: none; }
}
