/* ============================================================
   Luna Lernapp — lunalernapp.at
   Farbwelt der App: Pastell-Grund, Lila, Rosa-Akzent
   Mobile zuerst, heller Modus, kein Tracking, keine Cookies.
   ============================================================ */

:root {
  --grund: #faf7ff;
  --lila: #7b4fc9;
  --lila-dunkel: #5d3a9e;
  --lila-tief: #3d2a66;
  --rosa: #e0679a;
  --rosa-hell: #fdeef5;
  --karte: #ffffff;
  --text: #3a3350;
  --text-leise: #6f6788;
  --linie: #e9e2f7;
  --schatten: 0 6px 24px rgba(123, 79, 201, 0.10);
  --schatten-gross: 0 14px 44px rgba(123, 79, 201, 0.16);
  --radius: 18px;
  --radius-gross: 26px;
  --schrift-titel: "Baloo 2", "Segoe UI Rounded", "Comic Sans MS", system-ui, sans-serif;
  --schrift-text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  color: var(--lila-tief);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--lila); }
a:hover { color: var(--lila-dunkel); }

code {
  background: var(--rosa-hell);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
  color: var(--lila-dunkel);
  white-space: nowrap;
}

img { max-width: 100%; display: block; }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lila);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--lila), #9a6ee0);
  color: #fff;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(123, 79, 201, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(123, 79, 201, 0.42);
  color: #fff;
}
.btn:focus-visible {
  outline: 3px solid var(--rosa);
  outline-offset: 3px;
}
.btn-hell {
  background: var(--karte);
  color: var(--lila-dunkel);
  border: 2px solid var(--lila);
  box-shadow: 0 4px 14px rgba(123, 79, 201, 0.14);
}
.btn-hell:hover { color: var(--lila-tief); }
.btn-gross { padding: 16px 32px; font-size: 1.12rem; }
.btn-klein { padding: 9px 18px; font-size: 0.95rem; }
.btn-bald {
  background: #cfc6e4;
  color: #5c5477;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.bald-etikett {
  background: rgba(255, 255, 255, 0.7);
  color: var(--lila-dunkel);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 2px 10px;
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--lila-tief);
}
.logo-mond { font-size: 1.4rem; }
.kopf-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.kopf-nav a {
  text-decoration: none;
  color: var(--text-leise);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.kopf-nav a:hover {
  background: var(--rosa-hell);
  color: var(--lila-dunkel);
}
.kopf .btn-klein { margin-left: auto; }

@media (min-width: 860px) {
  .kopf-nav { display: flex; }
  .kopf .btn-klein { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(224, 103, 154, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(123, 79, 201, 0.14), transparent 60%),
    var(--grund);
  text-align: center;
  padding: 56px 18px 64px;
}
.hero-innen {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}
.hero-vorzeile {
  display: inline-block;
  background: var(--rosa-hell);
  color: var(--rosa);
  border: 1px solid #f6cfe0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 0.2em;
  background: linear-gradient(120deg, var(--lila), var(--rosa));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-claim {
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  color: var(--text-leise);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-claim strong { color: var(--lila-dunkel); }
.hero-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

/* Funkel-Akzente (dezent!) */
.funkel span {
  position: absolute;
  color: var(--rosa);
  opacity: 0.35;
  font-size: 1.2rem;
  animation: funkeln 3.5s ease-in-out infinite;
}
.funkel .f1 { top: 12%; left: 8%; }
.funkel .f2 { top: 22%; right: 10%; font-size: 1.6rem; animation-delay: 0.8s; }
.funkel .f3 { top: 55%; left: 4%; font-size: 0.9rem; animation-delay: 1.6s; }
.funkel .f4 { top: 8%; left: 46%; animation-delay: 2.2s; }
.funkel .f5 { top: 62%; right: 5%; animation-delay: 1.1s; }
.funkel .f6 { top: 40%; right: 30%; font-size: 0.8rem; animation-delay: 2.8s; }
@keyframes funkeln {
  0%, 100% { opacity: 0.15; transform: scale(0.9); }
  50% { opacity: 0.5; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .funkel span { animation: none; }
  html { scroll-behavior: auto; }
}

/* Kennzahlen-Band */
.zahlen-band {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0;
}
.zahlen-band li {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zahlen-band strong {
  font-family: var(--schrift-titel);
  font-size: 1.5rem;
  color: var(--lila);
}
.zahlen-band span {
  font-size: 0.86rem;
  color: var(--text-leise);
}
@media (min-width: 640px) {
  .zahlen-band { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Screenshot-Platzhalter ---------- */
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--karte);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.shot figcaption {
  font-size: 0.88rem;
  color: var(--text-leise);
  padding: 10px 14px;
  text-align: center;
}
.shot.fehlt {
  position: relative;
  border: 2px dashed #d4c6ef;
  background: linear-gradient(135deg, #f3edff, var(--rosa-hell));
}
.shot.fehlt::before {
  content: "🖼️ " attr(data-hinweis);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 16 / 9;
  padding: 18px;
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--lila-dunkel);
  opacity: 0.75;
}
.shot-hero {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-gross);
}
.shot-breit { margin-top: 30px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 64px 18px; }
.abschnitt-getönt {
  background: linear-gradient(180deg, #f5efff 0%, var(--grund) 100%);
}
.abschnitt-innen {
  max-width: 1100px;
  margin: 0 auto;
}
.abschnitt-innen.schmal { max-width: 760px; }
.abschnitt h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 0.6em;
}
.abschnitt-chip {
  display: inline-block;
  background: var(--karte);
  border: 1px solid var(--linie);
  color: var(--lila);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: var(--schatten);
  margin-bottom: 14px;
}
.abschnitt-untertitel {
  color: var(--text-leise);
  max-width: 700px;
  margin-bottom: 30px;
}
section[id] { scroll-margin-top: 76px; }

/* Geschichte */
.zitat {
  font-family: var(--schrift-titel);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--rosa);
  border-left: 5px solid var(--rosa);
  background: var(--rosa-hell);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  margin: 26px 0;
}
.versprechen {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: 22px 26px;
  margin-top: 30px;
}
.versprechen-titel {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--lila-dunkel);
  margin-bottom: 6px;
}
.versprechen p:last-child { margin-bottom: 0; }

/* Drei Welten */
.karten-3 {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 760px) {
  .karten-3 { grid-template-columns: repeat(3, 1fr); }
}
.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten-gross);
}
.karte .shot { box-shadow: none; }
.karte h3 { font-size: 1.25rem; margin: 14px 4px 6px; }
.karte p { color: var(--text-leise); margin: 0 4px 6px; font-size: 0.97rem; }

/* Feature-Grid */
.feature-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 620px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 20px 22px;
}
.feature-icon { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.feature p { color: var(--text-leise); font-size: 0.95rem; margin: 0; }
.feature-mehr {
  text-align: center;
  color: var(--text-leise);
  font-style: italic;
  margin: 26px 0 40px;
}
.galerie-2 {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .galerie-2 { grid-template-columns: 1fr 1fr; }
}

/* Für Eltern */
.eltern-zeilen {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 760px) {
  .eltern-zeilen { grid-template-columns: 1fr 1fr; }
}
.eltern-punkt {
  display: flex;
  gap: 14px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 18px 20px;
}
.eltern-icon { font-size: 1.7rem; line-height: 1.3; }
.eltern-punkt h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.eltern-punkt p { color: var(--text-leise); font-size: 0.95rem; margin: 0; }

/* Download */
.dl-haupt {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 900px) {
  .dl-haupt { grid-template-columns: 3fr 2fr; align-items: start; }
}
.dl-karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: 26px 28px;
}
.dl-karte h3 { font-size: 1.3rem; }
.dl-karte-klein { padding: 20px 22px; }
.dl-karte-klein h3 { font-size: 1.08rem; }
.dl-karte-klein p { color: var(--text-leise); font-size: 0.95rem; margin: 0; }
.dl-neben { display: grid; gap: 16px; }
.dl-schritte {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: schritt;
}
.dl-schritte li {
  counter-increment: schritt;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.dl-schritte li::before {
  content: counter(schritt);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lila), var(--rosa));
  color: #fff;
  font-family: var(--schrift-titel);
  font-weight: 800;
  transform: translateY(2px);
}
.dl-knopf { width: 100%; text-align: center; }
.dl-groesse {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 12px;
}
.dl-hinweis {
  font-size: 0.88rem;
  color: var(--text-leise);
  margin: 12px 0 0;
}
.dl-alternativ { margin-top: 14px; }
.dl-alternativ summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--lila);
}
.dl-alternativ p { margin: 10px 0 0; color: var(--text-leise); }

