/* ============================================================
   MindLaunch · Design-System · Richtung "Warm-Clean"
   Geteilt von allen Seiten (index.html, lektion.html, ...).
   Selbst-enthalten, keine externen Abhängigkeiten.
   ============================================================ */

:root {
  /*Eine warme Leitfarbe + Ink + warme Neutrals + ein Vertrauens-Akzent */
  --paper:      #FCF8F3;  /* warmes Off-White, Hintergrund */
  --surface:    #FFFFFF;  /* Karten */
  --ink:        #2A2520;  /* warmes Fast-Schwarz, Text */
  --muted:      #6E655C;  /* Sekundärtext */
  --hairline:   #ECE3D7;  /* feine Linien */

  --brand:      #FF6F5E;  /* Leitfarbe: warmes Korall */
  --brand-deep: #E8503C;  /* Hover / kräftiger */
  --brand-soft: #FFE9E4;  /* zarte Leitfarben-Fläche */
  --brand-glow:      rgba(232, 80, 60, .50);
  --brand-glow-soft: rgba(255, 111, 94, .35);

  --trust:      #3BA88F;  /* Vertrauens-Akzent (grün = "sicher") */
  --trust-soft: #E0F1EB;

  /*Abstands-Skala (8-pt-Raster) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --radius:    20px;
  --radius-lg: 28px;
  --pill:      999px;

  --shadow-sm: 0 2px 8px rgba(42,37,32,.06);
  --shadow-md: 0 12px 32px -8px rgba(42,37,32,.14);
  --shadow-lg: 0 28px 60px -16px rgba(42,37,32,.20);

  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Theme-Variante: freundliches Blau (Kind wählt selbst, wird gespeichert) */
body[data-theme="blue"] {
  --brand:           #4C8DFF;
  --brand-deep:      #2E6FE0;
  --brand-soft:      #E7F0FF;
  --brand-glow:      rgba(46, 111, 224, .45);
  --brand-glow-soft: rgba(76, 141, 255, .35);
}

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

/* Tastatur-Fokus sichtbar machen (Barrierefreiheit), Maus-Klicks bleiben ruhig */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Markierter Text in Markenfarbe */
::selection { background: var(--brand); color: #fff; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s3); }

/*Typo-Skala: Schrift trägt die Seite (Apple-Prinzip) */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.07; font-weight: 700; }
.display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: -0.035em;
  font-weight: 750;
}
.eyebrow {
  font-size: .82rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-deep);
}
.lead { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.6; }

/*Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s1);
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -6px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -8px var(--brand-glow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/*Navigation: translucent + blur (Apple-Markenzeichen) */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,248,243,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 4px 10px -2px var(--brand-glow); }
.brand .dot::after { content: ""; width: 9px; height: 9px; background: #fff; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: var(--s4); }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .98rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .link { display: none; } }

/*Hero */
.hero { padding-top: var(--s7); padding-bottom: var(--s6); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle at center, var(--brand-soft), transparent 62%);
  z-index: -1; filter: blur(8px);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s6); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s5); text-align: center; } }
.hero h1 { margin: var(--s3) 0; }
.hero .lead { max-width: 30ch; }
@media (max-width: 880px) { .hero .lead { margin-inline: auto; } }
.cta-row { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
@media (max-width: 880px) { .cta-row { justify-content: center; } }

/*Raki Platzhalter-Figur (SVG, on-brand, bewusst schlicht) */
.raki-stage { display: grid; place-items: center; position: relative; }
.raki-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: var(--s5);
  box-shadow: var(--shadow-lg); position: relative;
  border: 1px solid var(--hairline);
}
.raki-card .tag {
  position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 600;
  color: var(--trust); background: var(--trust-soft); padding: 5px 11px; border-radius: var(--pill);
}
.raki { width: clamp(210px, 31vw, 310px); height: auto; display: block; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.raki { animation: bob 4.5s var(--ease) infinite; }
.raki-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: var(--s2); }

