/* ============================================================
   sparkapp.at
   Farben aus dem App-Icon. Schriften liegen am eigenen Server,
   nichts wird von fremden Diensten nachgeladen — deshalb
   braucht die Seite auch keinen Cookie-Banner.
   ============================================================ */

/* ---------- Schriften ---------- */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Marken ---------- */

:root {
  --violett: #8306d3;
  --magenta: #d31883;
  --orange:  #fc6a21;
  --verlauf: linear-gradient(118deg, #8306d3 0%, #d31883 52%, #fc6a21 100%);

  --nacht:   #150a24;
  --tiefer:  #0d0416;
  --flaeche: #1e0f31;
  --kante:   rgba(255, 255, 255, 0.11);

  --lila:    #f4eef9;
  --tinte:   #1a0f28;
  --nebel:   #6d5f7d;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text:    "Inter", "Segoe UI", system-ui, sans-serif;

  --spalte:  70rem;
  --schnell: 180ms;
}

/* ---------- Grundlagen ---------- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nacht);
  color: #fff;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.huelle {
  width: 100%;
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 6px;
}

button { font: inherit; cursor: pointer; }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 10, 36, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--schnell);
}

.kopf[data-gescrollt="ja"] { border-bottom-color: var(--kante); }

.kopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.marke img { width: 34px; height: 34px; border-radius: 10px; display: block; }

.kopf-nav { display: flex; align-items: center; gap: 1.75rem; }

.kopf-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--schnell);
}

.kopf-nav a:hover { color: #fff; }

@media (max-width: 720px) {
  .kopf-nav .nur-breit { display: none; }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform var(--schnell), filter var(--schnell),
              background-color var(--schnell), border-color var(--schnell);
}

.knopf:active { transform: translateY(1px); }

.knopf-voll {
  background-image: var(--verlauf);
  color: #fff;
  box-shadow: 0 12px 34px rgba(190, 24, 120, 0.42);
}

.knopf-voll:hover { filter: brightness(1.13); }

.knopf-rand {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.knopf-rand:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.06);
}

.knopf-klein { padding: 0.6rem 1.25rem; font-size: 0.92rem; }

.knopfreihe { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Aufmacher ---------- */

.aufmacher {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.aufmacher::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 62%;
  height: 125%;
  background-image: var(--verlauf);
  filter: blur(110px);
  opacity: 0.4;
  pointer-events: none;
}

.aufmacher .huelle { position: relative; z-index: 1; }

.aufmacher-raster {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
  align-items: center;
}

.aufmacher-logo {
  width: 76px; height: 76px;
  border-radius: 22px;
  display: block;
  margin-bottom: 1.9rem;
  box-shadow: 0 16px 44px rgba(190, 24, 120, 0.5);
}

.aufmacher h1 {
  font-size: clamp(2.7rem, 6.6vw, 4.5rem);
  margin-bottom: 1.4rem;
}

.aufmacher-text {
  font-size: 1.16rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  max-width: 31rem;
  margin-bottom: 2.4rem;
}

.aufmacher-fuss {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Spin-Maschine ---------- */

.maschine {
  background: linear-gradient(168deg, rgba(48, 24, 74, 0.95), rgba(24, 12, 40, 0.95));
  border: 1px solid var(--kante);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.maschine-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.punkte { display: flex; gap: 5px; }

.punkte i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}

.punkte i.an { background-image: var(--verlauf); }

.walze {
  position: relative;
  height: 108px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--kante);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
}

.walze-ort {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  letter-spacing: -0.035em;
  text-align: center;
  line-height: 1.1;
}

.walze[data-laeuft="ja"] .walze-ort { opacity: 0.55; }

.walze-km {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.quest {
  margin-top: 0.85rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.035);
  padding: 1.35rem 1.25rem;
  text-align: center;
  font-size: 0.97rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quest[data-offen="ja"] {
  border-style: solid;
  border-color: rgba(252, 106, 33, 0.55);
  background: rgba(252, 106, 33, 0.1);
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
}

.maschine .knopfreihe { margin-top: 1.1rem; }
.maschine .knopf { flex: 1; }

.maschine-hinweis {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

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

.abschnitt { padding: 6rem 0; }

.abschnitt-hell {
  background: var(--lila);
  color: var(--tinte);
}

.abschnitt-titel {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 20ch;
  margin-bottom: 1.1rem;
}

.abschnitt-text {
  font-size: 1.1rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 3.5rem;
}

.abschnitt-hell .abschnitt-text { color: var(--nebel); }

/* ---------- Der Chat, der zu nichts führt ---------- */

.chat-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.chat {
  background: #fff;
  border-radius: 26px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 26px 60px rgba(26, 15, 40, 0.16);
}

.chat-titel {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--nebel);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #ece3f2;
}

.blase {
  max-width: 78%;
  padding: 0.65rem 0.95rem;
  border-radius: 17px;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
  background: #f1ebf6;
  color: var(--tinte);
  border-bottom-left-radius: 5px;
}

.blase.eigen {
  margin-left: auto;
  background-image: var(--verlauf);
  color: #fff;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 5px;
}

.blase small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.6;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.chat-ende {
  text-align: center;
  font-size: 0.86rem;
  color: var(--nebel);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #ece3f2;
}

.chat-schluss {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.18;
  margin-bottom: 1.2rem;
  color: var(--tinte);
}

.chat-raster p.chat-detail {
  color: var(--nebel);
  max-width: 40ch;
  margin-bottom: 1rem;
}

/* ---------- Funktionsstreifen ---------- */

.streifen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  padding: 3.25rem 0;
  border-top: 1px solid var(--kante);
}

.streifen:first-of-type { border-top: none; padding-top: 0; }

.streifen.gedreht .streifen-bild { order: -1; }

.streifen h3 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin-bottom: 0.85rem;
}

