/* ==========================================================================
   MTrack Swiss – Stylesheet
   Alle Farben, Schriften und Abstände zentral in :root änderbar.
   ========================================================================== */

/* ---------- Lokale Schriften (keine Verbindung zu Google, DSG) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --c-primary: #1882d8;        /* Originalblau: Überschriften, Akzente */
  --c-primary-dark: #1670ba;   /* dunkleres Blau für Fliesstext-Links und Flächen mit weissem Text (Kontrast AA) */
  --c-primary-deep: #0f4f85;   /* Hover */
  --c-white: #ffffff;
  --c-black: #000000;
  --c-text: #1d2733;
  --c-muted: #55616e;
  --c-bg-soft: #f2f6fa;
  --c-border: #d7e0e8;
  --c-accent: #d52b1e;         /* Schweizer Rot, nur sparsam */
  --c-success: #1b7a3a;
  --c-error: #b3261e;

  /* Schriften */
  --f-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Schriftgrössen (fliessend zwischen Mobil und Desktop) */
  --fs-hero: clamp(2.75rem, 1.2rem + 7.2vw, 6.5rem);      /* ca. 104 px auf Desktop */
  --fs-hero-sub: clamp(1.25rem, 0.8rem + 2.1vw, 2.5rem);  /* ca. 40 px */
  --fs-hero-claim: clamp(1.4rem, 0.9rem + 1.9vw, 2.125rem); /* ca. 34 px */
  --fs-h2: clamp(2rem, 1.2rem + 3.4vw, 3.8rem);           /* ca. 61 px */
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --gutter: 16px;
  --container: 1200px;

  /* Sonstiges */
  --radius: 6px;
  --shadow: 0 6px 24px rgba(15, 40, 70, 0.12);
  --header-h: 72px;
  --logo-w: 140px;
  --focus: 3px solid #ffbf47;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 96px; --logo-w: 196px; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--c-primary-deep); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--c-primary);
  margin: 0 0 var(--space-s);
  overflow-wrap: break-word;
  hyphens: auto;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); color: var(--c-primary-dark); }
p { margin: 0 0 var(--space-s); }
.lead { font-size: 1.2rem; font-weight: 300; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-xl); }
.section--soft { background: var(--c-bg-soft); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto var(--space-l); }
.text-center { text-align: center; }

.visually-hidden {
  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(--space-s); top: -100px; z-index: 1000;
  background: var(--c-black); color: var(--c-white); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-s); color: var(--c-white); }

/* Platzhalter für fehlende Texte – deutlich sichtbar */
.todo {
  display: inline-block; background: #fff4c2; color: #5c4400; border: 1px dashed #c9a400;
  padding: 0.15rem 0.45rem; border-radius: 4px; font-size: var(--fs-small); font-weight: 700;
}
.todo-block { background: #fff9e0; border: 1px dashed #c9a400; padding: var(--space-s); border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.5rem;
  font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--c-primary-dark); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-deep); color: var(--c-white); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: var(--c-white); }
.btn--ghost:hover { background: var(--c-white); color: var(--c-primary-deep); }
.btn--dark { background: var(--c-black); color: var(--c-white); }
.btn--dark:hover { background: #333; color: var(--c-white); }
.btn--outline { background: transparent; color: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn--outline:hover { background: var(--c-primary-dark); color: var(--c-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: var(--header-h); }
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { width: var(--logo-w); height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.8rem;
  background: none; border: 2px solid var(--c-primary-dark); border-radius: var(--radius);
  color: var(--c-primary-dark); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.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); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-white); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  padding: var(--space-s) var(--gutter) var(--space-m);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.75rem 0; font-family: var(--f-head); font-size: 1.25rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--c-primary-dark); text-decoration: none; border-bottom: 1px solid var(--c-border);
}
.site-nav a[aria-current="page"] { color: var(--c-black); }
.site-nav .btn { margin-top: var(--space-s); width: 100%; border-bottom: 0; color: var(--c-white); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; position: static; padding: 0; box-shadow: none; border: 0; background: none; align-items: center; gap: var(--space-m); }
  .site-nav ul { display: flex; gap: var(--space-m); }
  .site-nav a { border: 0; padding: 0.4rem 0; font-size: 1.15rem; position: relative; }
  .site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { margin: 0; width: auto; padding-inline: 1.25rem; }
}

