/* =========================================================
   BÜCHTER SCHIEFERTON — style.css (konsolidierte Fassung)
   ========================================================= */

/* --- Variablen ----------------------------------------- */
:root {
  --red:       #ff0000;
  --red-dark:  #b80000;
  --anthracite: #161616;
  --text:      rgba(22,22,22,.72);
  --muted:     rgba(22,22,22,.56);
  --line:      rgba(22,22,22,.10);
  --white:     #ffffff;
  --offwhite:  #faf7f2;
  --warm:      #f6efe5;
  --clay:      #b55233;
  --radius:    24px;
  --shadow:    0 18px 50px rgba(22,22,22,.10);
  --max:       1200px;
  --font:      Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;

  /* Hero-Hintergrundbild (per JS austauschbar) */
  --hero-bg-image:            url("assets/images/Achmer.png");
  --unternehmen-stage-bg-image: url("assets/images/unternehmen-stage.jpg");
}

/* --- Reset --------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* JS übernimmt exakten Scroll-Offset, daher kein scroll-padding */
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--anthracite);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

/* --- Layout -------------------------------------------- */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* --- Typografie ---------------------------------------- */
h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--anthracite);
  font-size: clamp(2.7rem, 6vw, 6.1rem);
  line-height: .94;
  letter-spacing: -.07em;
}

h2 {
  margin-bottom: 20px;
  color: var(--anthracite);
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h3 {
  margin-bottom: 12px;
  color: var(--anthracite);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}

p {
  color: var(--text);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

.section-lead {
  max-width: 780px;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* --- Buttons ------------------------------------------- */
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(165,31,31,.28);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--anthracite);
  box-shadow: 0 10px 26px rgba(22,22,22,.07);
}

.btn-dark {
  background: var(--anthracite);
  color: var(--white);
}

/* --- Header & Navigation ------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background .25s ease, box-shadow .25s ease;
  overflow: visible;       /* Hamburger-Button nie abschneiden */
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 30px rgba(22,22,22,.06);
}

.nav-wrap {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: visible;       /* Hamburger-Button darf nicht abgeschnitten werden */
  min-width: 0;
}

/* Logo / Brand — Arial Black */
.brand {
  display: flex;
  align-items: center;
  color: var(--red);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  line-height: .9;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand span { display: block; }
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: none;
}

/* Footer-Logo etwas kleiner */
footer .brand {
  display: inline-block;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 28px;
  line-height: .95;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
footer .brand small {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 10px;
  margin-top: 4px;
  line-height: 1;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--red);
  font-size: .92rem;
  font-weight: 800;
}
.nav a {
  position: relative;
  padding: 7px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex: 0 0 auto;          /* nie schrumpfen, nie wachsen */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--red);
  padding: 10px 12px;
  font-weight: 850;
  cursor: pointer;
  position: relative;      /* bleibt im normalen Fluss, nie abgeschnitten */
  z-index: 10;
}

/* --- Hero ---------------------------------------------- */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 82px 0 0;
  background: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 82px 0 0 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.64) 0%, rgba(0,0,0,.36) 34%,
                           rgba(0,0,0,.08) 62%, rgba(0,0,0,.04) 100%),
    var(--hero-bg-image) center center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.hero::after { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 82px);
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 0 54px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-shadow: 0 12px 34px rgba(0,0,0,.35);
}

