/* Skandissori – Website. Farben aus der Stiltafel der App, keine externen Schriften oder Dienste. */
:root {
  --mint: #9ad6c6;
  --gelb: #fbd25e;
  --rosa: #fdc5c1;
  --rot: #e83c24;
  --blau: #1f4fa8;
  --braun: #7d3a1b;
  --text: #4a2a17;
  --papier: #ffffff;
  --leise: #8a6a58;
  --schrift: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", system-ui, sans-serif;
  --text-schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--text-schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 0.18em; }
a:focus-visible, .karte:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--schrift); color: var(--braun); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.spalte { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.text { max-width: 38rem; }

/* Kopf der Startseite: die Affen-Karte als Bühne */
.buehne {
  background: var(--mint);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
  text-align: center;
}
.buehne h1 { margin: 0 auto; width: min(88%, 40rem); }
.buehne h1 img { width: 100%; }
.unterzeile {
  margin: 1.5rem auto 0;
  max-width: 33rem;
  padding-inline: 1.25rem;
  font-family: var(--text-schrift);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
}
.bald {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--papier);
  color: var(--braun);
  font-family: var(--schrift);
  font-weight: 700;
  font-size: 1.05rem;
}
.affe {
  width: min(70vw, 25rem);
  margin: 2.5rem auto 0;
  transform-origin: 50% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .affe { animation: gucken 1.1s cubic-bezier(.2,.9,.3,1.25) 0.3s both; }
  @keyframes gucken {
    from { transform: translateY(55%); }
    to { transform: translateY(0); }
  }
}

/* Abschnitte */
.abschnitt { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.abschnitt + .abschnitt { padding-top: 0; }
.abschnitt .text p { margin-top: 1rem; }
.zitat { font-family: var(--schrift); font-size: 1.2rem; color: var(--braun); }

/* Buchstabenkarten wie die Seiten der App: Bild, darunter das Wort mit rotem Anfangsbuchstaben */
.karten {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.karte {
  border-radius: 1.6rem;
  padding: 1.1rem 1.1rem 1.3rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 19rem;
}
.karte:nth-child(3n+1) { background: var(--rosa); }
.karte:nth-child(3n+2) { background: var(--gelb); }
.karte:nth-child(3n) { background: var(--mint); }
.karte .buchstabe { font-family: var(--schrift); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blau); }
.karte img { width: auto; max-height: 11.5rem; margin: 0.5rem auto; align-self: center; }
.karte .wort { font-family: var(--schrift); font-weight: 700; font-size: 1.5rem; text-align: center; color: var(--text); }
.karte .wort b { color: var(--rot); font-weight: 700; }

@media (max-width: 760px) {
  .karten {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
  }
  .karte { scroll-snap-align: start; min-height: 16rem; }
}

/* Spielarten */
.spielarten {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
  max-width: 52rem;
}
.spielarten li { padding-left: 2.25rem; position: relative; }
.spielarten li::before {
  content: "";
  position: absolute; left: 0; top: 0.2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--punkt, var(--gelb));
}
.spielarten li:nth-child(1) { --punkt: var(--gelb); }
.spielarten li:nth-child(2) { --punkt: var(--mint); }
.spielarten li:nth-child(3) { --punkt: var(--rosa); }
.spielarten li:nth-child(4) { --punkt: var(--rot); }
.spielarten p { margin-top: 0.35rem; }
@media (max-width: 640px) { .spielarten { grid-template-columns: 1fr; } }

.montessori { margin-top: 2.25rem; max-width: 38rem; color: var(--leise); }

/* Ruhig und sicher: gelbe Seite */
.ruhig { background: var(--gelb); border-radius: 2rem; padding: clamp(2rem, 6vw, 3.5rem); }
.ruhig p { margin-top: 1rem; max-width: 38rem; }

