/* ==========================================================
   ISOMIX GmbH Dämmtechnik – Stylesheet
   ========================================================== */

:root {
  /* Farben */
  --paper: #F4F2EC;          /* Seitenhintergrund */
  --paper-raised: #FBFAF7;   /* Formular, Hover */
  --stone: #E8E4DA;          /* abgesetzte Flächen, Foto-Platzhalter */
  --line: #D3CEC1;           /* Haarlinien */
  --ink: #14181C;            /* Text */
  --ink-muted: #5A6068;      /* Sekundärtext */
  --slate: #1C2B36;          /* dunkle Sektionen, Footer */
  --slate-soft: #2C3E4B;     /* Flächen/Linien auf slate */
  --on-slate: #F1EFE9;       /* Text auf slate */
  --on-slate-muted: #A6ADB5; /* Sekundärtext auf slate */
  --green: #A3CF44;          /* Logo-Grün, nur als Fläche */
  --green-deep: #4E7215;     /* Grün als Textfarbe (Links) */
  --white: #FFFFFF;

  /* Schriften */
  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;
  --section-y: 112px;
  --radius: 4px;
  --header-h: 89px;          /* Höhe Header (Logo 76px + Abstand + Linie) */
}

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
}

section {
  scroll-margin-top: 96px;
}

a {
  color: var(--green-deep);
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

img {
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted {
  color: var(--ink-muted);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Überschriften ---------- */

.h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary,
.btn--primary:hover {
  background: var(--green);
  color: var(--ink);
  border: 0;
}

.btn--outline,
.btn--outline:hover {
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(20, 24, 28, 0.45);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  display: block;
  height: 76px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--green-deep);
}

.nav .nav__cta,
.nav .nav__cta:hover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--ink);
}

/* ---------- Hilfsklassen Hero ---------- */

/* breiterer Inhaltsbereich für Header und Hero */
.container--wide {
  max-width: 1520px;
}

/* Linien-Pfeil */
.i-arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}

.btn:hover .i-arrow {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 78px;
  padding-bottom: 68px;
}

/* helle, schräge Fläche hinter der Collage */
.hero__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 474px);
  right: -200px;
  background: #ECEAE4;
  border-top-left-radius: 48px;
  transform: skewX(-6deg);
  transform-origin: top left;
}

.hero__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 757fr) minmax(0, 712fr);
  align-items: start;
}

.hero__text {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 4.6vw, 77px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero__dot {
  color: var(--green);
}

.hero__lead {
  margin-top: 28px;
  max-width: 640px;
  font-size: 22px;
  line-height: 31px;
  color: var(--ink-muted);
}

/* Buttons */
.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__actions .btn {
  gap: 20px;
  min-height: 54px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius);
}

/* Bild-Collage, Masse relativ zur Fläche 770 × 740 */
.hero__collage {
  position: relative;
  width: 100%;
  margin-top: -34px;
  aspect-ratio: 770 / 740;
}

.hero__tile {
  position: absolute;
  overflow: hidden;
  border-radius: 14px;
  /* --py: Parallax beim Scrollen (per Script) */
  transform: translateY(var(--py, 0px)) skewX(-6deg);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 24, 28, 0.04) 14px 28px),
    var(--stone);
}

/* Fotos gegen die Schräge zurückdrehen */
.hero__tile img {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: skewX(6deg);
}

.hero__tile--worker img { object-position: center 20%; }
.hero__tile--rolls img  { object-position: center 70%; }

.hero__tile .placeholder-label {
  left: 24px;
  right: 20px;
  bottom: 18px;
  transform: skewX(6deg);
}

.hero__tile--main   { left: 4.7%;  top: 0;     width: 51.9%; height: 77%; }

.hero__tile--main .placeholder-label {
  bottom: 26%;
  left: 56px;
}
.hero__tile--worker { left: 58.6%; top: 7.4%;  width: 37.6%; height: 45.3%; }
.hero__tile--duct   { left: 52.6%; top: 54.7%; width: 33.8%; height: 35.8%; }
.hero__tile--rolls  {
  left: 6.2%;
  top: 66.9%;
  width: 46.1%;
  height: 33.1%;
  box-shadow: 0 0 0 6px var(--paper);
}