.hero p {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.hero .eyebrow {
  margin-bottom: 14px;
  color: var(--white);
  font-size: .94rem;
  letter-spacing: .035em;
  text-transform: none;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.hero .eyebrow::before { display: none; }

.hero-actions { display: none; }

/* --- Kennzahlenbalken (Stats) -------------------------- */
/*
   Layout-Ziele:
   - Alle 4 Icons auf exakt gleicher optischer Grundlinie
   - Feste Icon-Spalte (48px), flexibler Textbereich
   - Icons sind SVGs → kein Pixeln
*/
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(80%, 1110px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}

.stat {
  min-height: 92px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  background: transparent;
  border-right: 1px solid rgba(0,0,0,.08);
  box-shadow: none;
}
.stat:last-child { border-right: 0; }

/* Icon-Slot: feste Größe, zentriert */
.stat-icon-slot {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG-Icons: alle gleich groß, keine Sonderregel nötig */
.stat-icon-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent;
}

/* Text-Bereich */
.stat-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat strong {
  display: block;
  margin: 0;
  color: var(--anthracite);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  white-space: nowrap; /* "2 Lagerstätten" bleibt einzeilig */
}

.stat span,
.stat-text span {
  display: block;
  margin: 0;
  color: rgba(22,22,22,.56);
  font-size: clamp(.78rem, .88vw, .9rem);
  font-weight: 700;
  line-height: 1.22;
}

/* --- Sektionen ----------------------------------------- */
section {
  position: relative;
  padding: 78px 0;
  background: var(--white);
}
section,
#unternehmen, #produkte, #lagerstaetten, #qualitaet,
#logistik, #umwelt, #galerie, #kontakt {
  scroll-margin-top: 0;
}

section.soft { background: var(--offwhite); }

.section-head {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

/* --- Unternehmen --------------------------------------- */
.company-copy {
  max-width: none;
  padding: 0;
}

.company-stage {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.42) 42%,
                           rgba(0,0,0,.14) 75%, rgba(0,0,0,.06) 100%),
    var(--unternehmen-stage-bg-image) center center / cover no-repeat;
  box-shadow: 0 20px 60px rgba(22,22,22,.12);
}

.company-stage-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 46px 48px 44px;
}

.company-stage .eyebrow {
  color: var(--white);
  margin-bottom: 22px;
}
.company-stage .eyebrow::before { background: var(--red); }

.company-stage h2 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.05em;
  text-shadow: 0 12px 34px rgba(0,0,0,.28);
}

.company-stage p {
  max-width: 700px;
  color: rgba(255,255,255,.90);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
  margin: 0;
}

.company-feature-wrap { margin-top: 42px; }

.company-subtitle {
  margin: 0 0 18px;
  color: var(--red);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.company-subtitle::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--red);
  margin-top: 10px;
}

.company-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 0;
}

.company-feature {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 24px 20px;
  box-shadow: 0 12px 34px rgba(22,22,22,.05);
  min-height: 190px;
  text-align: center;
}
.company-feature strong {
  display: block;
  margin-bottom: 12px;
  color: var(--anthracite);
  font-size: 1.05rem;
  line-height: 1.18;
}
.company-feature p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--text);
}

/* --- Medien-Karten ------------------------------------- */
.media-card,
.logistics-image,
.pit-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: var(--radius);
  background: var(--warm);
  box-shadow: var(--shadow);
}

.media-card img,
.pit-card img,
.product-card img,
.gallery-card img,
.logistics-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card::after,
.pit-card::after,
.logistics-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.42), transparent 58%);
  pointer-events: none;
}

/* --- Produkte ------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card,
.advantage,
.process-step,
.gallery-card,
.contact-card,
.form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(22,22,22,.08);
}

.product-card figure,
.gallery-card figure {
  margin: 0;
  background: var(--warm);
}

/* Höheres Seitenverhältnis → weniger Upscaling bei kleinen Darstellungen */
.product-card figure { height: 260px; }
.gallery-card figure { height: 220px; }

.product-card .content,
.gallery-card .caption { padding: 24px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(165,31,31,.09);
  color: var(--red-dark);
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 850;
}

/* Produkte-Headline */
.produkte-headline { line-height: 1.02; }
.produkte-headline span { display: block; }

/* --- Lagerstätten -------------------------------------- */
.pits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.pit-card { min-height: 460px; }

.lagerstaetten-title { max-width: 980px; }
.lagerstaetten-title span {
  display: block;
  white-space: nowrap;
}

.pit-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0,0,0,.74), transparent);
}
.pit-content h3,
.pit-content p { color: var(--white); }
.pit-content p { color: rgba(255,255,255,.82); }

.pit-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.pit-meta span {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  padding: 10px;
  color: rgba(255,255,255,.84);
  font-size: .82rem;
  font-weight: 750;
}

/* --- Qualität & Prozess -------------------------------- */
/*
   Grundlinie-Fix:
   - .process-icon hat feste Höhe, alle Icons gleich → gemeinsame Grundlinie
   - .process-step h3 ohne min-height + justify-content → normaler Textfluss
   - h3::after (roter Strich) folgt immer direkt dem Text
   - process-step p ohne min-height → Karten wachsen organisch
*/
.process {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: stretch;
}

