/* Baggerdienstleistung Schnabel · Stile nach dem Figma-Entwurf (1900 px breit, Inhalt 1400 px) */

:root {
  --dunkel: #141414;
  --dunkel-2: #1a1a1a;
  --dunkel-3: #1f1f1f;
  --navy: #1d2834;
  --gelb: #f5b800;
  --gelb-2: #f4c70a;
  --text: #1a1a1a;
  --grau: #6b707a;
  --grau-2: #5c6675;
  --grau-hell: #ccc;
  --grau-dunkel: #a8a8b2;
  --rand: #e3e5e8;
  --flaeche: #f2f2f2;
  --kopf-hoehe: 78px;
  --bereich: 1400px;
  --rand-aussen: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: calc(var(--kopf-hoehe) + 8px); }
body {
  margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 1rem; line-height: 1.6;
  color: var(--text); background: #fff;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; }
.bereich { width: min(var(--bereich), 100% - 2 * var(--rand-aussen)); margin-inline: auto; }
.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprungmarke {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gelb); color: var(--dunkel); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top 0.15s;
}
.sprungmarke:focus { top: 12px; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
.dunkel :where(a, button):focus-visible { outline-color: #fff; }

/* Ueberzeile mit gelbem Quadrat, Ueberschriften */
.ober {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9375rem; font-weight: 600; color: var(--navy); line-height: 1.2;
}
.ober::before { content: ""; flex: none; width: 15px; height: 15px; border-radius: 3px; background: var(--gelb); }
.ober--klein { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.ober--klein::before { width: 15px; height: 15px; }
.ober--gross { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; gap: 8px; }
.ober--gross::before { width: 12px; height: 12px; border-radius: 2px; }
.dunkel .ober { color: #fff; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1.12; color: var(--text); letter-spacing: -0.01em; }
h2.schlank { font-weight: 600; line-height: 1.06; color: var(--navy); }
h2.fett { font-weight: 700; line-height: 1.14; }
.kopfzeile { display: grid; gap: 20px 60px; align-items: center; }
.kopfzeile__text { font-size: 0.97rem; line-height: 1.65; color: #6b7280; max-width: 470px; }
.kopfzeile .ober { margin-bottom: 20px; }
.leistungen .kopfzeile__text { font-size: 1.03rem; max-width: 376px; }
.karriere .kopfzeile__text { max-width: 437px; }
@media (min-width: 900px) {
  .kopfzeile { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
  .kopfzeile__text { justify-self: end; }
}

/* Knoepfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 15px 17px 28px; border-radius: 8px; border: 0;
  background: var(--gelb); color: var(--dunkel); font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { background: #ffc61a; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(245, 184, 0, 0.75); }
.knopf:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.08s; }
.knopf:focus-visible, .karten__knopf:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.knopf__kreis { transition: transform 0.25s; }
.knopf:hover .knopf__kreis { transform: translateX(4px); }
.knopf__kreis {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--dunkel); color: var(--gelb);
}
.knopf--schlicht { padding: 18px 40px; font-weight: 700; }
.knopf--rand { background: transparent; color: #fff; border: 1.5px solid #fff; }
.knopf--rand:hover { background: #fff; color: var(--dunkel); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6); }
.knopf--klein { padding: 16px 15px 16px 28px; font-size: 0.906rem; }
.knopf--klein .knopf__kreis { width: 25px; height: 25px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--dunkel); color: #fff; }
.kopf--gescrollt { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--kopf-hoehe); }
.kopf__logo { display: block; padding: 5px 0 7px; }
.kopf__logo img { width: 107px; height: auto; }
.kopf__schalter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; background: none; border: 1px solid #333; border-radius: 10px;
  color: #fff; cursor: pointer;
}
.kopf__schalter-zu { display: none; }
.kopf--offen .kopf__schalter-auf { display: none; }
.kopf--offen .kopf__schalter-zu { display: block; }
.kopf__nav a { font-size: 0.875rem; font-weight: 500; color: var(--grau-hell); text-decoration: none; }
.kopf__nav a:hover, .kopf__nav a[aria-current] { color: #fff; }
.kopf__nav a.kopf__kontakt { color: var(--gelb-2); }
.kopf__gruppe { position: relative; display: flex; align-items: center; gap: 6px; }
.kopf__pfeil {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0;
  font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--grau-hell); cursor: pointer;
}
.kopf__pfeil:hover, .kopf__pfeil--aktiv, .kopf__gruppe--offen .kopf__pfeil { color: #fff; }
.kopf__gruppe--offen .kopf__pfeil svg { transform: rotate(180deg); }
.kopf__unter a { display: block; }
@media (max-width: 899px) {
  .kopf__nav {
    position: fixed; inset: var(--kopf-hoehe) 0 auto; z-index: 40;
    display: none; flex-direction: column; gap: 18px;
    padding: 22px var(--rand-aussen) 30px; background: var(--dunkel);
    border-top: 1px solid #2d2d2d; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - var(--kopf-hoehe)); overflow-y: auto;
  }
  .kopf--offen .kopf__nav { display: flex; }
  .kopf__nav a, .kopf__pfeil { font-size: 1.05rem; }
  .kopf__gruppe { flex-wrap: wrap; }
  .kopf__unter { display: none; flex-basis: 100%; flex-direction: column; gap: 12px; padding: 12px 0 4px 14px; }
  .kopf__gruppe--offen .kopf__unter { display: flex; }
  .kopf__unter a { font-size: 0.98rem; }
  body.menue-offen { overflow: hidden; }
}
@media (min-width: 900px) {
  .kopf__schalter { display: none; }
  .kopf__nav { display: flex; align-items: center; gap: 40px; }
  .kopf__unter {
    position: absolute; top: 100%; left: -18px; z-index: 60;
    display: none; flex-direction: column; gap: 12px; min-width: 260px;
    margin-top: 14px; padding: 18px; background: var(--dunkel-3); border: 1px solid #333;
    border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .kopf__unter::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
  .kopf__gruppe:hover .kopf__unter, .kopf__gruppe--offen .kopf__unter { display: flex; }
}

/* Hero der Startseite */
.hero {
  position: relative; display: grid; align-items: center; background: var(--dunkel); color: #fff;
  min-height: min(880px, 92vh); overflow: hidden;
}
.hero__bild, .hero__bild img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bild img { object-fit: cover; object-position: 45% 50%; }
.hero__bild::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.hero__innen { position: relative; padding: clamp(60px, 10vw, 150px) 0 clamp(60px, 9vw, 130px); }
.hero__text { max-width: 650px; margin-left: auto; }
.hero__ober { font-size: 0.78rem; letter-spacing: 0.04em; color: #fff; margin-bottom: 23px; }
.hero h1 {
  font-size: clamp(2.6rem, 1rem + 5vw, 4.5rem); font-weight: 700; line-height: 1.05; text-transform: uppercase;
  letter-spacing: -0.005em;
}
.hero h1 span { display: block; margin-bottom: 0.15em; }
.hero__absatz { max-width: 587px; margin-top: 23px; font-size: 0.875rem; line-height: 1.7; color: var(--grau-hell); }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
/* Im Entwurf steht der Textblock bei x 1115 von 1900 und ragt rechts ueber das 1400er Raster hinaus */
@media (min-width: 1700px) { .hero__text { margin-right: calc(-1 * min(115px, (100vw - 1400px) / 2 - 30px)); } }
@media (max-width: 699px) {
  .hero { min-height: 0; }
  .hero__innen { padding: 56px 0 64px; }
  .hero__absatz { margin-top: 28px; }
  /* Handy: Bild stärker abdunkeln, Eyebrow als ruhiges Label, Fließtext heller, Knöpfe gleich breit */
  .hero__bild::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.72) 100%); }
  .hero__ober { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.8; color: var(--gelb); text-wrap: balance; margin-bottom: 18px; }
  .hero__ober span { white-space: nowrap; }
  .hero__absatz { color: #fff; font-size: 0.95rem; line-height: 1.65; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
  .hero__knoepfe { flex-direction: column; gap: 12px; margin-top: 28px; }
  .hero__knoepfe .knopf { justify-content: center; text-align: center; }
}

/* Warum Schnabel (dunkel) */
.dunkel { background: var(--dunkel); color: #fff; }
.warum { padding: clamp(60px, 7vw, 100px) 0; }
.warum__innen { display: grid; gap: 40px 80px; align-items: center; }
.warum__bild { border-radius: 20px; overflow: hidden; background: #2a2a2a; aspect-ratio: 420 / 436; }
.warum__bild img { width: 100%; height: 100%; object-fit: cover; }
.warum .ober { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; gap: 8px; }
.warum .ober::before { width: 12px; height: 12px; }
.warum h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.19rem); line-height: 1.12; max-width: 500px; margin-top: 20px; }
.zahlen { display: grid; gap: 18px; margin-top: 48px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.zahl {
  display: grid; align-content: center; gap: 14px; min-height: 155px; padding: 24px 16px; text-align: center;
  background: var(--dunkel-3); border: 1px solid #333; border-radius: 14px;
}
.zahl strong { font-size: clamp(2.4rem, 2rem + 1.2vw, 3.44rem); font-weight: 700; line-height: 1; color: var(--gelb); }
.zahl span { font-size: 1rem; font-weight: 700; color: #f8f9fa; }
.zahl--gelb { background: var(--gelb); border-color: var(--gelb); }
.zahl--gelb strong { color: var(--dunkel-3); font-size: clamp(2.5rem, 2.1rem + 1.3vw, 3.63rem); }
.zahl--gelb span { color: var(--dunkel-2); }
@media (min-width: 900px) { .warum__innen { grid-template-columns: 420px minmax(0, 1fr); } }

/* Leistungskarten (Startseite) */
.leistungen { padding: clamp(60px, 6.5vw, 95px) 0; overflow: hidden; }
.karten { position: relative; margin-top: clamp(48px, 6vw, 100px); }
.karten__band {
  display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 20px 0 10px; margin: -20px 0 -10px;
  /* bis an den Bildschirmrand wie im Entwurf */
  padding-inline: var(--rand-aussen); margin-inline: calc(50% - 50vw);
  /* Karten rasten an der Rasterkante ein, so steht die zweite Karte wie im Entwurf buendig bei 250 px */
  scroll-padding-inline: calc((100% - min(1400px, 100% - 2 * var(--rand-aussen))) / 2);
}
.karten__band--lauf { scroll-snap-type: none; }
.karten__band::-webkit-scrollbar { display: none; }
.karte {
  position: relative; flex: 0 0 min(685px, 100% - 30px); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 450px; padding: 34px 34px 32px; border-radius: 26px; background: var(--flaeche);
  color: inherit; text-decoration: none;
}
.karte h3 { font-size: 1.69rem; font-weight: 600; line-height: 1.18; color: var(--navy); max-width: calc(57.2% - 95px); }
.karte__unter { margin-top: 10px; font-size: 0.84rem; font-weight: 500; color: #5f6775; max-width: 70%; }
.karte__bild { height: 250px; border-radius: 16px; overflow: hidden; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
/* Kerbe mit gelbem Kreis und Pfeil, Lage wie im Entwurf (x 392 von 685) */
.karte__kerbe {
  position: absolute; top: -16px; left: calc(57.2% - 47px); width: 94px; height: 94px; border-radius: 50%; background: #fff;
}
.karte__kreis {
  position: absolute; top: -6px; left: calc(57.2% - 47px + 12px); display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%; background: var(--gelb-2); color: #fff; transition: transform 0.2s;
}
.karte:hover .karte__kreis { transform: scale(1.06); }
.karten__knoepfe { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.karten__knopf {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rand);
  background: #fff; color: var(--navy); cursor: pointer;
}
.karten__knopf { transition: background 0.2s, border-color 0.2s, transform 0.2s; -webkit-tap-highlight-color: transparent; }
.karten__knopf:hover { background: var(--gelb); border-color: var(--gelb); transform: scale(1.06); }
.karten__knopf:active { transform: scale(0.92); transition-duration: 0.08s; }
@media (max-width: 699px) {
  .karte { min-height: 0; padding: 28px 24px 24px; gap: 20px; }
  .karte h3 { font-size: 1.4rem; max-width: 60%; }
  .karte__unter { max-width: 75%; }
  .karte__bild { height: 200px; }
  .karte__kerbe { left: auto; right: 16px; }
  .karte__kreis { left: auto; right: 28px; }
}

/* Projekte (Startseite) */
.projekte { padding: clamp(70px, 8.5vw, 130px) 0; }
.leistungen:has(+ .projekte) { padding-bottom: clamp(30px, 3vw, 44px); }
.leistungen + .projekte { padding-top: clamp(24px, 2.5vw, 40px); } /* Rueckmeldung 12.10.2026: Abstand nach dem Kartenband zu gross */
.projekte .kopfzeile__text { text-align: left; }
/* wie im Entwurf: Text und Knopf buendig untereinander am Anfang der rechten Spalte, oben ausgerichtet */
.projekte__intro { display: grid; gap: 28px; justify-items: start; }
@media (min-width: 900px) {
  .projekte .kopfzeile { align-items: start; }
  .projekte__intro { justify-self: end; width: min(470px, 100%); }
  .projekte .kopfzeile__text { justify-self: start; }
}
.projekte__raster { display: grid; gap: 30px; margin-top: clamp(40px, 4.2vw, 64px); }
.projekte__reihe { display: grid; gap: 30px; }
.projekte__reihe img { width: 100%; height: 382px; object-fit: cover; border-radius: 20px; }
@media (min-width: 700px) {
  .projekte__reihe--1 { grid-template-columns: 458fr 546fr 336fr; }
  .projekte__reihe--2 { grid-template-columns: 540fr 426fr 374fr; }
}
@media (max-width: 699px) { .projekte__reihe img { height: 260px; } }

/* Kundenstimme */
.kunden { padding: 0 0 clamp(50px, 5vw, 70px); }
.kunden__innen { position: relative; display: grid; gap: 40px 112px; align-items: start; }
.kunden__bild { border-radius: 24px; overflow: hidden; aspect-ratio: 420 / 505; }
.kunden__bild img { width: 100%; height: 100%; object-fit: cover; }
.kunden__text { position: relative; padding-top: clamp(0px, 3.5vw, 53px); }
.kunden h2 { margin-top: 39px; font-weight: 700; line-height: 1.1; }
.kunden__sterne { display: flex; gap: 8px; margin-top: 44px; color: var(--gelb); }
.kunden blockquote { margin: 36px 0 0; max-width: 706px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-style: italic; font-weight: 500; line-height: 1.5; color: var(--navy); }
.kunden__name { margin-top: 40px; font-size: 1.19rem; font-weight: 700; color: var(--navy); }
.kunden__zeichen {
  position: absolute; right: 0; top: 0; font-size: clamp(8rem, 13vw, 15.6rem); font-weight: 700; line-height: 1;
  letter-spacing: -0.06em; color: var(--flaeche); pointer-events: none; user-select: none;
}
@media (min-width: 900px) {
  .kunden__innen { grid-template-columns: 420px minmax(0, 1fr); }
  .kunden__zeichen { right: auto; left: min(520px, 62%); }
}

/* Karriere (Startseite) */
.karriere { padding: clamp(70px, 8.5vw, 130px) 0 clamp(60px, 6.5vw, 100px); }
.stellen { display: grid; gap: 24px; margin-top: 56px; }
.stelle {
  display: grid; gap: 16px 30px; align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px); border: 1px solid var(--rand); border-radius: 20px; background: #fff;
}
.stelle__inhalt { display: grid; gap: 16px; justify-items: start; }
.stelle h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.stelle p { font-size: 0.9375rem; line-height: 1.68; color: var(--grau-2); max-width: 725px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--flaeche); font-size: 0.78rem; font-weight: 500; color: #59616b; }
.chip--gelb { background: var(--gelb); color: var(--dunkel); }
@media (min-width: 900px) { .stelle { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 1200px) { .stelle .knopf { margin-right: clamp(0px, 20vw - 240px, 142px); } }

/* CTA-Abschnitt */
.cta { background: var(--dunkel); padding: 80px 0; color: #fff; }
.cta__innen { position: relative; display: grid; align-items: center; min-height: 360px; }
.cta--hoch .cta__innen { min-height: 460px; }
.cta__bild { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; }
.cta__bild img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.cta--voll .cta__bild img { opacity: 1; }
.cta__karte {
  position: relative; justify-self: end; width: min(560px, 100%); margin: 18px 10%; padding: 48px 50px;
  border-radius: 26px; background: var(--dunkel); display: grid; gap: 22px; justify-items: start;
}
.cta__karte h2 { color: #fff; font-weight: 700; line-height: 1.16; }
.cta__karte p { font-size: 0.97rem; line-height: 1.65; color: #99a3b2; max-width: 446px; }
.cta--karriere .cta__karte { width: min(618px, 100%); margin-right: 6.9%; gap: 16px; padding-top: 32px; }
.cta--karriere .cta__karte h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.875rem); font-weight: 800; line-height: 1.1; }
.cta--karriere .cta__karte p { font-size: 1.0625rem; color: var(--grau-dunkel); max-width: 504px; }
.cta__karte p.cta__person { font-size: 0.9375rem; font-weight: 500; color: #d1d1d9; max-width: none; }
@media (max-width: 899px) {
  .cta { padding: 48px 0; }
  .cta__innen { min-height: 0; }
  /* Bild steht über der Karte statt dahinter: ganz zeigen (Seitenverhältnis des Fotos), unabgedunkelt */
  .cta__bild { position: relative; aspect-ratio: 800 / 448; }
  .cta__bild img { opacity: 1; }
  .cta__karte, .cta--karriere .cta__karte { position: relative; width: 100%; margin: 0; padding: 28px 0 0; background: none; }
}

/* Fuss */
.fuss { background: var(--dunkel); color: var(--grau-hell); padding: 40px 0; font-size: 0.875rem; }
.fuss__logo { display: inline-block; }
.fuss__logo img { width: 212px; height: auto; }
.fuss__raster { display: grid; gap: 36px 48px; margin-top: 44px; }
.fuss__marke { line-height: 1.6; max-width: 330px; }
.fuss h2 { font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.fuss ul { list-style: none; padding: 0; display: grid; gap: 16px; }
.fuss a { color: var(--grau-hell); text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss__kontakt p + p { margin-top: 16px; }
.fuss__kontakt p a { color: var(--gelb); font-weight: 700; }
.fuss__kontakt p a.fuss__adresse { color: var(--grau-hell); font-weight: 400; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.fuss__kontakt p a.fuss__adresse:hover { color: #fff; text-decoration-color: var(--gelb); }
.fuss__unten {
  display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid #2d2d2d; font-size: 0.8125rem;
}
.fuss__unten a { text-decoration: underline; text-underline-offset: 3px; }
.fuss__contentura img { width: 120px; height: auto; }
/* Handy: Navigation und Leistungen nebeneinander, Text und Kontakt über die volle Breite */
@media (max-width: 699px) {
  .fuss__raster { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .fuss__marke, .fuss__kontakt { grid-column: 1 / -1; }
  .fuss ul { gap: 12px; }
  .fuss ul a { display: inline-block; padding: 2px 0; line-height: 1.35; }
  .fuss h2 { margin-bottom: 14px; }
}
@media (min-width: 700px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .fuss__raster { grid-template-columns: repeat(4, 1fr); } }

/* Kopfbereich der Unterseiten */
.kopfbild { background: var(--dunkel); color: #fff; padding: clamp(36px, 3vw, 56px) 0 clamp(56px, 4.7vw, 90px); }
.kopfbild__zeile { display: grid; gap: 20px 80px; align-items: center; }
.kopfbild h1 { font-size: clamp(2.3rem, 1.6rem + 2vw, 3.125rem); font-weight: 800; line-height: 1.06; }
.kopfbild__text { font-size: 1.125rem; line-height: 1.62; color: var(--grau-dunkel); max-width: 560px; }
.kopfbild__foto { margin-top: 56px; border-radius: 20px; overflow: hidden; aspect-ratio: 1400 / 490; }
.kopfbild__foto--eckig { border-radius: 8px; }
.kopfbild__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .kopfbild__zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kopfbild__text {
    justify-self: start;
    /* zweite Rasterspalte beginnt bei 990 (660 breit, Spaltenabstand 80) */
    margin-left: calc((var(--x, 1090) - 990) / 660 * 100%);
    max-width: calc((var(--w, 560) + 14) / 660 * 100%);
    font-size: calc(var(--s, 18) * 1px);
  }
}
@media (max-width: 699px) {
  .kopfbild__foto { margin-top: 32px; aspect-ratio: 4 / 3; }
}

/* Intro-Block der Leistungsseiten (Foto links, Text rechts) */
.intro { padding: clamp(60px, 5.3vw, 100px) 0 clamp(56px, 4.6vw, 88px); }
.intro__innen { display: grid; gap: 40px 112px; align-items: center; }
.intro__bild { border-radius: 20px; overflow: hidden; aspect-ratio: 432 / 335; }
.intro__bild img { width: 100%; height: 100%; object-fit: cover; }
.intro__text { display: grid; gap: 30px; justify-items: start; max-width: 860px; }
.intro__text h2 { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.125rem); line-height: 1.14; max-width: 566px; }
.intro__text p:not(.ober) { font-size: 1.03rem; line-height: 1.65; color: var(--grau); max-width: calc(var(--w, 506) * 1px + 14px); }
.intro--eng { padding-bottom: 0; } /* Galabau, Tiefbau, Gueterverkehr: 60 px bis „Im Detail" wie in der PDF, Baggerarbeiten 148 */
@media (min-width: 900px) { .intro__innen { grid-template-columns: 432px minmax(0, 1fr); } }

/* Detailkarten */
.detail { padding: clamp(40px, 3.2vw, 60px) 0 clamp(60px, 5.3vw, 100px); }
.detail__raster { display: grid; gap: 24px; margin-top: 36px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(292px, 100%), 1fr)); }
.detailkarte { display: grid; gap: 14px; align-content: start; padding: 16px 16px 24px; border: 1px solid var(--rand); border-radius: 16px; background: #fff; }
.detailkarte__bild { height: 175px; border-radius: 10px; overflow: hidden; }
.detailkarte__bild img { width: 100%; height: 100%; object-fit: cover; }
.detailkarte h3 { padding: 0 6px; font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.detailkarte p { padding: 0 6px; font-size: 0.84rem; line-height: 1.52; color: var(--grau); }
@media (min-width: 1200px) { .detail__raster { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1368px; } } /* Reihe endet wie in der PDF bei x 1618 */
.orte { margin-top: 36px; font-size: 0.9rem; color: var(--grau); }
.orte a { color: inherit; text-decoration: none; }
.orte a:hover, .orte a:focus-visible { color: var(--text); text-decoration: underline; text-decoration-color: var(--gelb); text-underline-offset: 3px; }

/* Ueber uns */
.ueber { padding-top: clamp(70px, 6.3vw, 120px); }
.ueber__innen { display: grid; gap: 40px 80px; align-items: center; }
.ueber__bild { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 660 / 444; }
.ueber__bild img { width: 100%; height: 100%; object-fit: cover; }
.ueber__bild::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, 0.15); }
.ueber__text { display: grid; gap: 28px; }
.ueber__text .ober { color: var(--navy); margin-bottom: -12px; }
.ueber__text h2 { line-height: 1.15; }
.ueber__text p { font-size: 1rem; line-height: 1.7; color: var(--grau-2); max-width: 665px; }
.werte { display: grid; gap: 24px 32px; margin-top: 10px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.werte h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--navy); }
.werte svg { flex: none; color: var(--gelb); }
.werte p { margin-top: 8px; font-size: 0.875rem; color: var(--grau-2); }
@media (min-width: 900px) { .ueber__innen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vorteile { padding: clamp(70px, 6.3vw, 120px) 0; }
.vorteile h2 { color: var(--navy); margin-top: 16px; }
.vorteile__text { margin-top: 16px; font-size: 1.125rem; line-height: 1.6; color: var(--grau-2); }
.usps { display: grid; gap: 32px; margin-top: 64px; padding: 0; list-style: none; }
.usp { display: grid; gap: 16px; padding: 32px; border: 1px solid var(--rand); border-radius: 8px; }
.usp h3 { display: flex; align-items: center; gap: 16px; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.symbol { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 6px; background: var(--gelb); color: var(--dunkel-2); }
.usp p { font-size: 0.9375rem; line-height: 1.6; color: var(--grau-2); max-width: 420px; }
@media (min-width: 800px) { .usps { grid-template-columns: 1fr 1fr; } }

/* Karriere-Seite */
.vorzuege { padding: clamp(60px, 5vw, 95px) 0; }
.vorzuege h2, .offene h2 { margin-top: 14px; line-height: 1.1; }
.vorzuege__raster { display: grid; gap: 20px; margin-top: 48px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.vorzug { display: grid; gap: 14px; align-content: start; padding: 28px 26px; border: 1px solid var(--rand); border-radius: 16px; }
.vorzug .symbol { border-radius: 12px; color: #fff; }
.vorzug h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.vorzug p { font-size: 0.84rem; line-height: 1.52; color: var(--grau); }
@media (min-width: 1100px) { .vorzuege__raster { grid-template-columns: repeat(4, 1fr); } }
.offene { padding: clamp(60px, 5.3vw, 100px) 0 clamp(80px, 7.9vw, 150px); }
.angebote { display: grid; gap: 44px; margin-top: 44px; }
.angebot { display: grid; gap: 28px; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px); border: 1px solid var(--rand); border-radius: 8px; scroll-margin-top: 100px; }
.angebot__kopf { display: grid; gap: 20px 24px; align-items: center; }
.angebot__kopf > div { display: grid; gap: 20px; }
.angebot h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 800; line-height: 1.12; }
.angebot .chip { font-weight: 600; color: #666b75; }
.angebot .chip--gelb { color: var(--dunkel); }
.angebot__text { font-size: 1rem; line-height: 1.62; color: var(--grau); max-width: 580px; }
.angebot hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--rand); }
.angebot__spalten { display: grid; gap: 28px 56px; }
.angebot h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 14px; }
.haken { display: grid; gap: 14px; padding: 0; list-style: none; }
.haken li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.45; color: #474d57; }
.haken li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gelb);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.9 7.3l2.9 2.9 5.3-6.1'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
@media (min-width: 800px) { .angebot__kopf { grid-template-columns: minmax(0, 1fr) auto; } .angebot__spalten { grid-template-columns: 1fr 1fr; } }
/* Handy: Bewerben-Knopf ans Ende der Stellenkarte, nach Aufgaben und Profil */
@media (max-width: 799px) {
  .angebot__kopf { display: contents; }
  .angebot__kopf > .knopf { order: 1; margin-top: 4px; }
}

/* Referenzen */
.galerie { padding: clamp(40px, 3vw, 34px) 0 clamp(60px, 5vw, 34px); }
.galerie__raster { display: grid; gap: 40px 25px; padding: 0; margin: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
@media (min-width: 1000px) { .galerie__raster { grid-template-columns: repeat(3, 1fr); } }
.kachel__knopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.kachel__knopf img { width: 100%; aspect-ratio: 450 / 568; object-fit: cover; }
.lupe[hidden] { display: none; }
.lupe {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 20, 20, 0.94); padding: 24px;
}
body.lupe-offen { overflow: hidden; }
.lupe__figur { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lupe__bild { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lupe__text { color: rgba(255, 255, 255, 0.86); font-size: 0.9rem; margin-top: 14px; }
.lupe__knopf {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--gelb); color: var(--dunkel); cursor: pointer;
}
.lupe__zu { top: 20px; right: 20px; }
.lupe__zurueck { left: 20px; top: 50%; transform: translateY(-50%); }
.lupe__vor { right: 20px; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.kontakt { padding: clamp(50px, 3.5vw, 65px) 0 clamp(70px, 5vw, 90px); }
.kontakt__innen { display: grid; gap: 48px 60px; align-items: start; }
.kontakt .ober { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #161618; gap: 10px; }
.kontakt .ober::before { width: 14px; height: 14px; border-radius: 4px; background: var(--gelb-2); }
.kontakt h2 { margin-top: 14px; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.375rem); line-height: 1.04; color: #161618; }
.kontakt__vorspann { margin-top: 24px; font-size: 1rem; line-height: 1.5; color: #6b6b75; max-width: 620px; }
.formular { display: grid; gap: 18px; margin-top: 52px; max-width: 620px; }
.formular__paar { display: grid; gap: 18px 36px; }
@media (min-width: 600px) { .formular__paar { grid-template-columns: 1fr 1fr; } }
.feld { display: grid; gap: 8px; }
.feld label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; color: #161618; }
.feld input, .feld textarea {
  width: 100%; padding: 14px 17px; font: inherit; font-size: 0.9375rem; color: #161618;
  background: #f7f7f8; border: 1px solid #dbdbe3; border-radius: 8px;
}
.feld input::placeholder, .feld textarea::placeholder { color: #75757f; }
.feld textarea { min-height: 118px; resize: vertical; }
.formular__hinweis { font-size: 0.8125rem; line-height: 1.5; color: #6b6b75; }
.formular__hinweis a { color: #161618; }
.formular .knopf { margin-top: 8px; justify-self: start; }
.kontaktkarte {
  width: min(620px, 100%); justify-self: end;
  display: grid; gap: 20px; justify-items: start; padding: clamp(28px, 3vw, 48px); border-radius: 8px;
  background: var(--dunkel); color: #fff; margin-top: clamp(0px, 8vw, 122px);
}
.kontaktkarte h2 { color: #fff; font-size: 1.625rem; margin: 0; line-height: 1.2; }
.kontaktkarte > p { font-size: 0.875rem; line-height: 1.5; color: var(--grau-dunkel); }
.kontaktkarte dl { display: grid; gap: 28px; margin: 8px 0 0; }
.kontaktkarte dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gelb-2); }
.kontaktkarte dd { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.kontaktkarte dd a { color: #fff; text-decoration: none; }
.kontaktkarte dd a:hover { color: var(--gelb); }
.kontaktkarte hr { width: 100%; margin: 12px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.kontaktkarte__leistungen { font-size: 0.8125rem; line-height: 1.5; color: var(--grau-dunkel); }
.kontaktkarte__leistungen span { white-space: nowrap; }
.kontaktkarte__route { display: block; margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--gelb); }
@media (min-width: 1000px) { .kontakt__innen { grid-template-columns: minmax(0, 620fr) minmax(0, 620fr); } }

/* Textseiten (Impressum, Datenschutz, Danke, 404) */
.textseite { padding: clamp(50px, 5vw, 90px) 0; }
.textseite .bereich { max-width: 820px; }
.textseite h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; line-height: 1.1; margin-bottom: 28px; }
.textseite h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.textseite h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.textseite h4 { font-size: 1rem; margin: 20px 0 6px; }
.textseite { overflow-wrap: anywhere; }
.textseite p, .textseite li { color: #3a3f47; }
.textseite p + p { margin-top: 1em; }
.textseite ul { padding-left: 1.2em; }
.textseite a { color: var(--text); }
.textseite .knopf { margin-top: 28px; }

/* Aufbau beim Scrollen (skript.html setzt .js-aufbau und markiert die Bausteine) */
.js-aufbau .aufbau { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--verz, 0ms); }
.js-aufbau .aufbau.sichtbar { opacity: 1; transform: none; }

/* Aufbau beim Laden: Kopfbild zoomt leicht zurück, Texte und Knöpfe der Startbühne kommen nacheinander */
@keyframes hero-bild { from { transform: scale(1.08); } to { transform: none; } }
@keyframes hero-rein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__bild img { animation: hero-bild 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__text > * { animation: hero-rein 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__text > :nth-child(1) { animation-delay: 0.1s; }
.hero__text > :nth-child(2) { animation-delay: 0.25s; }
.hero__text > :nth-child(3) { animation-delay: 0.4s; }
.hero__text > :nth-child(4) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
