/*
 * Hotelspread: Effekte und Hero für Hauptseite und Übergangsseite (gemeinsam genutzt, siehe fx.js).
 * Enthält: Fortschrittsbalken, dunklen Hero mit Netzwerk-Hintergrund, Einblenden beim Scrollen, Lichtreflex auf Karten,
 * die "Wortwand" (Angebot in einem Wort, an die Scrollposition gebunden) und das ausklappbare Detail-Feld der Seminarthemen.
 * Ohne JavaScript oder bei "weniger Bewegung" bleibt alles als gut lesbare Liste sichtbar.
 */

/* Fortschrittsbalken oben */
.fx-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, #0364ce, #8dbcf5 60%, #46c8aa);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Hero: dunkel, mit animiertem Netzwerk (canvas#net) */
.cs-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(3,100,206,.55), transparent 65%),
    radial-gradient(700px 420px at 8% 92%, rgba(141,188,245,.18), transparent 60%),
    linear-gradient(160deg, #021d3a 0%, #022f5b 55%, #04427f 100%);
  color: #fff;
}
.cs-hero #net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cs-hero-in { position: relative; text-align: center; display: grid; justify-items: center; }
.cs-hero .eyebrow { color: #8dbcf5; }
.cs-hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: .35em; text-wrap: balance; }
.cs-hero h1 span { background: linear-gradient(90deg, #8dbcf5, #5fd7bd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-hero .lead { color: #cfdcec; margin-inline: auto; text-wrap: balance; }
.cs-hero .btns { justify-content: center; margin-top: 30px; }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost.light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.js .cs-hero-in > * { animation: fx-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .cs-hero-in > *:nth-child(2) { animation-delay: .08s; }
.js .cs-hero-in > *:nth-child(3) { animation-delay: .16s; }
.js .cs-hero-in > *:nth-child(4) { animation-delay: .24s; }
.js .cs-hero-in > *:nth-child(5) { animation-delay: .32s; }
.js .cs-hero-in > *:nth-child(6) { animation-delay: .4s; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Glänzende Knöpfe */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn.primary:hover::after { left: 130%; }

/* Einblenden beim Scrollen (nur mit JavaScript; ohne bleibt alles sichtbar) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .grid .rv:nth-child(2), .js .grid-c .rv:nth-child(2) { transition-delay: .06s; }
.js .grid .rv:nth-child(3), .js .grid-c .rv:nth-child(3) { transition-delay: .12s; }
.js .grid .rv:nth-child(4), .js .grid-c .rv:nth-child(4) { transition-delay: .18s; }

/* Lichtreflex, der dem Zeiger über Karten folgt */
.card, .goal-card, .topics div, .steps4 li { position: relative; overflow: hidden; }
.card::after, .goal-card::after, .topics div::after, .steps4 li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(3,100,206,.11), transparent 65%);
}
.goal-card::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 65%); }
.card:hover::after, .goal-card:hover::after, .topics div:hover::after, .steps4 li:hover::after { opacity: 1; }

/* Sektionen: Ankersprünge nicht unter dem Kopfbereich */
section { scroll-margin-top: 72px; }
#elviora { scroll-margin-top: 90px; }
.mini-phone { transition: transform .2s ease-out; will-change: transform; }