.process-step {
  min-height: 360px;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(22,22,22,.08);
}

.process-step .process-content {
  padding: 22px 22px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Icon-Bereich: alle gleich hoch → alle Icons auf gleicher Grundlinie */
.process-icon {
  width: 100%;
  height: 110px;
  flex: 0 0 110px;
  display: flex;
  align-items: center;             /* alle Icons visuell zentriert – Inhalt liegt bei y≈32 */
  justify-content: center;
  margin-bottom: 16px;
  background: transparent;
}

.process-icon img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: transparent;
}

/* Icons 2, 4, 6 sind Linienzeichnungen – wirken optisch kleiner als ausgefüllte Icons
   → 20 % größer für visuell gleiches Gewicht (96px statt 80px) */
.process .process-step:nth-child(even) .process-icon img {
  width: 140px;
  height: 140px;
}

.process .process-step:nth-child(7) .process-icon img {
  width: 90px;
  height: 90px;
}

/* Überschrift: normaler Fluss, kein min-height */
.process-step h3 {
  width: 100%;
  margin: 0 0 10px;
  font-size: .99rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* Roter Strich: feste Position direkt nach dem Titeltext.
   Kein min-height / justify-content → Strich liegt immer auf gleicher Höhe */
.process-step h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--red);
  margin-top: 10px;
}

.process-step p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--text);
}

.process-step figure {
  margin: 0;
  margin-top: auto; /* schiebt Bild nach unten */
  height: 140px;
  flex: 0 0 140px;
  background: var(--warm);
  overflow: hidden;
}
.process-step figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Vorteile ------------------------------------------ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.advantage { min-height: 176px; padding: 24px; }
.advantage .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
}

/* --- Logistik ------------------------------------------ */
.logistics {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.logistics-image { min-height: 460px; }

.logistics-copy,
.environment-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--offwhite);
  padding: 40px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}
.check-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* --- Umwelt -------------------------------------------- */
.environment-box {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 48px;
}
.environment-box::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(165,31,31,.08);
  filter: blur(20px);
}
.environment-box > * { position: relative; z-index: 1; }

.environment-image-wide {
  margin: 22px 0 0;
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm);
  box-shadow: 0 14px 40px rgba(22,22,22,.08);
}
.environment-image-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Galerie ------------------------------------------- */
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--anthracite);
  padding: 10px 14px;
  font-weight: 850;
  cursor: pointer;
}
.filter-btn.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.gallery-card .caption { padding: 18px; }
.gallery-card h3 { margin: 0 0 4px; font-size: 1rem; }
.gallery-card p { margin: 0; font-size: .88rem; }

/* --- Kontakt ------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-card { padding: 32px; }

.contact-lines {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.contact-lines a,
.contact-lines span {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: rgba(22,22,22,.78);
  font-weight: 750;
}

/* --- Legal --------------------------------------------- */
.legal-section { background: var(--white); }
.legal-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--offwhite);
  padding: 42px;
  box-shadow: 0 14px 40px rgba(22,22,22,.05);
}
.legal-box h2 { margin-bottom: 26px; }
.legal-box h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.legal-box p {
  max-width: 940px;
  margin-bottom: 14px;
}

/* --- Footer -------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--offwhite);
  color: var(--anthracite);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .75fr .75fr .9fr;
  gap: 30px;
  margin-bottom: 42px;
}
.footer-grid h3 { margin-bottom: 14px; font-size: 1rem; }
.footer-grid a,
.footer-grid span,
.footer-grid p {
  display: block;
  margin-bottom: 8px;
  color: rgba(22,22,22,.62);
  font-size: .95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: rgba(22,22,22,.52);
  font-size: .88rem;
}

/* --- Timeline ------------------------------------------ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 20px;
}
.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.45rem;
  line-height: 1;
}
.timeline-item span { color: var(--muted); font-weight: 700; }

/* --- Reveal-Animation ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Formular ------------------------------------------ */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px;
}
.form label {
  display: grid;
  gap: 7px;
  color: var(--anthracite);
  font-size: .86rem;
  font-weight: 850;
}
.form input,
.form textarea,
.form select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf8f3;
  color: var(--anthracite);
  padding: 13px 14px;
  outline: none;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(165,31,31,.11);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .full { grid-column: 1 / -1; }

