/* Startseite 2.0 (20.10.2026): Buehne, Geschichte der Leistungen, Baender, Bento, Abschluss. Wird nur auf / geladen.
   Ruhezustand sichtbar: Startlagen setzt erst neu-bewegung.js; die Geschichte haelt nur mit html.an fest. */

/* Buehne: volle Fensterhoehe, Zeichen rechts, Karten in Ebenen, Text links unten */
.buehne { position: relative; min-height: calc(100svh - 94px); display: grid; align-items: end; padding: 40px 0 clamp(56px, 8svh, 100px); overflow: clip; isolation: isolate; }
.buehne-boden { position: absolute; inset: auto -10% -2% -10%; height: 55%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 70px 70px; transform: perspective(700px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: radial-gradient(ellipse at 60% 100%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 100%, #000 10%, transparent 70%); }
.buehne-zeichen { position: absolute; z-index: -1; right: clamp(-40px, 6vw, 160px); top: 50%; translate: 0 -54%; height: min(78svh, 86vw, 820px); aspect-ratio: 92 / 194; }
.buehne-zeichen svg { width: 100%; height: 100%; overflow: visible; }
.bz-schein { opacity: .55; }
.buehne-karten { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bk { position: absolute; padding: 14px 18px; border-radius: 18px; font-size: clamp(12px, .9vw, 15px); font-weight: 500; color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.bk--browser { right: clamp(260px, 30vw, 560px); top: 18%; width: clamp(180px, 15vw, 260px); flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; }
.bk-punkte { display: flex; gap: 5px; }
.bk-punkte i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.bk-balken { height: 34px; border-radius: 9px; }
.bk-balken--orange { background: linear-gradient(135deg, #ff9a5c, #ff5a00); }
.bk-zeilen, .bk-kacheln { display: grid; gap: 6px; }
.bk-zeilen i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.bk-zeilen i + i { width: 70%; }
.bk-kacheln { grid-template-columns: repeat(3, 1fr); }
.bk-kacheln i { height: 34px; border-radius: 7px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.bk--suche { right: clamp(30px, 5vw, 120px); top: 14%; border-radius: 999px; }
.bk-lupe { width: 14px; height: 14px; border: 2.5px solid var(--orange); border-radius: 50%; position: relative; }
.bk-lupe::after { content: ""; position: absolute; width: 7px; height: 2.5px; background: var(--orange); right: -6px; bottom: -3px; rotate: 45deg; }
.bk--fluss { right: clamp(40px, 4vw, 100px); top: 58%; }
.bk-knoten { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.bk-knoten--an { background: var(--orange); color: #140900; }
.bk-pfeil { width: 30px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), var(--orange)); }
.bk--chip { right: clamp(330px, 36vw, 700px); top: 88%; border-radius: 999px; }
.bk--ort { right: clamp(140px, 16vw, 330px); top: 82%; border-radius: 999px; }
.bk-pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 113, 32, .25); }
.buehne-text { position: relative; }
.buehne h1 { margin: 0 0 clamp(16px, 2.6svh, 28px); font-weight: 600; }
.buehne h1 .zeile { display: block; margin-bottom: 22px; }
.buehne-gross { display: block; font: 600 clamp(48px, min(11vw, 16svh), 220px)/.86 Clash, sans-serif; letter-spacing: -.045em; }
.buehne-kontur { color: transparent; -webkit-text-stroke: clamp(1px, .12vw, 2px) var(--text); }
.buehne-lead { max-width: 34ch; font-size: clamp(17px, min(1.5vw, 2.4svh), 24px); color: var(--leise); margin: 0 0 clamp(20px, 3svh, 34px); }
.knopf--gross { padding: 18px 30px; font-size: 16px; }
.buehne-weiter { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; translate: -50% 0; }
.buehne-weiter span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); }
@media (max-width: 1080px) {
  .bk--browser, .bk--chip { display: none; }
  .buehne-zeichen { right: -6vw; height: min(60svh, 90vw); opacity: .75; }
}
@media (max-width: 640px) {
  .buehne { padding-top: 110px; }
  .bk--fluss { display: none; }
  .bk--suche { top: 15%; right: 16px; }
  .bk--ort { top: 30%; right: 30%; }
  .buehne-zeichen { opacity: .45; top: 36%; }
  .buehne-weiter { display: none; }
}
@media (min-width: 1900px) { .buehne-gross { font-size: clamp(200px, min(10vw, 17svh), 300px); } .bk { font-size: 17px; } }

/* Geschichte der Leistungen */
.geschichte { position: relative; --anzahl: 5; }
.geschichte-kopf { padding-top: 110px; }
.geschichte-titel { font: 600 clamp(36px, 5vw, 72px)/1 Clash, sans-serif; letter-spacing: -.02em; margin: 14px 0 26px; max-width: none; }
.geschichte-leiste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 40px; padding: 0; }
.geschichte-leiste a { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rand); text-decoration: none; font-size: 14px; color: var(--leise); transition: color .3s, border-color .3s, background .3s; }
.geschichte-leiste span { font: 600 12px Clash, sans-serif; color: var(--orange); }
.geschichte-leiste li.aktiv a { color: #140900; background: var(--orange); border-color: var(--orange); }
.geschichte-leiste li.aktiv span { color: #140900; }
.geschichte-bild { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: 40px 0 80px; }
.geschichte-nummer { display: block; font: 600 clamp(80px, 12vw, 200px)/.8 Clash, sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 113, 32, .7); letter-spacing: -.04em; margin-bottom: 18px; }
.geschichte-text h3 { font: 600 clamp(34px, 4.6vw, 76px)/.98 Clash, sans-serif; letter-spacing: -.03em; margin: 0 0 18px; }
.geschichte-text p { color: var(--leise); font-size: clamp(17px, 1.3vw, 21px); max-width: 38ch; margin: 0 0 28px; }
.geschichte-grafik .grafik { max-width: 620px; margin-inline: auto; }
.geschichte-fortschritt { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .an .geschichte { height: calc(var(--anzahl) * 85vh + 100vh); }
  .an .geschichte-buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
  .an .geschichte-kopf { padding-top: 96px; }
  .an .geschichte-leiste { margin-bottom: 0; }
  .an .geschichte-bilder { position: relative; }
  .an .geschichte-bild { position: absolute; inset: 0; padding: 20px 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
  .an .geschichte-bild.aktiv { opacity: 1; visibility: visible; }
  .an .geschichte-bild .geschichte-text > * { transform: translateY(40px); opacity: 0; transition: transform .8s var(--kurve), opacity .8s; }
  .an .geschichte-bild.aktiv .geschichte-text > * { transform: none; opacity: 1; }
  .an .geschichte-bild.aktiv .geschichte-text > :nth-child(2) { transition-delay: .06s; }
  .an .geschichte-bild.aktiv .geschichte-text > :nth-child(3) { transition-delay: .12s; }
  .an .geschichte-bild.aktiv .geschichte-text > :nth-child(4) { transition-delay: .18s; }
  .an .geschichte-bild .geschichte-grafik { transform: scale(.85) rotate(-4deg); opacity: 0; transition: transform 1s var(--kurve), opacity .8s; }
  .an .geschichte-bild.aktiv .geschichte-grafik { transform: none; opacity: 1; }
  .an .geschichte-fortschritt { display: block; width: min(1240px, 100% - 40px); margin: 0 auto 34px; height: 2px; background: var(--rand); }
  .an .geschichte-fortschritt span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-hell)); transform-origin: left; transform: scaleX(var(--fortschritt, 0)); }
}
@media (max-width: 899px) {
  .geschichte-bild { grid-template-columns: 1fr; padding-bottom: 60px; }
  .geschichte-grafik { order: -1; }
  .geschichte-grafik .grafik { max-width: 460px; }
}
@media (min-width: 900px) and (max-height: 780px) {
  .an .geschichte-grafik .grafik svg { max-height: 44vh; }
  .an .geschichte-nummer { font-size: 80px; }
  .an .geschichte-text h3 { font-size: clamp(30px, 3.6vw, 52px); }
}

/* Zwei Laufbaender, gegenlaeufig, eins gefuellt, eins als Kontur */
.baender { position: relative; z-index: 1; padding: 50px 0; margin: 20px 0; overflow: clip; }
.baender > .band { transform: rotate(-2deg); margin: 0 -3vw; }
.baender .band { border: 0; padding: 14px 0; }
.baender .band--voll { background: var(--orange); }
.band--voll .band-inhalt, .band--voll .band-inhalt b { color: #140900; }
.baender .band--kontur { background: none; }
.band--kontur .band-inhalt span { color: transparent; -webkit-text-stroke: 1.2px var(--text); }
.baender .band-inhalt { font-size: clamp(34px, 5.5vw, 92px); }

/* Bento-Raster der Zielgruppen */
.gruppen--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; }
.gruppen--bento .gruppe { grid-column: span 2; min-height: 300px; }
.gruppen--bento .gruppe:nth-child(1), .gruppen--bento .gruppe:nth-child(2) { grid-column: span 3; }
.gruppen--bento .gruppe:nth-child(6) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 0 40px; min-height: 240px; }
.gruppen--bento .gruppe:nth-child(6) .grafik--klein { grid-row: span 2; }
.gruppen--bento .gruppe:nth-child(-n+2) .grafik--klein, .gruppen--bento .gruppe:nth-child(6) .grafik--klein { max-width: 300px; }
.gruppe .grafik--klein { transition: transform .6s var(--kurve); }
.gruppe:hover .grafik--klein { transform: scale(1.08) translateY(-6px); }
@media (max-width: 1080px) {
  .gruppen--bento { grid-template-columns: 1fr 1fr; }
  .gruppen--bento .gruppe, .gruppen--bento .gruppe:nth-child(1), .gruppen--bento .gruppe:nth-child(2) { grid-column: span 1; }
  .gruppen--bento .gruppe:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .gruppen--bento { grid-template-columns: 1fr; } .gruppen--bento .gruppe:nth-child(6) { display: flex; } }