/* ───────── Wortwand: das Angebot in einem Wort ───────── */
.ww {
  position: relative; color: #fff; padding: 0;
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(3,100,206,.38), transparent 60%),
    radial-gradient(800px 520px at 92% 82%, rgba(70,200,170,.14), transparent 60%),
    linear-gradient(180deg, #04427f 0%, #022f5b 45%, #021d3a 100%);
}
.ww .eyebrow { color: #8dbcf5; }
.ww-track { padding: clamp(64px, 10vw, 110px) 0; }
.ww-in { position: relative; }
.ww-stage { display: grid; gap: 4px; margin-top: 18px; }
.ww-item { display: grid; gap: 10px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ww-word {
  margin: 0; font-family: "Raleway", system-ui, sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  font-size: clamp(2.2rem, 7vw, 4.4rem); white-space: nowrap;
  padding-bottom: .16em; margin-bottom: -.16em;   /* Unterlängen (g, p, j) nicht abschneiden: Textverlauf (background-clip) endet sonst an der Zeilenhöhe */
  background: linear-gradient(90deg, #fff 30%, #9fc3ee); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ww-line { color: #cfdcec; font-size: 1.08rem; max-width: 46ch; }
.ww .sem-tag { background: rgba(255,255,255,.12); color: #bcd8f7; width: max-content; margin: 0; }
.ww .sem-tag.tb { background: rgba(70,200,170,.18); color: #8de6d0; }
.ww-sub { color: #cfdcec; max-width: 52ch; margin: 10px 0 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.5; font-size: clamp(1rem, 2vw, 1.2rem); }
.ww-num, .ww-count, .ww-hint { display: none; }
.ww-foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }

/* Mit JavaScript: Bereich bleibt stehen und wechselt Wort für Wort beim Scrollen.
   Die Höhe der Strecke setzt fx.js nach der Zahl der Wörter (so können beliebig viele Seminare dazukommen). */
.ww-on .ww-track { padding: 0; }
.ww-on .ww-stick { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
.ww-on .ww-in { width: 100%; }
.ww-on .ww-stage { position: relative; display: block; height: min(46vh, 380px); margin-top: 6px; }
.ww-on .ww-item {
  position: absolute; inset: 0; border: 0; padding: 0; align-content: center; gap: 16px;
  opacity: 0; transform: translateY(54px) scale(.97); filter: blur(12px); pointer-events: none;
  transition: opacity .55s ease, transform .75s cubic-bezier(.2,.7,.2,1), filter .55s ease;
}
.ww-on .ww-item.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.ww-on .ww-item.past { transform: translateY(-54px) scale(.97); }
.ww-on .ww-word { font-size: clamp(2.2rem, 10vw, 8.4rem); }
.ww-on .ww-line { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
.ww-on .ww-num {
  display: block; position: absolute; right: 0; top: -2vh; z-index: -1; pointer-events: none;
  font-family: "Raleway", sans-serif; font-weight: 700; font-size: clamp(6rem, 24vw, 17rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.13);
}
.ww-on .ww-foot { margin-top: 22px; }
.ww-on .ww-count { display: inline; }
.ww-rail { list-style: none; display: flex; gap: 5px; flex: 1 1 100%; margin: 0; padding: 0; }
.ww-rail li { flex: 1; height: 28px; display: flex; align-items: center; cursor: pointer; }
.ww-rail li::before { content: ""; width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); transition: background .3s, height .3s; }
.ww-rail li.done::before { background: #5fa8f2; }
.ww-rail li.on::before { background: #fff; height: 5px; }
.ww-rail li.tb.done::before { background: #46c8aa; }
.ww-rail li.tb.on::before { background: #8de6d0; }
.ww-count { font-family: "Raleway", sans-serif; font-weight: 700; color: #9fc3ee; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.ww-hint { display: none; }
.ww-on .ww-hint { display: inline-flex; align-items: center; gap: 8px; color: #9fc3ee; font-size: .9rem; }
.ww-hint::after { content: ""; width: 9px; height: 9px; border: solid #9fc3ee; border-width: 0 2px 2px 0; transform: rotate(45deg); animation: fx-nudge 1.4s ease-in-out infinite; }
@keyframes fx-nudge { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(3px, 3px); } }
.ww-skip {
  margin-left: auto; padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--navy, #022f5b);
  font-family: "Raleway", sans-serif; font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: transform .15s ease, background .15s ease;
}
.ww-skip:hover { background: #e8f1fc; transform: translateY(-2px); }
@media (max-width: 520px) { .ww-skip { margin-left: 0; width: 100%; text-align: center; } }

/* Ausklappbare Detailansicht der Seminarthemen */
.sem-more { margin-top: 30px; }
.sem-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--navy);
  font-family: "Raleway", sans-serif; font-weight: 700; transition: border-color .2s, box-shadow .2s;
}
.sem-more > summary::-webkit-details-marker { display: none; }
.sem-more > summary::after { content: ""; width: 9px; height: 9px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.sem-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.sem-more > summary:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(3,100,206,.12); }
.sem-more > summary:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }

@media (max-width: 860px) {
  .ww-on .ww-stage { height: min(44vh, 340px); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-progress { display: none; }
  .js .rv, .js .rv.in { opacity: 1; transform: none; transition: none; }
  .js .cs-hero-in > * { animation: none; }
  .btn.primary::after, .ww-hint::after { display: none; }
}
