/* Uschi habla – Entwurf D2 "Plaza". Bricolage Grotesque (SIL Open Font License 1.1),
   selbst ausgeliefert, damit keine Anfrage an Google geht. Zeichensatz: Latin (ä ö ü ß á é í ó ú ñ ¿ ¡).
   Keine style-Attribute im HTML (CSP style-src 'self') – alles über Klassen. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/statisch/schriften/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --grund: #FFFDF8;
  --tinte: #17181C;
  --grau: #6A6B73;
  --linie: #E9E4D8;
  --flaeche: #F6F3EC;
  --feld: #F1EEE6;
  --gelb: #FFE58A;
  --blau: #1F3A8A;
  --blau-hell: #EEF2FF;
  --hellblau: #CDE7FF;
  --gruen: #B6EBC7;
  --rosa: #FFC9BE;
  --rot: #C60B1E;
  --schrift: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--tinte); font-family: var(--schrift); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea, select { font-size: max(16px, 1em); }   /* iOS zoomt sonst in jedes Feld */
a { color: var(--blau); }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Wortmarke ----------------------------------------------------------------- */
.marke { display: flex; align-items: flex-end; gap: 6px; }
.marke-uschi { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; }
.marke-habla { position: relative; display: inline-block; background: var(--gelb); border-radius: 13px;
  padding: 3px 10px 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; transform: rotate(-4deg); }
.marke-habla::after { content: ""; position: absolute; left: 9px; bottom: -8px; border-left: 6px solid transparent;
  border-right: 6px solid transparent; border-top: 9px solid var(--gelb); }
.marke-gross .marke-uschi { font-size: 60px; }
.marke-gross .marke-habla { font-size: 42px; border-radius: 22px; padding: 6px 16px 10px; margin-bottom: 4px; }
.marke-gross .marke-habla::after { left: 14px; bottom: -12px; border-left-width: 10px; border-right-width: 10px; border-top-width: 14px; }

/* --- Tor (Anmeldung) ----------------------------------------------------------- */
.tor { display: flex; flex-direction: column; gap: 22px; max-width: 460px;
  padding: max(70px, env(safe-area-inset-top)) 24px 24px; }
.tor-text { font-size: 19px; line-height: 1.4; margin: 10px 0 0; }
.fehler { color: var(--rot); font-size: 16px; min-height: 1.4em; margin: 0; }