/* ---------- Bildrahmen (Bild-System) ----------
   Jeder Bildplatz ist ein .frame. Das Bild füllt den Rahmen (object-fit: cover);
   der Ausschnitt kommt aus bilder.json (fokus = object-position, zoom = scale). */
.frame {
  position: relative; overflow: hidden; background: #e4ebf1;
  aspect-ratio: var(--ratio, 4 / 3); border-radius: var(--radius);
}
.frame > img, .frame > picture, .frame > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.frame--contain > img, .frame--contain > picture > img { object-fit: contain; }
.frame.is-placeholder::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  background: rgba(255,255,255,.92); color: #34495e; font: 700 0.85rem/1.3 var(--f-body);
  padding: 0.3rem 0.7rem; border-radius: 4px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--c-white);
  min-height: min(88vh, 860px); display: flex;
}
.hero .frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 20, 40, .55) 0%, rgba(5, 20, 40, .15) 40%, rgba(5, 20, 40, .2) 60%, rgba(5, 20, 40, .75) 100%);
}
.hero__inner { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-l); padding-block: var(--space-l); width: 100%; }
.hero__top { text-align: right; }
.hero__title { font-size: var(--fs-hero); color: var(--c-white); margin: 0; line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.hero__sub { font-family: var(--f-head); font-size: var(--fs-hero-sub); text-transform: uppercase; margin: 0.4rem 0 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero__bottom { max-width: 640px; }
.hero__claim { font-family: var(--f-head); font-size: var(--fs-hero-claim); text-transform: uppercase; margin: 0 0 0.3rem; color: var(--c-white); }
.hero__text { font-size: 1.15rem; font-weight: 400; margin-bottom: var(--space-m); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* ---------- Kennzahlen ---------- */
.facts { background: var(--c-primary-dark); color: var(--c-white); }
.facts ul { list-style: none; margin: 0; padding: var(--space-m) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m) var(--space-s); }
.facts li { text-align: center; }
.facts strong { display: block; font-family: var(--f-head); font-weight: 500; font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem); text-transform: uppercase; line-height: 1.1; }
.facts span { font-size: var(--fs-small); }
@media (min-width: 768px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Karten / Raster ---------- */
.grid { display: grid; gap: var(--space-m); }
.grid--4 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: var(--space-l); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--c-text);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 40, 70, .18); color: var(--c-text); }
.card .frame { border-radius: 0; }
.card__body { padding: var(--space-m); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.4rem; }
.card__more { margin-top: auto; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary-dark); }

/* ---------- Warum MTrack ---------- */
.why__title { text-align: center; }
.why__text p { font-weight: 300; font-size: 1.12rem; }
.why__images { display: grid; gap: var(--space-m); }
.why__images figure { margin: 0; }
.why__images figcaption { font-size: var(--fs-small); color: var(--c-muted); margin-top: 0.4rem; }

/* ---------- Einsatzbereiche ---------- */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
@media (min-width: 900px) { .uses { grid-template-columns: repeat(4, 1fr); } }
.uses li { text-align: center; background: var(--c-white); border-radius: var(--radius); padding: var(--space-m) var(--space-s); box-shadow: var(--shadow); }
.uses svg { width: 56px; height: 56px; color: var(--c-primary-dark); margin: 0 auto var(--space-xs); }
.uses h3 { font-size: 1.2rem; margin: 0; }

/* ---------- Claim ---------- */
.claim { text-align: center; padding-block: var(--space-xl); }
.claim p { font-family: var(--f-head); text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.8rem, 1rem + 3.5vw, 3.4rem); line-height: 1.15; margin: 0; }