.privacy-note {
  margin: 0;
  color: rgba(22,22,22,.58);
  font-size: .82rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* --- Tablet (≤1320px) ---------------------------------- */
@media (max-width: 1320px) {
  .brand { font-size: 38px; }
}


/* --- Stats 2×2 (≤860px) -------------------------------- */
@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    width: min(94%, 980px);
  }
  /* Borders für 2×2 Grid neu setzen */
  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .stat:nth-child(odd)  { border-right: 1px solid rgba(0,0,0,.08); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --- Tablet (≤1060px) ---------------------------------- */
@media (max-width: 1060px) {
  /* Mobiles Menü */
  .nav {
    position: fixed;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    padding: 22px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .mobile-toggle { display: inline-flex; }

  .brand { font-size: 36px; }
  .brand small { font-size: 12px; }

  section { padding: 64px 0; }

  .section-head,
  .split,
  .company-intro,
  .logistics,
  .environment-box,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cards,
  .advantages-grid,
  .company-feature-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-stage-content { padding: 44px 34px 40px; }
  .company-stage,
  .pit-card,
  .logistics-image { min-height: 360px; }

  .process,
  .timeline { grid-template-columns: repeat(2, 1fr); }

  .hero-content {
    max-width: none;
    padding: 44px 0 44px;
  }

  .hero::before {
    inset: 82px 0 0 0;
    background:
      linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.38) 48%,
                             rgba(0,0,0,.08) 100%),
      var(--hero-bg-image) center center / cover no-repeat;
  }

  /* Stats */
  .stats { width: min(90%, 980px); }
  .stat { padding: 16px 20px; gap: 14px; }
  .stat-icon-img { width: 40px; height: 40px; }
}

/* --- Mobil (≤720px) ------------------------------------ */
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }

  /* Header: brand schrumpft, Hamburger bleibt immer sichtbar */
  .nav-wrap {
    height: 76px;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 100px); /* Platz für Hamburger sicherstellen */
  }
  .brand small { font-size: 9px; margin-top: 5px; }

  section { padding: 54px 0; }

  .hero { min-height: 100svh; padding: 76px 0 0; }
  .hero::before {
    inset: 76px 0 0 0;
    background:
      linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.42) 58%,
                             rgba(0,0,0,.10) 100%),
      var(--hero-bg-image) center center / cover no-repeat;
  }
  .hero-content { min-height: calc(100svh - 76px); }
  .hero h1 { font-size: 34px; }

  h2 { font-size: 32px; }

  /* Stats mobil: alle 4 Kennzahlen untereinander */
  .stats {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .stat {
    min-height: 70px;
    padding: 12px 16px;
    gap: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .stat:nth-child(odd) {
    border-right: 0;
  }
  .stat-icon-slot {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
  .stat-icon-img {
    width: 34px;
    height: 34px;
  }
  .stat strong {
    font-size: .95rem;
    line-height: 1.08;
    white-space: normal;
  }
  .stat span,
  .stat-text span {
    font-size: .78rem;
    line-height: 1.18;
  }

  /* Grids */
  .cards,
  .advantages-grid,
  .company-feature-grid,
  .pits-grid,
  .gallery-grid,
  .timeline,
  .process,
  .footer-grid,
  .form { grid-template-columns: 1fr; }

  .media-card,
  .logistics-image,
  .pit-card { min-height: 380px; }

  .environment-box,
  .logistics-copy,
  .contact-card,
  .form { padding: 24px; }

  .company-stage { min-height: auto; }
  .company-stage-content { padding: 34px 24px 32px; }

  .footer-bottom { flex-direction: column; }
  footer .brand { font-size: 20px; }
  footer .brand small { font-size: 9px; }

  /* Prozess-Icons mobil */
  .process-icon { height: 88px; flex: 0 0 88px; }
  .process-icon img { width: 96px; height: 96px; }
  .process .process-step:nth-child(even) .process-icon img {
    width: 112px;
    height: 112px;
  }
}

/* --- Ladeperformance ----------------------------------- */
/* Sections layoutmäßig isolieren → schnelleres Reflow */
section { contain: layout style; }
/* Galerie-Grid: content-visibility für off-screen Elemente */
.gallery-grid { content-visibility: auto; contain-intrinsic-size: 0 1400px; }
.process      { content-visibility: auto; contain-intrinsic-size: 0 500px; }