.hero__tile--duct {
  box-shadow: 0 0 0 6px var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .i-arrow {
    transition: none;
  }
}

/* Desktop: Hero füllt genau die Bildschirmhöhe unter dem Header */
@media (min-width: 1101px) {
  .hero {
    --hero-pad: clamp(24px, 5svh, 64px);
    display: flex;
    align-items: center;
    height: calc(100svh - var(--header-h));
    min-height: 560px;
    padding-top: var(--hero-pad);
    padding-bottom: var(--hero-pad);
  }

  .hero__row {
    width: 100%;
    align-items: center;
    container-type: inline-size;
  }

  .hero__title {
    font-size: clamp(44px, min(4.6vw, 8.4svh), 68px);
  }

  .hero__lead {
    margin-top: clamp(20px, 3.6svh, 34px);
    font-size: clamp(17px, 2.35svh, 22px);
    line-height: 1.41;
  }


  .hero__actions {
    margin-top: clamp(28px, 5.2svh, 52px);
  }

  .hero__actions .btn {
    min-height: clamp(48px, 6svh, 54px);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Collage: so gross wie die Spalte erlaubt, aber nie höher als der Bildschirm */
  .hero__collage {
    margin-top: 0;
    width: auto;
    height: min(
      calc(100svh - var(--header-h) - 2 * var(--hero-pad)),
      calc(100cqw * 712 / 1469 * 740 / 770)
    );
  }
}

@media (max-width: 1100px) {
  .hero__panel {
    display: none;
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .hero__collage {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero__title br {
    display: none;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 28px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 22px;
  }

  .hero__tile .placeholder-label {
    font-size: 11px;
    line-height: 15px;
    left: 14px;
    bottom: 10px;
  }

  .hero__tile--main .placeholder-label {
    bottom: 40%;
    left: 24px;
  }

}

/* Platzhalter-Beschriftung, entfernen sobald Fotos da sind */
.placeholder-label {
  position: absolute;
  left: 32px;
  bottom: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Leistungen ---------- */

.services {
  border-top: 1px solid var(--line);
}

.services__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.services__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 80px;
}

.services__intro p {
  max-width: 30em;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.35s;
}

/* grüne Linie, die beim Hover von links einläuft */
.svc::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 40px -24px rgba(20, 24, 28, 0.35);
}

.svc:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .svc,
  .svc::after,
  .svc__link,
  .svc__link span {
    transition: none;
  }

  .svc:hover {
    transform: none;
  }
}

.svc h3 {
  font-size: 24px;
  line-height: 30px;
}

.svc p {
  flex: 1;
  color: var(--ink-muted);
}

/* Ganze Kachel klickbar über den Link */
.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc__link::before {
  content: '';
  position: absolute;
  inset: 0;
}

.svc__link span {
  transition: transform 0.3s;
}

.svc:hover .svc__link,
.svc:focus-within .svc__link {
  opacity: 1;
  transform: none;
}

.svc:hover .svc__link span {
  transform: translateX(4px);
}

.svc__link:focus-visible {
  outline: none;
}

.svc:focus-within {
  outline: 2px solid var(--green-deep);
  outline-offset: 2px;
}

/* Touch-Geräte ohne Hover: Link immer sichtbar */
@media (hover: none) {
  .svc__link {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services__list {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .svc {
    padding: 24px;
  }
}

/* ---------- Fertigung (dunkel) ---------- */

.production {
  background: var(--slate);
  color: var(--on-slate);
}

.production__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 56px 80px;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.production__image {
  position: relative;
  flex: 1 1 440px;
  min-width: 0;
  min-height: 420px;
  background: var(--slate-soft);
}

.production__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.production__image .placeholder-label {
  left: 24px;
  bottom: 20px;
  color: var(--on-slate-muted);
}

.production__content {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.production__content .h2 {
  max-width: 14ch;
}

.production__content p {
  margin-top: 24px;
  color: var(--on-slate-muted);
  font-size: 18px;
  line-height: 29px;
  max-width: 30em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--slate-soft);
  padding-top: 32px;
}

.fact {
  flex: 1 1 140px;
}

.fact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--green);
}

.fact__label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--on-slate-muted);
}

/* ---------- Ablauf ---------- */

