/* auswertung.css – Auswertungswerkzeug Rechtschreiblupe Klasse 2 (Verena, 03.11.2026). Farben wie grundschullupe.de (web/stil.css), hell und dunkel.
   Schriften lokal: Fibel Web (Andika-Teilmenge, OFL) für die Oberfläche, GS Druck für Kinderschrift. Keine Inline-Stile (CSP). */
@font-face { font-family: "Fibel Web"; src: url("fonts/fibel-web-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fibel Web"; src: url("fonts/fibel-web-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GS Druck"; src: url("fonts/GSDruck-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --grund: #fbf7f0; --flaeche: #ffffff; --flaeche-2: #f4eee3; --linie: #e7dfd1;
  --text: #2a2622; --leise: #5e574f;
  --akzent: #a64b28; --akzent-text: #ffffff;
  --himmel: #33658e; --himmel-hell: #e1ebf4;
  --gut: #3f7a45; --gut-hell: #e2efdf; --mittel: #a37400; --mittel-hell: #f8ecc9; --schlecht: #b0412b; --schlecht-hell: #f7ddd5;
  --gut-text: #2b5a30; --schlecht-text: #8e321f;
  --lupe: #f2d98a;
  --schatten: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1b1916; --flaeche: #25221e; --flaeche-2: #2d2924; --linie: #3a352f;
    --text: #f2ede5; --leise: #c2b9ad; --akzent: #f0a27e; --akzent-text: #1b1916;
    --himmel: #9cc3e4; --himmel-hell: #23313d;
    --gut: #9fd3a3; --gut-hell: #24382a; --mittel: #f0c75e; --mittel-hell: #3b3220; --schlecht: #f3a08c; --schlecht-hell: #40261f;
    --gut-text: #9fd3a3; --schlecht-text: #f3a08c;
    --lupe: #6b5a1e;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
  img.symbol, .tabelle th img, .smiley img { background: #f4eee3; border-radius: 50%; }
}
* { box-sizing: border-box; }
html { background: var(--grund); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 1rem/1.5 "Fibel Web", system-ui, -apple-system, "Segoe UI", sans-serif; }
.huelle { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: .1rem 0 0; line-height: 1.15; }
h2 { font-size: 1.2rem; margin: 0 0 .8rem; display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
h2 small { font-weight: 400; font-size: .85rem; color: var(--leise); }
h3 { font-size: 1.02rem; margin: 1.2rem 0 .5rem; }
.nr { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid currentColor; font-size: .95rem; flex: none; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 1.1rem 0; margin-bottom: 1.2rem; }
.kopf-innen { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.logo { flex: 0 0 100%; display: block; width: max-content; }   /* Logo Grundschullupe (04.11.2026), nur online */
.logo img { display: block; height: 56px; width: auto; }
.kicker { margin: 0; color: var(--akzent); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.datenschutz { margin: 0; display: flex; align-items: center; gap: .45rem; background: var(--himmel-hell); color: var(--himmel); padding: .45rem .8rem; border-radius: 999px; font-size: .9rem; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.1rem 1.1rem 1.2rem; margin-bottom: 1.1rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--leise); }
input { font: inherit; color: var(--text); background: var(--grund); border: 1.5px solid var(--linie); border-radius: 10px; padding: .45rem .6rem; min-width: 0; }
input:focus-visible, button:focus-visible, .smiley:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.gs { font-family: "GS Druck", "Fibel Web", sans-serif; font-size: 1.45rem; letter-spacing: .04em; padding: .2rem .55rem; }
.kind-felder { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.kind-felder input { width: 10rem; }
.wahl-felder, .wahl-form { display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: flex-end; }
.wahl-felder .leiste { margin: 0; }
select { font: inherit; color: var(--text); background: var(--grund); border: 1.5px solid var(--linie); border-radius: 10px; padding: .45rem .6rem; min-width: 12rem; max-width: 100%; min-height: 44px; }
select:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.wahl-form { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--linie); }
.wahl-form[hidden], .knopf[hidden] { display: none; }
.wahl-form input { width: 10rem; }
.wahl-form .klein { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--leise); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.offen { margin: .5rem 0 0; font-size: .92rem; color: var(--leise); }
.uebersicht .vorher { color: var(--leise); }
.hinweis { margin: 0; color: var(--schlecht); font-size: .9rem; flex-basis: 100%; }
.leiste { display: flex; gap: .6rem; flex-wrap: wrap; margin: .3rem 0 .9rem; align-items: center; }
.knopf { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: .55rem 1.05rem; background: var(--akzent); color: var(--akzent-text); cursor: pointer; }
.knopf.leise { background: var(--flaeche-2); color: var(--text); font-weight: 400; border: 1px solid var(--linie); }
.knopf.warnung { background: transparent; color: var(--schlecht); border: 1.5px solid var(--schlecht); font-weight: 400; }
.knopf.datei { flex-direction: row; display: inline-flex; font-size: 1rem; }
.knopf.datei input { display: none; }
.woerter { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .7rem; }
.wort { display: grid; grid-template-columns: 3.6rem 1fr; grid-template-rows: auto auto auto; gap: .2rem .6rem; align-items: center; padding: .55rem; border: 1px solid var(--linie); border-radius: 14px; background: var(--grund); }
.wort img { grid-row: span 3; width: 3.6rem; height: 3.6rem; object-fit: contain; background: #fff; border-radius: 10px; }
.wort-kopf { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .85rem; color: var(--leise); }
.wort-kopf .ziel { font-family: "GS Druck", sans-serif; font-size: 1.15rem; color: var(--text); letter-spacing: .03em; }
.wort input { width: 100%; }
.stelle { font: inherit; font-size: .8rem; border-radius: 999px; padding: .1rem .55rem; border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--leise); cursor: pointer; white-space: nowrap; }
.stelle.ja { background: var(--gut-hell); color: var(--gut-text); border-color: var(--gut); }
.stelle.nein { background: var(--schlecht-hell); color: var(--schlecht-text); border-color: var(--schlecht); }
.marken { display: flex; flex-wrap: wrap; gap: .3rem; }
.summen { margin: .6rem 0 .2rem; font-weight: 700; }
#ergebnis .zwischen th { padding-top: .9rem; font-weight: 700; color: var(--text); }
.stelle.hand::after { content: " ✎"; }
mark, .lupe { background: var(--lupe); color: inherit; border-radius: 4px; padding: 0 .08em; }
.satz { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: start; }
.satzbild { width: 10rem; height: auto; background: #fff; border-radius: 12px; }
.satz-rechts { display: grid; gap: .55rem; justify-items: start; }
.satz-eingabe { width: 100%; }
.satz-eingabe input { width: 100%; }
.vorgabe { margin: 0; font-family: "GS Druck", sans-serif; font-size: 1.3rem; letter-spacing: .03em; }
.satz-woerter { display: flex; gap: .4rem; flex-wrap: wrap; }
.sw { padding: .25rem .5rem .35rem; border-radius: 10px; border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--text); display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.sw-text { font-family: "GS Druck", sans-serif; font-size: 1.15rem; }
.sw-marken { display: flex; gap: .25rem; flex-wrap: wrap; }
.sw small { font-family: "Fibel Web", sans-serif; font-size: .7rem; color: var(--leise); display: block; line-height: 1.1; }
.sw.fehlt { border-style: dashed; color: var(--leise); cursor: default; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { border-bottom: 1px solid var(--linie); padding: .4rem .45rem; text-align: left; vertical-align: middle; }
.tabelle th { font-size: .82rem; color: var(--leise); font-weight: 400; }
#ergebnis th:nth-child(n+3), #ergebnis td:nth-child(n+3) { text-align: center; }
.symbol { width: 28px; height: 28px; display: block; }
.anzahl { color: var(--leise); font-size: .9rem; white-space: nowrap; }
.smiley { border: 2px solid transparent; background: none; border-radius: 50%; padding: 3px; cursor: pointer; opacity: .28; line-height: 0; }
.smiley img { width: 30px; height: 30px; }
.smiley.an { opacity: 1; }
.smiley.an.gut { border-color: var(--gut); background: var(--gut-hell); }
.smiley.an.mittel { border-color: var(--mittel); background: var(--mittel-hell); }
.smiley.an.schlecht { border-color: var(--schlecht); background: var(--schlecht-hell); }
.smiley.hand::after { content: "✎"; position: absolute; font-size: .7rem; }
.foerderung { display: grid; gap: .5rem; margin: .9rem 0 .4rem; }
.foerder { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; padding: .55rem .7rem; border-radius: 12px; background: var(--flaeche-2); }
.foerder strong { display: block; }
.plan { margin: .4rem 0 0; font-weight: 600; }
.meldung { margin: 0; min-height: 1.4em; color: var(--gut); }
.tabelle-rahmen { overflow-x: auto; position: relative; }  /* relative: .nur-sr (absolut) bleibt im Rahmen */
.uebersicht th, .uebersicht td { text-align: center; }
.uebersicht th:first-child, .uebersicht td:first-child { text-align: left; white-space: nowrap; }
.uebersicht th img { width: 24px; height: 24px; }
.uebersicht .punkt { display: inline-block; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid var(--linie); }
.uebersicht .punkt.gut { background: var(--gut); border-color: var(--gut); }
.uebersicht .punkt.mittel { background: var(--mittel-hell); border-color: var(--mittel); }
.uebersicht .punkt.schlecht { background: var(--flaeche); border-color: var(--schlecht); border-width: 3px; }
.uebersicht .kopfname { font-size: .72rem; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.uebersicht button { font: inherit; font-size: .8rem; background: none; border: 0; color: var(--akzent); cursor: pointer; text-decoration: underline; }
.leer { color: var(--leise); }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
.gruppe { border: 1px solid var(--linie); border-radius: 12px; padding: .55rem .7rem; display: grid; grid-template-columns: 28px 1fr; gap: .5rem; }
.gruppe p { margin: 0; }
.gruppe .kinder { font-weight: 700; }
.info ul { margin: 0; padding-left: 1.2rem; }
.info li { margin: .3rem 0; }
.fuss { color: var(--leise); font-size: .82rem; padding: 1rem 0 2rem; }
.rechtliches { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin-bottom: .4rem; font-size: .92rem; }
.rechtliches a, .drucken a { color: inherit; }
.rechtliches a { display: inline-flex; align-items: center; min-height: 44px; color: var(--akzent); }
.drucken p { margin: 0 0 .6rem; }
a.knopf { display: inline-block; text-decoration: none; color: var(--akzent-text); }
a.knopf.leise { color: var(--text); }
@media (max-width: 40rem) {
  .satz { grid-template-columns: 1fr; }
  .tabelle th, .tabelle td { padding: .35rem .25rem; }
  .smiley img { width: 22px; height: 22px; }
  .smiley { padding: 1px; }
  #ergebnis .symbol { width: 20px; height: 20px; }
  #ergebnis td:nth-child(2) { hyphens: manual; font-size: .92rem; }
  .anzahl { font-size: .8rem; }
  .karte { padding-left: .75rem; padding-right: .75rem; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .kopf { border: 0; padding: 0; margin: 0 0 4mm; }
  .logo, .datenschutz, .drucken, .rechtliches, .leiste, .klasse, .wahl, .info, .fuss, .woerter input, .satz-eingabe, #satz-richtig, .meldung { display: none !important; }
  .karte { box-shadow: none; border: 1px solid #999; break-inside: avoid; padding: 3mm 4mm; margin-bottom: 4mm; }
  .smiley { opacity: .15; } .smiley.an { opacity: 1; }
  .woerter { grid-template-columns: repeat(4, 1fr); gap: 2mm; }
  .wort { grid-template-columns: 10mm 1fr; padding: 1.5mm; }
  .wort img { width: 10mm; height: 10mm; }
}

/* ---- Druck: Rückmeldung je Kind (A4 hoch) und Klassenübersicht (A4 quer); nur #druck wird gedruckt ---- */
.paket { border: 1.5px solid var(--linie); border-radius: 14px; padding: .8rem 1rem; margin: 1rem 0 .4rem; background: var(--grund); }
.paket h3 { margin: 0 0 .5rem; }
.paket-wahl { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: .7rem; }
.paket-wahl label { flex-direction: row; align-items: center; gap: .4rem; color: var(--text); font-size: .95rem; min-height: 44px; }
.paket-wahl input { width: 1.2rem; height: 1.2rem; accent-color: var(--akzent); }
.paket .klein { margin: .6rem 0 0; font-size: .85rem; color: var(--leise); }
.druckbereich { display: none; }
@page quer { size: A4 landscape; margin: 10mm; }
@page hoch { size: A4 portrait; margin: 12mm 14mm; }
@media print {
  body[data-druck] > *:not(#druck) { display: none !important; }
  body[data-druck] { background: #fff; color: #000; }
  body[data-druck] #druck { display: block; }
  .seite { break-after: page; font-family: "Fibel Web", sans-serif; color: #000; }
  .seite:last-child { break-after: auto; }
  .seite h1, .seite h2, .seite h3 { margin: 0; }
  .seite img.symbol, .seite .r-smiley, .seite .k-smiley, .seite .k-symbol { background: none; }
  /* Rückmeldung */
  .rueckmeldung { page: hoch; font-size: 10pt; line-height: 1.35; }
  .r-kopf { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 2mm; margin-bottom: 3.5mm; }
  .r-kopf h1 { font-family: "GS Druck", sans-serif; font-size: 24pt; font-weight: 400; }
  .r-kopf p { margin: 0; }
  .r-felder p { margin: 0 0 1.5mm; text-align: right; }
  .r-kind { border: 1.5px solid #000; border-radius: 5mm; padding: 3mm 5mm; margin-bottom: 3.5mm; font-family: "GS Druck", sans-serif; font-size: 12pt; }
  .r-kind h2 { font-size: 15pt; font-weight: 400; margin-bottom: 2mm; }
  .r-kindsatz { margin: 1.8mm 0; }
  .r-listen { display: grid; grid-template-columns: repeat(auto-fit, minmax(75mm, 1fr)); gap: 2mm 6mm; }
  .r-liste h3 { display: flex; align-items: center; gap: 2mm; font-size: 12.5pt; font-weight: 400; margin-bottom: 1.5mm; }
  .r-liste ul { list-style: none; margin: 0; padding: 0; }
  .r-liste li { display: grid; grid-template-columns: 7mm 1fr; gap: 2mm; align-items: center; margin: 1mm 0; font-size: 11.5pt; line-height: 1.25; }
  .r-liste .symbol { width: 6.5mm; height: 6.5mm; }
  .r-smiley { width: 6.5mm; height: 6.5mm; }
  .treppe { display: flex; align-items: flex-end; gap: 1.5mm; margin: 2mm 0 1mm; }
  .tstufe { flex: 1; border: 1.3px solid #000; border-radius: 2mm 2mm 0 0; padding: 1.2mm 1.5mm; display: flex; flex-direction: column; justify-content: flex-end;
            font-family: "Fibel Web", sans-serif; font-size: 8.5pt; line-height: 1.15; }
  .tstufe b { font-size: 12pt; }
  .tstufe.t1 { min-height: 9mm; } .tstufe.t2 { min-height: 11.5mm; } .tstufe.t3 { min-height: 14mm; } .tstufe.t4 { min-height: 16.5mm; }
  .tstufe.an { background: #000; color: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .r-eltern h2 { font-size: 13pt; margin-bottom: 1mm; }
  .r-eltern h3 { font-size: 10.5pt; margin: 3mm 0 1mm; }
  .r-eltern p { margin: 1.5mm 0; }
  .r-eltern ul { margin: 0; padding-left: 5mm; }
  .r-eltern li { margin: .8mm 0; }
  .r-stufe { font-size: 11.5pt; }
  .r-tabelle { width: 100%; border-collapse: collapse; margin: 2.5mm 0 1mm; font-size: 9.5pt; }
  .r-tabelle td { border-bottom: .5pt solid #888; padding: .8mm 1.5mm; }
  .r-tabelle td.r-st { width: 9mm; text-align: center; }
  .r-tabelle .r-smiley { width: 5mm; height: 5mm; vertical-align: middle; }
  .r-bemerkung { margin-top: 3mm; }
  .r-bemerkung p { margin: 0; }
  .r-linie { border-bottom: .6pt solid #000; height: 6.5mm; }
  .r-unterschrift { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: 8mm; }
  .r-unterschrift p { border-top: .6pt solid #000; margin: 0; padding-top: 1mm; font-size: 9pt; }
  .r-hinweis { font-size: 8.5pt; color: #333; margin-top: 3mm; }
  .r-fuss { font-size: 7.5pt; color: #555; margin-top: 2mm; text-align: right; }
  /* Ergebnisblatt (Lehrkraft) */
  .ergebnisblatt { page: hoch; font-size: 9.5pt; line-height: 1.3; }
  .ergebnisblatt h1 { font-size: 18pt; }
  .e-summen { margin: 0 0 3mm; font-size: 9.5pt; }
  .e-woerter { width: 100%; border-collapse: collapse; margin-bottom: 3mm; }
  .e-woerter th { font-size: 7.5pt; font-weight: 400; color: #444; text-align: left; border-bottom: .8pt solid #000; padding: .6mm 1mm; }
  .e-woerter td { border-bottom: .4pt solid #999; padding: .9mm 1mm; }
  .e-woerter td:nth-child(5) { border-right: .8pt solid #000; }
  .e-ziel mark { background: #ddd; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .e-ziel, .e-geschr { font-family: "GS Druck", sans-serif; font-size: 11pt; }
  .e-falsch { text-decoration: underline; text-decoration-style: dotted; }
  .e-marke { text-align: center; width: 9mm; }
  .e-nein { font-weight: 700; }
  .e-satz h2, .e-h2 { font-size: 11pt; margin: 2mm 0 1mm !important; }
  .e-satz p { margin: .8mm 0; }
  .e-bereiche td { vertical-align: middle; }
  .e-bereiche .k-symbol { margin: 0; }
  .e-hilfe { font-size: 8pt; color: #333; }
  .ergebnisblatt .anzahl { font-size: 9pt; color: #000; }
  .e-bereiche td:nth-child(2) { white-space: nowrap; }
  /* Klassenübersicht */
  .klassendruck { page: quer; font-size: 9pt; }
  .klassendruck h1 { font-size: 14pt; }
  .k-info { margin: 1mm 0 3mm; font-size: 8.5pt; }
  .k-tabelle { width: 100%; border-collapse: collapse; }
  .k-tabelle th, .k-tabelle td { border: .5pt solid #777; padding: .6mm 1.2mm; text-align: center; vertical-align: middle; }
  .k-tabelle th { font-weight: 400; font-size: 7.5pt; line-height: 1.15; }
  .k-tabelle th div { margin-top: .5mm; }
  .k-tabelle td.k-kuerzel, .k-tabelle th:first-child { text-align: left; font-weight: 700; }
  .k-symbol { width: 5mm; height: 5mm; display: block; margin: 0 auto; }
  .k-smiley { width: 4.6mm; height: 4.6mm; display: block; margin: 0 auto; }
  .k-tabelle tr { break-inside: avoid; }
  .k-profil td { font-size: 7.5pt; background: #eee; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .k-unten { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8mm; margin-top: 3mm; }
  .k-unten h2 { font-size: 10.5pt; margin-bottom: 1mm; }
  .k-unten p { margin: .4mm 0; }
}