/* Fuß */
.fuss { border-top: 2px solid #f1e6dc; padding: 2.5rem 0 3rem; color: var(--leise); font-size: 0.95rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.9rem; }
.fuss a { color: var(--braun); font-weight: 600; }

/* Unterseiten */
.kopf { padding: 1.5rem 0; border-bottom: 2px solid #f1e6dc; }
.kopf a { display: inline-block; }
.kopf img { width: 12rem; }
.rechtstext { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.rechtstext h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.rechtstext p, .rechtstext ul, .rechtstext address { margin-top: 0.85rem; max-width: 40rem; }
.rechtstext address { font-style: normal; }
.rechtstext ul { padding-left: 1.2rem; }
.stand { margin-top: 2.5rem !important; color: var(--leise); font-size: 0.95rem; }
.fragen dt { font-family: var(--schrift); font-weight: 700; color: var(--braun); font-size: 1.15rem; margin-top: 1.75rem; }
.fragen dd { margin: 0.4rem 0 0; max-width: 40rem; }

/* ---- Fassung 2: Navigation, Vorteile, Methode, App-Bild, Über uns, Fragen ---- */
.leiste {
  position: absolute; inset: 0 0 auto 0;
  display: flex; justify-content: flex-end; gap: 0.25rem 1.5rem; flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  font-family: var(--schrift); font-weight: 700; font-size: 0.98rem;
}
.leiste a { color: var(--braun); text-decoration: none; }
.leiste a:hover { text-decoration: underline; }
@media (max-width: 640px) { .leiste { justify-content: center; font-size: 0.9rem; gap: 0.25rem 1rem; padding: 0.8rem 1rem; } .buehne { padding-top: 4.5rem; } }

.buehne .titel {
  margin: 1.5rem auto 0; max-width: 34rem; padding-inline: 1.25rem;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; color: var(--braun);
}
.buehne .unterzeile { margin-top: 0.9rem; }
.versprechen {
  list-style: none; margin: 1.6rem auto 0; padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem;
  font-family: var(--schrift); font-weight: 700; color: var(--text); font-size: 1rem;
}
.versprechen li { display: inline-flex; align-items: center; gap: 0.45rem; }
.versprechen li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--papier); }

.einleitung { margin-top: 1rem; max-width: 38rem; }

.vorteile {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; max-width: 60rem;
}
.vorteile li { border-top: 4px solid var(--strich, var(--gelb)); padding-top: 1rem; }
.vorteile li:nth-child(1) { --strich: var(--rot); }
.vorteile li:nth-child(2) { --strich: var(--gelb); }
.vorteile li:nth-child(3) { --strich: var(--mint); }
.vorteile li:nth-child(4) { --strich: var(--blau); }
.vorteile p { margin-top: 0.5rem; }
@media (max-width: 700px) { .vorteile { grid-template-columns: 1fr; } }

.app-bild { margin: 0; }
.ipad {
  background: #2b2522; padding: clamp(0.6rem, 1.5vw, 1.1rem); border-radius: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 56rem; margin: 2.5rem auto 0;
}
.ipad img { border-radius: clamp(0.6rem, 1.6vw, 1.2rem); width: 100%; }
.app-bild figcaption { text-align: center; color: var(--leise); margin-top: 0.9rem; font-size: 0.95rem; }

.stufen { list-style: none; counter-reset: stufe; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.5rem; max-width: 44rem; }
.stufen li { counter-increment: stufe; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1.1rem; align-items: start; }
.stufen li::before {
  content: counter(stufe); grid-row: span 2;
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--schrift); font-weight: 800; font-size: 1.35rem; color: var(--papier); background: var(--blau);
}
.stufen li:nth-child(2)::before { background: var(--rot); }
.stufen li:nth-child(3)::before { background: var(--braun); }
.stufen p { margin-top: 0.3rem; }
.quelle { color: var(--leise); font-size: 0.92rem; }

.uns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.uns .bild { background: var(--rosa); border-radius: 2rem; padding: 2rem; }
.uns .bild img { max-height: 18rem; margin: 0 auto; width: auto; }
@media (max-width: 760px) { .uns { grid-template-columns: 1fr; } .uns .bild { order: -1; } }

