/* ============================================================================
   QRENA Landing – SOL-Zone (Zone 2)
   ----------------------------------------------------------------------------
   Wird als LETZTES Stylesheet geladen (nach qrena-animations.css).
   Grund: landing.css und qrena-components.css definieren .card / .btn-primary /
   .section-header unscoped und teilweise mit !important. Nur die letzte
   Position gewinnt ohne !important-Krieg.

   SCOPING-VERTRAG – bei jeder Erweiterung einhalten:
   1. Jeder Selektor beginnt mit .sol-zone. Einzige Ausnahme: Abschnitt 11
      (ein neuer, nirgends sonst existierender Klassenname mit sol--Praefix
      fuer den Wegweiser in Zone 1) und @keyframes (Praefix sol-).
   2. Kein :root, kein body, kein nacktes section, kein *.
      Alle Variablen werden auf .sol-zone{} deklariert, nie global.
   3. Es wird KEIN bestehender Klassenname umdefiniert – weder in Zone 1
      noch in Zone 2. Wiederverwendet (nicht ueberschrieben) werden genau
      drei: .container, .btn/.btn-primary/.btn-xl, [data-reveal].
      -> qrena-components.css:79 setzt .card:hover{transform:none !important};
         bei Wiederverwendung von .card waeren alle Fenster-Hover tot.

   Pruefbefehl (muss leer sein, ausser @-Zeilen):
   grep -n "{" landing-sol.css | grep -v "\.sol-" | grep -v "@"
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Bett */

.sol-zone {
  /* Eigene Semantik – bewusst NICHT --bg/--text/--brand aus Zone 1 erben,
     damit ein spaeterer Token-Wechsel im Design-System den Bruch nicht killt. */
  --sol-bed:          #05070f;
  --sol-ink:          #f8fafc;
  --sol-ink-2:        #a5b4cf;
  --sol-ink-3:        #6b7a99;
  --sol-line:         rgba(148, 163, 184, 0.13);
  --sol-surface:      rgba(255, 255, 255, 0.035);

  --sol-indigo:       #818cf8;
  --sol-cyan:         #22d3ee;
  --sol-violet:       #a78bfa;

  --sol-dot-basis:    #22c55e;
  --sol-dot-standard: #facc15;
  --sol-dot-experte:  #f97316;

  --sol-r-win:        14px;
  --sol-r-card:       18px;

  position: relative;
  isolation: isolate;          /* Pflicht: erzeugt den Stacking-Context, in dem
                                  z-index:-1 auf Glow/Grain relativ zur Section
                                  wirkt statt hinter dem Body zu verschwinden. */
  overflow: hidden;
  background: var(--sol-bed);  /* deckend – body.landing-page traegt zwei
                                  background-attachment:fixed Radials, die sonst
                                  durchschimmern und die Kante weichzeichnen. */
  padding: clamp(72px, 10vw, 128px) 0;
  color: var(--sol-ink-2);
  font-family: var(--font-body);
  scroll-margin-top: calc(var(--nav-height) + 24px);

  border-top: 1px solid rgba(249, 115, 22, 0.32);
  border-bottom: 1px solid var(--sol-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Die scharfe Kante – der Design-Hook. Kein Fade, kein Verlauf nach unten. */
.sol-zone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--orange-500) 50%,
    transparent 100%);
  opacity: 0.65;
}

/* Grain – data-URI ist unter der Landing-CSP erlaubt (img-src 'self' data:) */
.sol-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sol-zone .sol-zone__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -8%,  rgba(76, 45, 145, 0.55), transparent 70%),
    radial-gradient(600px 420px at 12% 28%,  rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(520px 380px at 88% 74%,  rgba(249, 115, 22, 0.10), transparent 70%);
}

.sol-zone .sol-zone__inner {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------- 2. Header */

.sol-zone .sol-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.sol-zone .sol-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sol-ink-3);
  margin: 0 0 20px;
}

.sol-zone .sol-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  background: var(--orange-500);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}

.sol-zone .sol-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  background: linear-gradient(104deg, #ffffff 32%, #d8ccff 64%, #f5c9d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sol-zone .sol-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--sol-ink);
  margin: 0 0 14px;
}

.sol-zone .sol-lede {
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--sol-ink-2);
  margin: 0;
  max-width: 58ch;
}

/* ---------------------------------------------------- 3. Die drei Ebenen */

.sol-zone .sol-levels {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.sol-zone .sol-level {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-r-card);
  background: var(--sol-surface);
  overflow: hidden;
}

