/* Produktwebseite kreido.app im Erscheinungsbild des Produkts Kreido (corporate-identity/entwurf-kreido/). */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette des Produkts Kreido (corporate-identity/entwurf-kreido/palette.json). „abgeleitet“ = Zwischenton, nicht in der Palette. */
  --creme: #F7F4EC; /* kreide */
  --flaeche: #FFFFFF; /* flaeche */
  --flaeche-2: #EFEBE1; /* abgeleitet: kreide, etwas dunkler */
  --flaeche-3: #E7E2D5; /* abgeleitet */
  --linie: #DED8CA; /* abgeleitet */
  --text: #1D2826; /* text */
  --text-leise: #4D5B57; /* textLeise */
  --akzent: #2E6B5E; /* tafelHell: Knöpfe mit weißer Schrift, Links */
  --akzent-hover: #1F4A42; /* tafel */
  --blau: #5B8DB8; /* himmel */
  --blau-zart: #DDE8F1; /* abgeleitet: himmel, zart */
  --gelb: #F2C94C; /* kreidegelb */
  --gelb-zart: #FBF0CC; /* abgeleitet: kreidegelb, zart */
  --rot: #E07A5F; /* koralle */
  --gruen: #2E6B5E; /* tafelHell */
  --orange: #E07A5F; /* koralle */
  --rosa: #F0B4A2; /* abgeleitet: koralle, hell */
  --holz: #1F4A42; /* tafel */
  --nachtblau: #1F4A42; /* tafel: Telefon, Kontaktfeld */
  --auf-dunkel: #FFFFFF;
  --auf-akzent: #FFFFFF;
  --kontakt-text: #ECF1EE; /* dunkelText */
  --kontakt-leise: #B3C2BD; /* dunkelLeise */
  --schatten: 0 1px 2px rgb(29 40 38 / 6%), 0 8px 24px rgb(29 40 38 / 8%);
  --radius: 18px;
  --breite: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --creme: #132320; /* dunkel */
    --flaeche: #1B2F2A; /* dunkelFlaeche */
    --flaeche-2: #172925; /* abgeleitet */
    --flaeche-3: #22382F; /* abgeleitet */
    --linie: #2C443D; /* abgeleitet */
    --text: #ECF1EE; /* dunkelText */
    --text-leise: #B3C2BD; /* dunkelLeise */
    --akzent: #7FC4B2; /* dunkelTafel */
    --akzent-hover: #9AD3C4; /* abgeleitet */
    --auf-akzent: #132320; /* dunkel */
    --gruen: #7FC4B2; /* dunkelTafel */
    --holz: #7FC4B2; /* dunkelTafel */
    --blau-zart: #22384A; /* abgeleitet */
    --gelb-zart: #3D3720; /* abgeleitet */
    --nachtblau: #0D1A17; /* abgeleitet: dunkler als dunkel */
    --schatten: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--akzent); text-underline-offset: 0.18em; }