/*Trust-Strip */
.trust-strip { padding: var(--s5) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-top: var(--s6); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: var(--s5); flex-wrap: wrap; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.7rem; letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat .accent { color: var(--brand-deep); }

/*Säulen */
.section { padding: var(--s8) 0; }
.section-head { max-width: 56ch; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: var(--s2) 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: var(--s4); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--s3); }
.pillar h3 { font-size: 1.3rem; margin-bottom: var(--s1); }
.pillar p { color: var(--muted); font-size: .98rem; }
.ic-rocket { background: var(--brand-soft); }
.ic-shield { background: var(--trust-soft); }
.ic-academy { background: #EAF0FB; }

/* Drei Säulen als Missionsabzeichen (Startseite, entschieden 12.06.2026).
   Patches sind zugleich die Vorlage für Sticker, Aufnäher und Plüsch-Raki. */
.patches { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 880px) { .patches { grid-template-columns: 1fr; gap: var(--s5); } }
a.patch-card { text-decoration: none; color: inherit; text-align: center; display: flex; flex-direction: column; align-items: center; }
.patch-card .patch { width: clamp(150px, 16vw, 190px); height: auto; display: block; margin-bottom: var(--s2); transition: transform .35s var(--ease); }
.patch-card:hover .patch { transform: rotate(-3deg) scale(1.04); }
.patch-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.patch-card p { color: var(--muted); font-size: .96rem; line-height: 1.55; max-width: 30ch; }
.patch-card .go { margin-top: var(--s2); font-weight: 700; font-size: .85rem; color: var(--brand-deep); }
.patch-card .meta-row { margin-top: var(--s1); font-size: .85rem; color: var(--muted); }
.patch-card .chips { justify-content: center; }

/*Lektions-Teaser (Startseite) */
.lesson { background: #FDFBF8; color: var(--ink); border: 1.5px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(var(--s4), 5vw, var(--s6)); position: relative; overflow: hidden; }
.lesson .eyebrow { color: var(--brand-deep); }
.lesson h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: var(--s2) 0 var(--s3); max-width: 22ch; }
.lesson p { color: var(--muted); max-width: 52ch; margin-bottom: var(--s4); }
.lesson .raki-quote { font-size: 1.15rem; font-style: italic; color: var(--ink); border-left: 3px solid var(--brand); padding-left: var(--s3); max-width: 46ch; margin-bottom: var(--s4); }

/*Footer: ruhig und strukturiert (professionell gemeinnützig) */
footer { padding: var(--s6) 0 var(--s4); border-top: 1px solid var(--hairline); margin-top: var(--s8); }
.foot-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--s5); }
.foot-brand p { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 30ch; margin-top: var(--s2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.foot-cols h4 { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.foot-cols a { display: block; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 5px 0; }
.foot-cols a:hover { color: var(--brand-deep); }
.foot-bottom { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; border-top: 1px solid var(--hairline); margin-top: var(--s5); padding-top: var(--s3); }
.foot-bottom small { color: var(--muted); }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; gap: var(--s4); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
}

/*Scroll-Reveal (sanft, respektiert reduced-motion).
  Greift nur mit JavaScript (html.js), sonst bleibt alles sichtbar. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .raki { animation: none; }
  html { scroll-behavior: auto; }
}

/* Schwebender Hilfe-Knopf: dezent, aber immer einen Klick entfernt */
.help-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--pill);
  padding: 10px 16px; font-weight: 650; font-size: .92rem;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.help-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--brand-deep); }
.help-fab svg { flex: none; stroke: var(--trust); }
@media (max-width: 560px) { .help-fab span { display: none; } .help-fab { padding: 11px; } }
@media print { .help-fab { display: none; } }

/* Farb-Schieber in der Navi (Kind wählt seine Farbe) */
.theme-toggle {
  position: relative; width: 60px; height: 28px; flex: none; padding: 0;
  border: 1px solid var(--hairline); border-radius: var(--pill);
  background: var(--paper); cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(42,37,32,.06);
}
.theme-toggle .hint { position: absolute; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; }
.theme-toggle .hint.coral { left: 8px; background: #FF6F5E; }
.theme-toggle .hint.blue  { right: 8px; background: #4C8DFF; }
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 2px 6px -1px var(--brand-glow);
  transition: transform .28s var(--ease), background .28s var(--ease);
}
body[data-theme="blue"] .theme-toggle .knob { transform: translateX(32px); }

/* ============================================================
   Lektions-Seite (lektion.html)
   ============================================================ */
.lesson-page { padding-top: var(--s6); }
.lesson-wrap { max-width: 760px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; margin-bottom: var(--s4); transition: color .2s; }
.crumb:hover { color: var(--ink); }
.lesson-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin: var(--s2) 0 var(--s3); }
.meta { display: flex; gap: var(--s3); flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: var(--s3); }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta .pill-tag { background: var(--brand-soft); color: var(--brand-deep); padding: 4px 12px; border-radius: var(--pill); font-weight: 600; }

