/* Hero: Drahtgitter-Netz (Canvas), Bühne mit Website, schwebenden Signalen und Röntgenblick */

.hero { position: relative; isolation: isolate; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 45% at 10% 15%, rgba(143, 212, 216, .42), transparent 70%),
    radial-gradient(40% 45% at 90% 10%, rgba(34, 172, 223, .18), transparent 70%),
    radial-gradient(30% 30% at 75% 90%, rgba(255, 195, 92, .20), transparent 70%);
}
.netz {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .55) 38%, #000 62%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .55) 38%, #000 62%), linear-gradient(#000 70%, transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-1); margin-bottom: 22px;
}
.pille .punkt { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); font-weight: 800; }
.marker { background: linear-gradient(transparent 62%, rgba(255, 195, 92, .6) 62%, rgba(255, 195, 92, .6) 92%, transparent 92%); padding: 0 .06em; }
.hero .einleitung { font-size: clamp(17px, 1.6vw, 20px); margin-top: 22px; max-width: 560px; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.vertrauen { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.vertrauen li { display: inline-flex; align-items: center; gap: 8px; }
.vertrauen svg { width: 18px; height: 18px; color: var(--brand-strong); }
@media (max-width: 980px) {
  .hero { padding: 36px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .netz { -webkit-mask-image: linear-gradient(#000 0, #000 75%, transparent); mask-image: linear-gradient(#000 0, #000 75%, transparent); opacity: .7; }
}

/* Bühne */
.buehne { --mx: 0; --my: 0; position: relative; aspect-ratio: 1 / .84; font-size: clamp(10px, 1.35vw, 15px); }
.seite {
  --x: 50%; --y: 50%; --r: 0px;
  position: absolute; left: 8%; top: 13%; width: 84%;
  border-radius: 1.2em; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden;
  transform: perspective(1400px) rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 4deg));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  user-select: none; -webkit-user-select: none;
}
.seite-leiste { display: flex; align-items: center; gap: .8em; height: 2.6em; padding: 0 1em; border-bottom: 1px solid var(--line); background: #f6f9fb; }
.seite-leiste .ampel { display: flex; gap: .4em; }
.seite-leiste .ampel i { width: .65em; height: .65em; border-radius: 50%; background: #dfe6ec; }
.seite-adresse { flex: 1; display: flex; align-items: center; gap: .4em; height: 1.75em; padding: 0 .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82em; color: var(--ink-3); }
.seite-adresse svg { width: 1em; height: 1em; color: var(--ok); }
.seite-flaeche { position: relative; aspect-ratio: 16 / 10; touch-action: pan-y; }
.box { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }

/* Gerüst: sichtbar, bis alle Teile gelandet sind */
.geruest .box { border: 1.5px dashed rgba(10, 120, 166, .45); border-radius: .5em; background: rgba(34, 172, 223, .04); }
.geruest { position: absolute; inset: 0; transition: opacity .8s ease .3s; }
.buehne.gebaut .geruest { opacity: 0; }

/* Teile der Website */
.teil {
  opacity: 0; transform: translate(var(--vx, 0), var(--vy, -40px)) rotate(var(--vr, 0deg)) scale(.9);
  transition: opacity .55s ease, transform .9s cubic-bezier(.18, .9, .25, 1.15);
  transition-delay: calc(var(--i, 0) * 110ms + 250ms);
}
.buehne.baut .teil, .buehne.gebaut .teil { opacity: 1; transform: none; }
.t-marke { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: .9em; color: var(--ink); white-space: nowrap; }
.t-marke i { width: 1.5em; height: 1.5em; border-radius: 50%; background: linear-gradient(135deg, var(--sun), #ff9f68); flex: none; }
.t-links { display: flex; justify-content: flex-end; align-items: center; gap: 1.1em; white-space: nowrap; font-size: .78em; color: var(--ink-3); font-weight: 600; }
.t-ober { font-size: .72em; font-weight: 800; color: #c2410c; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; }
.t-h1 { font-size: 1.62em; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.t-text { display: grid; gap: .45em; align-content: start; }
.t-text i { display: block; height: .5em; border-radius: 4px; background: #e3eaf0; }
.t-text i:last-child { width: 72%; }
.t-knopf { display: grid; place-items: center; border-radius: 999px; background: #ea580c; color: #fff; font-weight: 700; font-size: .78em; }
.t-bild { border-radius: .8em; overflow: hidden; box-shadow: 0 .6em 1.4em -.8em rgba(19, 34, 49, .45); }
.t-bild svg { width: 100%; height: 100%; display: block; }
.t-karte { border: 1px solid var(--line); border-radius: .7em; padding: 0 .7em; background: #fff; font-size: .74em; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .55em; white-space: nowrap; overflow: hidden; }
.t-karte i { flex: none; width: 1.8em; height: 1.8em; border-radius: .5em; background: var(--mint-soft); }
.t-karte:nth-of-type(2) i { background: var(--sun-soft); }
.t-karte b { color: #d97706; letter-spacing: .1em; font-size: .9em; }

/* Röntgenblick: der Bauplan unter der Oberfläche */
.bauplan {
  position: absolute; inset: 0; pointer-events: none;
  background: #0b2a40;
  background-image: linear-gradient(rgba(143, 212, 216, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 212, 216, .09) 1px, transparent 1px);
  background-size: 1.4em 1.4em;
  clip-path: circle(var(--r) at var(--x) var(--y));
}
.bauplan .box { border: 1.5px solid rgba(143, 212, 216, .75); border-radius: .5em; background: rgba(143, 212, 216, .06); }
.bauplan .box span {
  position: absolute; left: .45em; top: .35em; right: .3em;
  font: 700 .66em/1.25 var(--mono); letter-spacing: .02em; color: #bdeff2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bauplan .box span b { color: #4ade80; }
.linse {
  position: absolute; left: 0; top: 0; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; pointer-events: none;
  transform: translate(calc(var(--lx, 0px) - var(--r)), calc(var(--ly, 0px) - var(--r)));
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 .45em rgba(34, 172, 223, .2), 0 .9em 2.2em -.5em rgba(7, 60, 90, .5), inset 0 0 1.4em rgba(143, 212, 216, .3);
  opacity: 0; transition: opacity .4s;
}
.buehne.gebaut .linse { opacity: 1; }
.linse::after { content: ""; position: absolute; right: 16%; top: 13%; width: 18%; height: 9%; border-radius: 50%; background: rgba(255, 255, 255, .4); transform: rotate(35deg); }
.buehne.gebaut .seite-flaeche { cursor: none; }
@media (hover: none) { .buehne.gebaut .seite-flaeche { cursor: default; } }

/* Schwebende Signale: Google, KI, Daten, Tempo */
.schwebe {
  position: absolute; z-index: 2; opacity: 0;
  transform: translate3d(calc(var(--mx) * var(--tiefe) * 22px), calc(var(--my) * var(--tiefe) * 16px), 0) scale(.92);
  transition: opacity .6s ease, transform .9s cubic-bezier(.18, .9, .25, 1.1);
}
.buehne.gebaut .schwebe {
  opacity: 1; transform: translate3d(calc(var(--mx) * var(--tiefe) * 22px), calc(var(--my) * var(--tiefe) * 16px), 0);
  transition: opacity .6s ease var(--ed, 0s), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.schwebe .innen {
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 1em; padding: .8em 1em;
  box-shadow: 0 1.2em 2.6em -1.2em rgba(8, 72, 110, .45), 0 2px 6px rgba(19, 34, 49, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: schweben 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.schwebe .innen { font-size: .9em; }
.s-google { left: -7%; top: -1%; width: 40%; }
.s-sicher { right: -5%; top: 5%; }
.s-daten { right: -8%; top: 50%; }
.s-ki { left: -7%; bottom: -3%; width: 44%; }
.s-tempo { right: -2%; bottom: -2%; }
.s-kopf { display: flex; align-items: center; gap: .45em; font-size: .72em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5em; }
.s-kopf svg { width: 1.25em; height: 1.25em; }
.s-domain { display: flex; align-items: center; gap: .45em; font-size: .78em; color: var(--ink-3); }
.s-domain i { width: 1.25em; height: 1.25em; border-radius: 50%; background: linear-gradient(135deg, var(--sun), #ff9f68); }
.s-titel { color: #1d4ed8; font-weight: 700; font-size: .98em; margin: .2em 0 .15em; }
.s-sterne { font-size: .78em; color: var(--ink-3); }
.s-sterne b { color: #f59e0b; letter-spacing: .08em; }
.s-frage { font-size: .8em; color: var(--ink-3); font-style: italic; margin-bottom: .35em; }
.s-antwort { font-size: .86em; color: var(--ink); line-height: 1.4; }
.s-quelle { display: inline-flex; gap: .35em; align-items: center; margin-top: .55em; font-size: .72em; font-weight: 700; color: var(--brand-deep); background: var(--mint-soft); padding: .2em .65em; border-radius: 999px; }
.s-ki .innen { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--mint), var(--brand), #a78bfa) border-box; }
.s-pille { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; font-size: .8em; font-weight: 700; color: var(--ink); padding: .65em .95em; }
.s-pille .gruen { width: .6em; height: .6em; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 .3em rgba(34, 197, 94, .18); }
.s-pille small { color: var(--ink-3); font-weight: 600; }
.s-tempo .innen { display: flex; align-items: center; gap: .7em; padding: .7em .9em; }
.s-tempo svg { width: 3em; height: 3em; }
.s-tempo b { display: block; font-size: 1.15em; }
.s-tempo small { font-size: .72em; color: var(--ink-3); font-weight: 600; }

.buehne-hinweis { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 18px; font-size: 14.5px; color: var(--ink-3); text-align: center; }
.buehne-hinweis svg { width: 18px; height: 18px; color: var(--brand-strong); flex: none; }
.hinweis-touch { display: none; }
@media (hover: none) { .hinweis-maus { display: none; } .hinweis-touch { display: inline; } }
@media (max-width: 560px) { .t-links span:first-of-type { display: none; } .s-daten { display: none; } .s-google { width: 56%; } .s-ki { width: 62%; } }

@media (prefers-reduced-motion: reduce) {
  .teil, .schwebe, .geruest { transition: none !important; }
  .schwebe .innen { animation: none; }
  .seite { transform: none !important; }
}