/* Farbiger Kopfstrich statt gleichfoermiger Rahmen – Ebene 2 traegt Orange,
   weil dort der Fortschritt haengt. */
.sol-zone .sol-level::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--sol-line);
}

.sol-zone .sol-level--anchor {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.07), var(--sol-surface) 60%);
}

.sol-zone .sol-level--anchor::before {
  background: linear-gradient(90deg, var(--orange-500), rgba(249, 115, 22, 0));
}

.sol-zone .sol-level__n {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.13);
  margin-bottom: 10px;
}

.sol-zone .sol-level--anchor .sol-level__n {
  color: rgba(249, 115, 22, 0.4);
}

.sol-zone .sol-level__t {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--sol-ink);
  margin: 0 0 4px;
}

.sol-zone .sol-level__meta {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sol-ink-3);
  margin-bottom: 12px;
}

.sol-zone .sol-level__d {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sol-ink-2);
  margin: 0;
}

.sol-zone .sol-level__d strong {
  color: var(--sol-ink);
  font-weight: 600;
}

.sol-zone .sol-axiom {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sol-ink-3);
  text-align: center;
  padding: 18px 12px;
  border-top: 1px solid var(--sol-line);
  border-bottom: 1px solid var(--sol-line);
  margin: 0 0 clamp(56px, 8vw, 96px);
}

.sol-zone .sol-axiom b {
  color: var(--orange-400);
  font-weight: 700;
}

/* -------------------------------------------------- 4. Fenster-Blöcke */

.sol-zone .sol-feature {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 104px);
}

.sol-zone .sol-feature__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sol-tone, var(--sol-indigo));
  margin-bottom: 12px;
}

.sol-zone .sol-feature__h {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--sol-ink);
  margin: 0 0 14px;
}

.sol-zone .sol-feature__p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sol-ink-2);
  margin: 0;
  max-width: 46ch;
}

/* Fenster-Mockup */
.sol-zone .sol-window {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--sol-r-win);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(var(--sol-tilt, -1.2deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.sol-zone .sol-window > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

/* Farbiger Glow statt schwarzem Schatten */
.sol-zone .sol-window::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.55;
  box-shadow: 0 0 64px -14px var(--sol-tone, var(--sol-indigo));
}

.sol-zone .sol-feature:hover .sol-window {
  transform: rotate(0deg) translateY(-5px);
  box-shadow:
    0 40px 90px -34px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sol-zone .sol-window--indigo { --sol-tone: var(--sol-indigo); --sol-tilt: -1.2deg; }
.sol-zone .sol-window--orange { --sol-tone: var(--orange-400);  --sol-tilt:  1.4deg; }
.sol-zone .sol-window--cyan   { --sol-tone: var(--sol-cyan);   --sol-tilt: -1.6deg; }
.sol-zone .sol-window--violet { --sol-tone: var(--sol-violet); --sol-tilt:  1.1deg; }

/* Schwebende Pillen */
.sol-zone .sol-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: sol-float 6s ease-in-out infinite;
}

.sol-zone .sol-pill--pro {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 34px rgba(249, 115, 22, 0.45);
}

.sol-zone .sol-pill--progress {
  background: rgba(5, 7, 15, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #a5f3fc;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.18);
  animation-delay: -2s;
}

.sol-zone .sol-pill--paths {
  background: rgba(5, 7, 15, 0.88);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.16);
  animation-delay: -4s;
}

.sol-zone .sol-pill__dots {
  display: inline-flex;
  gap: 4px;
}

.sol-zone .sol-pill__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.sol-zone .sol-pill__dots i:nth-child(1) { background: var(--sol-dot-basis); }
.sol-zone .sol-pill__dots i:nth-child(2) { background: var(--sol-dot-standard); }
.sol-zone .sol-pill__dots i:nth-child(3) { background: var(--sol-dot-experte); }

.sol-zone .sol-pill--tr { top: -16px;    right: -14px; }
.sol-zone .sol-pill--bl { bottom: -18px; left: -14px;  }
.sol-zone .sol-pill--br { bottom: -18px; right: -14px; }

@keyframes sol-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ------------------------------------------------- 5. Was danach bleibt */

.sol-zone .sol-output {
  border-top: 1px solid var(--sol-line);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.sol-zone .sol-output__row {
  display: grid;
  gap: 6px 28px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--sol-line);
}

.sol-zone .sol-output__t {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sol-ink);
  margin: 0;
}