.prose { font-size: 1.12rem; line-height: 1.72; }
.prose p { margin: var(--s3) 0; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: var(--s6) 0 var(--s2); }

.raki-say { display: flex; gap: var(--s3); align-items: center; background: var(--brand-soft); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: var(--s5) 0; }
.raki-say .mini { width: 64px; height: 64px; flex: none; }
.raki-say p { margin: 0; font-size: 1.08rem; color: var(--ink); }

.qa { display: grid; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.qa-card { display: flex; gap: var(--s3); align-items: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.qa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.qa-num { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 10px -2px var(--brand-glow); }
.qa-card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.qa-card p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

.takeaway { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(var(--s4), 4vw, var(--s6)); margin: var(--s6) 0; position: relative; overflow: hidden; }
.takeaway::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px; background: radial-gradient(circle, var(--brand-glow-soft), transparent 60%); }
.takeaway .eyebrow { color: var(--brand); }
.takeaway p { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 650; max-width: 26ch; margin-top: var(--s2); line-height: 1.25; letter-spacing: -.01em; }

.parents { border: 1px solid var(--hairline); border-left: 4px solid var(--trust); background: var(--surface); border-radius: var(--radius); padding: var(--s4) var(--s5); margin: var(--s5) 0; box-shadow: var(--shadow-sm); }
.parents .eyebrow { color: var(--trust); }
.parents h2 { font-size: 1.4rem; margin: var(--s1) 0 var(--s3); }
.parents ul { list-style: none; display: grid; gap: var(--s2); }
.parents li { display: flex; gap: 12px; color: var(--ink); font-size: 1.04rem; line-height: 1.5; }
.parents li::before { content: "✓"; color: var(--trust); font-weight: 800; flex: none; }

.lesson-cta { text-align: center; margin: var(--s6) 0 var(--s4); }
.lesson-cta p { color: var(--muted); margin-bottom: var(--s3); }

/* ============================================================
   Lernwelt-Hub (lernwelt.html): drei Säulen mit ihren Lektionen
   ============================================================ */
.pillar-block { margin: var(--s7) 0; }
.pillar-block .head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.pillar-block .head .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.pillar-block .head h2 { font-size: 1.55rem; }
.pillar-block .head p { color: var(--muted); font-size: .98rem; margin-top: 2px; }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (max-width: 760px) { .lessons { grid-template-columns: 1fr; } }
.lesson-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: var(--s4); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lesson-card h3 { font-size: 1.12rem; margin-bottom: 5px; }
.lesson-card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.lesson-card .tagline { display: inline-block; margin-top: var(--s2); font-size: .82rem; font-weight: 700; color: var(--brand-deep); }
.lesson-card.soon { opacity: .65; pointer-events: none; }
.lesson-card.soon .tagline { color: var(--muted); }

/* Lernwelt-Überblick: Säulen als anklickbare Karten */
a.pillar { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.pillar .count { margin-top: var(--s1); font-size: .85rem; color: var(--muted); }
.pillar .go { margin-top: auto; padding-top: var(--s3); font-weight: 700; font-size: .85rem; color: var(--brand-deep); }

/* ============================================================
   Für-Schulen-Seite (schulen.html)
   ============================================================ */
.ic-brand { background: var(--brand-soft); }

.checklist { list-style: none; display: grid; gap: var(--s2); }
.checklist li { display: flex; gap: 12px; font-size: 1.04rem; line-height: 1.5; }
.checklist li::before { content: "✓"; color: var(--brand-deep); font-weight: 800; flex: none; }
.lesson .checklist li::before { color: var(--brand-deep); }

.school-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow-lg); }
.school-card h3 { font-size: 1.3rem; margin: 8px 0 var(--s3); }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.1rem; padding: var(--s3) 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-deep); font-weight: 700; font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 var(--s3); line-height: 1.65; font-size: 1.02rem; max-width: 64ch; }

.cta-center { text-align: center; }
.cta-note { margin-top: var(--s3); color: var(--muted); font-size: .95rem; }

