/* MEK Laden und Lokalbau – Der dunkle Raum
   Ein dunkler Grund von oben bis unten, darin beleuchtete Räume.
   Farben und Schrift aus dem Logo: Schwarz #141311, Creme #F7F4EE, Gold #C4A262, Archivo Light breit. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben aus dem Logo */
  --bg: #141311;
  --surface: #1f1d1a;
  --ink: #f7f4ee;
  --muted: #aaa59b;
  --accent: #c4a262;
  --accent-hell: #d4b67a;
  --accent-ink: #141311;
  --creme: #f7f4ee;
  --creme-tief: #ebe6dc;
  --creme-ink: #141311;
  --creme-muted: #57524a;
  --fehler: #b3261e;

  /* Schrift: eine Familie, die Breite trägt den Rang */
  --schrift: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --s-klein: 0.875rem;
  --s-text: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.375rem, 1.05rem + 1.05vw, 2rem);
  --s-titel: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --s-gross: clamp(2.5rem, 0.9rem + 5vw, 5.25rem);

  /* Raster */
  --rand: clamp(1rem, 2.1vw, 2rem);
  --gap: clamp(0.75rem, 1.4vw, 1.25rem);
  --kopf: 4.5rem;
  --abstand: clamp(7.5rem, 16vh, 13rem);

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf) + 1rem);
  background: var(--creme);
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font-family: var(--schrift);
  font-size: var(--s-text);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: visuell versteckt, keine Linie */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--rand); top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0.75rem; }

/* Überschriften: breit und leicht, wie das Logo */
h1, h2, .titel, .titel-klein, .fuss-logo {
  font-weight: 300;
  font-stretch: 125%;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
.titel { font-size: var(--s-titel); }
.titel-klein { font-size: var(--s-lead); letter-spacing: -0.005em; }
h3 { font-size: var(--s-text); font-weight: 500; line-height: 1.3; }

main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ---------- Logo ---------- */
.logo, .fuss-logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}
.logo { font-size: 1.625rem; color: var(--ink); }
.logo-e {
  position: relative;
  display: inline-block;
  width: 0.51em; width: 0.72cap;
  height: 0.71em; height: 1cap;
  margin-inline: 0.3em 0.32em; margin-inline: 0.42cap 0.45cap;
  vertical-align: baseline;
}
.logo-e i {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.092em; height: 0.13cap;
  border-radius: 1em;
  background: var(--accent);
  transform-origin: left center;
}
.logo-e i:nth-child(1) { top: 0; }
.logo-e i:nth-child(2) { top: 50%; translate: 0 -50%; }
.logo-e i:nth-child(3) { bottom: 0; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: var(--kopf);
  padding-inline: var(--rand);
  background: var(--bg);
  color: var(--ink);
  transition: transform 320ms var(--ease-out);
}
.kopf.ist-weg { transform: translateY(-100%); }

.nav ul { display: flex; gap: 1.75rem; }
.nav a {
  font-size: var(--s-klein);
  text-decoration: none;
  color: var(--muted);
  transition: color var(--t-hover) ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }

.kopf-rechts { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.kopf-tel {
  font-size: var(--s-klein);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition: color var(--t-hover) ease;
}
.kopf-tel:hover { color: var(--ink); }

.menu-knopf {
  display: none;
  background: none;
  border: 0;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* ---------- Knöpfe und Textlinks ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 560;
  font-stretch: 110%;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.knopf:active { transform: scale(0.97); }
.knopf svg, .textlink svg {
  width: 1.1rem; height: 0.7rem;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform var(--t-ui) var(--ease-out);
}
.knopf-dunkel { background: var(--creme-ink); color: var(--creme); }
.knopf-voll { width: 100%; min-height: 3.25rem; font-size: 1rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
  font-weight: 560;
  font-stretch: 110%;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--accent-hell); }
  .knopf-dunkel:hover { background: #2b2925; }
  .knopf:hover svg, .textlink:hover svg { transform: translateX(4px); }
  .weiter:hover svg { transform: rotate(90deg) translateX(4px); }
  .textlink:hover { color: var(--accent-hell); }
}

/* ---------- Erster Bildschirm ---------- */
.hero {
  --col: calc((100% - 2 * var(--rand) - 11 * var(--gap)) / 12);
  position: relative;
  height: calc(100svh - var(--kopf));
  min-height: 40rem;
  max-height: 64rem;
}

.hero-rahmen {
  position: relative;
  overflow: clip;
  background: var(--surface);
}
.hero-rahmen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gross {
  position: absolute;
  top: 6%;
  left: calc(var(--rand) + 4 * (var(--col) + var(--gap)));
  /* so breit, wie das 4:5-Bild bei begrenzter Höhe wirklich wird */
  width: min(calc(5 * var(--col) + 4 * var(--gap)), 52.8svh);
}
.hero-gross .hero-rahmen {
  aspect-ratio: 4 / 5;
  max-height: 66svh;
  max-width: 100%;
}
.hero-gross img {
  opacity: 0;
  filter: brightness(0.84) contrast(1.06);
  transition: opacity 1600ms ease;
}
.hero-gross img.ist-an { opacity: 1; }

.hero-gross figcaption {
  position: absolute;
  left: calc(100% + var(--gap));
  top: 0;
  width: calc(1.6 * var(--col));
  min-width: 9rem;
  font-size: var(--s-klein);
  color: var(--muted);
}

.hero-klein {
  position: absolute;
  top: 12%;
  left: calc(var(--rand) + 1 * (var(--col) + var(--gap)));
  width: calc(2 * var(--col) + 1 * var(--gap));
}
.hero-klein .hero-rahmen { aspect-ratio: 1; }
.hero-klein img { filter: brightness(0.7) contrast(1.05); }

.hero-titel {
  position: absolute;
  left: var(--rand);
  bottom: var(--rand);
  font-size: var(--s-titel);
}
.zeilen .zeile { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.zeilen [data-zeile] { display: block; }

.hero-rechts {
  position: absolute;
  right: var(--rand);
  bottom: calc(var(--rand) + 0.35rem);
  width: calc(3 * var(--col) + 2 * var(--gap));
  min-width: 19rem;
}
.hero-satz { max-width: 30ch; color: var(--muted); }
.hero-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}
.weiter svg { transform: rotate(90deg); }

/* Sprachwahl in der Kopfleiste */
.sprache { display: flex; gap: 0.15rem; }
.sprache a {
  padding: 0.45rem 0.4rem;
  font-size: var(--s-klein);
  font-weight: 500;
  font-stretch: 110%;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}
.sprache a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.sprache a:hover { color: var(--ink); }

/* ---------- Leistungen ---------- */
.leistungen {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: var(--abstand) var(--rand);
  align-items: start;
}
.leistungen .titel-klein { grid-column: 1 / -1; margin-bottom: 6rem; }

.leistung-spalte { grid-column: span 3; }
.leistung-spalte h3 { margin-bottom: 1.55em; }
.leistung-spalte li {
  position: relative;
  padding-block: 0.12em;
  line-height: 1.35;
  color: var(--muted);
  transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}
.leistung-spalte li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 50%;
  width: 0.7em;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-ui) var(--ease-out);
}
.leistung-spalte li.ist-an { color: var(--ink); transform: translateX(0.35em); }
.leistung-spalte li.ist-an::before { transform: scaleX(1); }
.leistung-summe { display: none; }

.leistung-info { grid-column: span 3; }
.leistung-info h3 { margin-bottom: 1.55em; }
.leistung-info p { color: var(--muted); max-width: 32ch; }
.leistung-info p + p { margin-top: 1em; }
.leistung-detail p { color: var(--ink); }

/* ---------- Ablauf ---------- */
.ablauf {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  grid-template-rows: auto 1fr auto auto;
  align-items: start;
  padding: 0 var(--rand) var(--abstand);
  --col: calc((100cqw - 11 * var(--gap)) / 12);
}
.ablauf .titel { grid-column: 7 / 13; grid-row: 1; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.etappe {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
}
.etappe-bild { overflow: clip; background: var(--surface); }
.etappe-bild img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92); }
.etappe-text { max-width: 36ch; }
.etappe-text strong { font-weight: 600; color: var(--ink); }
.etappe-text { color: var(--muted); }