.process {
  --step-gap: 48px;      /* Abstand Text / Bild */
  --row-gap: 26px;       /* Abstand zwischen den Schritten */
  --num: 52px;           /* Kreis-Durchmesser */
  --num-top: 26px;       /* Abstand Kreis zur Oberkante */
  --curve: 28px;         /* Radius der Linienbögen */
  --stroke: 2px;         /* Linienstärke */
}

.process__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.process__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.process__dot {
  color: var(--green);
}

.process__lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 20px;
  line-height: 31px;
  color: var(--ink-muted);
}

.process__steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--step-gap);
  min-height: 190px;
}

/* gerade Schritte: Bild links, Text rechts */
.step:nth-child(even) .step__text  { grid-column: 2; grid-row: 1; }
.step:nth-child(even) .step__image { grid-column: 1; grid-row: 1; }

.step__text {
  position: relative;
  z-index: 1;
  padding: var(--num-top) 24px 24px calc(var(--num) + 36px);
}

.step__num {
  position: absolute;
  left: 0;
  top: var(--num-top);
  width: var(--num);
  height: var(--num);
  display: grid;
  place-items: center;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
  font-size: 17px;
  font-weight: 700;
}

.step h3 {
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 12px;
  max-width: 30em;
  font-size: 17px;
  line-height: 27px;
  color: var(--ink-muted);
}

.step__image {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 24, 28, 0.04) 14px 28px),
    var(--stone);
}

.step__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step__image .placeholder-label {
  left: 20px;
  bottom: 16px;
}

/*
  Grüne Verbindungslinie, als Schlange von Kreis zu Kreis:
  ::after  = vom Kreis nach unten und quer in die Lücke zum nächsten Schritt
  ::before = aus der Lücke um die Ecke nach unten in den nächsten Kreis
*/
.step::before,
.step::after {
  content: '';
  position: absolute;
  border: 0 solid var(--green);
  pointer-events: none;
}

/* Kreismitte links bzw. rechts */
.step {
  --x-left: calc(var(--num) / 2 - var(--stroke) / 2);
  --x-right: calc(50% + var(--step-gap) / 2 + var(--num) / 2 - var(--stroke) / 2);
  --gap-mid: calc(var(--row-gap) / -2 - var(--stroke) / 2);
}

/* ungerade -> gerade: unten links nach rechts */
.step:nth-child(odd):not(:last-child)::after {
  left: var(--x-left);
  top: calc(var(--num-top) + var(--num));
  bottom: var(--gap-mid);
  width: calc(var(--x-right) - var(--x-left) - var(--curve));
  border-left-width: var(--stroke);
  border-bottom-width: var(--stroke);
  border-bottom-left-radius: var(--curve);
}

/* gerade -> ungerade: unten rechts nach links */
.step:nth-child(even):not(:last-child)::after {
  left: calc(var(--x-left) + var(--curve));
  top: calc(var(--num-top) + var(--num));
  bottom: var(--gap-mid);
  width: calc(var(--x-right) - var(--x-left) - var(--curve) + var(--stroke));
  border-right-width: var(--stroke);
  border-bottom-width: var(--stroke);
  border-bottom-right-radius: var(--curve);
}

/* Einlauf in den Kreis rechts (gerade Schritte) */
.step:nth-child(even)::before {
  left: calc(var(--x-right) - var(--curve));
  top: var(--gap-mid);
  width: calc(var(--curve) + var(--stroke));
  height: calc(var(--num-top) - var(--gap-mid));
  border-top-width: var(--stroke);
  border-right-width: var(--stroke);
  border-top-right-radius: var(--curve);
}

/* Einlauf in den Kreis links (ungerade Schritte ab dem dritten) */
.step:nth-child(odd):not(:first-child)::before {
  left: var(--x-left);
  top: var(--gap-mid);
  width: var(--curve);
  height: calc(var(--num-top) - var(--gap-mid));
  border-top-width: var(--stroke);
  border-left-width: var(--stroke);
  border-top-left-radius: var(--curve);
}

