@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Semi+Condensed:wght@500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* ==========================================================================
   Voltwerk Autohaus — "Datenblatt"
   Graphite, white, one turquoise. Hairlines, big numbers with units.
   ========================================================================== */

:root {
  /* colour */
  --graphite: #1F2428;
  --graphite-2: #2B3136;
  --graphite-line: #3A4147;
  --slate: #5A6268;
  --mist: #A9B1B6;
  --line: #CBD2D6;
  --fog: #EEF1F2;
  --white: #FFFFFF;
  --volt: #12D6C5;
  --volt-deep: #00736C;
  --error: #B3261E;

  /* type */
  --font-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* six sizes, no more */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-lg: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fs-num: clamp(2.75rem, 1.9rem + 3.6vw, 5rem);

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --radius: 2px;
  --hair: 1px solid var(--line);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); line-height: 1.25; letter-spacing: 0; }

p { margin: 0 0 var(--s-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--volt-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

ul, ol { margin: 0; padding: 0; }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--volt-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.calc__panel :focus-visible { outline-color: var(--volt); }

::selection { background: var(--volt); color: var(--graphite); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* data typography */
.mono, .unit, .label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0;
}
.unit { margin-left: 0.25em; color: inherit; opacity: 0.85; }
.label { color: var(--slate); }
.num {
  font-family: var(--font-head);
  font-size: var(--fs-num);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lead { font-size: var(--fs-md); line-height: 1.5; color: var(--slate); }

/* ---------- header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: var(--hair);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--graphite);
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--slate);
  padding-left: var(--s-3);
  border-left: var(--hair);
}

.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav__list { display: flex; list-style: none; gap: var(--s-1); }
.site-nav__link {
  position: relative;
  display: block;
  padding: var(--s-2) var(--s-3);
  color: var(--graphite);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 0.2rem;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__aside { display: flex; align-items: center; gap: var(--s-4); }
.site-nav__lang {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  padding: var(--s-1) var(--s-2);
  border: var(--hair);
}
.site-nav__lang:hover { border-color: var(--graphite); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: transparent;
  color: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  font: 500 var(--fs-sm) / 1 var(--font-mono);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--volt); color: var(--graphite); border-color: var(--volt); }
.btn--primary:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.hero .btn--primary:hover,
.section--dark .btn--primary:hover,
.calc__panel .btn--primary:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }

.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--white); }

.btn--on-dark { background: transparent; color: var(--white); border-color: var(--mist); }
.btn--on-dark:hover { border-color: var(--volt); color: var(--volt); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--volt-deep);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }
.section--dark .link-arrow, .hero .link-arrow { color: var(--volt); }

/* ---------- sections ---------- */
.section { padding-block: var(--s-8); border-bottom: var(--hair); }
.section--fog { background: var(--fog); }
.section--dark {
  background: var(--graphite);
  color: var(--white);
  border-bottom-color: var(--graphite-line);
}
.section--dark .lead, .section--dark .label { color: var(--mist); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-4) var(--s-7);
  align-items: end;
  margin-bottom: var(--s-7);
}
.section__head h2 { margin: 0; }
.section__head .lead { margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}

.note {
  font-size: var(--fs-sm);
  color: var(--slate);
  border-left: 2px solid var(--volt);
  padding-left: var(--s-4);
  max-width: 72ch;
}
.section--dark .note, .calc__panel .note { color: var(--mist); }

/* ---------- hero ---------- */
.hero {
  background: var(--graphite);
  color: var(--white);
  padding-block: var(--s-8) var(--s-8);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { color: var(--mist); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--graphite-line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.hero__meta a { color: var(--white); text-decoration: none; }
.hero__meta a:hover { color: var(--volt); }

/* page head for subpages */
.page-head {
  background: var(--graphite);
  color: var(--white);
  padding-block: var(--s-8) var(--s-7);
}
.page-head .lead { color: var(--mist); }
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6);
  align-items: end;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--mist);
}
.crumbs a { color: var(--mist); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); }