/* Kontakt-Formular (schulen.html) */
.cta-form { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(var(--s4), 4vw, var(--s6)); box-shadow: var(--shadow-md); max-width: 640px; margin: 0 auto; }
.form-row { display: grid; gap: 6px; margin-bottom: var(--s3); }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--brand); }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: var(--s2) 0 var(--s3); }
.form-check input { margin-top: 3px; flex: none; accent-color: var(--brand); }
.form-error { color: #9B2F1D; font-size: .9rem; margin-top: 10px; display: none; }
.form-success { background: var(--trust-soft); color: #1F6B58; border-radius: var(--radius); padding: var(--s5); text-align: center; font-weight: 600; line-height: 1.6; }

/* Über-Raki-Seite: Werte im Zweier-Raster */
/* Werte (ueber-raki): Typografie und Hairlines wie die Raketenstufen-Variante,
   bewusst ohne Ziffer, weil die Überzeugungen keine Reihenfolge haben (12.06.2026) */
.values { display: grid; grid-template-columns: repeat(2, 1fr); }
.values .value { padding: var(--s4) var(--s5) var(--s4) 0; }
.values .value:nth-child(even) { border-left: 1px solid var(--hairline); padding-left: var(--s5); }
.values .value:nth-child(n+3) { border-top: 1px solid var(--hairline); }
.values .value > svg { display: block; margin-bottom: var(--s2); }
.values .value h3 { font-size: 1.4rem; letter-spacing: -.015em; margin-bottom: 6px; }
.values .value p { color: var(--muted); font-size: .98rem; line-height: 1.6; max-width: 40ch; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .values .value { padding-inline: 0; }
  .values .value:nth-child(even) { border-left: none; }
  .values .value:nth-child(n+2) { border-top: 1px solid var(--hairline); }
}
.prose-narrow { max-width: 60ch; }
.prose-narrow p { font-size: 1.12rem; line-height: 1.72; margin: var(--s3) 0; color: var(--ink); }

/* Lernwelt-Überblick: reichere Säulen-Karten + Highlight */
.pillar .meta-row { margin-top: var(--s2); font-size: .85rem; color: var(--muted); }
.pillar .meta-row .age { color: var(--brand-deep); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.chip { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 4px 10px; }

.feature { display: flex; gap: var(--s4); align-items: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--s4) var(--s5); box-shadow: var(--shadow-md); margin: var(--s5) 0 var(--s6); }
.feature .mini { width: 72px; height: 72px; flex: none; }
.feature .body { flex: 1; }
.feature .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--trust); background: var(--trust-soft); padding: 4px 11px; border-radius: var(--pill); margin-bottom: var(--s2); }
.feature h3 { font-size: 1.4rem; margin-bottom: 4px; }
.feature p { color: var(--muted); }
.feature .btn { flex: none; }
@media (max-width: 680px) { .feature { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Für Schulen: Feature-Splits (Rhythmus statt Raster)
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--s4), 5vw, var(--s7)); align-items: center; margin: var(--s7) 0; }
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -.025em; margin: var(--s2) 0; }
.split-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 46ch; }
@media (max-width: 880px) {
  .split, .split.flip { grid-template-columns: 1fr; margin: var(--s6) 0; }
  .split-visual { order: 2; }
}

/* Fenster-Mockup: eine Lektion, wie sie im Unterricht aussieht */
.mock-window { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); background: var(--paper); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.mock-body { padding: var(--s4); }
.mock-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 6px; }
.mock-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: var(--s2); }
.mock-bubble { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; font-size: .92rem; font-weight: 600; margin-bottom: var(--s2); }
.mock-bubble svg { flex: none; }
.mock-option { border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 14px; font-size: .92rem; font-weight: 500; color: var(--muted); margin-top: 8px; }
.mock-option.ok { border-color: var(--trust); background: var(--trust-soft); color: var(--ink); font-weight: 600; }

.mock-field { font-family: ui-monospace, "SF Mono", Menlo, monospace; border: 1px solid var(--hairline); background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: .95rem; margin-bottom: var(--s2); color: var(--ink); }
.lesson-card > .eyebrow { display: block; font-size: .72rem; margin-bottom: 6px; }

/* Dunkle Sicherheits-Sektion: Checkliste zweispaltig auf Ink */
.lesson .checklist { position: relative; z-index: 1; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); margin-top: var(--s4); }
@media (max-width: 680px) { .lesson .checklist { grid-template-columns: 1fr; } }