@media (max-width: 900px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .step:nth-child(even) .step__text,
  .step:nth-child(even) .step__image {
    grid-column: 1;
    grid-row: auto;
  }

  .step__text {
    padding-right: 0;
    padding-bottom: 20px;
  }

  .step__image {
    min-height: 0;
    aspect-ratio: 21 / 8;
    margin-left: calc(var(--num) + 36px);
  }

  /* mobil: einfache senkrechte Linie zwischen den Kreisen */
  .step::before {
    display: none;
  }

  .step:nth-child(n):not(:last-child)::after {
    left: var(--x-left);
    top: calc(var(--num-top) + var(--num));
    bottom: calc(var(--row-gap) * -1 - var(--num-top));
    width: 0;
    border-width: 0;
    border-left-width: var(--stroke);
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .process {
    --num: 44px;
    --num-top: 0px;
    --row-gap: 40px;
  }

  .process__lead {
    font-size: 18px;
    line-height: 28px;
  }

  .process__br {
    display: none;
  }

  .step__text {
    padding-left: calc(var(--num) + 20px);
  }

  .step__num {
    font-size: 15px;
  }

  .step h3 {
    padding-top: 6px;
  }

  .step p {
    font-size: 16px;
    line-height: 26px;
  }

  .step__image {
    aspect-ratio: 16 / 9;
    margin-left: calc(var(--num) + 20px);
  }
}

/* ---------- Projekte ---------- */

.projects {
  border-top: 1px solid var(--line);
}

.projects__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.projects__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 80px;
}

.projects__head p {
  max-width: 30em;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
  margin-top: 56px;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--stone);
  border-radius: var(--radius);
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery__item .placeholder-label {
  top: 20px;
  bottom: auto;
  left: 20px;
}

.gallery__item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
}

.gallery__item.is-zoomable {
  cursor: zoom-in;
}

.gallery__item.is-zoomable:hover img {
  transform: scale(1.04);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 2px;
}

/* Referenzen: Kundenstimmen */
.refs {
  margin-top: 96px;
}