/* ---------- charge curve chart ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; }
.chart__axis { stroke: var(--graphite-line); stroke-width: 1; }
.chart__grid { stroke: var(--graphite-line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart__band { fill: var(--graphite-2); }
.chart__tick { fill: var(--mist); font-family: var(--font-mono); font-size: 13px; }
.chart__mark { fill: var(--white); font-family: var(--font-mono); font-size: 13px; }
.chart figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--mist);
}
.legend { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend::before { content: ""; width: 1.25rem; height: 2px; background: var(--mist); }
.legend--volt { color: var(--white); }
.legend--volt::before { background: var(--volt); height: 3px; }
.legend--dash::before { background: repeating-linear-gradient(90deg, var(--mist) 0 4px, transparent 4px 7px); }

.curve {
  fill: none;
  stroke: var(--mist);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.8s var(--ease) 0.3s forwards;
}
.curve--volt { stroke: var(--volt); stroke-width: 3; animation-delay: 0.1s; }
.curve--dash { stroke-dasharray: 4 5; stroke-dashoffset: 0; animation: fade 1.2s var(--ease) 0.5s both; }
.curve-dot { fill: var(--volt); animation: fade 0.6s var(--ease) 1.8s both; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.reveal { animation: rise 0.6s var(--ease) both; }
.reveal--2 { animation-delay: 0.12s; }
.reveal--3 { animation-delay: 0.24s; }

/* ---------- key figures ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--graphite);
}
.figure {
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-right: var(--hair);
}
.figure + .figure { padding-left: var(--s-5); }
.figure:last-child { border-right: 0; }
.figure .num { display: block; margin-bottom: var(--s-3); }
.figure .num .unit { font-size: var(--fs-sm); vertical-align: 0.15em; }
.figure__text { font-size: var(--fs-base); color: var(--slate); margin: 0; }

/* ---------- models ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--graphite);
}
.model {
  padding: var(--s-5) var(--s-5) var(--s-6) 0;
  border-right: var(--hair);
}
.model + .model { padding-left: var(--s-5); }
.model:last-child { border-right: 0; }
.model__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.model h3 { margin: 0; font-size: var(--fs-md); }
.model__class { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--slate); }
.silhouette { margin: var(--s-5) 0; }
.silhouette svg { width: 100%; height: auto; }
.silhouette .body { fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linejoin: round; }
.silhouette .glass { fill: none; stroke: var(--slate); stroke-width: 1; }
.silhouette .wheel { fill: var(--white); stroke: var(--graphite); stroke-width: 1.5; }
.silhouette .hub { fill: none; stroke: var(--slate); stroke-width: 1; }
.silhouette .pack { fill: var(--volt); }
.silhouette .dim { stroke: var(--slate); stroke-width: 1; }
.silhouette .ground { stroke: var(--line); stroke-width: 1; }
.section--fog .silhouette .wheel { fill: var(--fog); }

.spec { margin: 0; }
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: var(--hair);
}
.spec__row:first-child { border-top: var(--hair); }
.spec dt { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--slate); }
.spec dd { margin: 0; font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.spec dd .unit { font-weight: 400; }

/* full comparison table (Fahrzeuge) */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; }
.compare caption { text-align: left; margin-bottom: var(--s-4); color: var(--slate); font-size: var(--fs-sm); font-family: var(--font-mono); }
.compare th, .compare td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: var(--hair); vertical-align: baseline; }
.compare thead th { font-family: var(--font-head); font-size: var(--fs-md); border-bottom: 1px solid var(--graphite); }
.compare tbody th { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 400; color: var(--slate); }
.compare td { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.compare tbody tr:hover { background: var(--fog); }

/* ---------- ruled service rows ---------- */
.rows { list-style: none; border-top: 1px solid var(--graphite); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) auto;
  gap: var(--s-3) var(--s-6);
  align-items: baseline;
  padding-block: var(--s-5);
  border-bottom: var(--hair);
  transition: background-color 0.2s var(--ease);
}
.row:hover { background: linear-gradient(90deg, var(--fog), transparent 70%); }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--slate); }

/* ---------- charging park plan ---------- */
.park svg { width: 100%; height: auto; }
.park .lot { fill: var(--white); stroke: var(--line); }
.park .bay { fill: none; stroke: var(--slate); stroke-width: 1; }
.park .post { fill: var(--graphite); }
.park .post-head { fill: var(--volt); }
.park .bay-no { fill: var(--graphite); font-family: var(--font-mono); font-size: 13px; }
.park .lane { stroke: var(--line); stroke-width: 1; stroke-dasharray: 10 8; }
.park .bldg { fill: var(--graphite); }
.park .bldg-label { fill: var(--white); font-family: var(--font-mono); font-size: 13px; }
.park .road-label { fill: var(--slate); font-family: var(--font-mono); font-size: 13px; }
.park figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--slate); font-family: var(--font-mono); }

.ticks { list-style: none; margin: var(--s-5) 0; }
.ticks li {
  position: relative;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-bottom: var(--hair);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.75rem;
  height: 2px;
  background: var(--volt-deep);
}
.section--dark .ticks li { border-bottom-color: var(--graphite-line); }
.section--dark .ticks li::before { background: var(--volt); }