/* FAQ */
.faq {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  margin-top: 14px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lila-tief);
  padding: 16px 30px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--rosa);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--text-leise); padding-bottom: 16px; margin: 0; }

/* Spenden */
.spenden-karten {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
@media (min-width: 720px) {
  .spenden-karten { grid-template-columns: 1fr 1fr; align-items: start; }
}
.spenden-karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: 24px 26px;
}
.spenden-karte h3 { font-size: 1.15rem; }
.spenden-karte-bald p { color: var(--text-leise); }
.bank-daten {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.bank-daten > div {
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed var(--linie);
  padding-bottom: 8px;
}
.bank-daten dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-leise);
}
.bank-daten dd {
  margin: 0;
  font-weight: 700;
  color: var(--lila-tief);
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */
.fuss {
  background: var(--lila-tief);
  color: #e9e2f7;
  padding: 40px 18px;
  text-align: center;
}
.fuss a { color: #f3c9dc; }
.fuss a:hover { color: #ffffff; }
.fuss p { margin: 0 0 8px; }
.fuss-marke {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

/* ---------- Impressum-Seite ---------- */
.impressum-block {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: 26px 28px;
  margin: 24px 0;
}
.impressum-block p { margin-bottom: 0.4em; }
.impressum-block .gruppe { margin-bottom: 1.2em; }
.impressum-block .gruppe:last-child { margin-bottom: 0; }