.refs__title {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.refs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 32px 32px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.quote__mark {
  width: 40px;
  height: 30px;
  fill: var(--green);
}

.quote__text {
  flex: 1;
  margin: 24px 0 0;
}

.quote__text p {
  font-size: 19px;
  line-height: 30px;
  font-weight: 500;
  color: var(--ink);
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quote__avatar {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.quote__author strong {
  display: block;
  font-size: 16px;
  line-height: 22px;
}

.quote__author strong + span {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

@media (max-width: 800px) {
  .refs__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(20, 24, 28, 0.92);
}

.lightbox img {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(241, 239, 233, 0.12);
  color: var(--on-slate);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(241, 239, 233, 0.24);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item img {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery__item--large {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-auto-rows: 160px;
    gap: 10px;
    margin-top: 40px;
  }

  .lightbox img {
    max-width: 100vw;
  }

  .lightbox__nav {
    top: auto;
    bottom: 20px;
  }
}

/* ---------- Kontakt ---------- */

.contact {
  background: var(--stone);
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.contact__info {
  flex: 1 1 400px;
  min-width: 0;
}

.contact__title {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.contact__lead {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 29px;
  max-width: 26em;
}

.contact__details {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact__row > span:first-child {
  flex: 0 0 96px;
  color: var(--ink-muted);
}

.form {
  flex: 1 1 440px;
  min-width: 0;
  background: var(--paper-raised);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form__row .field {
  flex: 1 1 200px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.field input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green-deep);
  outline-offset: 1px;
}

.form .btn {
  align-self: flex-start;
  height: 52px;
  padding: 0 28px;
}

/* ---------- Karte ---------- */

.map {
  flex: 1 1 100%;
  position: relative;
  height: 420px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .map {
    height: 340px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate);
  color: var(--on-slate-muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--on-slate);
}

.site-footer__brand span {
  color: var(--green);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer a {
  color: var(--on-slate);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

/* ---------- Coming Soon (Zugangsschutz) ---------- */

.gate {
  display: none;
}

html.locked body > *:not(.gate):not(script) {
  display: none;
}

html.locked .gate {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--white);
}

.gate__box {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.gate__logo {
  height: 56px;
  width: auto;
  margin: 0 auto 40px;
}

.gate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  margin: 0 0 12px;
  color: var(--ink);
}

.gate__text {
  color: var(--ink-muted);
  margin: 0 0 32px;
}

.gate__form {
  display: flex;
  gap: 8px;
}

.gate__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  color: var(--ink);
}

.gate__form button {
  padding: 12px 20px;
  font: inherit;
  font-weight: 500;
  border: 0;
  border-radius: var(--radius);
  background: var(--slate);
  color: var(--on-slate);
  cursor: pointer;
}

.gate__error {
  margin: 12px 0 0;
  color: #B3261E;
  font-size: 14px;
}

/* ---------- Animationen ---------- */

/*
  html.js-anim wird per Script gesetzt (nicht bei "Bewegung reduzieren").
  Elemente mit data-reveal starten unsichtbar und gleiten herein, sobald sie
  ins Bild scrollen. Verwendet translate/scale statt transform, damit
  bestehende Transforms (Schräge, Hover) erhalten bleiben.
*/
html.js-anim [data-reveal] {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}

html.js-anim [data-reveal="left"]  { translate: -48px 0; }
html.js-anim [data-reveal="right"] { translate: 48px 0; }
html.js-anim [data-reveal="zoom"]  { translate: 0 24px; scale: 0.94; }
html.js-anim [data-reveal="pop"]   { translate: 0 0; scale: 0.4; }

html.js-anim [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Prozess-Linie zeichnet sich von oben nach unten */
html.js-anim .step::before,
html.js-anim .step::after {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(0.45, 0, 0.2, 1) 0.25s;
}

html.js-anim .step.is-drawn::before,
html.js-anim .step.is-drawn::after {
  clip-path: inset(0 0 0 0);
}

html.js-anim .step.is-drawn::after {
  transition-delay: 0.6s;
}

/* ---------- Mobile-Optimierung (Desktop bleibt unverändert) ---------- */

/* Burger-Button, nur auf kleinen Bildschirmen sichtbar */
.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .site-header__inner {
    position: relative;
    flex-wrap: nowrap;
    min-height: 68px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .site-header__logo img {
    height: 56px;
  }

  /* Logo mittig, Burger rechts */
  /* ohne translate zentriert, sonst greift mix-blend-mode am Logo nicht */
  .site-header__logo {
    position: absolute;
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
  }

  .nav-toggle {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.2s;
  }

  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menü klappt unter dem Header auf */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(20, 24, 28, 0.45);
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.25s, translate 0.25s, visibility 0.25s;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .nav__cta,
  .nav .nav__cta:hover {
    justify-content: center;
    margin-top: 20px;
    min-height: 52px;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 72px;
  }

  section {
    scroll-margin-top: 72px;
  }

  /* Hero */
  .hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  .hero__row {
    gap: 44px;
  }

  .hero__actions {
    margin-top: 28px;
    gap: 12px;
  }

  /* Leistungen */
  .services__list {
    gap: 12px;
  }

  .svc {
    gap: 10px;
    padding: 22px 20px;
  }

  .svc h3 {
    font-size: 21px;
    line-height: 27px;
  }

  .svc p {
    font-size: 15px;
    line-height: 24px;
  }

  .svc__link {
    margin-top: 4px;
    min-height: 32px;
  }

  /* Fertigung */
  .production__inner {
    gap: 36px;
  }

  .production__image {
    min-height: 240px;
    flex-basis: 100%;
  }

  .production__content p {
    font-size: 17px;
    line-height: 27px;
  }

  .fact__value {
    font-size: 40px;
  }

  /* Ablauf */
  .process__steps {
    margin-top: 36px;
  }

  /* Galerie & Referenzen */
  .gallery__item .placeholder-label {
    top: 12px;
    left: 12px;
    right: 12px;
    font-size: 11px;
    line-height: 16px;
  }

  .gallery__item figcaption {
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    font-size: 13px;
  }

  .refs {
    margin-top: 56px;
  }

  .quote {
    padding: 28px 22px 24px;
  }

  .quote__text p {
    font-size: 17px;
    line-height: 27px;
  }

  /* Kontakt */
  .contact__inner {
    gap: 40px;
  }

  .contact__lead {
    font-size: 17px;
    line-height: 27px;
  }

  .contact__row {
    padding: 12px 0;
  }

  .contact__row > span:first-child {
    flex-basis: 80px;
  }

  .form {
    flex-basis: 100%;
    padding: 24px 20px;
    gap: 16px;
  }

  .form .btn {
    align-self: stretch;
    justify-content: center;
  }

  .map {
    height: 280px;
  }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

