/* tagesbande.de – Farben und Schrift wie in der App (app/lib/core/theme.dart), siehe design-brief.md */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --grund: #f3f5fb;
  --flaeche: #ffffff;
  --tinte: #19213d;
  --leise: #4f5675;
  --linie: #e2e6f2;
  --blau: #3651d4;
  --blau-dunkel: #2a40ad;
  --blau-hell: #e6ebff;
  --sonne: #ffc845;
  --sonne-hell: #fff4d1;
  --pfirsich: #ffe3cf;
  --himmel: #d9eaff;
  --flieder: #e9e0ff;
  --minze: #d4f3e3;
  --rose: #ffdfe6;
  --butter: #fff1bf;
  --nacht: #19213d;
  --rand: 28px;
  --breite: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}
img { max-width: 100%; display: block; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; font-weight: 900; }
h1 { font-size: clamp(36px, 4.6vw, 58px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0; }
.leise { color: var(--leise); }
.huelle { width: min(var(--breite), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 8px; }
.versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation: schwebende Pille ---------- */
.kopf { position: sticky; top: 12px; z-index: 20; padding-top: 12px; }
.kopf .huelle {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  box-shadow: 0 8px 24px rgba(25, 33, 61, .07);
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); font-weight: 900; font-size: 20px; }
.marke img { width: 34px; height: 34px; border-radius: 10px; }
.menue { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menue a { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--tinte); font-weight: 700; font-size: 16px; }
.menue a:hover, .menue a[aria-current="page"] { background: var(--blau-hell); color: var(--blau); }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--blau); color: #fff; font: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.knopf:hover { background: var(--blau-dunkel); color: #fff; transform: translateY(-1px); }
.knopf.hell { background: var(--blau-hell); color: var(--blau); }
.knopf.hell:hover { background: #d6deff; color: var(--blau-dunkel); }
.menue-knopf { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--blau-hell); color: var(--blau); cursor: pointer; }
.menue-knopf svg { margin: auto; }

@media (max-width: 900px) {
  .menue-knopf { display: grid; }
  .kopf .knopf { display: none; }
  .menue {
    display: none; position: absolute; left: 16px; right: 16px; top: 76px;
    flex-direction: column; background: #fff; border: 1px solid var(--linie);
    border-radius: 24px; padding: 8px; box-shadow: 0 16px 40px rgba(25, 33, 61, .12);
  }
  .menue a { padding: 13px 16px; font-size: 17px; }
  .kopf.offen .menue { display: flex; }
}