/* Geräte-Mockup: Laptop plus Tablet, rein in CSS */
.device-stage { position: relative; padding-bottom: var(--s2); }
.dev-laptop { width: min(440px, 92%); margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(42,37,32,.16)); }
.dev-laptop .screen { aspect-ratio: 16 / 10; background: var(--surface); border: 7px solid var(--ink); border-bottom-width: 0; border-radius: 18px 18px 0 0; overflow: hidden; }
.dev-laptop .base { height: 13px; background: linear-gradient(#48413A, var(--ink)); border-radius: 2px 2px 14px 14px; margin-inline: -6%; }
.dev-tablet { position: absolute; right: 1%; bottom: 0; width: clamp(96px, 23%, 132px); aspect-ratio: 3 / 4.1; background: var(--surface); border: 6px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mini-ui { padding: 12px; display: grid; gap: 9px; align-content: start; height: 100%; }
.sk-head { display: flex; align-items: center; gap: 7px; }
.sk-dot { width: 14px; height: 14px; border-radius: 5px; background: var(--brand); flex: none; }
.sk-line { height: 8px; border-radius: 4px; background: var(--hairline); }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w75 { width: 75%; } .sk-line.w90 { width: 90%; }
.sk-pill { height: 18px; width: 64px; border-radius: var(--pill); background: var(--brand); margin-top: 2px; }

/* ============================================================
   Hilfe-Seite (hilfe.html)
   ============================================================ */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-top: var(--s4); }
@media (max-width: 760px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s4) var(--s5); box-shadow: var(--shadow-sm); }
.help-card.full { grid-column: 1 / -1; }
.help-card h3 { font-size: 1.2rem; margin-bottom: var(--s3); color: var(--brand-deep); }
.help-list { list-style: none; display: grid; gap: var(--s3); }
.help-list .label { font-weight: 650; display: block; }
.help-list .num { display: inline-block; margin-top: 4px; font-weight: 800; color: var(--brand-deep); font-size: 1.2rem; letter-spacing: .02em; }
.help-list a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.help-list a:hover { text-decoration: underline; }
.help-list small { color: var(--muted); display: block; margin-top: 2px; }
.notice { background: #FFF6E6; border: 1px solid #F1D592; border-radius: var(--radius); padding: var(--s3) var(--s4); margin-top: var(--s5); color: #7A5A12; font-weight: 500; }

/* Interaktives Szenario (in Lektionen) */
.quiz { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s4) var(--s5); box-shadow: var(--shadow-sm); margin: var(--s5) 0; }
.quiz .scenario { font-size: 1.08rem; margin-bottom: var(--s3); }
.quiz-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s3) var(--s4); margin-bottom: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.quiz-option:hover { border-color: var(--brand); background: var(--brand-soft); }
.quiz-option input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.quiz-feedback { display: none; border-radius: var(--radius); padding: var(--s3) var(--s4); margin-top: var(--s3); line-height: 1.6; }
.quiz-feedback.ok { background: var(--trust-soft); color: #1F6B58; }
.quiz-feedback.no { background: #FCE9E6; color: #9B2F1D; }

/* ============================================================
   Passwort-Werkzeuge mit reaktivem Raki (Lektion)
   ============================================================ */
.tool { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s4) var(--s5); box-shadow: var(--shadow-sm); margin: var(--s4) 0; }
.tool h3 { font-size: 1.2rem; margin-bottom: var(--s3); }
.pw-row { display: flex; gap: var(--s5); align-items: flex-start; flex-wrap: wrap; }
.pw-main { flex: 1; min-width: 260px; }

/* Reaktiver Raki */
.pw-react { flex: none; width: 150px; text-align: center; }
.pw-react svg { width: 110px; height: 110px; display: block; margin: 0 auto; }
.pw-bubble { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; padding: 8px 12px; min-height: 3.4em; display: flex; align-items: center; justify-content: center; }

.field { display: flex; gap: 8px; }
.field input { flex: 1; font: inherit; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: var(--pill); background: var(--paper); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--brand); }
.field button.icon { border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--pill); padding: 0 16px; cursor: pointer; font: inherit; color: var(--muted); }
.field button.icon:hover { color: var(--ink); }