/* Der Titel steht rechts oben, Höhe der ersten Fotokante */
.etappe-1 { grid-row: 1 / 3; grid-template-rows: subgrid; }
.etappe-1 .etappe-bild { grid-column: 1 / 5; grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.etappe-1 .etappe-text { grid-column: 7 / 11; grid-row: 2; }

/* Die zweite Etappe beginnt noch neben dem ersten Bild: die fallende Diagonale */
.etappe-2 { grid-row: 3; margin-top: min(0px, calc(25rem - (4 * var(--col) + 3 * var(--gap)) * 4 / 3)); }
.etappe-2 .etappe-bild { grid-column: 6 / 9; aspect-ratio: 1; }
.etappe-2 .etappe-text { grid-column: 9 / 13; padding-left: var(--gap); }

.etappe-3 { grid-row: 4; margin-top: 11.25rem; }
.etappe-3 .etappe-bild { grid-column: 7 / 13; grid-row: 1; aspect-ratio: 16 / 10; }
.etappe-3 .etappe-text { grid-column: 2 / 6; grid-row: 1; }

/* ---------- Räume ---------- */
.raeume {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  column-gap: var(--gap);
  padding: 0 var(--rand) var(--abstand);
  align-items: start;
}
.raeume-kopf { grid-column: 1 / 6; grid-row: 1; margin-bottom: 3rem; }
.raeume-unter { margin-top: 1rem; color: var(--muted); max-width: 30ch; }
.raum-liste { grid-column: 1 / 6; grid-row: 2; }
.raum-texte { grid-column: 1 / 5; grid-row: 3; margin-top: 3rem; }

.raum {
  position: relative;
  display: block;
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--s-lead);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-hover) ease, transform 360ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.raum::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 50%;
  width: 0.6em;
  height: 0.1em;
  margin-top: -0.05em;
  border-radius: 1em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-ui) var(--ease-out);
}
.raum.ist-aktiv { color: var(--ink); transform: translateX(1em); }
.raum.ist-aktiv::before { transform: scaleX(1); }
.raum:active { transform: translateX(1em) scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .raum:hover { color: var(--ink); }
}

.raum-bild {
  grid-column: 6 / 13;
  grid-row: 1 / 4;
  position: relative;
  aspect-ratio: 6 / 5;
  max-height: 88svh;
  overflow: clip;
  background: var(--surface);
}
.raeume .raum-bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  clip-path: inset(0 0 0 100%);
}
.raeume .raum-bild img.ist-an {
  z-index: 2;
  clip-path: inset(0);
  transition: clip-path 900ms var(--ease-in-out);
}
@media (prefers-reduced-motion: no-preference) {
  .raeume .raum-bild img.ist-an { animation: raum-ein 1600ms var(--ease-soft); }
}
@keyframes raum-ein { from { transform: scale(1.06); } to { transform: none; } }
.raeume .raum-bild img.war-an { z-index: 1; clip-path: inset(0); }

.raum-text h3 { margin-bottom: 0.75rem; }
.raum-text p { color: var(--muted); max-width: 36ch; margin-bottom: 1rem; }

/* ---------- Generalunternehmer ---------- */
.gu {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: var(--abstand) var(--rand) 0;
  align-items: start;
}
.gu-kopf { grid-column: 1 / 6; }
.gu-lead {
  margin-top: 1.75rem;
  max-width: 26ch;
  font-size: var(--s-lead);
  line-height: 1.3;
}
.gu-vergleich {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.gu-spalte { padding: 2rem 1.75rem 2.25rem; }
.gu-spalte h3 { margin-bottom: 1.25rem; }
.gu-spalte li {
  position: relative;
  padding: 0.4em 0 0.4em 1.5em;
  line-height: 1.4;
}
.gu-spalte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.4em + 0.7em);
  width: 0.75em;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
}
.gu-ohne { color: var(--muted); }
.gu-ohne li::before { background: var(--muted); opacity: 0.45; }
.gu-mit { background: var(--surface); color: var(--ink); }
.gu-mit li::before { background: var(--accent); }

