/* godlaya.de — App-Seiten im Stil „Bühne“ (apps/<name>.html, ausgeliefert als <name>.godlaya.de)
   Eigenständig: bildet die Tokens aus style.css nach, ändert dort nichts.
   Alle Pfade absolut (/assets/…), weil die Seiten unter eigener Subdomain laufen.
   Ohne JS und bei reduzierter Bewegung: ruhige, vollständig lesbare Seite.
   Animiert wird nur transform, opacity, filter. */

:root {
  --bg: #07080B;
  --bg-raise: #0D0F14;
  --fg: #F4F3EF;
  --muted: rgba(244, 243, 239, 0.70);
  --faint: rgba(244, 243, 239, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shell: rgba(255, 255, 255, 0.035);
  --core: rgba(255, 255, 255, 0.045);
  --hi: rgba(255, 255, 255, 0.12);
  --shade: rgba(0, 0, 0, 0.55);
  --glow-strength: 30%;
  --halo-strength: 46%;
  --grain: 0.05;
  --accent-ink: var(--accent);

  --st-tf: #6FAEFF;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: max(20px, 6vw);
  --wrap: 1240px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3F1EC;
    --bg-raise: #FFFFFF;
    --fg: #111216;
    --muted: rgba(17, 18, 22, 0.72);
    --faint: rgba(17, 18, 22, 0.48);
    --line: rgba(17, 18, 22, 0.10);
    --line-strong: rgba(17, 18, 22, 0.17);
    --shell: rgba(17, 18, 22, 0.035);
    --core: rgba(255, 255, 255, 0.74);
    --hi: rgba(255, 255, 255, 0.95);
    --shade: rgba(40, 36, 30, 0.22);
    --glow-strength: 22%;
    --halo-strength: 34%;
    --grain: 0.035;
    --accent-ink: color-mix(in srgb, var(--accent) 58%, #000);
    --st-tf: #1E55C8;
    color-scheme: light;
  }
}

/* ---------- Grundlage ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 40;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Bühne: Lichthof in der App-Farbe, Korn ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(44% 48% at 72% 30%, color-mix(in srgb, var(--accent) var(--glow-strength), transparent), transparent 72%),
    radial-gradient(40% 42% at 12% 88%, color-mix(in srgb, var(--accent) calc(var(--glow-strength) * 0.5), transparent), transparent 70%);
}
.grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Insel oben: Rücklink ---------- */

.app-top {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 var(--hi), 0 18px 40px -24px var(--shade);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
  transition: transform 160ms var(--ease-out);
}
.back-link .arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15px;
  transition: transform 220ms var(--ease-out);
}
.back-link:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .back-link:hover .arrow { transform: translateX(-3px) scale(1.05); }
}
.island-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.island-app img { width: 24px; height: 24px; border-radius: 22.37%; display: block; }

/* ---------- Bühne oben (Hero) ---------- */

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  max-width: var(--wrap);
  min-height: min(100vh, 980px);
  margin: 0 auto;
  padding: clamp(112px, 16vh, 150px) var(--gutter) clamp(56px, 9vh, 96px);
}
.hero-text { min-width: 0; max-width: 560px; }
.hero-text > * + * { margin-top: 20px; }

.status-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.status {
  --st: var(--st-tf);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--st);
  background: color-mix(in srgb, var(--st) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--st) 32%, transparent);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-note { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }

.app-name {
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.app-name span { min-width: 0; overflow-wrap: anywhere; }
.app-name--long { font-size: clamp(36px, 4.4vw, 64px); }
.hero-text > .app-name { margin-top: 22px; }
.app-name img {
  flex: none;
  width: 0.86em;
  height: 0.86em;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.app-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.app-lead {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.app-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
  max-width: 54ch;
  text-wrap: pretty;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--fg);
  background: var(--shell);
  border: 1px solid var(--line-strong);
}

/* Bildfläche rechts */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.halo {
  position: absolute;
  inset: -12%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) var(--halo-strength), transparent),
    color-mix(in srgb, var(--accent) calc(var(--halo-strength) * 0.3), transparent) 52%,
    transparent 100%);
}
.rings {
  position: absolute;
  inset: 7%;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.rings::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 26%, transparent);
}
.rings::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px 4px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Großes Symbol im Doppelrand (Brauch ich) */
.bezel {
  width: clamp(168px, 50%, 320px);
  aspect-ratio: 1;
  padding: clamp(8px, 1vw, 12px);
  border-radius: 30%;
  background: var(--shell);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 var(--hi), 0 40px 80px -36px var(--shade), 0 30px 90px -50px color-mix(in srgb, var(--accent) 90%, transparent);
}
.bezel-core {
  width: 100%;
  height: 100%;
  border-radius: 26%;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
}
.bezel-core img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Telefon-Fächer */
.phones { position: relative; width: 100%; height: 100%; }
.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 33%;
  padding: 5px;
  border-radius: clamp(18px, 2.4vw, 32px);
  background: color-mix(in srgb, var(--fg) 10%, var(--bg));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -36px var(--shade), 0 30px 80px -50px color-mix(in srgb, var(--accent) 80%, transparent);
}
.phone-core {
  border-radius: calc(clamp(18px, 2.4vw, 32px) - 5px);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone-core img { display: block; width: 100%; height: auto; }
.phones--3 .phone:nth-child(1) { margin: -36% 0 0 -52%; rotate: -9deg; z-index: 1; }
.phones--3 .phone:nth-child(2) { margin: -40% 0 0 -18%; width: 37%; z-index: 2; }
.phones--3 .phone:nth-child(3) { margin: -32% 0 0 17%; rotate: 9deg; z-index: 1; }

/* ---------- Abschnitte ---------- */

.app-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 11vh, 128px) var(--gutter);
}
.section-head { max-width: 760px; }
.section-head > * + * { margin-top: 16px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}