.streifen p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 42ch;
  margin-bottom: 1rem;
}

.streifen-merk {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--orange);
}

.streifen-bild { display: flex; justify-content: center; }

/* ---------- Handy ---------- */

.handy {
  width: 100%;
  max-width: 260px;
  border-radius: 34px;
  background: #120722;
  border: 1px solid var(--kante);
  padding: 10px;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.45);
}

.handy img, .handy .leer {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 25px;
  object-fit: cover;
}

.handy .leer {
  background-image: var(--verlauf);
  opacity: 0.22;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.88rem;
  color: #fff;
}

.bild-zeile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
}

.bild-titel {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.8rem;
}

/* ---------- Beitritt ---------- */

.beitritt {
  position: relative;
  background-image: var(--verlauf);
  padding: 5.5rem 0;
  text-align: center;
}

.beitritt h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin: 0 auto 1.1rem;
  max-width: 18ch;
}

.beitritt p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}

.beitritt .knopfreihe { justify-content: center; }

.beitritt .knopf-voll {
  background-image: none;
  background-color: #fff;
  color: var(--violett);
  box-shadow: 0 14px 34px rgba(13, 4, 22, 0.28);
}

.beitritt .knopf-voll:hover { filter: none; background-color: #f4eef9; }
.beitritt .knopf-rand { border-color: rgba(255, 255, 255, 0.55); }

.beitritt-code {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 0.7rem 1.5rem;
  margin-bottom: 2rem;
}

/* ---------- Fusszeile ---------- */

.fuss {
  background: var(--tiefer);
  padding: 3.25rem 0;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.55);
}

.fuss .huelle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fuss a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.fuss a:hover { color: var(--orange); }
.fuss nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Textseiten ---------- */

.textseite { padding: 3.5rem 0 5rem; }
.textseite .huelle { max-width: 44rem; }

.textseite h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  margin-bottom: 0.6rem;
}

.textseite .stand {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.93rem;
  margin-bottom: 3rem;
}

.textseite h2 {
  font-size: 1.3rem;
  margin: 2.9rem 0 0.8rem;
  letter-spacing: -0.025em;
}

.textseite p, .textseite li { color: rgba(255, 255, 255, 0.76); }
.textseite ul { padding-left: 1.2rem; margin: 0; }
.textseite li { margin-bottom: 0.55rem; }
.textseite a { color: #ff9b5c; }

.offen {
  background: rgba(252, 106, 33, 0.22);
  border-bottom: 1.5px solid var(--orange);
  color: #fff;
  padding: 0.08em 0.4em;
  border-radius: 4px;
  font-weight: 500;
}

.merkkasten {
  background: var(--flaeche);
  border: 1px solid var(--kante);
  border-left: 3px solid var(--orange);
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.merkkasten strong { color: var(--orange); font-weight: 600; }

/* ---------- Bewegung ---------- */

/* Ein einziger inszenierter Moment: der Aufmacher baut sich beim
   Laden gestaffelt auf. Sonst bewegt sich nur, was jemand ausloest. */

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.stufe { opacity: 0; animation: auftauchen 0.65s cubic-bezier(.22,.68,.3,1) forwards; }
.stufe-1 { animation-delay: 0.05s; }
.stufe-2 { animation-delay: 0.17s; }
.stufe-3 { animation-delay: 0.29s; }
.stufe-4 { animation-delay: 0.41s; }
.stufe-5 { animation-delay: 0.55s; }

/* Der Chatverlauf ist zeitlich, deshalb erscheint er auch zeitlich */
.blase[data-warte] { opacity: 0; }
.chat[data-laeuft="ja"] .blase[data-warte] {
  animation: auftauchen 0.45s cubic-bezier(.22,.68,.3,1) forwards;
}
.chat[data-laeuft="ja"] .blase[data-warte="1"] { animation-delay: 0.1s; }
.chat[data-laeuft="ja"] .blase[data-warte="2"] { animation-delay: 0.5s; }
.chat[data-laeuft="ja"] .blase[data-warte="3"] { animation-delay: 0.95s; }
.chat[data-laeuft="ja"] .blase[data-warte="4"] { animation-delay: 1.45s; }
.chat[data-laeuft="ja"] .blase[data-warte="5"] { animation-delay: 1.95s; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .aufmacher { padding: 2.75rem 0 3.5rem; }
  .aufmacher-raster { grid-template-columns: 1fr; gap: 2.75rem; }
  .chat-raster { grid-template-columns: 1fr; gap: 2.5rem; }
  .streifen { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .streifen.gedreht .streifen-bild { order: 0; }
  .bild-zeile { grid-template-columns: 1fr; gap: 2.25rem; }
  .abschnitt { padding: 3.75rem 0; }
  .abschnitt-text { margin-bottom: 2.5rem; }
  .beitritt { padding: 3.75rem 0; }
  .fuss .huelle { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stufe, .blase[data-warte] { opacity: 1 !important; animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