/* ---------- Store-Knöpfe ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px 8px 16px;
  border-radius: 16px; background: var(--nacht); color: #fff; text-decoration: none; line-height: 1.15;
}
.store small { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.store span { font-size: 17px; font-weight: 800; }
.store svg { flex: none; }
a.store:hover { background: #000; color: #fff; }
.store.bald { background: #2b3456; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .huelle { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .einleitung { margin-top: 18px; font-size: 19px; color: var(--leise); max-width: 34em; }
.weiche { margin-top: 30px; }
.weiche-titel { font-size: 15px; font-weight: 800; color: var(--leise); margin-bottom: 10px; }
.rollen { display: flex; flex-wrap: wrap; gap: 8px; }
.rolle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 8px;
  border-radius: 999px; border: 2px solid var(--linie); background: #fff; color: var(--tinte);
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: border-color .2s, background .2s;
}
.rolle .zeichen { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; }
.rolle:hover { border-color: #c9d1ee; }
.rolle[aria-selected="true"] { border-color: var(--blau); background: var(--blau-hell); color: var(--blau); }
.rollen-text { margin-top: 18px; min-height: 152px; }
.rollen-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rollen-text li { display: flex; gap: 12px; align-items: flex-start; }
.rollen-text li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 999px;
  background: var(--minze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23187A4D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.hero .stores { margin-top: 26px; }

/* Handy wie das echte Gerät: schmaler schwarzer Rand, Metallkante, Dynamic Island */
.buehne { position: relative; display: grid; place-items: center; }
.buehne::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sonne-hell); z-index: 0;
}
.handy {
  position: relative; z-index: 1; width: min(310px, 78vw); padding: 9px; border-radius: 54px;
  background: #0b0d14;
  box-shadow: 0 0 0 1.5px #8d93a3, 0 0 0 3px #d5d9e2, 0 30px 60px rgba(25, 33, 61, .22);
}
.handy .bildschirm { position: relative; border-radius: 45px; overflow: hidden; aspect-ratio: 1206 / 2622; background: var(--grund); }
.handy .bildschirm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.handy .bildschirm img[hidden] { display: block; opacity: 0; }
.handy .insel { position: absolute; z-index: 2; top: 20px; left: 50%; translate: -50% 0; width: 32%; height: 27px; border-radius: 20px; background: #000; }
.handy .leiste { position: absolute; z-index: 2; bottom: 15px; left: 50%; translate: -50% 0; width: 36%; height: 5px; border-radius: 9px; background: rgba(25, 33, 61, .55); }

@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero .huelle { grid-template-columns: 1fr; gap: 40px; }
  .rollen-text { min-height: 0; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 84px 0; }
.abschnitt-kopf { max-width: 640px; margin-bottom: 36px; }
.abschnitt-kopf p { margin-top: 14px; font-size: 19px; color: var(--leise); }
/* Am Handy: letzter Inhalt bis nächster Titel höchstens etwa 100 px. */
@media (max-width: 700px) {
  .abschnitt { padding: 44px 0; }
  .hero { padding-bottom: 36px !important; }
  .abschnitt.laden { padding-top: 24px; }
  .abschnitt-kopf { margin-bottom: 26px; }
}

/* Tagespflege: ungleich große Bildtafeln mit echten App-Ausschnitten */
.tafeln { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto auto; gap: 18px; }
.tafel { border-radius: 32px; padding: 30px 30px 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, box-shadow .25s ease; }
.tafel:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(25, 33, 61, .10); }
.tafel h3 { max-width: 26ch; }
.tafel p { color: var(--leise); max-width: 36em; }
/* App-Ausschnitte laufen unten weich in die Tafelfarbe aus, statt hart abgeschnitten zu wirken. */
.tafel .ausschnitt {
  margin-top: auto; padding-top: 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.tafel .ausschnitt img { width: 100%; border-radius: 22px 22px 0 0; }
.tafel.gross { grid-row: 1 / span 2; background: var(--butter); }
.tafel.gross .ausschnitt { padding-inline: 18px; margin-top: 8px; flex: 1 1 0; min-height: 320px; }
.tafel.pfirsich { background: var(--pfirsich); }
.tafel.himmel { background: var(--himmel); }
.tafel.pfirsich .ausschnitt, .tafel.himmel .ausschnitt { height: 250px; }
.tafel.buero { grid-column: 1 / -1; background: var(--flieder); padding-bottom: 30px; flex-direction: row; align-items: center; gap: 32px; }
.tafel.buero > div:first-child { flex: 0 0 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 9px; background: #fff; border-radius: 999px; padding: 9px 16px 9px 10px; font-weight: 800; font-size: 16px; }
.chips svg { flex: none; }
@media (max-width: 900px) {
  .tafeln { grid-template-columns: 1fr; }
  .tafel.gross { grid-row: auto; }
  .tafel.buero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tafel.buero > div:first-child { flex: none; }
  .tafel { padding: 24px 22px 0; }
  .tafel.buero { padding-bottom: 24px; }
}

/* Eltern: getönter Abschnitt */
.eltern { background: var(--sonne-hell); }
.eltern .huelle { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.eltern .buehne::before { background: #ffe39a; }
.punkte { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.punkte li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.punkte .zeichen { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: #fff; }
.punkte strong { display: block; font-size: 18px; font-weight: 900; }
.punkte span { color: var(--leise); }
.suche-hinweis { margin-top: 28px; background: #fff; border-radius: 24px; padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.suche-hinweis .zeichen { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--minze); display: grid; place-items: center; }
@media (max-width: 900px) {
  .eltern .huelle { grid-template-columns: 1fr; gap: 36px; }
  .eltern .buehne { order: 2; }
}

/* Daten: der eine dunkle Abschnitt */
.daten { background: var(--nacht); color: #fff; }
.daten .huelle { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.daten p.leise { color: #c4c9de; }
.daten a { color: #fff; }
.fakten { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.fakten li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fakten li:first-child { border-top: 0; padding-top: 4px; }
.fakten .zeichen { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: var(--sonne); }
.fakten strong { display: block; font-size: 18px; font-weight: 900; }
.fakten span { color: #c4c9de; }
.daten .links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.daten .knopf.hell { background: rgba(255, 255, 255, .12); color: #fff; }
.daten .knopf.hell:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 900px) { .daten .huelle { grid-template-columns: 1fr; gap: 28px; } }

/* Laden und Kontakt */
.laden .karte { background: var(--blau); color: #fff; border-radius: 36px; padding: 52px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.laden .karte p { color: #dfe5ff; margin-top: 12px; font-size: 18px; }
.laden .store { background: #fff; color: var(--tinte); }
.laden a.store:hover { background: var(--grund); color: var(--tinte); }
.laden .store.bald { background: rgba(255, 255, 255, .92); }
.laden .kontakt { background: rgba(255, 255, 255, .12); border-radius: 24px; padding: 22px 24px; }
.laden .kontakt a { color: #fff; font-weight: 800; }
@media (max-width: 900px) { .laden .karte { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 28px; } }

/* ---------- Unterseiten: Hilfe und Rechtstexte ---------- */
.seite { padding: 48px 0 80px; }
.seite .huelle { max-width: 780px; }
.seite h1 { font-size: clamp(32px, 4vw, 46px); }
.seite .vorspann { margin-top: 14px; font-size: 19px; color: var(--leise); }
.text { margin-top: 28px; background: #fff; border-radius: var(--rand); padding: 40px 44px; }
.text h2 { font-size: 26px; margin: 36px 0 12px; scroll-margin-top: 110px; }
.text h3 { font-size: 20px; margin: 26px 0 8px; scroll-margin-top: 110px; }
.text h2:first-child, .text h3:first-child { margin-top: 0; }
.text p, .text ul, .text ol { margin: 0 0 14px; }
.text ul, .text ol { padding-left: 1.3em; }
.text li { margin-bottom: 6px; }
.text strong { font-weight: 900; }
.hinweis-box { margin-top: 24px; background: var(--blau-hell); border-radius: 24px; padding: 22px 26px; }
.hinweis-box strong { display: block; font-weight: 900; margin-bottom: 4px; }
.fragen { margin-top: 28px; display: grid; gap: 12px; }
.fragen details { background: #fff; border-radius: 24px; padding: 0 26px; scroll-margin-top: 110px; }
.fragen summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-weight: 900; font-size: 19px; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 28px; font-weight: 700; color: var(--blau); }
.fragen details[open] summary::after { content: "–"; }
.fragen .antwort { padding-bottom: 22px; color: var(--leise); }
.fragen .antwort p + p, .fragen .antwort p + ol, .fragen .antwort ol + p { margin-top: 10px; }
.fragen .antwort ol { margin: 10px 0 0; padding-left: 1.3em; }
.fragen .antwort strong { color: var(--tinte); }
@media (max-width: 700px) {
  .seite { padding: 28px 0 56px; }
  .text { padding: 26px 20px; border-radius: 24px; }
  .fragen details { padding: 0 20px; }
}

/* ---------- Fuß ---------- */
.fuss { padding: 48px 0 40px; border-top: 1px solid var(--linie); background: #fff; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.fuss p { color: var(--leise); margin-top: 10px; max-width: 30em; font-size: 15px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; }
.fuss ul a { color: var(--tinte); text-decoration: none; font-weight: 700; display: inline-block; padding: 6px 0; }
.fuss ul a:hover { color: var(--blau); text-decoration: underline; }
@media (max-width: 520px) { .fuss ul { grid-template-columns: 1fr; } }

/* Sanftes Erscheinen beim Scrollen */
.erscheint { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.erscheint.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .erscheint { opacity: 1; transform: none; transition: none; }
  .tafel, .knopf, .handy .bildschirm img { transition: none; }
}

/* Statt Inline-Stilen (strenge Content-Security-Policy ohne 'unsafe-inline') */
.zeichen.butter { background: var(--butter); }
.zeichen.rose { background: var(--rose); }
.zeichen.minze { background: var(--minze); }
.unterzeile { margin-top: 14px; font-size: 19px; }
.abstand { margin-top: 24px; }
.laden .kontakt p { margin-top: 6px; }