.fragen-liste { margin-top: 2rem; max-width: 46rem; }
.fragen-liste details { border-top: 2px solid #f1e6dc; padding: 1rem 0; }
.fragen-liste details:last-child { border-bottom: 2px solid #f1e6dc; }
.fragen-liste summary {
  cursor: pointer; list-style: none; font-family: var(--schrift); font-weight: 700; color: var(--braun); font-size: 1.15rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--rot); transition: transform .2s; }
.fragen-liste details[open] summary::after { transform: rotate(45deg); }
.fragen-liste details p { margin-top: 0.6rem; }
.fragen-liste summary:focus-visible { outline: 3px solid var(--blau); outline-offset: 4px; border-radius: 6px; }

.ratgeber-hinweis { background: var(--mint); border-radius: 2rem; padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 0.75rem; }
.ratgeber-hinweis a.knopf {
  justify-self: start; margin-top: 0.5rem; background: var(--braun); color: var(--papier); text-decoration: none;
  font-family: var(--schrift); font-weight: 700; padding: 0.75rem 1.4rem; border-radius: 999px;
}
.ratgeber-hinweis a.knopf:hover { background: var(--text); }

.artikel h2 { margin-top: 2.5rem; }
.artikel p, .artikel ul, .artikel table { margin-top: 0.9rem; max-width: 42rem; }
.artikel table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.artikel th, .artikel td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid #f1e6dc; vertical-align: top; }
.artikel th { font-family: var(--schrift); color: var(--braun); }
.artikel .vorspann { font-size: 1.15rem; color: var(--text); }
.artikel .quellen { font-size: 0.92rem; color: var(--leise); }
.kopf .spalte { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kopf nav { display: flex; gap: 1.25rem; font-family: var(--schrift); font-weight: 700; }
.kopf nav a { color: var(--braun); text-decoration: none; }

/* ---- Fassung 3: Faktenblock, Ratgeber-Kacheln, Artikel-Bausteine ---- */
.fakten { margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0; border: 2px solid #f1e6dc; border-radius: 1.4rem; overflow: hidden; max-width: 60rem; }
.fakten div { padding: 0.9rem 1.1rem; border-bottom: 2px solid #f1e6dc; }
.fakten dt { font-family: var(--schrift); font-weight: 700; color: var(--braun); font-size: 0.95rem; }
.fakten dd { margin: 0.15rem 0 0; }
.stand-klein { margin-top: 0.75rem; color: var(--leise); font-size: 0.9rem; }

.kacheln { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.kacheln a { display: block; height: 100%; padding: 1.4rem 1.4rem 1.6rem; border-radius: 1.4rem; text-decoration: none; color: var(--text); }
.kacheln li:nth-child(4n+1) a { background: var(--rosa); }
.kacheln li:nth-child(4n+2) a { background: var(--gelb); }
.kacheln li:nth-child(4n+3) a { background: var(--mint); }
.kacheln li:nth-child(4n) a { background: #f6e7d8; }
.kacheln strong { display: block; font-family: var(--schrift); font-size: 1.2rem; color: var(--braun); line-height: 1.25; }
.kacheln span { display: block; margin-top: 0.5rem; font-size: 0.98rem; }
.kacheln a:hover strong { text-decoration: underline; }

.brotkrumen { font-size: 0.9rem; color: var(--leise); margin-bottom: 1.25rem; }
.brotkrumen a { color: var(--leise); }
.blick { background: #fdf6ea; border-left: 6px solid var(--gelb); border-radius: 0 1rem 1rem 0; padding: 1.1rem 1.4rem; margin-top: 1.5rem; max-width: 42rem; }
.blick h2 { margin-top: 0 !important; font-size: 1.15rem !important; }
.blick ul { margin: 0.6rem 0 0 !important; }
.artikel h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.artikel ol { margin-top: 0.9rem; max-width: 42rem; padding-left: 1.3rem; }
.artikel li { margin-top: 0.35rem; }
.hinweis-app { background: var(--mint); border-radius: 1.4rem; padding: 1.4rem 1.6rem; margin-top: 2.5rem; max-width: 42rem; }
.hinweis-app h2 { margin-top: 0 !important; font-size: 1.25rem !important; }
.hinweis-app a { color: var(--braun); font-weight: 700; }
.autor { color: var(--leise); font-size: 0.95rem; margin-top: 0.6rem !important; }

/* ---- Fassung 4: Download-Knopf, Abschnitt „App“, Ladeleiste auf dem Handy ---- */
[hidden] { display: none !important; }
.laden {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  padding: 0.8rem 1.7rem; border-radius: 999px;
  background: var(--braun); color: var(--papier); text-decoration: none;
  font-family: var(--schrift); font-weight: 800; font-size: 1.1rem; line-height: 1.2;
}
a.laden:hover { background: var(--text); }
a.laden:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.laden-unter { font-family: var(--text-schrift); font-weight: 500; font-size: 0.85rem; opacity: 0.85; }
.laden-still { background: #f6e7d8; color: var(--braun); }
.laden-badge { background: none; padding: 0; border-radius: 0; }
.laden-badge img { height: 3.25rem; width: auto; }
.laden-android { display: none; margin-top: 0.6rem !important; font-size: 0.95rem; color: var(--leise); }
.ist-android .laden-android { display: block; }
.laden-kopf { margin-top: 1.75rem; }

.leiste a.nav-laden, .kopf nav a.nav-laden {
  background: var(--braun); color: var(--papier); padding: 0.2rem 0.9rem; border-radius: 999px; text-decoration: none;
}
.leiste a.nav-laden:hover, .kopf nav a.nav-laden:hover { background: var(--text); text-decoration: none; }

.laden-feld {
  background: var(--gelb); border-radius: 2rem; padding: clamp(2rem, 6vw, 3.5rem);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.laden-feld p { margin-top: 0.9rem; max-width: 36rem; }
.laden-feld .laden { margin-top: 1.4rem; }
.laden-icon { width: clamp(7rem, 16vw, 10rem); border-radius: 22%; box-shadow: 0 6px 20px rgba(74, 42, 23, .15); }
.laden-klein { font-size: 0.95rem; }
@media (max-width: 640px) { .laden-feld { grid-template-columns: 1fr; } }

.hinweis-app { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.hinweis-app img { width: 4.5rem; border-radius: 22%; }
.hinweis-app p { margin-top: 0.5rem !important; }
.hinweis-app .laden { margin-top: 1.1rem; color: var(--papier); font-weight: 800; }
@media (max-width: 480px) { .hinweis-app { grid-template-columns: 1fr; } }

.ladeleiste {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.55rem 0.55rem 0.7rem; border-radius: 1.2rem;
  background: var(--papier); border: 2px solid #f1e6dc; box-shadow: 0 8px 28px rgba(74, 42, 23, .18);
  transform: translateY(160%); transition: transform .3s ease;
}
.ladeleiste.sichtbar { transform: none; }
.ladeleiste img { width: 2.75rem; height: 2.75rem; border-radius: 22%; flex: none; }
.ladeleiste p { flex: 1; min-width: 0; line-height: 1.25; font-size: 0.82rem; color: var(--leise); }
.ladeleiste strong { display: block; font-family: var(--schrift); color: var(--braun); font-size: 1rem; }
.ladeleiste .laden { padding: 0.6rem 1rem; font-size: 0.92rem; white-space: nowrap; }
@media (min-width: 900px) { .ladeleiste { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 5.5rem; } }
@media (prefers-reduced-motion: reduce) { .ladeleiste { transition: none; } }
.kopf nav { flex-wrap: wrap; row-gap: 0.4rem; }
@media (max-width: 640px) { .kopf nav { gap: 0.4rem 0.9rem; font-size: 0.92rem; } .kopf img { width: 10rem; } }
@media (max-width: 640px) { .leiste a.nav-laden, .kopf nav a.nav-laden { display: none; } }
.ladeleiste p span { white-space: nowrap; }