.sol-zone .sol-output__d {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sol-ink-2);
  margin: 0;
}

/* ---------------------------------------------------- 6. Beispiel-Einheit */

.sol-zone .sol-starter {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: var(--sol-r-card);
  background:
    radial-gradient(420px 240px at 8% 0%, rgba(249, 115, 22, 0.12), transparent 70%),
    var(--sol-surface);
  box-shadow: 0 0 48px -18px rgba(249, 115, 22, 0.5);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.sol-zone .sol-starter__h {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 700;
  color: var(--sol-ink);
  margin: 0 0 12px;
}

.sol-zone .sol-starter__p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sol-ink-2);
  margin: 0 0 20px;
  max-width: 62ch;
}

.sol-zone .sol-starter__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orange-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.sol-zone .sol-starter__link:hover {
  color: #fff;
  border-color: var(--orange-400);
  gap: 13px;
}

/* -------------------------------------------------- 7. Story-Platzhalter */

.sol-zone .sol-story {
  padding: 28px;
  margin: 0 0 clamp(48px, 7vw, 80px);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: var(--sol-r-card);
  background: var(--sol-surface);
}

.sol-zone .sol-story__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sol-ink-3);
  margin-bottom: 12px;
}

.sol-zone .sol-story blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sol-ink);
  margin: 0 0 12px;
}

.sol-zone .sol-story figcaption {
  font-size: 0.9rem;
  color: var(--sol-ink-3);
}

/* ------------------------------------------------------------- 8. CTA */

.sol-zone .sol-cta {
  text-align: center;
  padding-top: 8px;
}

.sol-zone .sol-cta__h {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sol-ink);
  margin: 0 0 12px;
}

.sol-zone .sol-cta__p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sol-ink-2);
  margin: 0 0 28px;
}

/* Weiss auf --orange-500 (#f97316) ergibt ~2,9:1 und reisst die
   Large-Text-Schwelle von 3:1. --orange-600 liegt bei ~3,5:1. */
.sol-zone .sol-cta .btn-primary {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-color: transparent;
  box-shadow: 0 14px 42px -12px rgba(249, 115, 22, 0.65);
}

.sol-zone .sol-cta .btn-primary:hover {
  box-shadow: 0 20px 56px -12px rgba(249, 115, 22, 0.8);
}

.sol-zone .sol-cta__link {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--sol-ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sol-zone .sol-cta__link:hover {
  color: var(--sol-ink);
  border-color: var(--sol-line);
}

/* ------------------------------------------------------- 9. Breakpoints */

@media (min-width: 768px) {
  .sol-zone .sol-levels {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .sol-zone .sol-output__row {
    grid-template-columns: minmax(220px, 0.9fr) 1.6fr;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .sol-zone .sol-feature {
    grid-template-columns: 0.85fr 1.15fr;
  }

  /* Struktureller Wechsel: jeder zweite Block spiegelt.
     order statt direction, damit die Lesereihenfolge im DOM stimmt. */
  .sol-zone .sol-feature--flip .sol-feature__text  { order: 2; }
  .sol-zone .sol-feature--flip .sol-feature__media { order: 1; }

  .sol-zone .sol-starter {
    padding-right: 22%;
  }
}

/* Rotierte Fenster und absolut gesetzte Pillen erzeugen auf schmalen
   Viewports horizontales Scrollen – deshalb hier zurueckbauen. */
@media (max-width: 767px) {
  .sol-zone .sol-window,
  .sol-zone .sol-feature:hover .sol-window {
    transform: none;
  }
}

@media (max-width: 639px) {
  .sol-zone .sol-feature__media {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sol-zone .sol-pill {
    position: static;
    animation: none;
  }
}

/* --------------------------------------------------- 10. Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  .sol-zone .sol-pill {
    animation: none;
  }

  .sol-zone .sol-window,
  .sol-zone .sol-feature:hover .sol-window {
    transform: none;
    transition: none;
  }

  .sol-zone [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------- 11. Wegweiser in Zone 1 (Ausnahme)
   Einziger Selektor ausserhalb von .sol-zone. Neuer Klassenname, existiert
   nirgends sonst im Projekt – ueberschreibt also nichts Bestehendes.
   Gehoert zur Feature-Karte "SOL", die auf die SOL-Zone verlinkt.          */

.sol-signpost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--orange-400);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.sol-signpost-link:hover {
  color: #fff;
  gap: 13px;
}