.bar { height: 10px; border-radius: var(--pill); background: var(--hairline); overflow: hidden; margin: var(--s3) 0 8px; }
.bar > span { display: block; height: 100%; width: 0; border-radius: var(--pill); transition: width .3s var(--ease), background .3s; }
.bar-label { font-size: .9rem; color: var(--muted); font-weight: 600; }

.checks { list-style: none; display: grid; gap: 8px; margin-top: var(--s3); }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .98rem; }
.checks li .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--hairline); color: var(--muted); flex: none; }
.checks li.on { color: var(--ink); }
.checks li.on .mark { background: var(--trust-soft); color: var(--trust); }

.privacy { margin-top: var(--s3); font-size: .85rem; color: var(--muted); background: var(--paper); border-radius: 12px; padding: 12px 16px; }

.gen-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s3); }
.gen-mode { border: 1px solid var(--hairline); border-radius: var(--pill); padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; background: var(--surface); color: var(--ink); }
.gen-mode.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.gen-out input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.05rem; }

/* ============================================================
   Warnsignal-Finder (CyberAcademy: Quellen prüfen)
   ============================================================ */
.post-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow-sm); margin: var(--s3) 0 var(--s2); }
.post-head { display: flex; gap: 12px; align-items: center; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hairline); color: var(--muted); font-weight: 800; display: grid; place-items: center; flex: none; }
.post-head small { color: var(--muted); display: block; margin-top: 2px; }
.post-title { font-weight: 700; font-size: 1.12rem; margin: var(--s2) 0; line-height: 1.45; }
.post-body { margin: var(--s2) 0; }
.post-share { margin-top: var(--s2); color: var(--brand-deep); font-weight: 600; }
.hot { font: inherit; color: inherit; background: none; border: none; cursor: pointer; text-align: left; padding: 0 2px; border-radius: 4px; border-bottom: 2px dashed var(--brand-glow-soft); transition: background .2s, border-color .2s; }
.hot:hover { background: var(--brand-soft); }
.hot.found { background: var(--trust-soft); border-bottom: 2px solid var(--trust); cursor: default; }

/* ============================================================
   Raki-Charakter-Vorschau (raki.html)
   ============================================================ */
.raki-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
@media (max-width: 880px) { .raki-hero { grid-template-columns: 1fr; text-align: center; } }
.raki-big { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.raki-stage-big { background: radial-gradient(circle at 50% 40%, var(--brand-soft), transparent 70%); border-radius: var(--radius-lg); padding: var(--s4); }
.expr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 680px) { .expr-grid { grid-template-columns: repeat(2, 1fr); } }
.expr { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s3) var(--s2); text-align: center; box-shadow: var(--shadow-sm); }
.expr svg { width: 78px; height: 78px; }
.expr span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Raki-Coach: wiederverwendbarer Zeige-Baustein (Raki zeigt plus Sprechblase) */
.raki-coach { display: flex; align-items: center; gap: 14px; margin: var(--s4) 0; }
.rc-raki { width: 104px; height: auto; flex: none; }
img.rc-raki { transform: scaleX(-1); }

/* Zeige-Szene: der echte Raki weist auf ein Ziel */
.point-scene { display: flex; align-items: center; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.point-raki { width: clamp(140px, 22vw, 200px); height: auto; transform: scaleX(-1); }
.point-dots { width: 64px; border-top: 3px dashed var(--brand); }
.point-target { background: var(--brand-soft); border: 2px solid var(--brand); color: var(--brand-deep); font-weight: 700; padding: 12px 22px; border-radius: 14px; font-size: 1.1rem; }
.rc-bubble { position: relative; background: var(--brand-soft); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 18px; font-weight: 600; color: var(--ink); max-width: 48ch; }
.rc-bubble::before { content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); border: 9px solid transparent; border-right-color: var(--brand-soft); }
@media (max-width: 560px) {
  .raki-coach { flex-direction: column; align-items: flex-start; }
  .rc-bubble::before { left: 28px; top: -9px; transform: none; border-right-color: transparent; border-bottom-color: var(--brand-soft); }
}

/* ============================================================
   Raki-Merksatz & Raki-Signatur (Wiedererkennungs-Element)
   Ersetzt die früheren dunklen Banner (.takeaway / dunkles .lesson).
   Aufbau: Raki-Kopf, angedeutete Sprechblase, große Typo,
   Flugbahn mit Mini-Rakete unter dem wichtigsten Wort.
   ============================================================ */