/* ---------- Galerie ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin-bottom: var(--space-m); }
.gallery-filter button {
  min-height: 44px; padding: 0.4rem 1rem; border: 2px solid var(--c-primary-dark); border-radius: 999px;
  background: var(--c-white); color: var(--c-primary-dark); font: 500 1rem var(--f-head); text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
}
.gallery-filter button[aria-pressed="true"] { background: var(--c-primary-dark); color: var(--c-white); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .gallery { gap: 12px; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 359px) { .gallery { grid-template-columns: 1fr; } }
.gallery li[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.gallery .frame { --ratio: 1 / 1; }
.gallery .frame img { transition: transform .35s ease; }
.gallery button:hover .frame img { filter: brightness(1.06); }
.gallery__caption { display: block; text-align: left; font-size: var(--fs-small); color: var(--c-muted); padding: 0.35rem 0.1rem 0; line-height: 1.35; }
.gallery-more { text-align: center; margin-top: var(--space-l); }
.gallery-empty { text-align: center; color: var(--c-muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(5, 12, 20, .94); color: var(--c-white);
  display: none; align-items: center; justify-content: center; padding: 56px 8px;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { width: auto; height: auto; max-width: min(1400px, 100%); max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; }
.lightbox__caption { margin-top: 0.75rem; text-align: center; font-size: 1rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: var(--c-white); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 18px; left: 16px; font-size: var(--fs-small); }
body.no-scroll { overflow: hidden; }

/* ---------- Kontaktblock ---------- */
.contact-block { background: var(--c-primary-dark); color: var(--c-white); }
.contact-block h2, .contact-block h3 { color: var(--c-white); }
.contact-block a { color: var(--c-white); }
.contact-block .grid--2 { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-m); font-size: 1.1rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 0.2rem; }
.contact-card { background: var(--c-white); color: var(--c-text); border-radius: var(--radius); padding: var(--space-m); box-shadow: var(--shadow); }
.contact-card a { color: var(--c-primary-dark); }

/* ---------- Formular ---------- */
.form { display: grid; gap: var(--space-s); }
.form__row { display: grid; gap: var(--space-s); }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--c-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; font: inherit; font-size: 1rem; color: var(--c-text);
  background: var(--c-white); border: 1px solid #8a97a5; border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: var(--focus); outline-offset: 1px; border-color: var(--c-primary-dark); }
.field [aria-invalid="true"] { border-color: var(--c-error); border-width: 2px; }
.field__error { display: block; color: var(--c-error); font-size: var(--fs-small); margin-top: 0.25rem; min-height: 0; }
.field--check { display: flex; gap: 0.6rem; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 0.15rem; flex: 0 0 auto; accent-color: var(--c-primary-dark); }
.field--check label { font-weight: 400; }
.req { color: var(--c-error); }
.form__hint { font-size: var(--fs-small); color: var(--c-muted); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--space-s); border-radius: var(--radius); font-weight: 700; display: none; }
.form-status.is-ok, .form-status:target { display: block; }
.form-status.is-ok, #danke { background: #e3f4e8; color: var(--c-success); border: 1px solid #9fd3ae; }
.form-status.is-error, #fehler { background: #fbe9e7; color: var(--c-error); border: 1px solid #f0b2aa; }
.form-status.is-error { display: block; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Produkte-Seite ---------- */
.page-hero { background: var(--c-bg-soft); padding-block: var(--space-l); }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem); margin: 0; }
.page-hero p { max-width: 720px; margin-top: var(--space-xs); }
.product-nav { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-m); }
.product { padding-block: var(--space-xl); border-bottom: 1px solid var(--c-border); }
.product:nth-of-type(even) { background: var(--c-bg-soft); }
.product__media { display: grid; gap: var(--space-s); }
.product__media .frame--small { --ratio: 16 / 9; }
.product__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.spec-table { width: 100%; border-collapse: collapse; margin: var(--space-m) 0; font-size: 0.98rem; }
.spec-table caption { text-align: left; font-family: var(--f-head); text-transform: uppercase; color: var(--c-primary-dark); font-size: 1.15rem; margin-bottom: 0.4rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 700; }
.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: 0.35rem; }

/* ---------- Karte (Zwei-Klick) ---------- */
.map { position: relative; border-radius: var(--radius); overflow: hidden; }
.map .frame { --ratio: 16 / 10; border-radius: 0; }
.map__consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-s);
  text-align: center; padding: var(--space-m); background: rgba(10, 30, 55, .78); color: var(--c-white);
}
.map__consent p { max-width: 460px; font-size: 0.95rem; margin: 0; }
.map__consent a { color: var(--c-white); }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); margin-top: var(--space-l); }
.legal h3 { font-size: 1.15rem; margin-top: var(--space-m); }
.notice { background: #fff4c2; border-left: 6px solid #c9a400; padding: var(--space-s) var(--space-m); border-radius: var(--radius); margin-bottom: var(--space-l); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1b28; color: #dbe4ec; padding-block: var(--space-l) var(--space-m); font-size: 0.98rem; }
.site-footer a { color: var(--c-white); }
.site-footer__grid { display: grid; gap: var(--space-l); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.site-footer__logo { background: var(--c-white); display: inline-block; padding: 8px 10px; border-radius: var(--radius); }
.site-footer__logo img { width: 170px; }
.site-footer h2 { font-size: 1.15rem; color: var(--c-white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.social { display: flex; gap: var(--space-s); }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--c-primary-dark); }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: var(--space-l); padding-top: var(--space-m); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s); font-size: var(--fs-small); }
.site-footer__bottom ul { display: flex; gap: var(--space-m); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: var(--space-xl); }
.error-page h1 { font-size: clamp(3rem, 2rem + 6vw, 7rem); margin: 0; }

