/* Arbeitsblätter und Dokumente: Darstellung als A4-Seiten am Bildschirm und im Druck. */

/* ---------- Seiten ---------- */

.blaetter { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.seite {
  display: flex;
  flex-direction: column;
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  padding: 13mm 15mm 10mm;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.12);
  font-size: 12.5pt;
  line-height: 1.45;
}
.seite.kopie { display: none; }
.seite-th { box-shadow: 0 0 0 3px #e9c46a, 0 2px 14px rgb(0 0 0 / 0.12); font-size: 11pt; line-height: 1.38; }
.seite-th .skript li { margin-bottom: 1.5mm; }
.seite-th .vorlesen { font-size: 12pt; }
.seite-th .tabelle td:empty { height: 7mm; }
.ohne-th .seite-th { opacity: 0.4; }

.seite-kopf {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 9.5pt; color: #444; border-bottom: 1.5px solid #1f5f74; padding-bottom: 2mm; margin-bottom: 5mm;
}
.seite-th .seite-kopf { border-bottom-color: #c98a00; }
.seite-titel { font-size: 19pt; margin: 0 0 4mm; color: #1f5f74; line-height: 1.2; }
.seite-titel:empty { display: none; }
.seite-inhalt { flex: 1; }
.seite-fuss { font-size: 8.5pt; color: #777; margin-top: 6mm; text-align: right; }

.seite h2 { font-size: 13.5pt; margin: 5mm 0 2mm; color: #1f5f74; }
.seite h3 { font-size: 12.5pt; margin: 4mm 0 1.5mm; }
.seite p { margin: 0 0 2.5mm; }
.seite ol, .seite ul { margin: 0 0 3mm; padding-left: 7mm; }
.seite li { margin-bottom: 1.5mm; }

.anweisung { font-weight: 600; }
.hinweis { font-size: 10.5pt; color: #555; font-style: italic; }
.klein { font-size: 10pt; }
.dezent { color: #666; font-size: 10pt; }

/* Schreibfelder */
.linien { margin: 1mm 0 4mm; }
.linie { height: 9mm; border-bottom: 1px solid #8a8a8a; }
.feld { display: inline-block; min-width: 45mm; border-bottom: 1px solid #8a8a8a; height: 1.1em; vertical-align: baseline; }
.feld.kurz { min-width: 18mm; }
.feld.lang { min-width: 105mm; }
.kaestchen {
  display: inline-block; width: 4.6mm; height: 4.6mm; border: 1.5px solid #333; border-radius: 1mm;
  vertical-align: -0.6mm; margin-right: 2mm;
}
.optionen { display: flex; flex-wrap: wrap; gap: 2mm 9mm; }
.optionen.spalte { flex-direction: column; gap: 1.5mm; }

.kasten { border: 1.5px solid #c7d9df; background: #f2f8fa; border-radius: 3mm; padding: 3mm 4mm; margin: 3mm 0 4mm; }
.kasten.klein { font-size: 10.5pt; }
.kasten p:last-child { margin-bottom: 0; }

.spalten2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10mm; }
.ankreuzliste { list-style: none; padding-left: 0; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; margin: 2mm 0 4mm; }
.tabelle th, .tabelle td { border: 1px solid #9aa5a9; padding: 1.8mm 2.5mm; text-align: left; vertical-align: top; }
.tabelle thead th { background: #e3eff2; font-size: 11pt; }
.tabelle tbody th { background: #f6f8f8; font-weight: 600; width: 1%; white-space: nowrap; }
.tabelle td:empty { height: 9mm; }
.tabelle.gross { font-size: 14pt; }
.tabelle.gross td, .tabelle.gross th { padding: 2.6mm 3mm; }
.tabelle.gross td:empty { height: 11mm; }
.tabelle .schmal { width: 20mm; }
.tabelle tr.summe th, .tabelle tr.summe td { border-top: 2px solid #333; }
.tabelle tr.ausgefallen td { text-decoration: line-through; color: #777; }
.tabelle.planer td:empty { height: 11mm; }
.tabelle.woche, .tabelle.wochenplan, .tabelle.zuordnung { table-layout: fixed; }
.tabelle.woche td { height: 21mm; }
.tabelle.woche_leer td { height: 200mm; }
.tabelle.wochenplan td { height: 38mm; }
.tabelle.notizfelder th { width: 32mm; }
.tabelle.notizfelder td { height: 12mm; }
.tabelle.zuordnung td.kreuz { text-align: center; vertical-align: middle; }
.tabelle.zuordnung td.kreuz .kaestchen { margin: 0; }

/* Modul-spezifisch */
.buchstaben { display: flex; flex-wrap: wrap; gap: 2mm 6mm; font-size: 14pt; font-weight: 600; }
.einkaufsliste { font-size: 16pt; columns: 2; column-gap: 12mm; }
.einkaufsliste li { margin-bottom: 2.5mm; }
.wortwolke { display: flex; flex-wrap: wrap; gap: 2.5mm; font-size: 13.5pt; margin: 3mm 0 5mm; }
.wortwolke span { border: 1px solid #9aa5a9; border-radius: 2mm; padding: 1mm 3mm; background: #fafafa; }
.kategorien { display: grid; grid-template-columns: repeat(auto-fit, minmax(55mm, 1fr)); gap: 4mm; }
.kategorie { border: 1.5px solid #9aa5a9; border-radius: 3mm; padding: 2.5mm 3mm; break-inside: avoid; }
.kategorie-kopf { font-weight: 700; color: #1f5f74; }
.kategorie .linie { height: 8mm; }
.anzahl { margin-top: 2mm; font-size: 10.5pt; }
.zahl { font-size: 15pt; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.notiz { margin-bottom: 4mm; }
.legende { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 6mm; font-size: 10.5pt; margin-bottom: 4mm; }
.legende.kompakt { display: flex; flex-wrap: wrap; gap: 1.5mm 4mm; }
.legende.kompakt span { background: #e3eff2; border-radius: 2mm; padding: 0.5mm 2.5mm; }
.vage { font-weight: 600; margin-bottom: 1.5mm; }
.vorsaetze > li, .faelle > li, .fragen > li { margin-bottom: 4.5mm; break-inside: avoid; }
.antworten > li { margin-bottom: 0; }
.antworten .linien { margin: 0; }
.schritt { margin: 3mm 0 1.5mm; }
.schritt-nr { display: inline-grid; place-items: center; width: 6mm; height: 6mm; border-radius: 50%; background: #1f5f74; color: #fff; font-size: 10pt; font-weight: 700; }
.lesetext { border: 1.5px solid #c7d9df; border-radius: 3mm; padding: 4mm 5mm; margin: 2mm 0 4mm; font-size: 13pt; line-height: 1.55; }
.lesetext h2 { margin-top: 0; }
.zusammenfassung { display: flex; gap: 3mm; align-items: flex-end; font-size: 10.5pt; color: #444; margin: -1mm 0 4mm; }
.zusammenfassung .linie { flex: 1; height: 7mm; }
.vorlesen { font-size: 14pt; border-left: 4px solid #c98a00; padding: 2mm 4mm; background: #fffaf0; }
.skript li { margin-bottom: 2.5mm; }
.skript li.aenderung { background: #fff3d6; }
.loesung-text { color: #1f5f74; font-weight: 600; }
.checkliste { list-style: none; padding: 0; }
.checkliste li { display: flex; align-items: flex-end; gap: 3mm; }
.checkliste .linie { flex: 1; }
.tageszeile { font-size: 14pt; }
.skala { display: flex; gap: 2mm; flex-wrap: wrap; }
.skala-feld { display: inline-grid; place-items: center; width: 10mm; height: 10mm; border: 1.5px solid #333; border-radius: 50%; font-weight: 600; }
.register li { margin-bottom: 3mm; font-size: 14pt; }
.deck-untertitel { text-transform: uppercase; letter-spacing: 0.15em; color: #1f5f74; font-weight: 700; margin: 0; }
.kasten.strategie { margin-bottom: 5mm; }
.kasten.strategie h2 { margin-top: 0; }

/* Karten zum Ausschneiden */
.karten2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.karten3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4mm; }
.karte { border: 1.5px solid #9aa5a9; border-radius: 3mm; padding: 4mm; break-inside: avoid; }
.karte.schneiden { border-style: dashed; }
.karte h2 { margin-top: 0; }
.karten-code { float: right; font-size: 8pt; color: #999; margin: 0; }
.schritte li { margin-bottom: 2.5mm; }
.abrufzettel p { margin-bottom: 3mm; }
.abrufzettel .feld { min-width: 28mm; }

/* Strategiekarten: zwei A5-Hälften pro Seite */
.strategiekarten { display: flex; flex-direction: column; gap: 8mm; }
.strategiekarte {
  position: relative; min-height: 116mm; border: 2px solid #1f5f74; border-radius: 4mm; padding: 6mm 8mm;
  font-size: 13.5pt; break-inside: avoid;
}
.strategiekarte + .strategiekarte::before {
  content: "✂"; position: absolute; top: -7.5mm; left: -2mm; color: #999; font-size: 10pt;
}
.sk-nr { font-size: 10pt; text-transform: uppercase; letter-spacing: 0.12em; color: #1f5f74; font-weight: 700; margin-bottom: 1mm; }
.strategiekarte p:first-of-type strong { font-size: 18pt; color: #1f5f74; }

/* Aushang Rotationsplan */
.aushang-info { font-size: 14pt; margin-bottom: 4mm; }
.aushang-tabelle { font-size: 12.5pt; }
.aushang-tabelle td { padding: 2mm 3mm; }
.aushang-datum { white-space: nowrap; font-weight: 700; width: 1%; }
.aushang-tabelle tr.ausfall td { color: #777; background: #f4f4f4; }
.aushang-tabelle tr.naechster td { background: #fff3d6; }
.aushang-tabelle tr.vorbei td { opacity: 0.55; }
.plan-link { float: right; font-size: 10pt; }

/* ---------- Dokumente (Manual, Konzept) ---------- */

.dokument {
  max-width: 210mm; margin: 0 auto; padding: 14mm 16mm; background: #fff; color: #111;
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.12); font-size: 11pt; line-height: 1.55;
}
.dokument h1 { font-size: 22pt; color: #1f5f74; margin: 0 0 4mm; line-height: 1.2; }
.dokument h2 { font-size: 15pt; color: #1f5f74; margin: 8mm 0 2mm; border-bottom: 1px solid #c7d9df; padding-bottom: 1mm; }
.dokument h3 { font-size: 12.5pt; margin: 6mm 0 2mm; }
.dokument table { width: 100%; border-collapse: collapse; margin: 3mm 0 5mm; font-size: 10pt; }
.dokument th, .dokument td { border: 1px solid #b5c0c4; padding: 1.5mm 2.5mm; text-align: left; vertical-align: top; }
.dokument thead th { background: #e3eff2; }
.dokument tbody th { background: #f6f8f8; white-space: nowrap; }
.dokument blockquote { margin: 4mm 0; padding: 3mm 5mm; border-left: 4px solid #1f5f74; background: #f2f8fa; border-radius: 0 3mm 3mm 0; }
.dokument blockquote p:last-child { margin-bottom: 0; }
.dokument code { background: #eef2f3; padding: 0 1mm; border-radius: 1mm; font-size: 0.92em; }
.dokument a { color: #1f5f74; word-break: break-word; }
.dok-teil + .dok-teil { margin-top: 12mm; border-top: 3px solid #1f5f74; padding-top: 6mm; }
.dok-deckblatt { min-height: 240mm; }
.dok-deckblatt h1 { font-size: 32pt; margin-top: 30mm; }
.dok-deckblatt .inhalt li { font-size: 13pt; margin-bottom: 2mm; }
.dok-fuss { margin-top: 10mm; font-size: 9pt; color: #777; border-top: 1px solid #ddd; padding-top: 2mm; }

@media (max-width: 820px) {
  .seite { padding: 8mm 6mm; font-size: 11pt; min-height: 0; }
  .dokument { padding: 8mm 6mm; }
  .feld.lang { min-width: 60mm; }
}

/* ---------- Druck ---------- */

@page { size: A4; margin: 11mm 13mm 10mm; }

@media print {
  body { background: #fff; }
  .app-kopf, .werkzeug, .werkzeug-info, noscript, .nur-bildschirm { display: none !important; }
  .aushang-tabelle tr.naechster td { background: none; }
  .aushang-tabelle tr.vorbei td { opacity: 1; }
  main { padding: 0; }
  .blaetter { display: block; }
  .seite {
    width: auto; max-width: none; min-height: 266mm; padding: 0; box-shadow: none;
    break-after: page; page-break-after: always;
  }
  .seite:last-child { break-after: auto; page-break-after: auto; }
  .seite.kopie { display: flex; }
  .seite-th { box-shadow: none; }
  .ohne-th .seite-th { display: none; }
  .dokument { box-shadow: none; padding: 0; max-width: none; }
  .dok-deckblatt { break-after: page; }
  .dok-teil + .dok-teil { break-before: page; margin-top: 0; border-top: 0; padding-top: 0; }
  .dokument h2, .dokument h3 { break-after: avoid; }
  .dokument table, .dokument blockquote, .dokument tr { break-inside: avoid; }
  .tabelle tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