/* ---------- formula band ---------- */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--graphite-line);
  border-bottom: 1px solid var(--graphite-line);
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 500;
}
.formula__op { color: var(--volt); font-family: var(--font-mono); }
.formula__term { display: inline-flex; flex-direction: column; }
.formula__term small { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--mist); font-weight: 400; }

/* ---------- calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  border: 1px solid var(--graphite);
}
.calc__inputs { padding: var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.calc__panel { background: var(--graphite); color: var(--white); padding: var(--s-6); }
.calc__panel h2, .calc__panel h3 { color: var(--white); }
.calc__summary { font-size: var(--fs-md); margin-bottom: var(--s-5); }
.calc__summary strong { color: var(--volt); }

.segmented { border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented legend { padding: 0; margin-bottom: var(--s-2); font-weight: 600; }
.segmented__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--graphite); }
.segmented__opt { position: relative; }
.segmented__opt + .segmented__opt { border-left: 1px solid var(--graphite); }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented label {
  display: block;
  padding: var(--s-3) var(--s-2);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.segmented input:checked + label { background: var(--graphite); color: var(--white); }
.segmented input:focus-visible + label { outline: 2px solid var(--volt-deep); outline-offset: -4px; }
.segmented__opt:hover label { background: var(--fog); }
.segmented__opt:hover input:checked + label { background: var(--graphite); }

.calc-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-6); }
.calc-table th, .calc-table td { padding: var(--s-3) var(--s-2); text-align: right; border-bottom: 1px solid var(--graphite-line); white-space: nowrap; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; padding-left: 0; }
.calc-table thead th { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 400; color: var(--mist); }
.calc-table tbody th { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; }
.calc-table td { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-table .is-ref th, .calc-table .is-ref td { color: var(--mist); }

.bars { width: 100%; height: auto; }
.bars .bar { fill: var(--volt); transition: opacity 0.2s var(--ease); }
.bars .bar--ref { fill: none; stroke: var(--mist); stroke-width: 1.5; stroke-dasharray: 4 3; }
.bars .bar-label { fill: var(--white); font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.bars .bar-value { fill: var(--white); font-family: var(--font-mono); font-size: 13px; }
.bars .bar-axis { stroke: var(--graphite-line); }
.bars g:hover .bar { opacity: 0.8; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s-5); max-width: 44rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.form__field { display: grid; gap: var(--s-2); }
.form__label { font-weight: 600; }
.form__hint { font-size: var(--fs-sm); color: var(--slate); margin: 0; }
.form__input {
  width: 100%;
  min-height: 2.875rem;
  padding: var(--s-2) var(--s-3);
  background: var(--white);
  color: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-base);
  transition: border-color 0.2s var(--ease);
}
.form__input:hover { border-color: var(--graphite); }
.form__input:focus-visible { outline: 2px solid var(--volt-deep); outline-offset: 1px; border-color: var(--graphite); }
textarea.form__input { min-height: 8rem; resize: vertical; }
select.form__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: right 1.1rem center, right 0.75rem center; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2rem; }
.form__input--unit { display: flex; align-items: stretch; }
.form__input--unit .form__input { border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.form__unit {
  display: flex;
  align-items: center;
  padding-inline: var(--s-3);
  border: 1px solid var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--fog);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.form__check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); }
.form__check input { width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; accent-color: var(--volt-deep); flex: none; }
.form__field[data-state="error"] .form__input { border-color: var(--error); border-width: 2px; }
.form__field[data-state="error"] .form__label::after { content: " *"; color: var(--error); }
.form__status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form__status[data-state="error"] { color: var(--error); }
.form__status[data-state="sent"] { color: var(--volt-deep); }

/* ---------- contact block ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--graphite);
}
.contact__cell { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-right: var(--hair); }
.contact__cell + .contact__cell { padding-left: var(--s-5); }
.contact__cell:last-child { border-right: 0; }
.contact__big {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.1;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
}
a.contact__big:hover { color: var(--volt-deep); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--graphite);
  color: var(--mist);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 3fr));
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--graphite-line);
}
.site-footer .brand { color: var(--white); margin-bottom: var(--s-4); }
.site-footer .brand__sub { color: var(--mist); border-left-color: var(--graphite-line); }
.site-footer h2 {
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--white);
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--volt); text-decoration: underline; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-family: var(--font-mono);
}

/* ---------- style guide helpers ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--s-4); list-style: none; }
.swatch { border: var(--hair); }
.swatch__chip { height: 5rem; border-bottom: var(--hair); }
.swatch__meta { padding: var(--s-3); font-size: var(--fs-sm); }
.swatch__meta code { font-family: var(--font-mono); display: block; color: var(--slate); }
.chip--graphite { background: var(--graphite); }
.chip--graphite-2 { background: var(--graphite-2); }
.chip--slate { background: var(--slate); }
.chip--mist { background: var(--mist); }
.chip--line { background: var(--line); }
.chip--fog { background: var(--fog); }
.chip--white { background: var(--white); }
.chip--volt { background: var(--volt); }
.chip--volt-deep { background: var(--volt-deep); }

.type-specimen { list-style: none; border-top: var(--hair); }
.type-specimen li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding-block: var(--s-4); border-bottom: var(--hair); }
.t-sm { font-size: var(--fs-sm); }
.t-base { font-size: var(--fs-base); }
.t-md { font-size: var(--fs-md); font-family: var(--font-head); font-weight: 600; }
.t-lg { font-size: var(--fs-lg); font-family: var(--font-head); font-weight: 600; line-height: 1.1; }
.t-xl { font-size: var(--fs-xl); font-family: var(--font-head); font-weight: 600; line-height: 1.05; }

.space-scale { list-style: none; display: grid; gap: var(--s-2); }
.space-scale li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: center; gap: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-sm); }
.space-bar { height: 0.75rem; background: var(--volt-deep); }
.space-bar--1 { width: var(--s-1); }
.space-bar--2 { width: var(--s-2); }
.space-bar--3 { width: var(--s-3); }
.space-bar--4 { width: var(--s-4); }
.space-bar--5 { width: var(--s-5); }
.space-bar--6 { width: var(--s-6); }
.space-bar--7 { width: var(--s-7); }
.space-bar--8 { width: var(--s-8); }
.space-bar--9 { width: var(--s-9); }

.stack > * + * { margin-top: var(--s-6); }

/* ==========================================================================
   Breakpoints: 1100 (nav collapses) · 900 (grids fold) · 768 · 480
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-5);
    background: var(--white);
    border-bottom: 1px solid var(--graphite);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { padding: var(--s-3) 0; border-bottom: var(--hair); }
  .site-nav__link::after { left: 0; right: auto; width: 2rem; }
  .site-nav__aside { justify-content: space-between; padding-top: var(--s-4); }
}

@media (max-width: 900px) {
  .hero__grid, .page-head__grid, .split, .section__head { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(2) { border-right: 0; }
  .figure:nth-child(3) { padding-left: 0; }
  .figure:nth-child(n+3) { border-top: var(--hair); }
  .models { grid-template-columns: minmax(0, 1fr); }
  .model, .model + .model { padding-left: 0; padding-right: 0; border-right: 0; }
  .model + .model { border-top: var(--hair); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding-block: var(--s-7); }
  .hero, .page-head { padding-block: var(--s-7); }
  .section__head { margin-bottom: var(--s-6); }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__cell, .contact__cell + .contact__cell { padding-left: 0; padding-right: 0; border-right: 0; }
  .contact__cell + .contact__cell { border-top: var(--hair); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .type-specimen li { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figure, .figure + .figure { padding-left: 0; padding-right: 0; border-right: 0; }
  .figure + .figure { border-top: var(--hair); }
  .calc__inputs, .calc__panel { padding: var(--s-5); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .contact__big { font-size: var(--fs-md); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .curve { stroke-dashoffset: 0; animation: none; }
  .curve--dash { stroke-dasharray: 4 5; }
  .reveal, .curve-dot { animation: none; opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none; }
  .hero, .page-head, .section--dark { background: none; color: var(--graphite); }
}

/* === subpages: page head on graphite === */
.page-head :focus-visible { outline-color: var(--volt); }
.page-head .btn--primary:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }
.page-head .link-arrow { color: var(--volt); }
.crumbs a:hover { color: var(--white); }

/* === fahrzeuge: spec rows on graphite === */
.section--dark .spec__row { border-bottom-color: var(--graphite-line); }
.section--dark .spec__row:first-child { border-top-color: var(--graphite-line); }
.section--dark .spec dt { color: var(--mist); }

/* === forms: split aligned to the top === */
.split--top { align-items: start; }

/* === ueber-uns: three key figures === */
.figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 769px) {
  .figures--3 .figure:nth-child(2) { border-right: var(--hair); }
  .figures--3 .figure:nth-child(3) { padding-left: var(--s-5); border-top: 0; }
}
@media (max-width: 768px) {
  .figures--3 { grid-template-columns: minmax(0, 1fr); }
  .figures--3 .figure { padding-left: 0; padding-right: 0; border-right: 0; }
  .figures--3 .figure + .figure { border-top: var(--hair); }
}