/* ---------- Bodendruck-Test ---------- */
.eyebrow { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent); margin: 0 0 0.3rem; }
.test { align-items: start; }
.test__chart { margin: 0; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-m); box-shadow: var(--shadow); }
.test__chart figcaption { margin-bottom: var(--space-m); }
.test__chart figcaption strong { display: block; font-family: var(--f-head); text-transform: uppercase; font-weight: 500; font-size: 1.25rem; color: var(--c-primary-dark); }
.test__chart figcaption span { color: var(--c-muted); font-size: var(--fs-small); }
.bars { --max: 1.8; position: relative; padding-bottom: 2rem; }
.bars__group { font-weight: 700; margin: var(--space-s) 0 0.4rem; }
.bars__group:first-child { margin-top: 0; }
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "track track"; gap: 0.2rem 0.6rem; margin-bottom: 0.7rem; font-size: 0.95rem; }
.bar__label { grid-area: label; }
.bar__value { grid-area: value; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__track { grid-area: track; position: relative; height: 14px; background: var(--c-bg-soft); border-radius: 7px; overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / var(--max) * 100%); background: #8a96a3; border-radius: 7px; }
.bar--mtrack .bar__fill { background: var(--c-primary-dark); }
.bar--mtrack .bar__label { font-weight: 700; color: var(--c-primary-dark); }
/* Richtwert-Linie bei 1 bar */
.bars__limit { position: absolute; top: 0; bottom: 0; left: calc(1 / var(--max) * 100%); border-left: 2px dashed var(--c-accent); pointer-events: none; }
.bars__limit span { position: absolute; bottom: 0; right: 6px; white-space: nowrap; font-size: 0.8rem; font-weight: 700; color: var(--c-accent); }
.test__source { font-size: 0.8rem; color: var(--c-muted); margin: var(--space-s) 0 0; }
.test__facts .frame { margin-top: var(--space-m); }
.test__note { font-size: var(--fs-small); color: var(--c-muted); margin-top: var(--space-s); }
.test-note { background: var(--c-bg-soft); border-left: 4px solid var(--c-primary-dark); padding: 0.6rem 0.8rem; }

/* ---------- Partner und Modelltabelle ---------- */
.partner-note { font-size: 0.98rem; color: var(--c-muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table--models { min-width: 560px; }
.spec-table--models th { width: auto; white-space: nowrap; }
.spec-table--models thead th { color: var(--c-muted); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; }
.table-note { font-size: var(--fs-small); color: var(--c-muted); }

/* ---------- Referenzen ---------- */
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 600px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref { background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.ref .frame { --ratio: 3 / 2; border-radius: 0; }
.ref__body { padding: var(--space-m); }
.ref__place { margin: 0 0 0.2rem; font-size: var(--fs-small); font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .04em; }
.ref__body h3 { margin: 0 0 0.3rem; }
.ref__product { margin: 0 0 var(--space-s); color: var(--c-muted); }
.ref__quote { margin: 0; padding-left: var(--space-s); border-left: 3px solid var(--c-primary); font-style: italic; }
.ref__quote p { margin: 0; }

/* ---------- Videos ---------- */
.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.videos figure { margin: 0; }
.videos video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0e1b28; border-radius: var(--radius); box-shadow: var(--shadow); }
.videos figcaption { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--c-muted); }
.videos__more { margin: var(--space-m) 0 0; text-align: center; font-size: var(--fs-small); }
.videos__more a { color: var(--c-muted); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.2s; }
.videos__more a:hover, .videos__more a:focus-visible { color: var(--c-primary-dark); }

/* Ausgeblendete Inhalte (z. B. Platzhalter, die später gefüllt werden) */
[hidden] { display: none !important; }
.site-footer__credit { margin: 0; opacity: 0.55; font-size: 0.75rem; }
.site-footer__credit a { text-decoration: none; }
.site-footer__credit a:hover, .site-footer__credit a:focus-visible { text-decoration: underline; }