/* --- Gerüst -------------------------------------------------------------------- */
.inhalt { max-width: 560px; margin: 0 auto; outline: none;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(120px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 16px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.rund { width: 44px; height: 44px; flex: none; border: 0; border-radius: 22px; background: #E3D4FF; font-weight: 800; font-size: 18px; cursor: pointer; }
h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h2 { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--grau); }
.gruss { font-size: 22px; font-weight: 600; margin: 0; line-height: 1.25; }
.leise { color: var(--grau); font-size: 15px; margin: 0; line-height: 1.4; }
.klein { font-size: 13px; color: var(--grau); }
.zurueck { align-self: flex-start; border: 0; background: none; padding: 8px 0; font-size: 16px; font-weight: 600; color: var(--blau); cursor: pointer; min-height: 44px; }

.leiste { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 536px; margin: 0 auto;
  height: 72px; border-radius: 36px; background: var(--tinte); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center; padding: 0 4px; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.leiste-knopf { height: 64px; border: 0; background: none; color: #9A9BA3; font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.leiste-knopf span { white-space: nowrap; }
.leiste-knopf.aktiv { color: var(--gelb); }
.leiste svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.leiste-knopf:nth-child(2) svg path { fill: currentColor; stroke: none; }
.leiste-plus { justify-self: center; width: 60px; height: 60px; border: 0; border-radius: 30px; background: var(--gelb); color: var(--tinte); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.leiste-plus svg { width: 28px; height: 28px; stroke-width: 2.6; }

.hinweis { position: fixed; left: 16px; right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto;
  background: var(--tinte); color: #fff; border-radius: 20px; padding: 12px 16px; font-size: 15px; z-index: 11;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hinweis button { border: 0; background: var(--gelb); color: var(--tinte); border-radius: 16px; min-height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer; }

/* --- Knöpfe, Felder, Chips ---------------------------------------------------- */
.knopf { border: 0; border-radius: 28px; min-height: 52px; padding: 0 22px; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--tinte); color: #fff; }
.knopf-blau { background: var(--blau); color: #fff; }
.knopf-gelb { background: var(--gelb); color: var(--tinte); }
.knopf-hell { background: var(--feld); color: var(--tinte); }
.knopf-weiss { background: #fff; color: var(--tinte); }
.knopf-rosa { background: var(--rosa); color: var(--tinte); }
.knopf-gruen { background: var(--gruen); color: var(--tinte); }
.knopf-gross { min-height: 60px; font-size: 19px; font-weight: 800; }
.knopf-klein { min-height: 40px; padding: 0 14px; font-size: 15px; }
.knopf:disabled { opacity: 0.45; cursor: default; }
.knopf:focus-visible, .chip:focus-visible, .zeile:focus-visible, .kachel:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.reihe { display: flex; gap: 10px; }
.reihe > * { flex: 1; }
.feldrahmen { display: flex; gap: 8px; padding: 6px; border-radius: 28px; background: var(--feld); }
.feld { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 24px; background: #fff; padding: 0 16px; }
.feld-voll { width: 100%; height: 54px; border: 0; border-radius: 27px; background: var(--feld); padding: 0 20px; }
.feld-tipp { width: 100%; height: 58px; border: 0; border-radius: 29px; background: var(--feld); padding: 0 22px; font-size: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: var(--feld); font-size: 14px; font-weight: 600; cursor: pointer; opacity: 0.75; }
.chip.an { opacity: 1; background: var(--tinte); color: #fff; }
.chip.thema.an { color: var(--tinte); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 22px; background: var(--feld); }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 18px; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button.an { background: var(--tinte); color: #fff; }

/* Themenfarben */
.th-haus { background: #FFE58A !important; } .th-amt { background: #CDE7FF !important; } .th-einkauf { background: #B6EBC7 !important; }
.th-essen { background: #FFC9BE !important; } .th-leute { background: #E3D4FF !important; } .th-schule { background: #FFD9A8 !important; }
.th-weg { background: #D5F0EE !important; } .th-zeit { background: #F3E3C7 !important; } .th-natur { background: #D8EFC0 !important; }
.th-koerper { background: #FFD6E3 !important; } .th-wetter { background: #D9E4FF !important; } .th-basis { background: #E8E6E1 !important; }

/* --- Karten, Listen ------------------------------------------------------------ */
.karte { border-radius: 28px; padding: 20px; background: var(--flaeche); display: flex; flex-direction: column; gap: 8px; }
.karte-gelb { background: var(--gelb); } .karte-blau { background: var(--hellblau); } .karte-gruen { background: var(--gruen); }
.karte-rosa { background: var(--rosa); } .karte-lila { background: #E3D4FF; }
.karte-titel { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; margin: 0; }
.ueben-karte { text-decoration: none; border: 0; text-align: left; cursor: pointer; border-radius: 28px; padding: 22px; background: var(--blau); color: #fff;
  display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ueben-karte b { display: block; font-size: 26px; font-weight: 800; }
.ueben-karte small { display: block; font-size: 15px; opacity: 0.85; margin-top: 2px; }
.ueben-karte .play { width: 52px; height: 52px; border-radius: 26px; background: var(--gelb); color: var(--blau); display: flex; align-items: center; justify-content: center; flex: none; }
.ueben-karte .play svg { width: 24px; height: 24px; fill: currentColor; }
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kachel { min-height: 88px; border: 0; border-radius: 22px; padding: 12px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--tinte); }
.kachel b { font-size: 14px; font-weight: 800; line-height: 1.15; }
.kachel small { font-size: 12px; opacity: 0.7; }
.liste { display: flex; flex-direction: column; gap: 8px; }
.zeile { width: 100%; border: 0; text-align: left; cursor: pointer; padding: 14px 18px; border-radius: 22px; background: var(--flaeche);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--tinte); min-height: 56px; }
.zeile-text { display: flex; flex-direction: column; min-width: 0; }
.zeile-text b { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.zeile-text span { font-size: 14px; opacity: 0.75; overflow-wrap: anywhere; }
.pille { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: #fff; }
.pille.neu { background: var(--hellblau); } .pille.wackelt { background: var(--rosa); } .pille.sitzt { background: var(--gruen); }
.pille.pruefen { background: var(--gelb); }

/* --- Neues Wort ---------------------------------------------------------------- */
.vorschlag { width: 100%; border: 3px solid transparent; border-radius: 26px; padding: 18px; background: #fff; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; color: var(--tinte); box-shadow: 0 1px 0 var(--linie); }
.vorschlag.gewaehlt { border-color: var(--blau); }
.vorschlag-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vorschlag-es { font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.vorschlag-de { font-size: 17px; font-weight: 600; }
.vorschlag-quelle { font-size: 12px; font-weight: 600; color: #1D7A4F; }
.warnung { font-size: 14px; font-weight: 600; background: var(--gelb); border-radius: 12px; padding: 6px 10px; }
.mit-aufnehmen { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 4px 6px; }
.mit-aufnehmen input { width: 22px; height: 22px; }

/* --- Üben ------------------------------------------------------------------------ */
.modus { width: 100%; border: 3px solid transparent; border-radius: 22px; padding: 14px 16px; background: var(--flaeche); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: var(--tinte); gap: 10px; }
.modus.an { border-color: var(--blau); background: var(--blau-hell); }
.modus b { display: block; font-size: 18px; font-weight: 800; }
.modus small { display: block; font-size: 13px; opacity: 0.7; }
.modus em { font-style: normal; font-size: 15px; font-weight: 800; }
.auswahl { border-radius: 22px; background: var(--flaeche); padding: 4px 6px; max-height: 340px; overflow-y: auto; }
.auswahl label { display: flex; align-items: center; gap: 12px; padding: 10px; font-size: 17px; font-weight: 600; cursor: pointer; }
.auswahl input { width: 24px; height: 24px; accent-color: var(--blau); }
.auswahl small { margin-left: auto; font-size: 14px; opacity: 0.7; font-weight: 400; }
.karteikarte { border-radius: 32px; padding: 28px 22px; background: var(--hellblau); min-height: 240px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; }
.frage { font-size: 15px; font-weight: 600; opacity: 0.65; }
.wortgross { font-size: 36px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.loesung { background: #fff; border-radius: 22px; padding: 14px 20px; display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; }
.loesung b { font-size: 30px; font-weight: 800; color: var(--blau); overflow-wrap: anywhere; }
.rueckmeldung { border-radius: 22px; padding: 16px 18px; font-size: 17px; font-weight: 600; }
.rueckmeldung.gut { background: var(--gruen); } .rueckmeldung.fast { background: var(--gelb); } .rueckmeldung.falsch { background: var(--rosa); }
.zaehler { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* --- Wort-Detail ------------------------------------------------------------------ */
.wortkopf { border-radius: 32px; padding: 24px 22px; background: var(--gelb); text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.wortkopf .wortgross { font-size: 40px; }
.wortkopf .de { font-size: 18px; }
.vorlesen { min-height: 46px; padding: 0 20px; border: 0; border-radius: 23px; background: var(--tinte); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.beispiel { border-radius: 20px; padding: 12px 12px 12px 18px; background: var(--flaeche); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.beispiel b { display: block; font-size: 17px; font-weight: 700; }
.beispiel span { display: block; font-size: 14px; color: var(--grau); }
.beispiel small { display: block; font-size: 11px; color: #1D7A4F; margin-top: 2px; }
.lautsprecher { width: 44px; height: 44px; flex: none; border: 0; border-radius: 22px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lautsprecher svg, .vorlesen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabelle { border-radius: 24px; background: var(--flaeche); padding: 6px 18px; }
.tabelle div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.tabelle div:last-child { border-bottom: 0; }
.tabelle span { opacity: 0.65; font-size: 15px; }
.tabelle b { font-size: 18px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.verweis { width: 100%; border: 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  border-radius: 16px; background: #fff; color: var(--tinte); min-height: 48px; }
.verweis b { font-size: 18px; font-weight: 800; }
.formular { display: flex; flex-direction: column; gap: 10px; }
.formular label { font-size: 14px; font-weight: 600; color: var(--grau); display: flex; flex-direction: column; gap: 4px; }

/* --- So geht's -------------------------------------------------------------------- */
.thema-zeile { width: 100%; border: 0; text-align: left; cursor: pointer; padding: 16px 18px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--tinte); }
.thema-zeile b { font-size: 19px; font-weight: 800; line-height: 1.15; }
.formel { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 10px; background: rgba(255,255,255,0.75); }
.thema-zeile i { font-size: 15px; }
.bausteine { display: flex; gap: 6px; flex-wrap: wrap; }
.baustein { padding: 8px 14px; border-radius: 14px; font-size: 18px; font-weight: 800; background: var(--feld); }
.satz { border-radius: 20px; background: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.satz b { display: block; font-size: 24px; font-weight: 800; color: var(--blau); }
.satz span { display: block; font-size: 15px; color: var(--grau); }
.c-gelb { background: #FFE58A; } .c-blau { background: #CDE7FF; } .c-gruen { background: #B6EBC7; } .c-rosa { background: #FFC9BE; }
.c-lila { background: #E3D4FF; } .c-orange { background: #FFD9A8; } .c-grau { background: #F1EEE6; }

/* --- Meine Wörter (Stern) ----------------------------------------------------- */
.zeile-mit-stern { display: flex; gap: 6px; align-items: stretch; }
.zeile-mit-stern .zeile { flex: 1; min-width: 0; }
.stern { flex: none; width: 52px; border: 0; border-radius: 22px; background: var(--flaeche); font-size: 24px; cursor: pointer; color: #9A9BA3; }
.stern.an { background: var(--gelb); color: var(--tinte); }
.reihe-mitte { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stern-gross.an { background: var(--blau); }
.meine-zeile { background: var(--gelb); }

/* --- Extra: Zahlen und Uhrzeit ------------------------------------------------- */
.modus.extra { background: #F3E3C7; }
.zahlkarte { background: #F3E3C7; }
.zahlgross { font-size: 64px; font-weight: 800; line-height: 1; }
.uhrkarte { background: #D9E4FF; gap: 8px; }
.uhr-satz { font-size: 26px; font-weight: 800; line-height: 1.15; }
.uhr-digital { font-size: 40px; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.uhr { width: min(64vw, 34vh, 250px); height: min(64vw, 34vh, 250px); }
.uhr.ziehbar { touch-action: none; cursor: grab; }
.uhr text { font-family: var(--schrift); }
.uhr-regler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.uhr-regler .knopf { font-size: 15px; min-height: 44px; padding: 0; border-radius: 16px; }
.uhr-tipp { margin: 0; }
.uhrkarte { padding: 16px 14px; gap: 6px; min-height: 0; }
.uhr-satz { font-size: 22px; }
.uhr-schalter { display: flex; gap: 8px; align-items: center; }
.uhr-schalter .seg { flex: 1; }
.tageszeit-chip { flex: none; min-height: 52px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--feld); font-size: 14px; font-weight: 700; cursor: pointer; }
.tageszeit-chip.an { background: var(--tinte); color: #fff; }
.tageszeit-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--gelb); }
.uhr-option { text-align: center; }

/* --- Extra: Wortpakete ---------------------------------------------------------- */
.pk-farben { background: #FFE58A !important; } .pk-tiere { background: #D8EFC0 !important; } .pk-wetter { background: #D9E4FF !important; }
.paketkarte { width: 100%; border: 0; border-radius: 26px; padding: 18px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; color: var(--tinte); }
.paketkopf { display: flex; justify-content: space-between; align-items: baseline; }
.paketkopf b { font-size: 24px; font-weight: 800; }
.paketkopf span { font-size: 14px; font-weight: 700; }
.paketvorschau { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; background: rgba(255,255,255,0.8); font-size: 13px; font-weight: 700; }
.bild { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bild.farbe { width: 22px; height: 22px; border-radius: 11px; border: 1px solid rgba(0,0,0,0.15); }
.bild.emoji { font-size: 18px; width: 22px; height: 22px; line-height: 1; }
.bild.gross.farbe { width: 100%; height: 64px; border-radius: 14px; }
.bild.gross.emoji { font-size: 46px; width: 100%; height: 64px; }
.bildkarte .bild.gross.farbe { width: 150px; height: 150px; border-radius: 30px; }
.bildkarte .bild.gross.emoji { font-size: 110px; height: 150px; }
.paketgitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.paketwort { position: relative; border: 3px solid var(--blau); border-radius: 22px; padding: 12px; background: #fff; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; color: var(--tinte); min-width: 0; }
.paketwort b { font-size: 16px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.paketwort span:not(.bild) { font-size: 13px; color: var(--grau); }
.paketwort i { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 10px; background: var(--gelb); }
.paketwort.aus { border-color: var(--linie); opacity: 0.5; }
.paketwort.aus i, .paketwort.da i { background: var(--feld); }
.paketwort.da { border-color: transparent; cursor: default; }
.passend-satz { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.passend-satz .bild.farbe { width: 40px; height: 40px; border-radius: 12px; }
.fb-d7263d { background: #D7263D; }
.fb-2f6fdb { background: #2F6FDB; }
.fb-f7d02c { background: #F7D02C; }
.fb-3ba55c { background: #3BA55C; }
.fb-1b1b1b { background: #1B1B1B; }
.fb-ffffff { background: #FFFFFF; }
.fb-9aa0a6 { background: #9AA0A6; }
.fb-7b4b2a { background: #7B4B2A; }
.fb-f28c28 { background: #F28C28; }
.fb-f4a6c1 { background: #F4A6C1; }
.fb-7e4fb3 { background: #7E4FB3; }
.fb-c9a227 { background: #C9A227; }
