/* Dunkler Hero fuer die Uebersichtsseiten Kompaktlader und Minibagger (17.10.2026, dritte Fassung).
   Aufbau wie der Modellkopf der Maschinenseiten: grosses deckendes Wort mit Verlauf nach unten,
   Lime-Streifen dahinter (.sk-balken), davor zwei Maschinen. Markup: research/patch_uebersicht_hero.py */
.uh {
  --uh-wand: #171c15;
  --uh-sand: #efeadf;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  color: var(--uh-sand);
  background:
    radial-gradient(ellipse 60% 55% at 62% 62%, rgba(74, 96, 52, .55) 0%, rgba(74, 96, 52, 0) 70%),
    linear-gradient(180deg, #0e120d 0%, var(--uh-wand) 60%, #12160f 100%);
  padding-top: clamp(96px, 9vw, 128px);
}
/* Rauschen: kommt von der Seite selbst (welt-fx.js legt .grain.noise animiert auf jede dunkle Flaeche),
   im Hero und im Band darunter gleich. Kein eigenes Rauschen mehr. */
.uh-text {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.uh-k {
  margin: 0;
  font: 600 13px/1.2 var(--body, Barlow, system-ui, sans-serif);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime, #a4c639);
}
.uh-claim {
  margin: 0;
  font: 500 clamp(15px, 1.25vw, 18px)/1.4 var(--body, Barlow, system-ui, sans-serif);
  color: rgba(239, 234, 223, .72);
}
.uh-claim b { color: var(--uh-sand); font-weight: 600; }

/* Buehne: Wort oben, Maschinen ragen von unten hinein. Masse in cqw der Buehne. */
.uh-buehne {
  position: relative;
  z-index: 3;
  container-type: inline-size;
  /* Breite auch an die Fensterhoehe gekoppelt, damit Wort und Maschinen auf grossen Bildschirmen
     im ersten Blick stehen (Nutzer 17.10.: "muss weiter hoch"). */
  width: min(100%, 1720px);
  --uh-w: min(100cqw, 1720px);
  /* --uh-k (0..1) setzt uebersicht-licht.js aus der Fensterhoehe: Wort volle Breite, aber Streckung,
     Abstaende und Maschinen gehen auf breiten, niedrigen Bildschirmen zurueck (Nutzer 17.10.). */
  margin: clamp(10px, 2vw, 30px) auto 0;
  --uh-fs: calc(var(--uh-w) / (var(--uh-zeichen, 12) * .555));
  --uh-dehn: calc(2.3 * var(--uh-k, 1));
  --uh-tief: calc(var(--uh-w) * .015 * var(--uh-k, 1)); /* Wort weiter oben, damit es neben den grossen Maschinen lesbar bleibt */ /* Wort sitzt tiefer, die Maschinen ragen weiter hinein */
  height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .20 * var(--uh-k, 1));
}
/* Lime-Streifen hinter dem Wort. */
.uh-buehne::before {
  content: "";
  position: absolute;
  z-index: 0;
  /* Ueber die volle Fensterbreite, auch wenn die Buehne schmaler ist. */
  left: calc(50% - 54vw);
  right: calc(50% - 54vw);
  top: var(--uh-tief);
  height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .06 * var(--uh-k, 1));
  clip-path: polygon(0 74%, 100% 10%, 100% 34%, 0 98%);
  translate: 0 calc(var(--uh-p, 0px) * .2); /* Parallaxe */
  background: linear-gradient(64deg, #8fae2a 0%, #a4c639 34%, #c2dd62 52%, #a4c639 70%, #93b52f 100%);
  pointer-events: none;
}
/* Deckendes Wort: Verlauf von Sand nach dunklem Moos, damit der Streifen nur zwischen den Buchstaben sichtbar ist. */
.uh-wort {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  white-space: nowrap;
  font-family: var(--display, 'Barlow Semi Condensed', 'Arial Narrow', sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--uh-fs);
  line-height: .82;
  letter-spacing: -.01em;
  transform: translateY(calc(var(--uh-p, 0px) * .38)) scaleY(var(--uh-dehn)); /* Parallaxe */
  transform-origin: 50% 0;
  top: var(--uh-tief);
  /* Oben deckend, nach unten komplett transparent */
  background: linear-gradient(180deg, #f6f2e8 0%, #efeadd 40%, rgba(228, 223, 208, .9) 60%, rgba(205, 202, 188, .45) 82%, rgba(190, 190, 176, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}
.uh-m {
  position: absolute;
  z-index: 2;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .45));
}
/* Kompaktlader: ein Bild mit Boden, der links, rechts und unten weich ausläuft (kein Schatten noetig). */
/* Ein Bild mit weich auslaufendem Boden, mittig unten in der Buehne (Lader und Bagger). */
.uh-buehne .uh-bild { left: 50%; bottom: 0; translate: -50% calc(var(--uh-p, 0px) * .06); z-index: 3; filter: brightness(.84) contrast(1.04); }
.uh-lader .uh-buehne { height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .29 * var(--uh-k, 1)); }
.uh-lader .uh-bild { width: calc(91cqw * (.5 + .5 * var(--uh-k, 1))); } /* Bild schrumpft nur halb so stark wie das Wort */
/* (fruehere Zwei-Maschinen-Fassung) XC 1100 links hinten, SAM 1950 rechts vorn. */
.uh-lader .uh-hinten { left: 9cqw; bottom: 5cqw; width: 40cqw; filter: brightness(.82) drop-shadow(0 24px 26px rgba(0, 0, 0, .45)); }
.uh-lader .uh-vorn { right: 7cqw; bottom: 0; width: 49cqw; z-index: 3; }
/* Minibagger: R13 Pro links hinten, R22 Pro rechts vorn. */
/* Minibagger: R13 Pro links, R22 Pro rechts, jeder mit eigenem weich auslaufendem Boden. */
.uh-bagger .uh-buehne { height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .23 * var(--uh-k, 1)); }
.uh-bagger .uh-bild { width: calc(81cqw * (.5 + .5 * var(--uh-k, 1))); }
.uh-bagger .uh-hinten { left: -12cqw; bottom: 2cqw; width: 80cqw; z-index: 2; }
.uh-bagger .uh-vorn { right: -12cqw; bottom: 0; width: 82cqw; z-index: 3; }