/* ---------- Elektrotechnik ---------- */
.elektro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--rand) var(--abstand);
  align-items: start;
}
.elektro-bild {
  grid-column: 1 / 6;
  position: sticky;
  top: calc(var(--kopf) + 2rem);
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--kopf) - 4rem);
  overflow: clip;
  background: var(--surface);
}
.elektro-bild img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86) contrast(1.05); }
.elektro-text { grid-column: 7 / 13; }
.elektro-lead {
  margin-top: 2rem;
  max-width: 30ch;
  font-size: var(--s-lead);
  line-height: 1.3;
}
.elektro-felder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem var(--gap);
  margin-top: 5rem;
}
.elektro-feld img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1.25rem;
  filter: brightness(0.9);
}
.elektro-feld-breit { grid-column: 1 / -1; }
.elektro-feld-breit img { aspect-ratio: 16 / 8; }
.elektro-feld-breit p { max-width: 52ch; }
.elektro-feld h3 { margin-bottom: 0.5rem; }
.elektro-feld p { color: var(--muted); max-width: 34ch; }
.elektro-knopf { margin-top: 4rem; }

/* ---------- Gastronomiegeräte ---------- */
.geraete { padding: 0 var(--rand) var(--abstand); }
.geraete-text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--surface);
  align-items: start;
}
.einleitung-block { grid-column: 2 / 8; }
.einleitung-unter { margin-top: 1.25rem; max-width: 42ch; color: var(--muted); }
.einleitung {
  font-size: var(--s-lead);
  line-height: 1.3;
  max-width: 36ch;
}
.geraete-auswahl { grid-column: 9 / 12; }
.geraete-liste { margin-bottom: 1.25rem; }
.geraete-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.geraete-liste li { padding-block: 0.16em; color: var(--muted); }

/* ---------- Über uns ---------- */
.ueber {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--rand) var(--abstand);
  align-items: start;
}
.ueber-fakten {
  grid-column: 1 / 3;
  padding-top: calc(var(--s-titel) * 1.1 + 2.5rem + 0.4rem);
  font-size: var(--s-klein);
  color: var(--muted);
}
.ueber-fakten li + li { margin-top: 1.25rem; }
.ueber-fakten strong { display: block; color: var(--ink); font-weight: 500; }
.ueber-fakten a { text-decoration-color: var(--accent); text-underline-offset: 0.25em; font-variant-numeric: tabular-nums; }
.ueber-text { grid-column: 3 / 13; }
.ueber-text .titel { margin-bottom: 2.5rem; }
.aussage {
  font-size: var(--s-lead);
  line-height: 1.28;
  max-width: 54ch;
  color: var(--ink);
}
.aussage strong { font-weight: 500; }
.aussage-leise { clear: both; margin-top: 2rem; max-width: 52ch; font-size: var(--s-text); line-height: 1.55; color: var(--muted); }
.initiale {
  float: left;
  width: 3.84em;
  height: 3.84em;
  margin: 0.28em 0.6em 0 0;
  object-fit: cover;
  object-position: 60% 40%;
  filter: brightness(0.9) contrast(1.05);
}

/* ---------- Anfrage ---------- */
.anfrage {
  position: relative;
  min-height: 100svh;
  padding: 3.75rem var(--rand);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: clip;
}
.anfrage-foto { position: absolute; inset: 0; }
.anfrage-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  filter: brightness(0.72) saturate(0.9);
}
.anfrage-foto figcaption {
  position: absolute;
  left: var(--rand);
  bottom: 1.25rem;
  font-size: var(--s-klein);
  color: var(--ink);
}
.karte {
  position: relative;
  width: min(100%, 34rem);
  padding: 2.25rem 2.25rem 0;
  background: var(--creme);
  color: var(--creme-ink);
}
.karte h2 { font-size: var(--s-lead); }
.karte-unter { margin-top: 1rem; color: var(--creme-muted); }
.karte-direkt { margin-top: 0.75rem; color: var(--creme-muted); font-size: 0.9375rem; }
.karte a { text-decoration-color: var(--accent); text-underline-offset: 0.22em; font-variant-numeric: tabular-nums; }
.karte-direkt a { color: var(--creme-ink); }

