/* Startseite: 3D-Lagebild im Hero (WebGL), Schrift-Effekte, Licht-Raster, Scroll-Text, Karten-Neigung, Lesefortschritt, Zähler.
   Nur auf index.html eingebunden. Ohne JavaScript, ohne WebGL und bei "Bewegung reduzieren" bleibt die ruhige Fassung. */

:root{
  --lage-bg:#081A2C;
  --lage-bg-2:#0F2F52;
  --lage-text:#E6EEF7;
  --lage-muted:#A9BCD0;
  --lage-ok:#8FB6E8;
  --lage-fund:#F97316;
}

/* ---------- Kopfzeile über dem dunklen Hero ---------- */
header.kopf-dunkel{background:rgba(8,26,44,.94);border-bottom-color:rgba(143,182,232,.14);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
header{transition:background-color .35s ease,border-color .35s ease,box-shadow .25s ease}
header.kopf-dunkel .brand span,header.kopf-dunkel .nav ul a{color:#E6EEF7}
header.kopf-dunkel .nav ul a:hover,header.kopf-dunkel .nav ul a.active{color:#fff}
header.kopf-dunkel .nav-toggle{color:#fff}
header.kopf-dunkel .brand img{border-radius:6px}
@media(max-width:840px){header.kopf-dunkel .nav ul{background:var(--lage-bg)}}

/* ---------- Hero als Bühne ---------- */
.hero-wow{
  position:relative;isolation:isolate;padding:0;
  background:radial-gradient(1100px 700px at 74% 46%, var(--lage-bg-2) 0%, rgba(15,47,82,0) 64%), var(--lage-bg);
  color:var(--lage-text);
}
.hero-wow .lage-buehne{position:relative;overflow:hidden;padding:88px 0 96px}
.hero-wow.gepinnt{height:240vh}
.hero-wow.gepinnt .lage-buehne{position:sticky;top:72px;height:calc(100vh - 72px);min-height:560px;
  display:flex;align-items:center;padding:0}
.hero-wow.gepinnt .hero-grid{width:100%;align-items:center}
.hero-wow .lage-gl{position:absolute;inset:0;width:100%;height:100%;z-index:0;display:block;pointer-events:none}
.hero-wow .hero-grid{position:relative;z-index:2}
.hero-wow::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;z-index:1;pointer-events:none;
  background:linear-gradient(to bottom, rgba(8,26,44,0), rgba(8,26,44,.7))}

/* Licht-Raster: feines Netz, das unter dem Mauszeiger aufleuchtet */
.lage-raster{position:absolute;inset:0;z-index:1;pointer-events:none;
  --mx:70%;--my:45%;
  background-image:
    linear-gradient(rgba(143,182,232,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,182,232,.55) 1px, transparent 1px);
  background-size:56px 56px;background-position:-1px -1px;
  -webkit-mask-image:radial-gradient(circle 260px at var(--mx) var(--my), rgba(0,0,0,.55), rgba(0,0,0,.06) 60%, rgba(0,0,0,.035) 100%);
          mask-image:radial-gradient(circle 260px at var(--mx) var(--my), rgba(0,0,0,.55), rgba(0,0,0,.06) 60%, rgba(0,0,0,.035) 100%);
}

.hero-wow h1{color:#fff;letter-spacing:-.015em;font-size:clamp(1.8rem,2.75vw,2.5rem);line-height:1.13}
.hero-wow .hero-grid{grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr)}
.hero-wow .author{margin-top:26px}
.hero-wow .lead{margin-bottom:24px}
.hero-wow .mark{color:var(--lage-ok)}
.hero-wow .lead{color:var(--lage-muted)}
.hero-wow .hero-kicker{background:rgba(255,255,255,.06);color:#FDBA8C;box-shadow:inset 0 0 0 1px rgba(249,115,22,.4)}
.hero-wow .author strong{color:#fff}
.hero-wow .author small{color:var(--lage-muted)}
.hero-wow .author .avatar{box-shadow:0 0 0 2px rgba(143,182,232,.45)}
.hero-wow .btn{position:relative;box-shadow:0 12px 34px -10px rgba(249,115,22,.75);transition:transform .25s cubic-bezier(.2,.8,.2,1),background-color .2s}
.hero-wow .btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hero-wow .hero-visual{margin-top:40px}

/* Mit WebGL übernimmt das 3D-Bild den Platz des Schilds */
.gl-an .hero-wow .hero-visual svg{visibility:hidden}
.gl-an .hero-wow .hero-visual{min-height:440px}

/* Statuszeile und Scroll-Hinweis */
.lage-status{position:absolute;z-index:3;left:72%;bottom:46px;transform:translateX(-50%);
  display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap;
  font-size:.92rem;color:var(--lage-muted);font-variant-numeric:tabular-nums;
  padding:8px 16px;border-radius:999px;background:rgba(8,26,44,.55);box-shadow:inset 0 0 0 1px rgba(143,182,232,.18);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lage-status .lage-dot{width:9px;height:9px;border-radius:50%;background:var(--lage-fund);flex:none;
  box-shadow:0 0 0 0 rgba(249,115,22,.6);animation:lagePuls 1.4s ease-out infinite}
.hero-wow.lage-fertig .lage-status .lage-dot{background:var(--lage-ok);animation:none;box-shadow:0 0 0 4px rgba(143,182,232,.18)}
.hero-wow.lage-fertig .lage-status{color:#fff}
@keyframes lagePuls{0%{box-shadow:0 0 0 0 rgba(249,115,22,.55)}100%{box-shadow:0 0 0 10px rgba(249,115,22,0)}}

.lage-hinweis{display:none}
.hero-wow.gepinnt .lage-hinweis{display:flex;position:absolute;z-index:3;left:50%;bottom:14px;transform:translateX(-50%);
  flex-direction:column;align-items:center;gap:8px;margin:0;font-size:.78rem;color:var(--lage-muted);letter-spacing:.02em;
  transition:opacity .4s ease}
.lage-hinweis span{width:22px;height:34px;border-radius:12px;box-shadow:inset 0 0 0 2px rgba(169,188,208,.6);position:relative;order:-1}
.lage-hinweis span::after{content:"";position:absolute;left:50%;top:7px;width:4px;height:7px;margin-left:-2px;border-radius:2px;
  background:var(--lage-fund);animation:hinweisRad 1.6s ease-in-out infinite}
@keyframes hinweisRad{0%{transform:translateY(0);opacity:1}70%{transform:translateY(10px);opacity:0}100%{opacity:0}}
.hero-wow.gescrollt .lage-hinweis{opacity:0}

/* ---------- Überschrift: Wörter steigen auf, Kernbegriffe werden entschlüsselt ---------- */
.wort{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.wort>.wi{display:inline-block;transform:translateY(108%);transition:transform .8s cubic-bezier(.16,1,.3,1)}
.wort-an .wort>.wi{transform:none}
.hero-wow .mark .wi{white-space:nowrap}
.hero-wow .mark .wi.krypt{color:var(--lage-fund);font-variant-ligatures:none}
.hero-wow .einblenden{opacity:0;transform:translateY(14px);transition:opacity .8s ease,transform .8s cubic-bezier(.16,1,.3,1)}
.wort-an .einblenden{opacity:1;transform:none}

/* ---------- Scroll-Text: Wörter leuchten beim Lesen auf ---------- */
.lichttext .lw{opacity:.16;transition:opacity .25s linear}
.lichttext .lw.an{opacity:1}

/* ---------- Karten: Neigung und Licht unter der Maus ---------- */
@media (hover:hover) and (pointer:fine){
  .js-wow .thesis .card{transform-style:preserve-3d;will-change:transform;
    transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease;position:relative;overflow:hidden}
  .js-wow .thesis .card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
    transition:opacity .3s ease;
    background:radial-gradient(260px circle at var(--gx,50%) var(--gy,50%), rgba(249,115,22,.16), transparent 65%);
    box-shadow:inset 0 0 0 1px rgba(249,115,22,.35)}
  .js-wow .thesis .card.neigt::after{opacity:1}
  .js-wow .thesis .card.neigt{box-shadow:0 22px 44px -22px rgba(16,42,67,.45);transition:transform .12s linear,box-shadow .3s ease}
}

/* ---------- Lesefortschritt entlang der Thesis ---------- */
.thesis .thesis-fortschritt{
  position:absolute;left:9px;top:6px;bottom:6px;width:3px;z-index:0;pointer-events:none;
  background:var(--orange);transform-origin:top;transform:scaleY(0);border-radius:2px;
  box-shadow:0 0 12px rgba(249,115,22,.55)
}
.js-wow .thesis-step::before{transition:background-color .35s ease, box-shadow .35s ease}
.js-wow .thesis-step.erreicht::before{background:var(--orange);box-shadow:0 0 0 2px var(--orange),0 0 16px 2px rgba(249,115,22,.55)}
.thesis-step{z-index:1}

/* ---------- Handy und Tablet ---------- */
@media (max-width:900px){
  .hero-wow .lage-buehne{padding:28px 0 64px}
  .hero-wow .hero-grid{grid-template-columns:1fr}
  .hero-wow .hero-grid .hero-visual{margin-top:0;max-width:240px}
  .gl-an .hero-wow .hero-visual{min-height:215px;max-width:250px}
  .lage-status{left:50%;bottom:18px;font-size:.8rem;padding:6px 12px}
  .lage-raster{background-size:40px 40px}
}

/* ---------- Ruhige Fassung ---------- */
@media (prefers-reduced-motion:reduce){
  .wort>.wi,.hero-wow .einblenden{transform:none;opacity:1;transition:none}
  .lage-status .lage-dot,.lage-hinweis span::after{animation:none}
  .thesis .thesis-fortschritt{display:none}
  .lichttext .lw{opacity:1}
}
