/* ==========================================================================
   HABE BAU — Abbruch und Umbau
   Umsetzung des Figma-Entwurfs "Habe-Bau" (Stand 27.09.2026).
   Masse gelten für 1440 px Breite; darunter schrumpft alles mit.
   ========================================================================== */

/* --- SCHRIFT -------------------------------------------------------------
   Inter liegt auf dem eigenen Server (nicht bei Google Fonts), damit beim
   Laden keine Besucherdaten an Google gehen. Eine Datei mit allen Stärken
   300–900, lateinische Zeichen. Lizenz: SIL Open Font License. */
@font-face{
  font-family:"Inter";font-style:normal;font-weight:300 900;font-display:swap;
  src:url("schrift/inter-latin.woff2") format("woff2");
}

/* --- MARKE -------------------------------------------------------------- */
:root{
  --grund:#141417;                 /* Seitengrund, alle Frames */
  --stahl:#1b1b1f;                 /* geschlossene Zeilen, gewählte Maschine */
  --karte:rgba(60,60,70,.17);      /* Karten und Formular */
  --aktiv:#3c3c46;                 /* aktives Projekt, Fusslinie, Fusstitel */

  --weiss:#f4f4f5;                 /* Figma: schrift/weiss */
  --text:#e6e6e6;                  /* Fliesstext */
  --gedimmt:rgba(244,244,245,.37); /* Fristen, Orte */
  --zahl:#6b6b6e;                  /* grosse Nummern */

  --akzent:#f26b11;                /* Orange aus dem Logo */
  --kreis:rgba(255,255,255,.2);
  --kopflinie:rgba(255,255,255,.29);
  --formlinie:#939393;
  --formlabel:#8b8b8b;

  --sans:"Inter",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;

  --rand:clamp(20px,6.25vw,90px);  /* 90 px bei 1440 */
  --inhalt:1260px;

  /* Im Entwurf stehen Überschriften und Knöpfe mit grossem Anfangsbuchstaben
     bei jedem Wort ("Wir Reissen Nicht Ab"). Mit "none" gilt die normale
     deutsche Schreibweise aus dem HTML. */
  --titel-schreibweise:capitalize;

  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--grund);color:var(--weiss);
  font-family:var(--sans);font-size:16px;font-weight:400;line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit}
h1,h2,h3,h4,p,ol,ul,figure{margin:0}
ol,ul{padding:0;list-style:none}
:focus-visible{outline:2px solid var(--akzent);outline-offset:3px}

.wrap{width:min(var(--inhalt),100% - 2*var(--rand));margin-inline:auto}
.gross{text-transform:var(--titel-schreibweise)}
.eyebrow{font-size:11.2px;font-weight:500;line-height:1.6;letter-spacing:.2em;text-transform:uppercase}
.sofort,.sofort *{transition:none !important}  /* Anker öffnet ohne Animation */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.h2{font-size:clamp(32px,3.34vw,48px);font-weight:700;line-height:1.25;letter-spacing:0}
.h2--fein{font-size:clamp(32px,3.55vw,51px);font-weight:600;line-height:1.04;letter-spacing:-.032em}