.formular {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
  margin-top: 2rem;
}
.formular .knopf-voll { grid-column: 1 / -1; margin-inline: -2.25rem; width: calc(100% + 4.5rem); min-height: 3.5rem; }
.feld { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.feld-voll { grid-column: 1 / -1; }
.feld label, .feld legend { font-size: 0.9375rem; font-weight: 560; padding: 0; }
.optional { font-weight: 400; color: var(--creme-muted); }
.feld input:not([type=checkbox]):not([type=radio]), .feld textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: var(--creme-tief);
  color: var(--creme-ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 -2px 0 transparent; /* taste-skill-ignore: Formularfeld */
  transition: box-shadow var(--t-hover) ease, background-color var(--t-hover) ease;
}
.feld textarea { resize: vertical; min-height: 6.5rem; }
.feld input:focus, .feld textarea:focus { outline: none; background: #e4ded2; box-shadow: inset 0 -2px 0 var(--accent); } /* taste-skill-ignore: Formularfeld */
.feld input:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--creme-ink); outline-offset: 2px; }
.feld [aria-invalid=true], .feld[aria-invalid=true] .wahl { box-shadow: inset 0 -2px 0 var(--fehler); } /* taste-skill-ignore: Formularfeld */
.feld-fehler { font-size: 0.875rem; font-weight: 560; color: var(--fehler); }

.wahl { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.wahl label { position: relative; font-weight: 400; }
.wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: block;
  padding: 0.5rem 0.8rem;
  background: var(--creme-tief);
  font-size: 0.9375rem;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.wahl label:active span { transform: scale(0.97); }
.wahl input:checked + span { background: var(--creme-ink); color: var(--creme); }
.wahl input:focus-visible + span { outline: 2px solid var(--creme-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .wahl label:hover input:not(:checked) + span { background: #e1dbcf; }
}

.feld-check { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.feld-check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--creme-ink); }
.feld-check label { font-weight: 400; font-size: 0.9375rem; color: var(--creme-muted); }
.feld-check .feld-fehler { grid-column: 1 / -1; }

/* ---------- Fuß: Vorhang mit großem Logo ---------- */
.fuss {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100svh;
  padding: 2.5rem var(--rand) 1.25rem;
  background: var(--creme);
  color: var(--creme-ink);
}
.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  font-size: 0.9375rem;
  color: var(--creme-muted);
}
.fuss-kopf { color: var(--creme-ink); font-weight: 560; margin-bottom: 0.35rem; }
.fuss a { text-decoration: none; transition: color var(--t-hover) ease; }
.fuss a:hover { color: var(--creme-ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.22em; }
.fuss :focus-visible { outline-color: var(--creme-ink); }
.fuss-logo {
  grid-row: 3;
  justify-self: start;
  font-size: calc((100vw - 2 * var(--rand)) * 0.32);
  margin-bottom: 1.25rem;
  color: var(--creme-ink);
}
.fuss-recht {
  grid-row: 4;
  font-size: 0.8125rem;
  color: var(--creme-muted);
}
.fuss-recht a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Gerätekatalog ---------- */
.katalog { padding-bottom: var(--abstand); }
.katalog-kopf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 4.5rem var(--rand) 1rem;
  align-items: end;
}
.katalog-titel { grid-column: 1 / -1; font-size: var(--s-gross); margin-bottom: 2.5rem; }
.katalog-kopf-text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.katalog-kopf-text .einleitung { grid-column: 1 / 7; }
.katalog-kopf-text p + p { grid-column: 8 / 13; margin-top: 0.35rem; }
.katalog-kopf-text .einleitung { max-width: 30ch; }
.katalog-kopf-text p + p { color: var(--muted); max-width: 48ch; }
.katalog-filter { grid-column: 1 / -1; margin-top: 3rem; }
.katalog-filter ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.katalog-filter a {
  display: block;
  padding: 0.6rem 0.95rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.katalog-filter a:active { transform: scale(0.97); }

.katalog-gruppe { padding: 5rem var(--rand) 0; scroll-margin-top: var(--kopf); }
.katalog-gruppe-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}
.katalog-gruppe-kopf p { color: var(--muted); max-width: 52ch; }

.geraete-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem var(--gap);
}
.geraet-link { display: block; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.geraet-bild {
  display: block;
  aspect-ratio: 1;
  overflow: clip;
  background: #fff;
}
.geraet-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--ease-out);
}
.geraet-marke {
  display: block;
  margin-top: 0.9rem;
  font-size: var(--s-klein);
  color: var(--muted);
}
.geraet-name {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--t-hover) ease;
}
.geraet-link:active .geraet-bild { transform: scale(0.985); }
.geraet-link .geraet-bild { transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .katalog-filter a:hover { background: #2b2925; }
  .geraet-link:hover .geraet-bild img { transform: scale(1.04); }
  .geraet-link:hover .geraet-name { text-decoration-color: var(--accent); }
}

/* Geräteseite */
.pfad { padding: 2rem var(--rand) 0; font-size: var(--s-klein); color: var(--muted); }
.pfad a { color: var(--muted); text-decoration-color: var(--accent); text-underline-offset: 0.25em; }
.pfad a:hover { color: var(--ink); }
.geraet-detail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 2rem var(--rand) 0;
  align-items: start;
}
.geraet-detail-bild { grid-column: 1 / 7; background: #fff; aspect-ratio: 1; max-height: 82svh; }
.geraet-detail-bild img { width: 100%; height: 100%; object-fit: contain; }
.geraet-detail-text { grid-column: 8 / 13; padding-top: 1rem; }
.geraet-titel { font-size: var(--s-lead); }
.geraet-detail-text .geraet-marke { margin: 0.6rem 0 1.5rem; }
.geraet-detail-text .einleitung { font-size: var(--s-text); line-height: 1.55; color: var(--ink); }
.geraet-merkmale { margin: 1.5rem 0 0; padding-left: 1.2em; list-style: square; color: var(--muted); }
.geraet-merkmale li::marker { color: var(--accent); }
.geraet-merkmale li + li { margin-top: 0.3em; }
.geraet-daten-titel { font-size: var(--s-text); font-weight: 500; font-stretch: 100%; letter-spacing: 0; margin: 2.25rem 0 0.5rem; }
.geraet-daten div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 0.65rem 0;
  box-shadow: inset 0 -1px 0 rgba(247, 244, 238, 0.1); /* taste-skill-ignore: Zeilen einer Datentabelle */
}
.geraet-daten dt { color: var(--muted); }
.geraet-daten dd { margin: 0; font-variant-numeric: tabular-nums; }
.geraet-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2.25rem; }
.geraet-hinweis { margin-top: 1.25rem; font-size: var(--s-klein); color: var(--muted); }