/* Doppelrand-Karten im asymmetrischen Raster */
.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 6vh, 64px);
}
.card { grid-column: span 4; }
.card--7 { grid-column: span 7; }
.card--5 { grid-column: span 5; }
.card--6 { grid-column: span 6; }
.card--12 { grid-column: span 12; }
.card {
  padding: 6px;
  border-radius: 30px;
  background: var(--shell);
  border: 1px solid var(--line);
}
.card-core {
  height: 100%;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 24px;
  background: var(--core);
  box-shadow: inset 0 1px 0 var(--hi), 0 24px 60px -44px var(--shade);
}
.card-core > * + * { margin-top: 12px; }
.card-no {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
}
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.card p:not(.card-no) { color: var(--muted); font-size: 16px; line-height: 1.62; text-wrap: pretty; }
.card .quote {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 600;
}
.card--accent .card-core {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--core);
}

/* Stationen als Haltestellen an einer Linie */
.stations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.stations li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--shell);
  border: 1px solid var(--line-strong);
}
.stations li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ReflexiO: die vier Sätze */
.mantra {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid;
  gap: clamp(4px, 1vh, 10px);
}
.mantra li {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(36px, 6.6vw, 96px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.mantra li span {
  flex: none;
  width: 2.2em;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
  transform: translateY(-0.6em);
}
.mantra li { --o: 1; opacity: var(--o); }
.mantra li:nth-child(2) { --o: 0.82; }
.mantra li:nth-child(3) { --o: 0.66; }
.mantra li:nth-child(4) { --o: 0.52; }

/* Datenschutz: eine große Aussage im Doppelrand */
.statement {
  margin-top: clamp(36px, 6vh, 56px);
  padding: 6px;
  border-radius: 34px;
  background: var(--shell);
  border: 1px solid var(--line);
}
.statement-core {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    var(--core);
  box-shadow: inset 0 1px 0 var(--hi);
}
.statement-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.statement-side > * + * { margin-top: 14px; }
.statement-side p { color: var(--muted); font-size: 16px; line-height: 1.62; }
.checks { display: grid; gap: 10px; }
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 22px no-repeat,
    color-mix(in srgb, var(--accent) 78%, #000);
}

.note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Voraussetzungen */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: clamp(28px, 5vh, 44px);
  border-top: 1px solid var(--line-strong);
}
.facts div {
  padding: 20px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts dd {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ---------- Abspann ---------- */

.site-footer {
  margin-top: clamp(24px, 6vh, 64px);
  padding: clamp(56px, 10vh, 112px) var(--gutter) 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 60%, transparent));
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links a { text-underline-offset: 4px; }
.footer-contact { color: var(--fg); overflow-wrap: anywhere; }
.sep { opacity: 0.5; }

/* ---------- Schmal ---------- */

@media (max-width: 900px) {
  .app-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    padding-top: 112px;
  }
  .hero-visual { max-width: 500px; }
  .card, .card--7, .card--5, .card--6 { grid-column: span 12; }
  .statement-core { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .app-hero { padding-top: 96px; }
  .hero-visual { max-width: none; margin: 0 -8px; width: calc(100% + 16px); }
  .phones { scale: 0.9; }
  .app-name { font-size: clamp(40px, 12.5vw, 56px); }
  .app-name--long { font-size: clamp(30px, 10.6vw, 44px); }
  .island-app { display: none; }
  .footer-contact { flex-basis: 100%; }
  .footer-contact + .sep { display: none; }
  .card { border-radius: 26px; }
  .card-core { border-radius: 20px; }
  .mantra li span { display: none; }
}

/* =========================================================
   Bewegung — nur mit JS (html.motion) und ohne reduzierte Bewegung
   ========================================================= */

/* Fächer klappt beim Laden auf */
.motion .hero-visual .phone,
.motion .hero-visual .bezel {
  animation: rise-in 1100ms var(--ease-out) both;
}
.motion .hero-visual .phone:nth-child(1) { animation-delay: 260ms; }
.motion .hero-visual .phone:nth-child(2) { animation-delay: 140ms; }
.motion .hero-visual .phone:nth-child(3) { animation-delay: 380ms; }
.motion .hero-visual .bezel { animation-delay: 160ms; }
.motion .hero-visual .halo { animation: halo-in 1600ms var(--ease-out) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(48px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes halo-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: none; }
}

/* Ringe drehen langsam */
.motion .rings { animation: spin 60s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* Einblenden beim Eintritt (gestaffelt) */
.motion [data-reveal] > * {
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion [data-reveal]:not(.in) > * {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
}

/* Tiefe: der Fächer wandert beim Scrollen leicht gegeneinander (nur CSS, scroll-gekoppelt) */
@supports (animation-timeline: view()) {
  .motion .hero-visual .phones {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  .motion .mantra li {
    animation: mantra-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 38%;
  }
}
@keyframes drift {
  to { transform: translateY(-14%); }
}
@keyframes mantra-in {
  from { opacity: 0; transform: translateX(-4%); }
  to   { opacity: var(--o); transform: none; }
}

html.tab-hidden *, html.tab-hidden *::before, html.tab-hidden *::after { animation-play-state: paused !important; }