/* --- Knöpfe -------------------------------------------------------------- */
.pille{
  display:inline-flex;align-items:center;gap:16px;flex:none;
  padding:12px 24px;border-radius:50px;
  font-size:14px;font-weight:400;line-height:1.6;white-space:nowrap;
  text-transform:var(--titel-schreibweise);
  transition:background-color .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
}
.pille--rand{padding:11px 23px;border:1px solid #fff;color:#fff}
.pille--rand:hover{background:rgba(255,255,255,.1)}
.pille--akzent{padding:11px 23px;border:1px solid var(--akzent);color:#fff}
.pille--akzent:hover{background:var(--akzent)}
.pille--hell{background:#fff;color:#000}
.pille--hell:hover{background:var(--text)}
.pille--vorne{padding-left:27px}  /* Figma: Text beginnt mit Leerschlag */
.pille img{width:20px;height:10px;flex:none;transition:transform .3s var(--ease)}
.pille:hover img{transform:translateX(4px)}

/* Kreis mit Pfeil — orange (aktiv/Link) oder durchscheinend (geschlossen) */
.kreis{
  position:relative;flex:none;width:52px;height:52px;border-radius:26px;overflow:hidden;
  background:var(--kreis);transition:background-color .35s var(--ease);
}
.kreis--akzent{background:var(--akzent)}
.kreis__pfeil{position:absolute;left:16px;top:21px;width:20px;height:10px;transition:transform .35s var(--ease),opacity .25s}
.kreis__diag{position:absolute;left:14px;top:14px;width:24px;height:24px;transition:opacity .25s}

.mehr{display:inline-flex;align-items:center;gap:16px;font-size:14px;line-height:1.6;color:#fff;white-space:nowrap}
.mehr:hover .kreis__pfeil{transform:translateX(4px)}

/* --- Kopfzeile ------------------------------------------------------------ */
.kopf{position:relative;z-index:50;background:var(--grund);border-bottom:1px solid var(--kopflinie)}
.kopf--hero{position:absolute;inset:0 0 auto 0;background:transparent}
.kopf__in{height:104px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.marke{display:block;flex:none}
.marke img{width:153.39px;height:auto}
.nav{display:flex;align-items:center;gap:36.56px}
.nav a{font-size:16px;line-height:1.6;color:var(--weiss);transition:color .3s}
.nav a:hover{color:var(--akzent)}
.nav .pille{display:none}
.burger{display:none;width:44px;height:44px;margin-right:-10px;position:relative;z-index:60}
.burger i{position:absolute;left:10px;width:24px;height:2px;background:var(--weiss);transition:transform .35s var(--ease),opacity .2s}
.burger i:nth-child(1){top:15px}
.burger i:nth-child(2){top:21px}
.burger i:nth-child(3){top:27px}
.burger.x i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger.x i:nth-child(2){opacity:0}
.burger.x i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* --- Bildflächen mit Figma-Ausschnitt ------------------------------------
   Die Werte --w/--h/--x/--y sind die Ausschnitte aus Figma (Prozent der
   Fläche). So bleibt der Ausschnitt bei jeder Breite gleich. */
.bild{position:relative;overflow:hidden;background:var(--stahl)}
.bild > img{
  position:absolute;max-width:none;
  width:var(--w,100%);height:var(--h,100%);left:var(--x,0);top:var(--y,0);
}
.bild--cover > img{inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%)}
.bild--ton::after{content:"";position:absolute;inset:0;background:var(--ton,rgba(0,0,0,.2));pointer-events:none}

/* ==========================================================================
   STARTSEITE
   ========================================================================== */

/* 01 — Hero mit Foto. Nichts steht fest: Kopf und Hero scrollen normal weg. */
.held{position:relative;height:100svh;min-height:640px;max-height:900px;overflow:hidden;background:#0a0a0c;isolation:isolate}
.held > *{position:absolute}
.held__foto{
  inset:0;will-change:transform;
  background:
    linear-gradient(rgba(28,11,10,.3),rgba(28,11,10,.3)),
    url(../bilder/hero-hitachi.jpg) 50% 50%/cover no-repeat;
}
.held__ton{
  left:21.94%;top:9%;width:80%;height:70%;mix-blend-mode:soft-light;
  background:radial-gradient(closest-side,rgba(232,54,47,.42),rgba(232,54,47,0));
}
.held__block{top:-6%;bottom:24%;left:45.97%;width:min(15.97%,230px);background:var(--akzent);opacity:.77;will-change:transform}
.held__staub{inset:0;pointer-events:none;overflow:hidden}
.held__staub i{position:absolute;display:block;filter:blur(12px);background:radial-gradient(closest-side,rgba(214,204,190,.2),rgba(214,204,190,0))}
.held__staub i:nth-child(1){left:44.03%;top:26%;width:45.97%;height:70%;animation:ziehen 34s ease-in-out infinite alternate}
.held__staub i:nth-child(2){left:57.99%;top:12%;width:34.03%;height:56%;opacity:.7;animation:ziehen 46s ease-in-out infinite alternate-reverse}
@keyframes ziehen{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(4%,-5%,0) scale(1.12)}}
.held__rand{
  inset:0;
  background:linear-gradient(180deg,rgba(12,12,14,.82) 0%,rgba(12,12,14,.05) 22%,rgba(12,12,14,.08) 58%,rgba(12,12,14,.7) 88%,#0c0c0e 100%);
}
.held__bahn{
  left:54.65%;top:0;width:50%;height:104.56%;
  background:linear-gradient(90deg,rgba(12,12,14,0) 0%,rgba(12,12,14,.4) 14%,rgba(12,12,14,.84) 36%,rgba(12,12,14,.96) 60%,#0c0c0e 100%);
}
.held__text{left:50%;top:calc(50% - 122px);z-index:3;width:min(560px,50% - var(--rand));will-change:opacity}
.held h1{font-size:clamp(38px,4.45vw,64px);font-weight:600;line-height:1.04;letter-spacing:-.032em}
.held__hinweis{
  margin-top:36px;display:flex;gap:20px;max-width:442px;
  font-size:16px;line-height:1.6;
}
.held__hinweis::before{content:"";flex:none;width:2px;background:var(--akzent)}
.held__hinweis b{font-weight:600}
.held__mehr{margin-top:45px;display:inline-flex;align-items:center;gap:16px;font-size:20px;line-height:1.6}
.held__kreis{
  position:relative;flex:none;width:52px;height:52px;border:1px solid #fff;border-radius:26px;
  display:grid;place-items:center;overflow:hidden;transition:border-color .35s var(--ease);
}
.held__kreis::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--akzent);transform:scale(0);transition:transform .4s var(--ease)}
.held__kreis img{position:relative;width:20px;height:10px}
.held__mehr:hover .held__kreis{border-color:var(--akzent)}
.held__mehr:hover .held__kreis::before{transform:scale(1)}

/* 02 — Unternehmen */
.firma{padding:97px 0}
.firma__in{
  display:grid;grid-template-columns:minmax(0,548fr) minmax(0,530fr);
  column-gap:clamp(40px,11.46vw,165px);align-items:center;max-width:1243px;  /* bündig links, rechts 17 px frei */
}
.firma__text{display:flex;flex-direction:column;gap:71px;height:610px}  /* Figma: Inhalt ragt 3 px über */
.firma h2{white-space:nowrap}
.firma__lead{margin-top:24px;font-size:16px;line-height:normal;color:var(--text)}
.firma__bild{aspect-ratio:530/610}

/* Zahlen im Kreuz: zwei Verlaufslinien aus Figma */
.kreuz{
  position:relative;width:min(454.55px,100%);
  display:grid;grid-template-columns:234.4fr 220.15fr;grid-template-rows:145.58px 155.01px;
}
.kreuz__h{position:absolute;left:0;top:144.53px;width:100%;height:1.047px}
.kreuz__v{position:absolute;left:51.57%;top:0;width:0;height:300.59px;display:flex;align-items:center;justify-content:center}
.kreuz__v img{flex:none;width:300.59px;height:1.047px;max-width:none;transform:rotate(-90deg)}
.kreuz .zahl{justify-self:center}
.kreuz .zahl:nth-child(-n+2){padding-top:24.09px}
.kreuz .zahl:nth-child(n+3){padding-top:45px}

.zahl{display:flex;flex-direction:column;align-items:center;gap:12.57px;white-space:nowrap;color:var(--weiss)}
.zahl b{font-size:41.89px;font-weight:600;line-height:1;letter-spacing:-1.676px}
.zahl b em{font-style:normal;color:var(--akzent)}
.zahl span{font-size:14.66px;line-height:1.6}

/* 03 — Was wir ausführen */
.arbeiten{padding:120px 0 131px}
.arbeiten .kopfzeile{min-height:90px}
.kopfzeile{display:flex;justify-content:space-between;align-items:center;gap:24px 40px;flex-wrap:wrap}
.kopfzeile--unten{align-items:flex-end}
.raster{display:grid;grid-template-columns:minmax(0,405fr) minmax(0,405fr) minmax(0,410fr);column-gap:20px;row-gap:40px;margin-top:40px}
.leistung{display:flex;flex-direction:column;gap:12px}
.leistung .bild{aspect-ratio:405/205}
.leistung:nth-child(3n) .bild{aspect-ratio:410/205}
.leistung .bild > img{transition:transform .8s var(--ease)}
.leistung:hover .bild > img{transform:scale(1.04)}
.leistung h3{max-width:301px;font-size:22px;font-weight:600;line-height:1.25;letter-spacing:-.018em}
.leistung p{max-width:300px;font-size:14.5px;line-height:18px;color:var(--weiss)}

/* 04 — Maschinenpark: je Maschine eine eigene Folie, wie in Figma gestaltet.
   Band und Glut sind für alle gleich; Bild, Text und Wasserzeichen stehen
   pro Maschine an eigener Stelle (Werte in Prozent der 1260 x 507 Bühne). */
.maschinen{padding:120px 0 87px}
.maschinen__kopf{display:flex;flex-direction:column;gap:18px}
.maschinen h2{max-width:760px}

.buehne{position:relative;margin-top:40px;aspect-ratio:1260/507;container-type:inline-size}
.buehne__band{position:absolute;left:0;bottom:0;width:100%;height:73.77%;background:linear-gradient(196.03deg,#3c3c46 23.619%,#1b1b1f 55.608%)}
.buehne__glut{
  position:absolute;left:2.94%;top:31.36%;width:39.92%;height:58.78%;border-radius:22px;
  background:url("data:image/svg+xml;utf8,<svg viewBox='0 0 503 298' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect width='503' height='298' fill='url(%23g)'/><defs><radialGradient id='g' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='1' gradientTransform='matrix(365.64 -75.35 127.18 621.62 136.08 218.13)'><stop stop-color='%23f26b11' offset='0'/><stop stop-color='%23803b0e' offset='0.5'/><stop stop-color='%232e1300' offset='1'/></radialGradient></defs></svg>") center/100% 100% no-repeat;
}
.buehne__folie{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s var(--ease),visibility 0s linear .35s}
.buehne__folie.aktiv{opacity:1;visibility:visible;transition-delay:0s}
.buehne__wort{
  position:absolute;left:var(--x);top:var(--y);margin:0;
  font-size:var(--fs);font-weight:900;line-height:1.25;letter-spacing:-.018em;
  text-transform:uppercase;white-space:nowrap;color:rgba(255,255,255,.03);pointer-events:none;
}
.buehne__wort--block{width:var(--breite);white-space:normal}
.buehne__bild{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h)}
.buehne__bild img{
  position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;
  filter:drop-shadow(-15px 17px 10px rgba(0,0,0,.11));
}
.buehne__bild--longfront img{top:-.02%;width:106.86%;height:100.03%;object-fit:fill}
.buehne__bild--abbruch{overflow:hidden}
.buehne__bild--abbruch img{top:-19.46%;height:140%}
.buehne__bild--spiegeln img{transform:scaleX(-1)}
.buehne__text{position:absolute;left:var(--x);top:39.84%;width:var(--breite);display:flex;flex-direction:column;gap:clamp(16px,1.905cqi,24px)}
.buehne__text h3{font-size:clamp(28px,3.81cqi,48px);font-weight:700;line-height:1.25;letter-spacing:-.018em;text-transform:uppercase;color:#fff;text-wrap:balance}
.buehne__text h3 + p{max-width:var(--pmax,434px);font-size:clamp(17px,1.905cqi,24px);line-height:normal;color:#fff}
.buehne__stueck{padding:10px;background:rgba(255,255,255,.09);text-align:center;font-size:16px;font-weight:300;line-height:1.6;letter-spacing:.14em;text-transform:uppercase;color:#fff}

.flotte{display:grid;grid-template-columns:repeat(4,minmax(0,299px));gap:20px;align-items:center;min-height:504px;margin-top:40px}
.flotte__wahl{
  display:flex;flex-direction:column;align-items:center;gap:18px;
  padding:18px 8px;border:1px solid transparent;border-radius:18px;
  transition:background-color .35s var(--ease),border-color .35s var(--ease);
}
.flotte__wahl:hover{background:rgba(27,27,31,.6)}
.flotte__wahl[aria-selected="true"]{background:var(--stahl);border-color:#fff}
.flotte__name{display:block;width:100%;font-size:18px;font-weight:700;line-height:1.25;letter-spacing:-.018em;text-transform:uppercase;text-align:center;color:#fff}
.flotte__bild{display:block;position:relative;overflow:hidden}
.flotte__bild img{width:100%;height:100%;object-fit:cover}
.flotte__bild--abbruch{width:100%;aspect-ratio:299/213.571}
.flotte__bild--abbruch img{position:absolute;left:0;top:-19.46%;width:100%;height:140%;max-width:none}
/* Figma: nicht gewählt füllt das Bild die ganzen 299 px, ohne den Innenabstand der Karte */
.flotte__wahl:not([aria-selected="true"]) .flotte__bild--abbruch{width:calc(100% + 18px);max-width:none;margin-inline:-9px}
.flotte__bild--longfront{align-self:flex-end;width:min(243px,86%);aspect-ratio:243/220}
.flotte__bild--kompakt{width:min(251px,89%);aspect-ratio:251/224}
.flotte__bild--kompakt img{transform:scaleX(-1)}
.flotte__bild--staub{width:min(208px,74%);aspect-ratio:1}

/* 05 — Projekte */
.projekte{padding:120px 0 141px}
.projekte__eyebrow{font-size:16px;font-weight:500;line-height:1.6;letter-spacing:3.2px;text-transform:uppercase}
.projekte__in{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;margin-top:40px}
.projektliste{
  flex:0 1 758px;min-width:0;display:flex;flex-direction:column;gap:1px;
  background:#fff;border-block:1px solid #fff;
}
.projektliste button{
  display:flex;align-items:center;gap:24px;width:100%;
  padding:34px 28px 34px 32px;background:var(--grund);
  transition:background-color .35s var(--ease);
}
.projektliste button:hover{background:#1f1f24}
.projektliste button[aria-selected="true"]{background:var(--aktiv)}
.projektliste .ort{flex:0 0 154px;font-size:16px;font-weight:300;line-height:1.6;color:var(--weiss)}
.projektliste .name{flex:1 1 auto;min-width:0;font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-.018em;color:var(--weiss)}
.projektliste .kreis__diag,
.projektliste button[aria-selected="true"] .kreis__pfeil{opacity:0}
.projektliste button[aria-selected="true"] .kreis__diag{opacity:1}
.projektliste button[aria-selected="true"] .kreis{background:var(--akzent)}

.projekt{flex:0 0 410px;display:flex;flex-direction:column;gap:28px;transition:opacity .28s var(--ease)}
.projekt.laedt{opacity:.55}   /* neues Foto lädt noch — altes bleibt gedämpft stehen */
.projekt.wechselt{opacity:0}
.projekt h3{font-size:32px;font-weight:600;line-height:1.25;letter-spacing:-.018em}
.projekt .bild{aspect-ratio:410/205}
.projekt p{font-size:20px;line-height:normal}
.projekt .meta{font-size:16px;font-weight:500;line-height:1.6;letter-spacing:3.2px;text-transform:uppercase;color:var(--gedimmt)}

/* 06 — Karten (Ablauf mit Nummer, Ansätze und Termin mit Icon) */
.karten{padding:120px 0 105px}
.kopfzeile + .karten__reihe{margin-top:40px}
.karten__reihe{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.karte{
  min-height:333px;padding:24px 20px;background:var(--karte);
  display:flex;flex-direction:column;justify-content:center;gap:30px;
}
.karte__nr{font-size:48px;font-weight:600;line-height:1.25;letter-spacing:-.018em;color:var(--zahl)}
.karte__icon{width:98px;height:98px}
.karte__icon--klein{width:50px;height:50px}
.karte__text{display:flex;flex-direction:column;gap:12px}
.karte h3{max-width:301px;font-size:22px;font-weight:600;line-height:1.25;letter-spacing:-.018em}
.karte p{max-width:300px;font-size:14.5px;line-height:normal}
.karte .meta{max-width:none;font-size:16px;font-weight:500;line-height:1.6;letter-spacing:.8px;text-transform:uppercase;color:var(--gedimmt)}
/* Startseite: Karte wird beim Überfahren orange wie „Kontaktieren Sie uns“ */
.karten__reihe--hover .karte,
.karten__reihe--hover .karte__nr,
.karten__reihe--hover .karte .meta{transition:background-color .3s var(--ease),color .3s var(--ease)}
.karten__reihe--hover .karte:hover{background:var(--akzent)}
.karten__reihe--hover .karte:hover .karte__nr,
.karten__reihe--hover .karte:hover .meta{color:#fff}
.karten--icons{padding:120px 0 172px}
.karten--icons h2 + .karten__reihe{margin-top:40px}
.karten--icons .karte p{max-width:365px;line-height:1.6}
.karten--icons .karte:first-child p{max-width:317px}

/* 07 — Aufruf mit oranger Glut */
.aufruf{
  min-height:609px;padding:120px 0;text-align:center;
  background:radial-gradient(50% 50% at 50% 50%,#984915 0%,#5d3012 56%,var(--grund) 100%) var(--grund);
}
.aufruf--mitte{display:flex;flex-direction:column;justify-content:center}
.aufruf--leise .eyebrow{color:rgba(255,255,255,.7)}
.aufruf h2{max-width:760px;margin:18px auto 0;font-size:clamp(38px,4.45vw,64px);font-weight:700;line-height:normal}
.aufruf h2 + p{margin-top:24px;font-size:16px;line-height:normal;color:var(--text)}
.aufruf__knoepfe{width:min(398px,100%);margin:71px auto 0;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}

/* 08 — Fuss mit grossem Logo */
.fuss{padding:80px 0 38px}
.fuss__marke{display:block;width:98.62%}
.fuss__marke img{width:100%;height:auto}
.fuss__spalten{margin-top:40px;padding-top:30px;display:flex;justify-content:space-between;gap:32px}
.fuss__titel{font-size:16px;font-weight:600;line-height:1.6;letter-spacing:.18em;text-transform:uppercase;color:var(--aktiv)}
.fuss ul{margin-top:13px;display:flex;flex-direction:column;gap:9px}
.fuss li{font-size:20px;line-height:normal}
.fuss li a{transition:color .3s}
.fuss li a:hover{color:var(--akzent)}
.fuss__leiste{
  margin-top:40px;padding-top:40px;border-top:1px solid var(--aktiv);
  display:flex;justify-content:space-between;gap:12px 32px;flex-wrap:wrap;font-size:16px;line-height:1.6;
}
.fuss__leiste nav{display:flex;gap:.4em}
.fuss__leiste a:hover{color:var(--akzent)}

/* ==========================================================================
   UNTERSEITEN
   ========================================================================== */

/* Seitenkopf mit Bild rechts */
.seitenkopf{padding:88px 0 87px}
.seitenkopf__in{display:flex;justify-content:space-between;align-items:center;gap:40px}
.seitenkopf__text{flex:0 1 575px;display:flex;flex-direction:column;gap:24px}
.seitenkopf h1{font-size:clamp(34px,3.34vw,48px);font-weight:800;line-height:1.04}
.seitenkopf p{font-size:18px;line-height:normal}
.seitenkopf .bild{flex:0 1 628px;aspect-ratio:628/449}

/* Leistungen: drei Blöcke, einer offen */
.preise{padding:120px 0 83px}
.stapel{width:min(1326px,100% - 2*clamp(16px,3.96vw,57px));margin-inline:auto;display:flex;flex-direction:column}
.stapel__block{position:relative;background:var(--stahl);filter:drop-shadow(0 -15px 11px rgba(0,0,0,.25))}
.stapel__block:nth-child(1){z-index:1}
.stapel__block:nth-child(2){z-index:2}
.stapel__block:nth-child(3){z-index:3}
.stapel__block.offen{background:linear-gradient(180deg,#464649 0%,#1b1b1f 100%)}
.stapel__block.offen:first-child{filter:none}
.stapel__kopf{
  display:flex;justify-content:space-between;align-items:center;gap:24px;width:100%;
  padding:34px 30px;transition:padding .45s var(--ease);
}
.stapel__block.offen .stapel__kopf{padding:49.5px 30px 0}
.stapel__titel{display:flex;align-items:center;gap:clamp(20px,4.17vw,60px);min-width:0;font-weight:600;line-height:1.25}
.stapel__nr{font-size:clamp(48px,6.67vw,96px);letter-spacing:-.018em;color:var(--zahl)}
.stapel__name{font-size:clamp(28px,4.45vw,64px);letter-spacing:-.018em;color:var(--weiss)}
.stapel__block .kreis__diag,
.stapel__block.offen .kreis__pfeil{opacity:0}
.stapel__block.offen .kreis__diag{opacity:1}
.stapel__block.offen .kreis{background:var(--akzent)}
.stapel__koerper{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .45s var(--ease),visibility 0s linear .45s}
.stapel__block.offen .stapel__koerper{grid-template-rows:1fr;visibility:visible;transition-delay:0s}
.stapel__koerper > div{overflow:hidden;min-height:0}
.stapel__liste{padding:60px 30px 49.5px;display:flex;flex-direction:column;gap:30px}
.position{min-height:146px;display:flex;flex-direction:column;gap:28px}
.position h3{font-size:32px;font-weight:600;line-height:1.25;letter-spacing:-.018em}
.position p{font-size:20px;line-height:normal}
.trennlinie{width:1243px;max-width:calc(100% - 23px);height:1px;margin-block:-.5px}  /* Figma: Linie ohne eigene Höhe */

/* Ablauf: sieben Schritte, jeder offene Schritt mit Bild */
.schritte-sektion{padding:120px 0}
.schritte{border-top:1px solid #fff}
.schritt{border-bottom:1px solid #fff}
.schritt__kopf{
  display:grid;grid-template-columns:51px minmax(0,1fr) 52px;column-gap:0;align-items:center;
  width:100%;min-height:120px;padding:34px 32px;
  transition:grid-template-columns .45s var(--ease),min-height .45s var(--ease);
}
.schritt__nr{font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.018em;color:rgba(244,244,245,.52);transition:color .3s var(--ease)}
.schritt__titel{font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-.018em;padding-right:38px;transition:font-size .45s var(--ease),color .3s var(--ease)}
.schritt.offen .schritt__kopf{grid-template-columns:91px minmax(0,1fr) 52px;align-items:start;min-height:0;padding-bottom:0}
.schritt.offen .schritt__titel{font-size:24px}
.schritt.offen .schritt__nr,.schritt.offen .schritt__titel{color:var(--akzent)}  /* offener Schritt: Nummer und Titel orange */
.schritt .kreis{align-self:center}
.schritt.offen .kreis{align-self:start;margin-bottom:-22px;background:var(--akzent)}
.plusminus{position:absolute;left:19px;top:25px;width:14px;height:2px;border-radius:1px;background:#fff}
.plusminus::after{content:"";position:absolute;inset:0;border-radius:1px;background:#fff;transform:rotate(90deg);transition:transform .35s var(--ease)}
.schritt.offen .plusminus::after{transform:rotate(0)}
.schritt__koerper{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .45s var(--ease),visibility 0s linear .45s}
.schritt.offen .schritt__koerper{grid-template-rows:1fr;visibility:visible;transition-delay:0s}
.schritt__koerper > div{overflow:hidden;min-height:0}
.schritt__inhalt{margin:0 122px 0 123px;padding:12px 0 34px;display:flex;flex-direction:column;gap:12px}
.schritt__inhalt p{font-size:18px;font-weight:300;line-height:1.6}
.schritt__inhalt .meta{font-size:16px;font-weight:500;line-height:1.6;letter-spacing:3.2px;text-transform:uppercase;color:var(--gedimmt)}
.schritt__inhalt .bild{margin:12px 0 0 -1px;aspect-ratio:1016/292}
/* Foto blendet ein, sobald es ganz geladen ist (site.js setzt .laedt) */
.schritt__inhalt .bild > img{transition:opacity .45s var(--ease)}
.schritt__inhalt .bild > img.laedt{opacity:0}

/* Ablauf: Anfrage */
.anfrage{padding:120px 0 150px}
.anfrage__kopf{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 60px;flex-wrap:wrap}
.anfrage__kopf > div{display:flex;flex-direction:column;gap:18px}
.anfrage__kopf h2{white-space:nowrap}
.anfrage__kopf > p{max-width:476px;font-size:16px;line-height:normal;color:var(--text)}
.formular{margin-top:60px;padding:47.5px 20px 47.5px 69px;background:var(--karte)}
.formular__raster{display:grid;grid-template-columns:1fr 1fr}
.feld{display:flex;flex-direction:column;gap:10px;padding:20px 29px 20px 0;border-bottom:1px solid var(--formlinie)}
.feld:nth-child(even){padding-right:0;padding-left:29px;border-left:1px solid var(--formlinie)}
.feld--breit{grid-column:1/-1;padding-right:0}
.feld label{font-size:16px;font-weight:500;line-height:1.6;letter-spacing:.18em;text-transform:uppercase;color:var(--formlabel)}
.feld input,.feld select,.feld textarea{
  width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;
  font:inherit;font-size:24px;line-height:normal;color:var(--weiss);min-height:29px;
}
.feld select{appearance:none;cursor:pointer}
.feld select option{background:var(--stahl);color:var(--weiss)}
.feld textarea{resize:vertical;min-height:58px;max-width:797px}  /* Figma: Umbruch nach "Pläne," */
.feld ::placeholder{color:var(--weiss);opacity:1}
.feld input:focus,.feld select:focus,.feld textarea:focus{outline:none}
.feld:focus-within label{color:var(--weiss)}
.feld:focus-within{border-bottom-color:var(--weiss);box-shadow:inset 0 -1px 0 var(--weiss)}
.feld.fehler{border-bottom-color:var(--akzent)}
.feld.fehler:focus-within{box-shadow:inset 0 -1px 0 var(--akzent)}
.feld.fehler label{color:#ff8a3d}  /* heller als --akzent: genug Kontrast auf der Karte */
@media (min-width:981px){
  /* Zeilenhöhen und Abstände wie in Figma (99 / 99 / 108 / 108 / 215 px) */
  .feld{padding-bottom:0}
  .feld:nth-child(-n+2){min-height:99px;padding-top:0}
  .feld:nth-child(3),.feld:nth-child(4){min-height:99px}
  .feld:nth-child(n+5):not(.feld--breit){min-height:108px;padding-top:16.5px}
  .feld--breit{min-height:215px;padding-top:31px}
}
.formular__fuss{margin-top:40px;display:flex;justify-content:flex-end;align-items:center;gap:16px 32px;flex-wrap:wrap}
.formular__meldung{margin-right:auto;font-size:14px;line-height:1.5;color:var(--text)}
.formular__meldung:empty{display:none}

.zahlenreihe{
  width:min(1153px,100%);margin:60px auto 0;min-height:158px;
  display:flex;justify-content:space-between;align-items:center;gap:24px;
}
.zahlenreihe__linie{flex:none;width:1px;align-self:stretch;background:linear-gradient(180deg,#383838 0%,#fff 49.01%,#383838 100%)}

/* Impressum & Datenschutz — Text mit den Zeilenumbrüchen aus Figma */
.recht{padding:75px 0 180px;color:#fff}
.recht h1{font-size:clamp(40px,4.45vw,64px);font-weight:700;line-height:normal;overflow-wrap:break-word}
.recht h2{font-size:24px;font-weight:700;line-height:normal}
.recht__block{margin-top:75px}
.recht__block--impressum h2{font-weight:900;margin-bottom:29px}
.recht__block--ds{margin-top:120px}
.recht__block--ds h2{margin-bottom:51px}
.recht__text{white-space:pre-line;font-size:16px;line-height:normal;overflow-wrap:break-word}
.recht__block--ds .recht__text{font-size:18px}
.recht a{text-decoration:underline;text-underline-offset:2px}
.recht a.still{text-decoration:none}

/* Cookie-Hinweis: kleine Karte unten links, unter dem offenen Handy-Menü (z 55) */
.cookie{
  position:fixed;left:24px;bottom:24px;z-index:54;
  width:min(400px,100vw - 48px);padding:22px 24px 24px;
  background:#1d1d22;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 50px rgba(0,0,0,.45);
  transition:opacity .35s var(--ease),transform .35s var(--ease);
}
.cookie.zu{opacity:0;transform:translateY(16px);pointer-events:none}
.cookie__titel{font-size:14px;font-weight:500;line-height:1.6;letter-spacing:2.8px;text-transform:uppercase}
.cookie__text{margin:8px 0 18px;font-size:15px;line-height:1.55;color:var(--text)}
.cookie__text a{text-decoration:underline;text-underline-offset:2px;transition:color .3s var(--ease)}
.cookie__text a:hover{color:var(--akzent)}

/* ==========================================================================
   KLEINERE BILDSCHIRME
   ========================================================================== */
@media (max-width:1180px){
  .firma__in{column-gap:48px}
  .firma h2{white-space:normal}
  .projekte__in{gap:32px}
  .projekt{flex-basis:360px}
  .projektliste .ort{flex-basis:130px}
  .schritt__inhalt{margin-right:32px}
  .schritt.offen .kreis{margin-bottom:0}  /* sonst deckt der Knopf die erste Textzeile ab */
}

@media (max-width:980px){
  /* Hero: Schrift unten über dem Foto */
  .held__bahn{left:0;width:100%;height:100%;background:linear-gradient(0deg,rgba(12,12,14,.94) 0%,rgba(12,12,14,.66) 50%,rgba(12,12,14,0) 100%)}
  .held__block{left:auto;right:10%}
  .held__text{left:var(--rand);right:var(--rand);top:auto;bottom:64px;width:auto;max-width:620px}

  .raster{grid-template-columns:repeat(2,minmax(0,1fr))}
  .karten__reihe{grid-template-columns:1fr}
  .karte{min-height:0;padding:36px 24px}
  .karte h3,.karte p,.karten--icons .karte p,.karten--icons .karte:first-child p{max-width:none}

  .firma__in{grid-template-columns:1fr;row-gap:48px}
  .firma__text{gap:48px;height:auto}
  .firma__bild{max-width:560px}

  /* Maschinenpark: Bühne untereinander statt nebeneinander */
  .buehne{aspect-ratio:auto}
  .buehne__band{height:auto;top:18%}
  .buehne__glut{left:6%;top:12%;width:88%;height:auto;aspect-ratio:503/298}
  .buehne__folie{position:relative;inset:auto;display:none;opacity:1;visibility:visible}
  .buehne__folie.aktiv{display:block}
  .buehne__wort{display:none}
  .buehne__bild{position:relative;left:auto;top:auto;width:auto;height:auto;aspect-ratio:452/436;max-height:440px;margin:0 auto;max-width:78%}
  .buehne__bild--abbruch{aspect-ratio:509/363.57}
  .buehne__bild--kompakt{aspect-ratio:438/391}
  .buehne__bild--staub{aspect-ratio:1;max-width:56%}
  .buehne__text{position:relative;left:auto;top:auto;width:auto;gap:24px;padding:32px 6% 40px}
  .flotte{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;margin-top:32px}

  .projekte__in{flex-direction:column}
  .projektliste,.projekt{flex:none;width:100%}
  .projekt{max-width:560px}

  .seitenkopf__in{flex-direction:column;align-items:stretch}
  .seitenkopf__text{flex:none}
  .seitenkopf .bild{flex:none;width:100%}

  .schritt__kopf,.schritt.offen .schritt__kopf{grid-template-columns:44px minmax(0,1fr) 52px;padding-inline:0}
  .schritt__inhalt{margin:0 0 0 44px}
  .schritt__inhalt .bild{margin-left:0}

  .formular{padding:32px 24px 36px}
  .formular__raster{grid-template-columns:1fr}
  .feld,.feld:nth-child(even){padding:20px 0;border-left:0}

  .zahlenreihe{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}
  .zahlenreihe__linie{display:none}
}

@media (max-width:760px){
  .kopf__in{height:72px}
  .kopf > .wrap > .pille{display:none}
  .burger{display:block}
  .marke{position:relative;z-index:60}
  .marke img{width:120px}
  .nav{
    position:fixed;inset:0;z-index:55;flex-direction:column;align-items:flex-start;gap:6px;overflow-y:auto;
    padding:104px var(--rand) 36px;background:var(--grund);
    transform:translateY(-102%);visibility:hidden;transition:transform .45s var(--ease),visibility 0s linear .45s;
  }
  .nav.offen{transform:none;visibility:visible;transition:transform .45s var(--ease),visibility 0s}
  body.menu-offen{overflow:hidden}
  .nav a{font-size:28px;font-weight:600;letter-spacing:-.02em;padding:6px 0}
  .nav .pille{display:inline-flex;margin-top:18px;font-size:14px;font-weight:400;letter-spacing:0}

  .held{min-height:600px}
  .held__foto{background-position:30% 50%}
  .held__text{bottom:48px}
  .held__hinweis{margin-top:28px;font-size:15px}
  .held__mehr{margin-top:32px;font-size:18px}

  .firma{padding:72px 0}
  .arbeiten,.maschinen,.projekte,.karten,.karten--icons,.preise,.schritte-sektion,.anfrage{padding:72px 0}
  .raster{grid-template-columns:1fr;row-gap:36px}
  .leistung p{max-width:none}

  .mehr{white-space:normal}
  .flotte{gap:12px}
  .flotte__name{font-size:14px}

  .projektliste button{padding:24px 16px;gap:14px;flex-wrap:wrap}
  .projektliste .ort{flex-basis:100%;order:0;font-size:14px}
  .projektliste .name{order:1;flex-basis:calc(100% - 66px)}
  .projektliste .kreis{order:2;width:44px;height:44px}
  .projektliste .kreis__pfeil{left:12px;top:17px}
  .projektliste .kreis__diag{left:10px;top:10px}
  .projekt h3{font-size:26px}
  .projekt p{font-size:18px}
  .projekt .meta,.projekte__eyebrow,.schritt__inhalt .meta{letter-spacing:.14em}

  .aufruf{min-height:0;padding:88px 0 96px;background:radial-gradient(90% 60% at 50% 50%,#984915 0%,#5d3012 56%,var(--grund) 100%) var(--grund)}
  .aufruf__knoepfe{flex-direction:column;align-items:center;margin-top:44px}

  .fuss{padding-top:56px}
  .fuss__spalten{flex-direction:column;gap:28px}
  .fuss li{font-size:18px}

  .seitenkopf{padding:56px 0 64px}
  .seitenkopf p{font-size:16px}

  .stapel__kopf{padding:24px 18px}
  .stapel__block.offen .stapel__kopf{padding:28px 18px 0}
  .stapel__liste{padding:36px 18px 32px}
  .position{min-height:0;gap:16px}
  .position h3{font-size:24px}
  .position p{font-size:17px}
  .kreis{width:44px;height:44px}
  .kreis__pfeil{left:12px;top:17px}
  .kreis__diag{left:10px;top:10px}
  .plusminus{left:15px;top:21px}
  .mehr .kreis{width:52px;height:52px}
  .mehr .kreis__pfeil{left:16px;top:21px}

  .schritt__titel{padding-right:16px}
  .schritt.offen .schritt__titel{font-size:21px}
  .schritt__inhalt{margin-left:0}
  .schritt__inhalt p{font-size:16px}

  .anfrage__kopf h2{white-space:normal}
  .feld input,.feld select,.feld textarea{font-size:19px}
  .feld label{font-size:13px;letter-spacing:.14em}
  .formular__fuss{justify-content:stretch}
  .formular__fuss .pille{justify-content:center;width:100%}

  .zahl b{font-size:36px}
  .zahlenreihe .zahl{white-space:normal;text-align:center}
  .kreuz .zahl span{font-size:13px}

  .recht{padding:48px 0 96px}
  .recht h1{font-size:clamp(28px,8vw,40px)}
  .recht__block{margin-top:48px}
  .recht__block--ds{margin-top:72px}
  .recht__block--ds h2{margin-bottom:24px}
  .recht__block--ds .recht__text{font-size:16px}
  .cookie{left:12px;right:12px;bottom:12px;width:auto;padding:16px 16px 18px}
  .cookie__titel{font-size:12px;letter-spacing:2.4px}
  .cookie__text{margin:6px 0 14px;font-size:14px;line-height:1.5}
  .cookie .pille{padding:8px 22px}
}

@media (max-width:360px){
  .seitenkopf h1,.schritt__titel,.flotte__name{overflow-wrap:break-word;hyphens:auto}
}

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