/* Signatur: Raki-Kopf + gepunktete Flugbahn + Mini-Rakete */
.raki-sig { display: flex; align-items: center; gap: 4px; margin-bottom: var(--s3); }
.raki-sig .head { width: 48px; height: auto; flex: none; }
.raki-sig .path { height: 32px; width: min(40vw, 220px); }

/* Merksatz-Block (in Lektionen statt der dunklen Takeaway-Karte) */
.merksatz {
  display: grid; grid-template-columns: auto 1fr; align-items: end;
  gap: var(--s2); margin: var(--s6) 0;
}
.merksatz-head { width: 64px; height: auto; transform: rotate(-7deg); margin-bottom: 4px; }
.merksatz-bubble {
  position: relative;
  background: #FDFBF8;
  border: 1.5px solid var(--hairline);
  border-radius: 26px; border-bottom-left-radius: 8px;
  padding: var(--s3) var(--s4);
}
.merksatz-bubble::before {
  content: ""; position: absolute; left: -8px; bottom: 22px;
  width: 14px; height: 14px; background: #FDFBF8;
  border-left: 1.5px solid var(--hairline); border-bottom: 1.5px solid var(--hairline);
  border-bottom-left-radius: 3px; transform: rotate(45deg);
}
.merksatz-big {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 780; line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink);
}
.merksatz-big .fly { position: relative; display: inline-block; color: var(--brand-deep); }
.merksatz-big .fly svg { position: absolute; left: 0; bottom: -.42em; width: 100%; height: .5em; overflow: visible; }
.merksatz-rest {
  margin-top: var(--s2);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 480; line-height: 1.55; color: var(--muted);
  max-width: 46ch;
}
.merksatz-sender {
  margin-top: var(--s2); color: var(--muted);
  font-size: .88rem; font-weight: 600; letter-spacing: .04em;
}
/* Neutralisiert die Absatz-Margins von .prose innerhalb der Blase */
.merksatz-bubble p { margin: 0; }
.merksatz-bubble p + p { margin-top: var(--s2); }

/* Dezente Bewegung: Flugbahn-Punkte fließen zur Rakete,
   die Rakete schwebt, zwei Funken glimmen. */
.trail { animation: trailflow 7s linear infinite; }
@keyframes trailflow { to { stroke-dashoffset: -120; } }
.bob { animation: rocketbob 3.2s ease-in-out infinite alternate; }
@keyframes rocketbob { from { transform: translateY(0); } to { transform: translateY(-3.5px); } }
.tw { opacity: .15; animation: twinkle 2.8s ease-in-out infinite alternate; }
.tw.t2 { animation-delay: 1.4s; }
@keyframes twinkle { to { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
  .trail, .bob, .tw { animation: none; }
}

/* Startrampen-Schild: charmanter Trenner zwischen fertigen und kommenden Lektionen.
   Kleiner Raki wippt auf der Rampe auf und ab. */
.rampe-sign {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  margin: var(--s4) 0 var(--s1);
  padding: 12px 18px;
  background: var(--surface);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
}
.rampe-raki { position: relative; width: 46px; height: 50px; flex: none; }
.rampe-raki svg { width: 40px; height: 40px; display: block; margin: 0 auto;
  transform-origin: 50% 100%; animation: rakiHop 1.5s ease-in-out infinite; }
.rampe-raki::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px;
  height: 3px; border-radius: 3px; background: var(--brand); opacity: .45; }
@keyframes rakiHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.rampe-text { display: flex; flex-direction: column; line-height: 1.3; }
.rampe-text strong { color: var(--brand-deep); font-size: .98rem; }
.rampe-text span { color: var(--muted); font-size: .86rem; }
@media (prefers-reduced-motion: reduce) { .rampe-raki svg { animation: none; } }

@media (max-width: 560px) {
  .merksatz-head { width: 52px; }
  .merksatz-bubble { padding: var(--s3); }
}

/* Geheimzeichen-Chip an Rakis Karte (wird per app.js eingesetzt, nur wenn gewählt) */
.zeichen-chip {
  position: absolute; bottom: 14px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--surface); border: 1.5px solid var(--brand);
  box-shadow: var(--shadow-sm); text-decoration: none;
}