.katalog-schluss { padding: 7rem var(--rand) 0; max-width: 50rem; }
.katalog-schluss p { margin: 1.25rem 0 2rem; color: var(--muted); max-width: 48ch; }

/* ---------- Unterseiten ---------- */
.seite {
  min-height: calc(100svh - var(--kopf));
  padding: 6rem var(--rand) var(--abstand);
}
.seite > * { max-width: 44rem; }
.seite h1 { font-size: var(--s-titel); margin-bottom: 2.5rem; }
.seite h2 { font-size: min(var(--s-lead), 1.75rem); margin: 3rem 0 0.75rem; }
.seite p, .seite li { color: var(--muted); }
.seite p + p { margin-top: 1em; }
.seite ul { margin: 1em 0; padding-left: 1.2em; list-style: square; }
.seite li::marker { color: var(--accent); }
.seite li + li { margin-top: 0.3em; }
.seite p a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 0.22em; }
.seite .knopf { margin-top: 3rem; }
.hinweis { padding: 1rem 1.25rem; background: var(--surface); }
.fuss-einfach { min-height: 0; position: static; grid-template-rows: auto; gap: 1rem; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .logo-e i { transition: transform 420ms var(--ease-out); }
  .js .logo-e i { animation: leiste 900ms var(--ease-expo) both; }
  .js .logo-e i:nth-child(2) { animation-delay: 90ms; }
  .js .logo-e i:nth-child(3) { animation-delay: 180ms; }

  .js .hero [data-zeile] {
    transform: translateY(105%);
    animation: zeile 900ms var(--ease-expo) forwards;
    animation-delay: calc(200ms + var(--i) * 110ms);
  }
  .js .hero [data-laden] {
    opacity: 0;
    transform: translateY(12px);
    animation: hoch 600ms var(--ease-out) 520ms forwards;
  }
  .js .hero figcaption { opacity: 0; animation: hoch 600ms var(--ease-out) 900ms forwards; }
  .weiter svg { animation: nicken 2.4s var(--ease-in-out) 1.6s infinite; }

  .js [data-open] { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js [data-open] img { transform: scale(1.1); transition: transform 1500ms var(--ease-soft), opacity 1600ms ease; }
  .js [data-open].ist-da { clip-path: inset(0); }
  .js [data-open].ist-da img { transform: none; }
  .js .hero-klein [data-open] { transition-delay: 260ms; }
  .js .hero-klein [data-open] img { transition-delay: 260ms; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].ist-da { opacity: 1; transform: none; }

  .js .raum-liste[data-reveal] { transform: translateY(32px); }

  .anfrage-foto img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
@supports not (animation-timeline: view()) {
  .anfrage-foto img { animation: none; }
}

@keyframes zeile { to { transform: none; } }
@keyframes nicken { 0%, 60%, 100% { transform: rotate(90deg) translateX(0); } 30% { transform: rotate(90deg) translateX(5px); } }
@keyframes hoch { to { opacity: 1; transform: none; } }
@keyframes leiste { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-gross img, .raeume .raum-bild img.ist-an { transition: none; }
  .kopf { transition: none; }
}

/* ---------- Mittlere Breiten ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-knopf { display: block; }
  .kopf-tel { display: none; }
  .kopf.menu-offen .nav {
    display: block;
    position: absolute;
    top: var(--kopf);
    left: 0;
    right: 0;
    padding: 1rem var(--rand) 2rem;
    background: var(--bg);
  }
  .kopf.menu-offen .nav ul { flex-direction: column; gap: 0; }
  .kopf.menu-offen .nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.375rem;
    font-weight: 300;
    font-stretch: 125%;
    color: var(--ink);
  }
}

@media (max-width: 1000px) {
  .leistung-spalte { grid-column: span 4; }
  .leistung-info { grid-column: 1 / -1; margin-top: 4rem; max-width: 40rem; }
}

/* ---------- Telefon und Tablet ---------- */
@media (max-width: 860px) {
  :root { --kopf: 4rem; }

  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 2.5rem var(--rand) 3.5rem;
  }
  .hero-gross, .hero-klein, .hero-titel, .hero-rechts { position: relative; top: auto; left: auto; right: auto; bottom: auto; }
  .hero-gross { width: 78%; margin-left: auto; }
  .hero-gross .hero-rahmen { max-height: none; }
  .hero-klein { width: 34%; margin-top: -24%; z-index: 1; }
  .hero-klein figcaption { display: none; }
  .hero-gross figcaption { position: static; width: auto; margin-top: 0.75rem; padding-left: 22%; }
  .hero-titel { margin-top: 2.5rem; font-size: clamp(1.5rem, 6.6vw, 2.75rem); }
  .hero-rechts { width: auto; min-width: 0; margin-top: 1rem; }
  .hero-satz { max-width: 34ch; font-size: 0.9375rem; }

  .leistungen { display: block; }
  .leistungen .titel-klein { margin-bottom: 3rem; font-size: 1.5rem; }
  .leistung-spalte + .leistung-spalte { margin-top: 2.5rem; }
  .leistung-spalte h3 { margin-bottom: 0.75rem; }
  .leistung-spalte li { font-size: 1.125rem; line-height: 1.4; padding-block: 0; }
  .leistung-spalte li::before { display: none; }
  .leistung-summe { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
  .leistung-info { margin-top: 3rem; }
  .leistung-detail { display: none; }

  .ablauf { display: block; }
  .ablauf .titel { margin-bottom: 2.5rem; font-size: 1.875rem; }
  .etappe { display: block; margin-top: 3.5rem; }
  .etappe-1 { margin-top: 0; }
  .etappe-text { margin-top: 1rem !important; padding-left: 0 !important; font-size: 1rem; }
  .etappe-1 .etappe-bild { width: 100%; }
  .etappe-2 .etappe-bild { width: 62%; margin-left: auto; }
  .etappe-2 .etappe-text { margin-left: 38%; }
  .etappe-3 .etappe-bild { width: 100%; }

  .raeume { display: block; }
  .raeume-kopf { margin-bottom: 1.75rem; }
  .raeume .titel { font-size: 1.875rem; }
  .raum-liste { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .raum {
    padding: 0.6rem 0.9rem;
    background: var(--surface);
    font-size: 0.9375rem;
    font-weight: 450;
    font-stretch: 110%;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .raum::before { display: none; }
  .raum.ist-aktiv { transform: none; background: var(--creme); color: var(--creme-ink); }
  .raum:active { transform: scale(0.97); }
  .raum-bild { aspect-ratio: 4 / 5; margin-top: 1.25rem; max-height: none; }
  .raum-texte { margin-top: 1.5rem; }

  .gu { display: block; }
  .gu .titel { font-size: 1.875rem; }
  .gu-lead { margin-top: 1.25rem; font-size: 1.25rem; max-width: none; }
  .gu-vergleich { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .gu-spalte { padding: 1.5rem 1.25rem 1.75rem; }
  .gu-ohne { padding-block: 0 0.5rem; padding-inline: 0; }

  .elektro { display: block; }
  .elektro-bild { position: relative; top: auto; aspect-ratio: 4 / 3; max-height: none; }
  .elektro-text .titel { margin-top: 2.5rem; font-size: 1.875rem; }
  .elektro-lead { margin-top: 1.25rem; font-size: 1.25rem; max-width: none; }
  .elektro-felder { margin-top: 3rem; gap: 2.5rem var(--gap); }
  .elektro-feld p { font-size: 0.9375rem; }
  .elektro-knopf { margin-top: 2.5rem; }

  .geraete-text { display: block; padding: 2rem 1.25rem; }
  .geraete .titel-klein { font-size: 1.5rem; }
  .einleitung { font-size: 1.375rem; max-width: none; }
  .einleitung-unter { max-width: none; margin-bottom: 1.75rem; }

  .ueber { display: flex; flex-direction: column; }
  .ueber-fakten { order: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding-top: 2.5rem; font-size: 0.8125rem; }
  .ueber-fakten li + li { margin-top: 0; }
  .ueber-text .titel { font-size: 1.875rem; margin-bottom: 1.75rem; }
  .aussage { font-size: 1.375rem; line-height: 1.32; }
  .aussage-leise { font-size: 1rem; line-height: 1.55; }
  .initiale { width: 5em; height: 5em; margin-top: 0.25em; }

  .anfrage { display: block; min-height: 0; padding: 0 0 var(--rand); }
  .anfrage-foto { position: relative; inset: auto; height: 70svh; }
  .karte { width: auto; margin: -5rem var(--rand) 0; padding: 1.5rem 1.25rem 0; }
  .formular { grid-template-columns: 1fr; }
  .formular .knopf-voll { margin-inline: -1.25rem; width: calc(100% + 2.5rem); }
  .anfrage-foto figcaption { bottom: 6rem; }

  .fuss { padding-top: 2rem; }
  .fuss-spalten { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .fuss-logo { font-size: calc((100vw - 2 * var(--rand)) * 0.326); }
  .fuss-recht { font-size: 0.8125rem; }
}

@media (max-width: 1000px) {
  .geraete-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .katalog-kopf-text { display: block; }
  .katalog-kopf-text p + p { margin-top: 1rem; }
  .katalog-titel { font-size: clamp(1.75rem, 7.4vw, 3.5rem); margin-bottom: 1.5rem; }
  .geraet-detail-bild { grid-column: 1 / -1; max-height: none; }
  .geraet-detail-text { grid-column: 1 / -1; padding-top: 2rem; }
}
@media (max-width: 700px) {
  .geraete-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 0.75rem; }
  .katalog-kopf { padding-top: 3rem; }
  .katalog-gruppe { padding-top: 3.5rem; }
  .geraet-name { font-size: 0.9375rem; }
  .katalog-schluss { padding-top: 5rem; }
}

@media (max-width: 560px) {
  .elektro-felder { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .knopf { padding-inline: 0.85rem; }
  .kopf { gap: 1rem; }
  .kopf-rechts { gap: 0.6rem; }
  .sprache a { padding-inline: 0.3rem; }
  .kopf .knopf { padding-inline: 0.7rem; }
  .logo { font-size: 1.375rem; }
}