/* Grosser Abschluss */
.schluss { position: relative; padding: clamp(100px, 14vw, 200px) 0 clamp(60px, 8vw, 120px); text-align: center; }
.schluss-titel { font: 600 clamp(56px, 12vw, 230px)/.85 Clash, sans-serif; letter-spacing: -.05em; margin: 20px auto 0; max-width: none; }
.schluss-titel span { display: block; }
.schluss-titel em { font-style: normal; color: transparent; -webkit-text-stroke: clamp(1px, .14vw, 2.5px) var(--orange); }
.schluss-kreis { position: absolute; right: clamp(10px, 8vw, 140px); bottom: clamp(30px, 6vw, 100px); width: clamp(120px, 12vw, 190px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--orange); color: #140900; font: 600 clamp(14px, 1.1vw, 18px)/1.15 DM, sans-serif; text-decoration: none; box-shadow: 0 0 80px rgba(255, 113, 32, .5); }
@media (max-width: 640px) { .schluss-kreis { position: relative; right: auto; bottom: auto; margin: 40px auto 0; } }

@media (prefers-reduced-motion: no-preference) {
  .an .buehne-weiter span { animation: weiter 1.8s ease-in-out infinite; }
}
@keyframes weiter { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Haken fuer die Bewegung des Zeichens und der Karten (neu-bewegung.js) */
.bz-linie, .bz-kante { stroke-linecap: round; }
.bz-fuellung { transform-box: fill-box; }
.bk-suchtext { letter-spacing: .01em; }
.band--rueck { margin-top: -4px; }

/* Sehr breite Bildschirme: Zeichen, Karten und Text als eine Gruppe um die Mitte statt an den Fensterraendern */
@media (min-width: 1700px) {
  .buehne .weite { width: min(1560px, 100% - 80px); }
  .buehne-karten { left: calc((100vw - 1760px) / 2); right: calc((100vw - 1760px) / 2); }
  .buehne-zeichen { right: calc((100vw - 1560px) / 2 + 40px); }
  .bk--browser { right: 34%; } .bk--chip { right: 40%; } .bk--ort { right: 18%; } .bk--suche { right: 4%; } .bk--fluss { right: 2%; }
}
