/* MindCraft – Druckvorlagen (A4). Am Bildschirm als Blatt auf dunklem Grund, im Druck randlos auf Papier.
   Aufbau jedes Blatts: Kopfband, Fenster mit Reiter, Schreiblinien, Fußzeile mit Haku-Tipp und Quelle. */
@font-face { font-family: "Press Start 2P"; src: url("../fonts/press-start-2p.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-900.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --ink: #160B2E; --violet: #6A1FD0; --gold: #FFCB2E; --cream: #FFF6DD; --night: #1F0D47;
  --tint: #EFE7FB; --schatten: #CDB9F3; --linie: #A9A0BF; --grau: #51476A;
  --pixel: "Press Start 2P", ui-monospace, monospace; --display: "Inter Display", "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 9.5pt; line-height: 1.38; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.leiste { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 20px; color: var(--cream); font-size: 16px; }
.leiste a { color: inherit; font-weight: 600; text-underline-offset: 4px; }
.leiste button { font-family: var(--pixel); font-size: 11px; text-transform: uppercase; background: var(--gold); color: var(--ink); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 14px; cursor: pointer; }
.leiste button:active { transform: translate(5px, 5px); box-shadow: none; }
.leiste :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.buehne { overflow-x: auto; padding: 0 12px 40px; }

.blatt { background: #fff; width: 210mm; height: 297mm; margin: 0 auto; padding: 10mm 10mm 8mm; display: flex; flex-direction: column; gap: 4.6mm; overflow: hidden; position: relative; }
.quer .blatt { width: 297mm; height: 210mm; gap: 4mm; }

/* ---------- Kopfband ---------- */
.band { position: relative; flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5mm; background: var(--night); color: #fff; padding: 3.6mm 30mm 3.6mm 4mm; border: .7mm solid var(--ink); box-shadow: 1.4mm 1.4mm 0 var(--violet); min-height: 21mm; }
.band__marke { display: grid; justify-items: center; gap: 1.2mm; padding-right: 5mm; border-right: .5mm solid rgba(255, 255, 255, .28); }
.band__marke img { width: 10.5mm; height: auto; display: block; }
.band__marke span { font-family: var(--pixel); font-size: 5pt; color: var(--gold); letter-spacing: .02em; }
.band h1 { font-family: var(--display); font-weight: 900; font-size: 27pt; line-height: .98; letter-spacing: -.012em; }
.band__satz { font-size: 9.5pt; line-height: 1.3; color: var(--cream); margin-top: 1.2mm; max-width: 96mm; }
.band__felder { display: grid; gap: 1.6mm; }
.band__felder div { display: grid; grid-template-columns: 1fr 40mm; align-items: end; justify-items: end; gap: 2mm; font-family: var(--pixel); font-size: 5.4pt; color: var(--gold); text-transform: uppercase; }
.band__felder i { display: block; width: 40mm; height: 6.2mm; background: #fff; border: .4mm solid var(--ink); }
.band__figur { position: absolute; right: 3mm; bottom: -.4mm; height: 27mm; width: auto; image-rendering: pixelated; }
.quer .band { padding-right: 32mm; }

/* ---------- Fenster ---------- */
.fenster { position: relative; border: .6mm solid var(--ink); box-shadow: 1.2mm 1.2mm 0 var(--schatten); background: #fff; padding: 5.6mm 4mm 3.6mm; display: flex; flex-direction: column; gap: 2.2mm; min-height: 0; }
.fenster--gold { box-shadow: 1.2mm 1.2mm 0 var(--gold); }
.fenster--flach { padding-top: 3.6mm; }
.reiter { position: absolute; top: -2.5mm; left: 3mm; background: var(--ink); color: var(--gold); font-family: var(--pixel); font-size: 5.8pt; line-height: 1; text-transform: uppercase; padding: 1.5mm 2.2mm 1.3mm; white-space: nowrap; }
.reiter b { color: #fff; font-weight: 400; margin-right: 1.6mm; }
.frage { font-family: var(--display); font-weight: 900; font-size: 12.5pt; line-height: 1.12; }
.hilfe { font-size: 8.6pt; line-height: 1.32; color: var(--grau); }
.klein { font-size: 8pt; color: var(--grau); }
.wachs { flex: 1 1 0; min-height: 0; }
.reihe { display: flex; gap: 4.6mm; min-height: 0; }
.reihe > * { flex: 1 1 0; min-width: 0; }
.spalte { display: flex; flex-direction: column; gap: 4.6mm; min-height: 0; min-width: 0; }

/* Schreiblinien: echte Zeilen mit 8 mm Abstand, was nicht mehr passt, wird abgeschnitten */
.zeilen { flex: 1 1 0; min-height: 8mm; overflow: hidden; display: flex; flex-direction: column; }
.zeilen i { display: block; flex: none; height: 8mm; border-bottom: .3mm solid var(--linie); }
.zeilen--eng { min-height: 7mm; }
.zeilen--eng i { height: 6.6mm; }
.zeile { border-bottom: .3mm solid var(--linie); height: 8mm; flex: none; }
.strich { display: inline-block; border-bottom: .3mm solid var(--ink); min-width: 20mm; height: 5mm; vertical-align: bottom; }
.kasten { display: inline-block; flex: none; width: 4.4mm; height: 4.4mm; border: .5mm solid var(--ink); background: #fff; vertical-align: -1mm; }
.haken { display: grid; grid-template-columns: 4.4mm 1fr; gap: 2.4mm; align-items: end; height: 8mm; }
.haken i { display: block; border-bottom: .3mm solid var(--linie); height: 100%; }
.wahl { display: flex; flex-wrap: wrap; gap: 1.6mm 5mm; font-weight: 600; font-size: 9pt; align-items: center; }
.wahl span { display: inline-flex; gap: 1.8mm; align-items: center; }

/* Drei Schritte als Leiste */
.ablauf { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
.ablauf li { display: grid; grid-template-columns: 7.4mm 1fr; gap: 2.6mm; align-items: center; font-size: 9pt; line-height: 1.3; }
.ablauf li b { display: grid; place-items: center; width: 7.4mm; height: 7.4mm; background: var(--violet); color: var(--gold); border: .5mm solid var(--ink); box-shadow: .8mm .8mm 0 var(--ink); font-family: var(--pixel); font-weight: 400; font-size: 7pt; }

/* ---------- Fußzeile ---------- */
.fuss { flex: none; display: grid; grid-template-columns: auto 1fr auto; gap: 4mm; align-items: center; border-top: .6mm solid var(--ink); padding-top: 2.6mm; }
.fuss img { width: 11mm; height: 11mm; border: .5mm solid var(--ink); background: var(--violet); display: block; image-rendering: pixelated; }
.tipp { position: relative; background: var(--cream); border: .5mm solid var(--ink); padding: 1.8mm 3mm; font-weight: 600; font-size: 8.8pt; line-height: 1.3; }
.tipp::before { content: "Haku"; position: absolute; top: -2.2mm; left: 2.4mm; background: var(--gold); border: .4mm solid var(--ink); font-family: var(--pixel); font-size: 4.6pt; padding: .7mm 1.3mm; }
.fuss__recht { text-align: right; font-size: 6.8pt; line-height: 1.4; color: var(--grau); max-width: 74mm; }
.fuss__recht b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 5.4pt; color: var(--ink); margin-bottom: .6mm; }

/* ---------- Lebensrad ---------- */
.radfragen { gap: 0; padding-bottom: 2.4mm; }
.radgruppe { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2mm; margin-top: 2.2mm; padding: 1.1mm 2mm; background: var(--ink); color: #fff; font-weight: 600; font-size: 9pt; border-left: 3.4mm solid var(--farbe); }
.radgruppe:first-of-type { margin-top: 0; }
.radgruppe span { font-size: 7.6pt; font-weight: 400; display: inline-flex; align-items: center; gap: 1.6mm; }
.radgruppe i { display: inline-block; width: 11mm; height: 4.8mm; background: #fff; }
.radzeile { display: grid; grid-template-columns: 1fr auto; gap: 3mm; align-items: center; padding: 1mm 0 1mm 2mm; border-bottom: .25mm solid var(--linie); font-size: 8pt; line-height: 1.22; min-height: 8.4mm; }
.radzeile b { font-weight: 600; }
.ticks { display: flex; gap: 1mm; }
.ticks i { display: grid; place-items: center; width: 5.6mm; height: 5.6mm; border: .45mm solid var(--ink); font-style: normal; font-size: 7.4pt; font-weight: 600; color: #7d7399; }
.radbild { align-items: center; justify-content: center; padding: 4.4mm 2.4mm 2.4mm; gap: 1.2mm; flex: none; }
.radbild svg { width: 100%; height: auto; display: block; }
.radbild text { font-family: "Inter", sans-serif; }
.legende { display: flex; justify-content: space-between; width: 100%; font-size: 8pt; color: var(--grau); }
.legende b { color: var(--ink); }

/* ---------- Quest-Blatt ---------- */
.wenndann { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2.4mm; align-items: end; font-family: var(--display); font-weight: 900; font-size: 11pt; height: 9mm; }
.wenndann i { border-bottom: .3mm solid var(--linie); height: 100%; }
.xpleiste { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1.4mm; }
.xpleiste i { height: 8.4mm; border: .55mm solid var(--ink); display: grid; place-items: end center; font-style: normal; font-size: 6pt; color: var(--linie); font-weight: 600; padding-bottom: .5mm; }
.xpleiste i:last-child { background: var(--gold); color: var(--ink); }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.feld { display: flex; flex-direction: column; gap: 1mm; min-height: 0; }
.feld > b { font-weight: 600; font-size: 8.8pt; }

/* ---------- Habit-Tracker ---------- */
.tracker { flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: auto repeat(4, 1fr); border: .6mm solid var(--ink); box-shadow: 1.2mm 1.2mm 0 var(--schatten); }
.tracker__kopf, .tracker__zeile { display: grid; grid-template-columns: 62mm repeat(31, 1fr) 11mm; }
.tracker__kopf { background: var(--ink); color: #fff; font-family: var(--pixel); font-size: 4.6pt; text-transform: uppercase; }
.tracker__kopf > * { display: grid; place-items: center; padding: 1.7mm 0; }
.tracker__kopf > :first-child { justify-items: start; padding-left: 3mm; color: var(--gold); font-size: 5.6pt; }
.tracker__kopf > :last-child { color: var(--gold); font-size: 3.8pt; }
.tracker__zeile { border-top: .5mm solid var(--ink); }
.tracker__zeile > * { border-left: .25mm solid var(--linie); }
.tracker__zeile > i:nth-child(7n + 1) { border-left: .5mm solid var(--ink); }
.tracker__zeile > :first-child { border-left: 0; padding: 2mm 3mm; display: flex; flex-direction: column; gap: 1mm; justify-content: center; }
.tracker__zeile > :last-child { border-left: .5mm solid var(--ink); background: var(--cream); }
.tracker__name { display: grid; grid-template-columns: 6.4mm 1fr; gap: 2mm; align-items: end; }
.tracker__name b { display: grid; place-items: center; width: 6.4mm; height: 6.4mm; background: var(--violet); color: var(--gold); font-family: var(--pixel); font-weight: 400; font-size: 6pt; border: .4mm solid var(--ink); }
.tracker__name i { border-bottom: .3mm solid var(--ink); height: 6.4mm; }
.tracker__zusatz { display: grid; grid-template-columns: auto 1fr; gap: 1.6mm; align-items: end; font-size: 7.4pt; color: var(--grau); }
.tracker__zusatz i { border-bottom: .25mm solid var(--linie); height: 4.6mm; }
.regeln { display: grid; gap: 1.6mm; font-size: 9pt; }
.regeln li { display: grid; grid-template-columns: 5.4mm 1fr; gap: 2.2mm; align-items: start; }
.regeln b { display: grid; place-items: center; width: 5.4mm; height: 5.4mm; background: var(--ink); color: var(--gold); font-family: var(--pixel); font-weight: 400; font-size: 5.4pt; }

/* ---------- Wochenplan ---------- */
.woche { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2.6mm; }
.tag { border: .6mm solid var(--ink); box-shadow: 1mm 1mm 0 var(--schatten); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.tag__kopf { background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 1.5mm 2mm; font-family: var(--pixel); font-size: 5.8pt; }
.tag__kopf i { display: block; width: 12mm; height: 4.4mm; background: #fff; }
.tag--frei .tag__kopf { background: var(--violet); }
.tag__frosch { background: var(--cream); border-bottom: .5mm solid var(--ink); padding: 1.4mm 2mm 1.6mm; height: 17mm; flex: none; }
.etikett { font-family: var(--pixel); font-size: 4.6pt; text-transform: uppercase; color: var(--violet); display: block; }
.tag__teil { padding: 1.6mm 2mm 0; display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.tag__teil + .tag__teil { border-top: .3mm solid var(--linie); }
.tag__haken { display: grid; gap: 0; flex: 1 1 0; align-content: space-evenly; padding-bottom: 1.4mm; }
.tag__haken span { display: grid; grid-template-columns: 3.6mm 1fr; gap: 1.6mm; align-items: end; height: 6.6mm; }
.tag__haken .kasten { width: 3.6mm; height: 3.6mm; }
.tag__haken i:last-child { border-bottom: .3mm solid var(--linie); height: 100%; }
.routinen { display: grid; gap: 1.2mm; }
.routinen > div { display: grid; grid-template-columns: 1fr repeat(7, 5mm); gap: 1.2mm; align-items: end; }
.routinen > div > i:first-child { border-bottom: .3mm solid var(--linie); height: 5.4mm; }
.routinen .kasten { width: 5mm; height: 5mm; }
.routinen .tage { font-family: var(--pixel); font-size: 4.4pt; color: var(--grau); text-align: center; align-items: center; }
.routinen .tage span { text-align: center; }

/* ---------- Tagesplan ---------- */
.zeiten { flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: repeat(17, 1fr); }
.zeiten div { display: grid; grid-template-columns: 9mm 1fr; border-bottom: .3mm solid var(--linie); align-items: start; }
.zeiten div:last-child { border-bottom: 0; }
.zeiten b { font-family: var(--pixel); font-weight: 400; font-size: 5.4pt; color: var(--grau); padding-top: 1.2mm; }
.zeiten i { border-left: .3mm solid var(--linie); height: 100%; background: linear-gradient(to bottom, transparent 49%, #DDD6EA 49%, #DDD6EA 51%, transparent 51%); }
.runden { display: flex; gap: 2mm; }
.runden i { width: 8mm; height: 8mm; border: .55mm solid var(--ink); display: grid; place-items: center; font-style: normal; font-family: var(--pixel); font-size: 5pt; color: var(--linie); }
.runden i:nth-child(4n) { margin-right: 3mm; }
.frosch { background: var(--cream); }

/* ---------- Lernplan ---------- */
.lerntab { flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: auto repeat(8, 1fr); border: .6mm solid var(--ink); box-shadow: 1.2mm 1.2mm 0 var(--schatten); }
.lerntab > div { display: grid; grid-template-columns: 1fr repeat(4, 25mm) 21mm; }
.lerntab > div + div { border-top: .4mm solid var(--ink); }
.lerntab > div > * { border-left: .3mm solid var(--linie); padding: 1.4mm 1.8mm; }
.lerntab > div > :first-child { border-left: 0; }
.lerntab__kopf { background: var(--ink); color: #fff; font-size: 7.6pt; line-height: 1.25; }
.lerntab__kopf b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 5.2pt; color: var(--gold); margin-bottom: .8mm; text-transform: uppercase; }
.lerntab__zelle { display: flex; flex-direction: column; justify-content: space-between; font-size: 7pt; color: var(--grau); }
.lerntab__zelle span { display: flex; align-items: center; gap: 1.4mm; }
.lerntab__zelle .kasten { width: 3.6mm; height: 3.6mm; }
.lerntab__nr { display: grid; grid-template-columns: 6mm 1fr; gap: 2mm; align-items: center; }
.lerntab__nr b { display: grid; place-items: center; width: 6mm; height: 6mm; background: var(--violet); color: var(--gold); font-family: var(--pixel); font-weight: 400; font-size: 5.6pt; border: .4mm solid var(--ink); }
.ampel { display: flex; gap: 1.4mm; align-items: center; justify-content: center; }
.ampel i { width: 4.4mm; height: 4.4mm; border: .5mm solid var(--ink); border-radius: 50%; }

@media print {
  body { background: #fff; }
  .leiste { display: none; }
  .buehne { padding: 0; overflow: visible; }
  .blatt { margin: 0; zoom: 1 !important; }
}