a:hover { color: var(--akzent-hover); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.leise { color: var(--text-leise); }
.vorspann { font-size: 1.2rem; color: var(--text-leise); max-width: 46rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Entwurf: vor dem Veröffentlichen entfernen (README.md). */
.entwurf {
  background: var(--gelb);
  color: #1D2826; /* text */
  text-align: center;
  font-weight: 700;
  padding: 6px 12px;
  font-size: 0.95rem;
}

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--creme) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf .huelle { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.35rem; }
.marke img, .marke picture { width: 44px; height: 44px; }
.navi { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.navi a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.navi a:hover { color: var(--akzent); }
.navi .knopf { color: var(--auf-akzent); }
@media (max-width: 820px) { .navi a:not(.knopf) { display: none; } }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; text-decoration: none;
  border: 2px solid var(--akzent);
}
.knopf:hover { background: var(--akzent-hover); border-color: var(--akzent-hover); color: var(--auf-akzent); }
.knopf.zweit { background: transparent; color: var(--akzent); }
.knopf.zweit:hover { background: var(--blau-zart); color: var(--akzent); }

/* Bühne */
.buehne { padding: 72px 0 56px; overflow: hidden; }
.buehne .huelle { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.buehne .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.buehne .merkmale { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-leise); font-size: 0.97rem; }
.buehne .merkmale li::before { content: "✓"; color: var(--gruen); font-weight: 700; margin-right: 6px; }
.dachzeile { display: inline-block; background: var(--gelb-zart); color: var(--text); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 0.92rem; margin-bottom: 18px; }
@media (max-width: 900px) {
  .buehne { padding-top: 44px; }
  .buehne .huelle { grid-template-columns: 1fr; }
}

/* Telefon-Skizze (keine echten Bildschirmfotos) */
.telefon {
  justify-self: center; width: min(310px, 82vw); aspect-ratio: 9 / 18.5;
  background: var(--nachtblau); border-radius: 42px; padding: 12px; box-shadow: var(--schatten);
  position: relative; border: 1px solid var(--linie);
}
.telefon::after { content: ""; position: absolute; top: 20px; left: 50%; width: 70px; height: 6px; margin-left: -35px; border-radius: 6px; background: rgb(255 255 255 / 18%); }
.bildschirm {
  height: 100%; border-radius: 32px; background: var(--creme); overflow: hidden;
  display: flex; flex-direction: column; padding: 34px 14px 0; gap: 10px; font-size: 0.82rem;
}
.bildschirm .titel { font-weight: 700; font-size: 1.2rem; padding: 0 4px; }
.schnell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.schnell span { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 8px 4px; text-align: center; font-weight: 700; font-size: 0.72rem; line-height: 1.25; }
.schnell span i { display: block; font-style: normal; font-size: 1.15rem; margin-bottom: 2px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 10px 12px; }
.karte b { display: block; font-size: 0.78rem; color: var(--text-leise); margin-bottom: 4px; }
.karte .zeile { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.unten { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--linie); background: var(--flaeche-2); margin-left: -14px; margin-right: -14px; padding: 8px 6px 14px; font-size: 0.62rem; text-align: center; color: var(--text-leise); }
.unten span i { display: block; font-style: normal; font-size: 1rem; }
.unten .an { color: var(--akzent); font-weight: 700; }

/* Bildschirmfotos der App (tool/screenshots in app/, Beispieldaten) */
.geraet { margin: 0; }
.geraet img {
  width: 100%; height: auto; border-radius: 34px; background: var(--nachtblau);
  border: 10px solid var(--nachtblau); box-shadow: var(--schatten);
}
.buehne-geraet { justify-self: center; width: min(330px, 82vw); }
.einblick { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.einblick .geraet { max-width: 330px; justify-self: center; }
.einblick figcaption { margin-top: 16px; color: var(--text-leise); }
.einblick figcaption strong { display: block; color: var(--text); font-size: 1.1rem; }
/* Einblick: Gruppen mit Handy-, Browser- und Dokumentbildern (echte Aufnahmen von demo, Beispieldaten) */
.einblick-gruppe + .einblick-gruppe { margin-top: 72px; }
.einblick-gruppe h3 { font-size: 1.35rem; margin: 0 0 24px; }
.einblick { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.einblick .geraet { max-width: 280px; }
.einblick .geraet img { max-height: 600px; object-fit: contain; border-radius: 28px; border-width: 8px; }
.einblick-breit { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.einblick-dokumente { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: start; }
.breit, .dokument { margin: 0; }
.einblick-hinweis { margin: -12px 0 24px; color: var(--text-leise); max-width: 48rem; }
.einblick-tablet { display: grid; gap: 32px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tablet { margin: 0; max-width: 440px; justify-self: center; }
.tablet img { width: 100%; height: auto; max-height: 590px; object-fit: contain; border-radius: 22px; border: 8px solid var(--nachtblau); box-shadow: var(--schatten); background: var(--nachtblau); }
.tablet figcaption { margin-top: 12px; color: var(--text-leise); }
.tablet figcaption strong { display: block; color: var(--text); font-size: 1.05rem; }
.breit img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--linie); box-shadow: var(--schatten); background: var(--flaeche); }
.dokument img { width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: top; border: 1px solid var(--linie); box-shadow: var(--schatten); background: #FFFFFF; }
.breit figcaption, .dokument figcaption { margin-top: 12px; color: var(--text-leise); }
.breit figcaption strong, .dokument figcaption strong { display: block; color: var(--text); font-size: 1.05rem; }

/* Abschnitte */
section { padding: 72px 0; scroll-margin-top: 70px; }
.kachel[id] { scroll-margin-top: 90px; }
.abschnitt-kopf { max-width: 48rem; margin-bottom: 36px; }
.band { background: var(--flaeche-2); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }

.raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.raster.zwei { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
@media (max-width: 360px) { .raster, .raster.zwei { grid-template-columns: 1fr; } }

.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.kachel h3 { display: flex; align-items: center; gap: 12px; }
.kachel p { color: var(--text-leise); margin: 0; }
.symbol {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: inline-grid; place-items: center; font-size: 1.3rem;
}
.s-blau { background: color-mix(in srgb, var(--blau) 22%, transparent); }
.s-gelb { background: color-mix(in srgb, var(--gelb) 34%, transparent); }
.s-rot { background: color-mix(in srgb, var(--rot) 20%, transparent); }
.s-gruen { background: color-mix(in srgb, var(--gruen) 24%, transparent); }
.s-orange { background: color-mix(in srgb, var(--orange) 24%, transparent); }
.s-rosa { background: color-mix(in srgb, var(--rosa) 34%, transparent); }
.s-holz { background: color-mix(in srgb, var(--holz) 22%, transparent); }

/* Für wen */
.rolle { border-top: 6px solid var(--blau); }
.rolle.eltern { border-top-color: var(--gelb); }
.rolle.lehrkraefte { border-top-color: var(--gruen); }
.rolle.verwaltung { border-top-color: var(--orange); }
.rolle.traeger { border-top-color: var(--rosa); }
.rolle.schueler { border-top-color: var(--blau); }
.rolle.verein { border-top-color: var(--holz); }
.rolle ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--text-leise); }
.rolle li { margin: 4px 0; }

/* Module */
.module { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.module li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.module li span { font-weight: 400; color: var(--text-leise); }

/* Vertrauen */
.vertrauen { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .vertrauen { grid-template-columns: 1fr; } }
.liste-haken { list-style: none; padding: 0; margin: 0; }
.liste-haken li { padding: 12px 0 12px 38px; position: relative; border-bottom: 1px solid var(--linie); }
.liste-haken li:last-child { border-bottom: 0; }
.liste-haken li::before {
  content: "✓"; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--gruen) 26%, transparent); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.liste-haken strong { display: block; }
.liste-haken span { color: var(--text-leise); }

/* Ablauf */
.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.schritte li { counter-increment: schritt; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.schritte li::before {
  content: counter(schritt); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; margin-bottom: 14px;
}
.schritte p { color: var(--text-leise); margin: 0; }

/* Fragen */
.fragen details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.fragen summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; }
.fragen details[open] summary { border-bottom: 1px solid var(--linie); margin-bottom: 12px; }
.fragen details p { color: var(--text-leise); }

/* Kontakt */
.kontakt { background: var(--nachtblau); color: var(--kontakt-text); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.kontakt h2 { color: #FFFFFF; }
.kontakt p { color: var(--kontakt-leise); }
.kontakt .knopf { background: var(--gelb); border-color: var(--gelb); color: #1D2826; } /* text */
.kontakt .knopf:hover { background: var(--gelb-zart); border-color: var(--gelb-zart); }
@media (max-width: 820px) { .kontakt { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Fuß */
.fuss { padding: 40px 0 56px; color: var(--text-leise); font-size: 0.95rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.fuss nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.fuss a { color: var(--text-leise); }

/* Rechtstexte */
.text-seite { max-width: 46rem; padding: 48px 20px 72px; margin: 0 auto; }
.text-seite h2 { font-size: 1.35rem; margin-top: 1.6em; }
.platzhalter { background: var(--gelb-zart); border-radius: 6px; padding: 0 6px; font-weight: 700; }

.kontakt-adresse { margin-top: 14px; }