/* Scheinwerfer von oben: Lichtkegel ueber Wort und Streifen, Lichtfleck am Boden unter den Maschinen. */
.uh-licht {
  position: absolute;
  z-index: 2;
  left: 50%;
  translate: -50% calc(var(--uh-p, 0px) * .3); /* Licht wandert mit dem Wort */
  top: calc(-1 * clamp(150px, 16vw, 230px));
  bottom: 0;
  width: 92cqw;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(26px);
}
.uh-licht::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 249, 230, .5) 0%, rgba(255, 249, 230, .18) 38%, rgba(255, 249, 230, .06) 72%, rgba(255, 249, 230, 0) 100%);
}
/* Lichtquelle oben und Lichtfleck am Boden */
.uh-licht::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 9% 4% at 50% 0%, rgba(255, 252, 240, .85) 0%, rgba(255, 252, 240, 0) 100%),
    radial-gradient(ellipse 44% 13% at 50% 88%, rgba(255, 249, 230, .22) 0%, rgba(255, 249, 230, 0) 100%);
}
.uh-wort { z-index: 1; }

/* Unterer Abschluss ohne Kante: Lader laufen ins dunkle Logo-Band, Bagger in den hellen Seitengrund. */
.uh { --uh-ende: #171c15; padding-bottom: 0; }
.uh::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 12vw, 180px);
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 28, 21, 0) 0%, var(--uh-ende) 100%);
  pointer-events: none;
}
.uh + .sk-band { position: relative; isolation: isolate; background: #171c15; }
.uh + .sk-band > *:not(.grain) { position: relative; z-index: 3; }
/* Minibagger hat jetzt auch das Logo-Band darunter; der Textkopf folgt nach dem Band. */
.uh-seite .sk-band + .mb-kopf { padding-top: clamp(28px, 3.5vw, 52px); }

/* (nicht mehr im Markup) Modell-Links als dunkle Leiste am Fuss des Heros. */
.uh-modelle {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
  border-top: 1px solid rgba(239, 234, 223, .16);
}
.uh-modell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 8px;
  padding: 16px clamp(12px, 1.4vw, 24px) 22px;
  border-left: 1px solid rgba(239, 234, 223, .16);
  color: var(--uh-sand);
  text-decoration: none;
  transition: background-color .25s ease;
}
.uh-modell:first-child { border-left: 0; }
.uh-modell small {
  grid-column: 1;
  font: 600 11px/1.2 var(--body, Barlow, system-ui, sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime, #a4c639);
}
.uh-modell b {
  grid-column: 1;
  font: 700 clamp(18px, 1.6vw, 24px)/1.1 var(--display, 'Barlow Semi Condensed', sans-serif);
  text-transform: uppercase;
}
.uh-modell span { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; color: var(--lime, #a4c639); transition: transform .25s ease; }
.uh-modell:hover, .uh-modell:focus-visible { background: rgba(239, 234, 223, .06); }
.uh-modell:hover span, .uh-modell:focus-visible span { transform: translate(2px, -2px); }

/* Der Textkopf darunter braucht keinen Platz mehr fuer den festen Seitenkopf. */
.uh + .mb-kopf { padding-top: clamp(28px, 3.5vw, 52px); }

/* Seitenkopf ist ueber der dunklen Wand hell, bis gescrollt wird (ratgeber.css setzt ihn sonst dunkel). */
body.uh-seite .n-header[data-global-nav]:not(.is-scrolled):not(.is-open):not(.has-mega),
body.uh-seite .n-header[data-global-nav]:not(.is-scrolled):not(.is-open):not(.has-mega) .n-logo,
body.uh-seite .n-header[data-global-nav]:not(.is-scrolled):not(.is-open):not(.has-mega) .n-logo small { color: #f3f0e8 !important; }
body.uh-seite .n-header[data-global-nav]:not(.is-scrolled):not(.is-open):not(.has-mega) .n-logo-word { background: #f3f0e8 !important; }
body.uh-seite .n-header[data-global-nav]:not(.is-scrolled):not(.is-open):not(.has-mega) .n-menu span { background: #f3f0e8 !important; }

@media (max-width: 860px) {
  .uh { padding-top: 96px; }
  .uh-text { display: block; }
  .uh-claim { margin-top: 8px; }
  .uh-buehne { height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .44 * var(--uh-k, 1)); }
  .uh-lader .uh-buehne { height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .32 * var(--uh-k, 1)); }
  .uh-lader .uh-bild { width: 100cqw; } /* Maschinen komplett sichtbar */
  .uh-lader .uh-hinten { left: 0; bottom: 11cqw; width: 54cqw; }
  .uh-lader .uh-vorn { right: 0; bottom: 0; width: 66cqw; }
  .uh-bagger .uh-buehne { height: calc(var(--uh-fs) * .82 * var(--uh-dehn) + var(--uh-w) * .36 * var(--uh-k, 1)); }
  .uh-bagger .uh-bild { width: 100cqw; }
  .uh-bagger .uh-hinten { left: -14cqw; bottom: 8cqw; width: 100cqw; }
  .uh-bagger .uh-vorn { right: -16cqw; bottom: 0; width: 104cqw; }
  .uh-modelle { grid-template-columns: repeat(2, 1fr); }
  .uh-modell:nth-child(3) { border-left: 0; }
  .uh-modell:nth-child(n + 3) { border-top: 1px solid rgba(239, 234, 223, .16); }
}
@media (prefers-reduced-motion: reduce) {
  .uh-modell, .uh-modell span { transition: none; }
}

/* Im Band unter dem Hero: "Alle ansehen" mit Pfeil nach unten statt "Verbaute Komponenten". */
.uh + .sk-band .uh-weiter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 auto 18px;
  color: #f3f0e8;
  text-decoration: none;
  font: 600 12px/1 var(--body, Barlow, system-ui, sans-serif);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.uh + .sk-band .uh-weiter span { margin-right: -.24em; }
.uh + .sk-band .uh-weiter svg {
  display: block;
  color: var(--lime, #a4c639);
  filter: drop-shadow(0 0 10px rgba(164, 198, 57, .35));
  animation: uh-wippen 2.2s ease-in-out infinite;
  transition: color .25s ease, filter .25s ease;
}
.uh + .sk-band .uh-weiter:hover svg,
.uh + .sk-band .uh-weiter:focus-visible svg { color: #c2dd62; filter: drop-shadow(0 0 14px rgba(194, 221, 98, .6)); }
.uh + .sk-band .uh-weiter:focus-visible { outline: 2px solid var(--lime, #a4c639); outline-offset: 6px; border-radius: 4px; }
@keyframes uh-wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .uh + .sk-band .uh-weiter svg { animation: none; } }

/* WebGL-Lichtstrahlen (uebersicht-licht.js): sobald aktiv, ersetzt das Canvas den CSS-Kegel. */
.uh-licht.ist-gl { width: 100cqw; filter: none; }
.uh-licht.ist-gl::before { display: none; }
/* Mit WebGL bleibt nur der Lichtfleck am Boden unter den Maschinen. */
.uh-licht.ist-gl::after { background: radial-gradient(ellipse 30% 9% at 50% 90%, rgba(255, 245, 220, .3) 0%, rgba(255, 245, 220, 0) 100%); }
.uh-licht-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Licht liegt UEBER den Maschinen (Spot strahlt sie an, Nutzer 17.10.). Den Mausschatten macht der
   Licht-Shader selbst (cursorShadow), er faellt damit auch auf Maschinen und Wort. */
.uh-licht { z-index: 5; }

/* Licht nach unten schwaecher (auf den Maschinen weniger intensiv) und am unteren Rand ganz aus,
   sonst entsteht eine harte Kante (Nutzer 17.10.). */
.uh-licht-canvas {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .5) 64%, rgba(0, 0, 0, .18) 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .5) 64%, rgba(0, 0, 0, .18) 84%, transparent 100%);
}

/* Kennzahlen-Leiste im Band (wie .mp-fakten der Maschinenseiten). */
.uh + .sk-band { border-top: 0; }
.uh-fakten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px auto 22px; padding: 0; list-style: none; }
.uh-fakten li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; padding: 6px clamp(14px, 2vw, 28px); }
.uh-fakten li + li { box-shadow: inset 1px 0 0 rgba(243, 240, 232, .14); }
.uh-fakten li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime, #a4c639); box-shadow: 0 0 0 3px rgba(164, 198, 57, .18); }
.uh-fakten em { font: 600 11px/1 var(--body, Barlow, sans-serif); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--lime, #a4c639); margin-right: -4px; }
.uh-fakten b { display: flex; align-items: baseline; gap: 4px; font: 700 clamp(26px, 2.5vw, 38px)/1 var(--display, 'Barlow Semi Condensed', sans-serif); color: #fff; }
.uh-fakten b small { font-size: .4em; color: rgba(243, 240, 232, .7); }
.uh-fakten li > span { flex-basis: 100%; padding-left: 17px; font: 600 12px/1.35 var(--body, Barlow, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 240, 232, .7); }
@media (max-width: 760px) {
  .uh-fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-fakten li { padding: 14px 0 12px; box-shadow: none; }
  .uh-fakten li:nth-child(2n) { padding-left: 16px; box-shadow: inset 1px 0 0 rgba(243, 240, 232, .14); }
  .uh-fakten li:nth-child(-n+2) { border-bottom: 1px solid rgba(243, 240, 232, .14); }
  .uh-fakten b { font-size: 28px; }
  .uh-fakten li > span { font-size: 10.5px; letter-spacing: .08em; }
}

/* Handy: Hero und Band fuellen zusammen den ersten Bildschirm (Hoehe setzt uebersicht-licht.js als --uh-band-min),
   der naechste Abschnitt schaut beim Oeffnen nicht hervor (Nutzer 18.10.). */
@media (max-width: 860px) {
  .uh + .sk-band { min-height: var(--uh-band-min, auto); display: flex; flex-direction: column; justify-content: center; }
}
