/* =====================================================================
   Die Geheimschrift – app.css
   Phone-first, ruhig, warm. Alles in rem, damit A / A+ / A++ (und die
   Schriftgröße des Handys) alles mitwachsen lassen.
   ===================================================================== */

/* ---------- Schrift: Noto Naskh Arabic (SIL OFL), lokal aus schrift/ ---------- */
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(schrift/noto-naskh-arabic-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(schrift/noto-naskh-arabic-arabic-700-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(schrift/noto-naskh-arabic-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(schrift/noto-naskh-arabic-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben & Maße ---------- */
:root {
  color-scheme: light;
  --creme: #FBF6EE;
  --papier: #FFFDF9;
  --tinte: #2A211C;
  --tinte-2: #5A4D43;      /* Nebentext */
  --tinte-3: #7A6C60;      /* leiser Text, noch gut lesbar */
  --rot: #9B2C24;
  --rot-dunkel: #7E221C;
  --gold: #B5852A;
  --gold-hell: #F3E6C8;
  --tanne: #2F5A4C;
  --tanne-dunkel: #244739;
  --tanne-hell: #E3EEE8;
  --linie: #E8DCC9;
  --linie-2: #D8C8AF;
  --grau-wort: #BDB2A6;    /* noch nicht lesbare Wörter */
  --rosa: #F8CFDB;         /* [[Platzhalter]] */
  --schatten: 0 1px 0 rgba(42, 33, 28, .04), 0 10px 28px -16px rgba(90, 55, 20, .35);
  --rund: 1.1rem;
  --rund-klein: .8rem;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --arab: 'Noto Naskh Arabic', 'Geeza Pro', 'Noto Sans Arabic', 'Arabic Typesetting', serif;
  --dauer: 260ms;
}

/* Textgröße: A = 22 px, A+ = 25 px, A++ = 28 px Grundschrift */
html { font-size: 137.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-textgroesse="A+"] { font-size: 156.25%; }
html[data-textgroesse="A++"] { font-size: 175%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Feiner, festlicher Rand oben (nur CSS, keine Bilder) */
body::before {
  content: '';
  display: block;
  height: .35rem;
  background:
    repeating-linear-gradient(90deg, var(--rot) 0 2.2rem, var(--gold) 2.2rem 2.5rem, var(--tanne) 2.5rem 4.7rem, var(--gold) 4.7rem 5rem);
  opacity: .9;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: .18em; }
p { margin: 0 0 .8rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .6rem; letter-spacing: .005em; }
h1 { font-size: 1.9rem; }
h2 { font-size: min(1.35rem, 8.4vw); }   /* „Geheimzeichen“ passt auch bei A++ auf 360 px */
h3 { font-size: 1.12rem; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: .4rem; }

/* ---------- Grundgerüst ---------- */
.app {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 3.2rem;
  padding: .4rem 0;
  margin-bottom: .4rem;
}
.leiste-zurueck {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.4rem;
  padding: .2rem .7rem .2rem .45rem;
  border-radius: 999px;
  color: var(--tinte);
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
  background: var(--papier);
  border: 1px solid var(--linie);
}
.leiste-zurueck svg { width: 1.1rem; height: 1.1rem; }
.marke {
  font-family: var(--serif);
  font-size: .68rem;
  letter-spacing: .1em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.marke svg { width: .9rem; height: .9rem; }

/* ---------- Karten ---------- */
.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: 1.2rem 1.1rem 1.25rem;
  margin: 0 0 1.1rem;
}
.karte > :last-child { margin-bottom: 0; }
.karte.ruhig { background: transparent; box-shadow: none; border-style: dashed; }
.karte.tanne { background: var(--tanne-hell); border-color: #C6DBD1; }
.karte.gold { background: #FCF4E2; border-color: #EBD6A8; }

.kicker {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .35rem;
}
.leise { color: var(--tinte-2); }
.klein { font-size: .85rem; }
.mitte { text-align: center; }

/* Ornament: Linie – Stern – Linie */
.ornament {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--gold);
  margin: 1.2rem 0;
}
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--linie-2), transparent); }
.ornament svg { width: 1rem; height: 1rem; }

/* ---------- Kopf einer Türseite ---------- */
.tuerkopf { text-align: center; padding: .6rem 0 1rem; }
.tuerkopf .nummer {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--rot);
  margin: 0;
}
.tuerkopf .datum { font-size: 1.05rem; font-weight: 600; margin: .45rem 0 0; }
.anlass {
  display: inline-block;
  margin-top: .55rem;
  padding: .2rem .8rem;
  border-radius: 999px;
  background: var(--gold-hell);
  color: #6E4F12;
  font-size: .85rem;
  font-weight: 700;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 3rem;              /* 66 px bei Grundgröße */
  margin: 0 0 .75rem;
  padding: .55rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--rund-klein);
  background: var(--rot);
  color: #FFF8EE;
  font: 700 1.08rem/1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--rot-dunkel);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rot-dunkel); }
.knopf svg { width: 1.25em; height: 1.25em; flex: none; }
.knopf.zweit {
  background: var(--papier);
  color: var(--tinte);
  border-color: var(--linie-2);
  box-shadow: 0 2px 0 var(--linie-2);
}
.knopf.zweit:active { box-shadow: 0 0 0 var(--linie-2); }
.knopf.tanne { background: var(--tanne); box-shadow: 0 3px 0 var(--tanne-dunkel); }
.knopf.tanne:active { box-shadow: 0 1px 0 var(--tanne-dunkel); }
.knopf.klein { min-height: 2.6rem; font-size: .95rem; }
.knopf[aria-disabled="true"], .knopf:disabled { opacity: .45; pointer-events: none; }

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .2rem 0;
  background: none;
  border: 0;
  color: var(--rot);
  font: 600 .95rem/1.3 var(--sans);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.textlink-zeile { text-align: center; margin: .2rem 0 .6rem; }

/* Anhören-Knopf */
.hoeren {
  background: var(--papier);
  color: var(--tinte);
  border: 2px solid var(--gold);
  box-shadow: 0 2px 0 #D9BC7C;
}
.hoeren:active { box-shadow: 0 0 0 #D9BC7C; }
.hoeren .icon-laut { color: var(--gold); }
.hoeren.spielt { background: #FCF4E2; }
.wellen { display: none; align-items: flex-end; gap: 3px; height: 1em; }
.wellen i { display: block; width: 4px; background: var(--gold); border-radius: 2px; animation: welle 900ms ease-in-out infinite; }
.wellen i:nth-child(2) { animation-delay: -300ms; }
.wellen i:nth-child(3) { animation-delay: -600ms; }
.hoeren.spielt .wellen { display: inline-flex; }
.hoeren.spielt .icon-laut { display: none; }
@keyframes welle { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.audio-fehlt {
  margin: -.3rem 0 .8rem;
  padding: .55rem .8rem;
  border-radius: var(--rund-klein);
  background: #FFF6DE;
  color: #5F4712;
  font-size: .9rem;
}

/* Knopfreihe (z. B. Langsam / Normal) */
.reihe { display: flex; gap: .6rem; }
.reihe > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 22rem) { .reihe { flex-direction: column; gap: 0; } }
/* Anhören-Knöpfe immer untereinander: volle Breite, große Schrift */
.hoer-gruppe .reihe { flex-direction: column; gap: 0; }

/* ---------- Arabisch ---------- */
.ar {
  font-family: var(--arab);
  direction: rtl;
  unicode-bidi: isolate;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;        /* Sperrung zerreißt verbundene arabische Buchstaben */
  text-transform: none;
}
.ar-gross { font-size: 4.6rem; line-height: 1.55; }
.ar-mittel { font-size: 2.4rem; line-height: 1.6; }
.zeichen-riesig {
  font-family: var(--arab);
  font-size: 7rem;              /* ≥ 120 px schon bei A */
  line-height: 1.35;
  color: var(--tinte);
  text-align: center;
  margin: 0;
}
.laute { font-style: italic; color: var(--tinte-2); }

/* Neues Zeichen */
.neues-zeichen { text-align: center; }
.neues-zeichen + .neues-zeichen { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--linie-2); }
.zeichen-name { font-family: var(--serif); font-size: 1.4rem; margin: 0; }
.zeichen-laut { color: var(--tinte-2); margin: .1rem 0 .7rem; }
.eselsbruecke {
  text-align: left;
  background: #FCF4E2;
  border-radius: var(--rund-klein);
  padding: .75rem .9rem;
  margin: 0 0 .9rem;
}
.formen { display: flex; justify-content: center; gap: .4rem; margin: 0 0 .9rem; }
.form {
  flex: 0 1 4.2rem;
  min-width: 0;
  padding: .1rem .5rem .3rem;
  border: 1px solid var(--linie);
  border-radius: .6rem;
  background: var(--creme);
  text-align: center;
}
.form .ar { font-size: 1.9rem; line-height: 1.5; display: block; }
.form small { display: block; font-size: .58rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tinte-3); }

.etikett-hinweis {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: var(--tanne-hell);
  color: var(--tanne-dunkel);
  border-radius: var(--rund-klein);
  padding: .8rem .9rem;
  font-weight: 600;
  margin: 1rem 0 0;
}
.etikett-hinweis svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .1rem; }

/* ---------- Antwort-Check ---------- */
.antworten { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin: .4rem 0 .9rem; }
.antwort {
  width: 100%;
  min-height: 3.1rem;
  padding: .6rem 1rem;
  border: 2px solid var(--linie-2);
  border-radius: var(--rund-klein);
  background: var(--papier);
  color: var(--tinte);
  font: 600 1.12rem/1.3 var(--sans);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--linie-2);
  transition: background-color var(--dauer), border-color var(--dauer), opacity var(--dauer), transform 120ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.antwort:active { transform: translateY(2px); box-shadow: none; }
.antwort.daneben { border-style: dashed; background: #F6F0E7; color: var(--tinte-2); box-shadow: none; }
.antwort.richtig { border-color: var(--tanne); background: var(--tanne); color: #fff; box-shadow: 0 2px 0 var(--tanne-dunkel); }
.hinweis {
  border-left: 5px solid var(--gold);
  background: #FFF6DE;
  border-radius: .5rem;
  padding: .75rem .9rem;
  margin: 0 0 .9rem;
  font-weight: 500;
}
.hinweis.ruhig { border-left-color: var(--tanne); background: var(--tanne-hell); }

/* ---------- Belohnung: Lob + Vorlesen ---------- */
.lob { text-align: center; padding: .4rem 0 .2rem; }
.lob .ar { font-size: 2.6rem; color: var(--tanne); display: block; line-height: 1.6; }
.lob p { margin: 0; }

.vorlesen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* lange Wörter (Tür 22) werden per JS eingepasst statt überzulaufen */
  place-items: center;
  min-height: 9.5rem;
  margin: .6rem 0 .4rem;
}
.vorlesen > * { grid-area: 1 / 1; }
.getrennt {
  display: flex;
  flex-direction: row;   /* dir="rtl" am Element dreht die Reihenfolge */
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .25rem .55rem;
  transition: opacity 700ms ease;
}
.getrennt .buchstabe {
  font-family: var(--arab);
  font-size: 3.4rem;
  line-height: 1.6;
  min-width: 1ch;
  opacity: .22;
  transition: opacity 360ms ease, color 360ms ease, transform 360ms ease;
}
.getrennt .buchstabe.an { opacity: 1; color: var(--rot); transform: translateY(-.15rem); }
.getrennt .luecke { width: 1.2rem; }
.verbunden {
  font-family: var(--arab);
  font-size: 4.6rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 700ms ease;
  text-align: center;
}
.vorlesen.fertig .getrennt { opacity: 0; }
.vorlesen.fertig .verbunden { opacity: 1; }
.wortinfo { text-align: center; margin: 0 0 1rem; }
.wortinfo .laute { font-size: 1.25rem; display: block; }
.wortinfo .bedeutung { font-family: var(--serif); font-size: min(1.6rem, 8vw); font-weight: 700; display: block; }

.foto { border-radius: var(--rund-klein); overflow: hidden; margin: 0 0 1rem; border: 1px solid var(--linie); }

/* Wie lief's? */
.punkte-wahl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: .4rem 0 .6rem; }
.punkte-wahl .antwort { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.punkte-wahl .antwort { gap: .3rem .6rem; }
html[data-textgroesse="A++"] .punkte-wahl .antwort { flex-wrap: wrap; }   /* bei A++ rutscht die Punkte-Pille unter den Text */
.punkte-wahl .antwort .pkt { flex: none; white-space: nowrap; font-size: .95rem; font-weight: 700; color: #8A6418; background: #FCF1DA; border-radius: 999px; padding: .15rem .65rem; }
.punkte-wahl .antwort.richtig .pkt { color: #fff; background: rgba(255, 255, 255, .18); }

/* Brief-Alarm */
.brief-alarm {
  display: block;
  text-decoration: none;
  color: var(--tinte);
  background: linear-gradient(135deg, #FCF1DA, #F8E3BC);
  border: 2px solid var(--gold);
  border-radius: var(--rund);
  padding: 1rem 1.1rem;
  margin: 0 0 1.1rem;
  box-shadow: var(--schatten);
}
.brief-alarm strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--rot); }
.brief-alarm .ar { font-size: 2rem; display: inline-block; line-height: 1.5; }
.brief-alarm .pfeil { display: block; margin-top: .3rem; font-weight: 700; color: var(--rot); }

/* Banner für ältere Tür */
.banner {
  display: block;
  padding: .75rem 1rem;
  margin: 0 0 1rem;
  border-radius: var(--rund-klein);
  background: var(--tanne-hell);
  color: var(--tanne-dunkel);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #C6DBD1;
}
.banner .pfeil { white-space: nowrap; text-decoration: underline; }

/* Schritt-Einblendung */
.schritt { animation: auftauchen 380ms ease both; scroll-margin-top: .8rem; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Platzhalter [[…]] – unübersehbar rosa */
.platzhalter { background: var(--rosa); color: #6B1630; border-radius: .25rem; padding: 0 .2rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hat-platzhalter { outline: 3px dashed #E58CA8; outline-offset: 3px; border-radius: .4rem; }

/* ---------- Kalender ---------- */
.kal-kopf { text-align: center; padding: .4rem 0 .6rem; }
.kal-kopf h1 { color: var(--rot); margin-bottom: .2rem; }
.kal-kopf .unter { color: var(--tinte-2); margin: 0; }
.heute-zeile { font-weight: 600; margin: .6rem 0 .9rem; }
.punkte-stand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: .9rem auto 1rem;
  padding: .45rem 1.1rem;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--papier);
  border: 1px solid var(--linie);
  font-weight: 700;
}
.punkte-stand svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }
.countdown { text-align: center; }
.countdown .gross { font-family: var(--serif); font-size: 2.2rem; color: var(--rot); line-height: 1.15; margin: .2rem 0 .5rem; }

.tueren {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
  gap: .6rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.tuer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.08;
  border-radius: .9rem;
  text-decoration: none;
  color: var(--tinte);
  background: var(--papier);
  border: 2px solid var(--linie-2);
  box-shadow: 0 2px 0 var(--linie-2);
  transition: transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
a.tuer:active { transform: translateY(2px); box-shadow: none; }
.tuer .zahl { font-family: var(--serif); font-size: 1.75rem; line-height: 1; font-weight: 700; }
.tuer .status { font-size: .62rem; font-weight: 700; margin-top: .3rem; line-height: 1.1; text-align: center; }
.tuer.offen .status { color: var(--tanne); }
.tuer .haken {
  position: absolute;
  top: -.45rem;
  right: -.45rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--creme);
  z-index: 1;
  border-radius: 50%;
  background: var(--tanne);
  color: #fff;
  display: grid;
  place-items: center;
}
.tuer .haken svg { width: .75rem; height: .75rem; }
.tuer.heute {
  background: var(--rot);
  border-color: var(--gold);
  color: #FFF8EE;
  box-shadow: 0 0 0 3px var(--gold-hell), 0 3px 0 var(--rot-dunkel);
}
.tuer.heute .status { color: #FBE7B8; }
.tuer.heute .haken { background: var(--gold); }
.tuer.zu {
  background: repeating-linear-gradient(135deg, #F3EDE4 0 .45rem, #EFE8DD .45rem .9rem);
  border-style: dashed;
  border-color: #D9CDBD;
  box-shadow: none;
  color: #A39686;
}
.tuer.zu .status { color: #8F8273; font-weight: 600; }
.tuer.gross-24 .zahl { color: inherit; }
.tuer.gross-24::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: .7rem;
  border: 1px solid rgba(181, 133, 42, .55);
  pointer-events: none;
}

.kacheln { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 0 0 1.2rem; }
.kachel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .9rem;
  min-height: 4.6rem;
  padding: .9rem 1rem;
  border-radius: var(--rund);
  text-decoration: none;
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}
.kachel svg { flex: none; width: 2.6rem; height: 2.6rem; padding: .45rem; border-radius: 50%; background: #FBEDEA; color: var(--rot); }
.kachel > div { flex: 1; min-width: 0; }
.kachel::after { content: '›'; font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--linie-2); }
.kachel strong { font-family: var(--serif); font-size: 1.15rem; display: block; }
.kachel span { font-size: .8rem; color: var(--tinte-2); }
.kachel.tanne svg { color: var(--tanne); background: var(--tanne-hell); }

.zweig {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .7rem .9rem;
  border-radius: var(--rund-klein);
  background: var(--papier);
  border: 1px dashed var(--linie-2);
  font-size: .88rem;
  margin: 0 0 1.1rem;
}
.zweig svg { flex: none; width: 2.2rem; height: 2.2rem; }

.signatur { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-align: center; color: var(--tinte-2); margin: 1.4rem 0 .4rem; }

/* Schriftgröße-Wahl */
.groessen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: .4rem 0 .8rem; }
.groesse {
  min-height: 3.2rem;
  border-radius: var(--rund-klein);
  border: 2px solid var(--linie-2);
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--serif);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--linie-2);
}
.groesse[data-g="A"] { font-size: 1rem; }
.groesse[data-g="A+"] { font-size: 1.25rem; }
.groesse[data-g="A++"] { font-size: 1.5rem; }
.groesse[aria-pressed="true"] { background: var(--tinte); color: var(--creme); border-color: var(--tinte); box-shadow: 0 2px 0 #000; }

/* Routine (Tür 0) */
.routine { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.routine li {
  counter-increment: r;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--linie);
  font-weight: 600;
}
.routine li:last-child { border-bottom: 0; }
.routine li::before {
  content: counter(r);
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rot);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
}
.routine li em { font-style: normal; color: var(--tinte-3); font-weight: 500; }

/* ---------- Mein Brief ---------- */
.brief-blatt {
  position: relative;
  background:
    linear-gradient(transparent calc(100% - 1px), rgba(181, 133, 42, .14) 1px) 0 0 / 100% 2.9rem,
    var(--papier);
  border: 1px solid var(--linie);
  border-radius: .4rem;
  box-shadow: var(--schatten), 0 0 0 .35rem #F3E9D9;
  padding: 1rem .45rem .9rem;
  margin: .4rem .35rem 1.4rem;
}
.karte .brief-blatt { margin-left: 0; margin-right: 0; }
.karte .brief-legende { margin-left: 0; margin-right: 0; }
.brief-zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: .3rem .25rem;
}
.brief-zeile + .brief-zeile { margin-top: .6rem; }
.wortblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
  padding: .1rem .4rem .4rem;
  border-radius: .7rem;
  border: 2px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  transition: background-color 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}
button.wortblock { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wortblock .ar { font-size: 2.2rem; line-height: 1.55; transition: color 600ms ease; }
.wortblock .de { font-size: .74rem; font-weight: 700; color: var(--tanne); line-height: 1.15; max-width: 5.2rem; }
.wortblock .laute { font-size: .7rem; line-height: 1.2; }
.wortblock .fehlt { color: var(--tinte-3); line-height: 1; display: flex; justify-content: center; }
.wortblock .fehlt svg { width: 1rem; height: 1rem; flex: none; }
.brief-legende { list-style: none; padding: 0; margin: -.6rem .35rem 1.2rem; display: grid; gap: .35rem; }
.brief-legende li { font-size: .88rem; line-height: 1.6; color: var(--tinte-2); }
.brief-legende li > * { margin-right: .3rem; }
.brief-legende svg { width: 1.05rem; height: 1.05rem; vertical-align: -.15em; color: var(--tinte-3); }
.brief-legende .ar { color: var(--tinte); }
.brief-legende .trenner { color: var(--tinte-3); }
.wortblock.lesbar { background: rgba(47, 90, 76, .06); border-color: rgba(47, 90, 76, .18); }
.wortblock.lesbar .ar { color: var(--tinte); }
.wortblock.grau .ar { color: var(--grau-wort); }
/* Wörter mit Kaf vor dem 24.: graue Lücke in Wortlänge statt Schrift (BAUPLAN Regel 5).
   Höhe = eine Zeile .wortblock .ar (2.2rem × 1.55), damit die Zeile gleich hoch bleibt. */
.luecke-wort {
  display: block;
  width: calc(var(--zeichen, 3) * .78rem + .9rem);
  height: 1.05rem;
  margin: 1.18rem 0 1.18rem;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, rgba(42, 33, 28, .13) 0 .3rem, rgba(42, 33, 28, .05) .3rem .6rem);
}
.luecke-wort.mini {
  display: inline-block;
  width: calc(var(--zeichen, 3) * .42rem + .5rem);
  height: .7rem;
  margin: 0 .3rem 0 0;
  vertical-align: -.02em;
}
.wortblock.neu { border-color: var(--gold); background: #FCF1DA; box-shadow: 0 0 0 4px rgba(181, 133, 42, .18); }
.wortblock.leuchtet { border-color: var(--gold); background: #FCF1DA; }
.wortblock.leuchtet .ar { color: var(--rot); }
.wortblock.spielt { border-color: var(--gold); }
.brief-zaehler { text-align: center; font-weight: 700; margin: 0 0 .4rem; }
.uebersetzung { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-align: center; margin: 0 0 1rem; }

/* ---------- Schreibtafel ---------- */
.tafel-ausgabe {
  min-height: 6.2rem;
  padding: .5rem .9rem;
  border-radius: var(--rund);
  background: var(--papier);
  border: 2px solid var(--linie-2);
  box-shadow: inset 0 2px 6px rgba(90, 55, 20, .08);
  font-family: var(--arab);
  font-size: 3rem;             /* 66 px ≥ 48 px */
  line-height: 1.6;
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0 0 .9rem;
  position: relative;
}
.tafel-ausgabe.leer::before {
  content: attr(data-platzhalter);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.4;
  color: var(--tinte-3);
  direction: ltr;
  display: block;
  text-align: left;
  padding: .9rem 0;
}
.tafel-ausgabe .cursor { display: inline-block; width: 3px; height: .9em; background: var(--rot); vertical-align: middle; margin-inline-start: 2px; animation: blinken 1.1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.tasten {
  display: grid;
  /* 3 große Zeichentasten pro Reihe (wie in der Kiste); minmax: lange Beschriftungen sprengen das Raster nicht */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 .6rem;
}
.taste {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.3rem;
  padding: .1rem .2rem .3rem;
  border-radius: .8rem;
  border: 2px solid var(--linie-2);
  background: var(--papier);
  color: var(--tinte);
  box-shadow: 0 3px 0 var(--linie-2);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 90ms ease, background-color 160ms;
}
.taste:active, .taste.gedrueckt { transform: translateY(2px); box-shadow: 0 1px 0 var(--linie-2); background: #FCF1DA; }
.taste .ar { font-size: 2.1rem; line-height: 1.35; }
.taste small { font-size: min(.55rem, 3.4vw); line-height: 1.1; color: var(--tinte-3); text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.tasten.zahlen { grid-template-columns: repeat(5, minmax(0, 1fr)); direction: ltr; }
.tasten.zahlen .taste { min-height: 3.6rem; }
.tasten.zahlen .taste .ar { font-size: 1.8rem; }
.tasten.steuer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tasten.steuer .taste { flex-direction: row; gap: .4rem; font-weight: 700; font-size: .95rem; min-height: 3.2rem; }
.tasten.steuer .taste svg { width: 1.3rem; height: 1.3rem; }
.aufgabe {
  border-left: 5px solid var(--rot);
  background: #FBEDEA;
  border-radius: .5rem;
  padding: .8rem 1rem;
  margin: 0 0 1rem;
}
.aufgabe strong { display: block; font-family: var(--serif); color: var(--rot); }

/* ---------- Zahlen (Tür 20) ---------- */
.zahlen-kacheln { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; direction: ltr; margin: .4rem 0 .9rem; }
.zahl-kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .3rem 0 .2rem;
  border-radius: .7rem;
  border: 2px solid var(--linie-2);
  background: var(--papier);
  box-shadow: 0 2px 0 var(--linie-2);
  cursor: pointer;
  font: inherit;
  color: var(--tinte);
  -webkit-tap-highlight-color: transparent;
}
.zahl-kachel.spielt { border-color: var(--gold); background: #FCF1DA; }
.zahl-kachel .west { font-size: .75rem; color: var(--tinte-3); font-weight: 700; }
.zahl-kachel .ar { font-size: 2.1rem; line-height: 1.4; }
.ltr-merke { font-weight: 700; color: var(--tanne-dunkel); }

/* ---------- Sternennacht (Tür 13) ---------- */
.nacht {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 70% 0%, #1B2337 0%, #0E1220 55%, #090B14 100%);
  color: #D8796D;               /* gedämpftes Rot schont die Dunkelanpassung, bleibt aber lesbar */
  border: 0;
  min-height: 12rem;
}
.nacht h2, .nacht .kicker { color: #D0776D; }
.nacht a { color: #E39A90; }
.nacht .knopf.zweit { background: transparent; color: #E2A097; border-color: #5B2E2B; box-shadow: none; }
.nacht .hoeren { background: transparent; color: #E2A097; border-color: #6B3A32; box-shadow: none; }
.nacht .hoeren .icon-laut, .nacht .wellen i { color: #E2A097; background-color: #E2A097; }
.nacht .hoeren .icon-laut { background: none; }
.nacht .audio-fehlt { background: #1E1A22; color: #C9645B; }
.himmel { position: relative; height: 7rem; margin: .2rem -1.1rem .8rem; cursor: crosshair; }
.himmel .stern { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #8C8FA3; opacity: .7; }
.schnuppe {
  position: absolute;
  width: 5rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 240, 220, 0), rgba(255, 240, 220, .95));
  border-radius: 2px;
  transform-origin: right center;
  animation: schnuppe 1100ms ease-out forwards;
  pointer-events: none;
}
@keyframes schnuppe { from { opacity: 0; transform: translate(0, 0) rotate(-24deg) scaleX(.2); } 25% { opacity: 1; } to { opacity: 0; transform: translate(-9rem, 4rem) rotate(-24deg) scaleX(1); } }
.wunsch { text-align: center; font-family: var(--serif); font-style: italic; min-height: 1.6em; margin: 0 0 .6rem; }

/* ---------- Finale (Tür 24) ---------- */
.schluessel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .3rem;
  direction: rtl;
  margin: .5rem 0 .4rem;
}
.slot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: .45rem;
  border: 1px solid var(--linie-2);
  background: var(--creme);
  font-family: var(--arab);
  font-size: 1.35rem;
  line-height: 1;
}
.slot.letzter { background: var(--rot); color: #fff; border-color: var(--rot); }
.brief-linie { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-start; margin: .4rem 0 .6rem; }
.schloss-hinweise { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .55rem; }
.schloss-hinweise li { background: #FFF6DE; border-radius: .6rem; padding: .65rem .85rem; animation: auftauchen 320ms ease both; }
.schloss-hinweise li b { color: var(--gold); margin-right: .3rem; }

/* Stempel (Generalprobe) */
.stempel {
  display: inline-block;
  margin: .4rem auto .8rem;
  padding: .4rem .8rem;
  border: 3px double var(--rot);
  border-radius: .6rem;
  color: var(--rot);
  font-family: var(--serif);
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  transform: rotate(-3deg);
  animation: stempeln 420ms cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes stempeln { from { opacity: 0; transform: rotate(-3deg) scale(1.6); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.checkliste { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkliste label {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 2.8rem;
  padding: .3rem 0;
  border-bottom: 1px dashed var(--linie);
  cursor: pointer;
  font-weight: 600;
}
.checkliste input { width: 1.5rem; height: 1.5rem; accent-color: var(--tanne); flex: none; }

/* Sanfte Türsperre */
.sperre { text-align: center; padding-top: .6rem; }
.sperre .mond { width: 5rem; height: 5rem; margin: .4rem auto 1rem; color: var(--gold); }
.sperre .gross { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; margin: 0 0 .8rem; }

/* Testmodus-Hinweis (nur wenn ?datum / ?vorschau gesetzt) */
.testmodus {
  margin: 2rem 0 0;
  padding: .6rem .9rem;
  border-radius: .6rem;
  border: 2px dashed #C77;
  background: #FFF0EE;
  color: #7A2520;
  font-size: .8rem;
}
.testmodus a { font-weight: 700; }
body > .testmodus { width: calc(100% - 2rem); max-width: 32rem; margin: 0 auto 2.5rem; }

/* Prüfseite */
.pruef-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; }
.pruef-tabelle td, .pruef-tabelle th { border-bottom: 1px solid var(--linie); padding: .35rem .3rem; text-align: left; vertical-align: top; }
.ampel { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; border-radius: .3rem; font-weight: 700; font-size: .72rem; text-align: center; }
.ampel.ok { background: #D7EBDF; color: #1D4B36; }
.ampel.fehlt { background: #F7C9C3; color: #7A1D14; }
.ampel.optional { background: #F6E3B9; color: #6A4A0C; }
.ampel.unbekannt { background: #E8E2DA; color: #5A4D43; }
.pruef-tag { border-left: 6px solid var(--linie-2); }
.pruef-tag.rot { border-left-color: #C0392B; }
.pruef-tag.gruen { border-left-color: var(--tanne); }
.linkliste { columns: 2; column-gap: 1rem; padding-left: 1.1rem; font-size: .82rem; }
.linkliste li { margin: 0 0 .3rem; break-inside: avoid; }
.audio-liste { display: grid; gap: .25rem; font-size: .78rem; margin: .4rem 0 .6rem; }
.audio-liste div { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.audio-liste code { font-size: .74rem; }
.mini-hoeren { font-size: .72rem; padding: .1rem .5rem; border-radius: .4rem; border: 1px solid var(--gold); background: var(--papier); cursor: pointer; }

/* Notfall-Anzeige, falls etwas klemmt */
.panne { text-align: center; padding: 2rem 0; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .tafel-ausgabe .cursor { animation: none; }
}

/* =====================================================================
   Ergänzungen für app.js (Tür-Ablauf, Finale, Prüfseite)
   ===================================================================== */
.ar.ar-inline { font-size: 1.35em; line-height: 1; font-weight: inherit; padding: 0 .08em; }
.knopf.hoeren.fehlt { opacity: .6; box-shadow: none; }
.hoer-gruppe .reihe .knopf { margin-bottom: .6rem; }
.hoer-gruppe .audio-fehlt { margin-top: 0; }
.tafel-ausgabe { white-space: pre-wrap; }

/* Türen: 4 feste Spalten (6 Reihen) – passt auch bei A++ auf 360 px */
.tueren { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tueren li { display: block; min-width: 0; }
.tuer .status { font-size: .6rem; padding: 0 .15rem; }

.heute-karte h2 { color: var(--rot); margin-bottom: .3rem; }
.kein-zeichen { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; text-align: center; margin: .3rem 0 .2rem; }
.geknackt-zeile { display: flex; align-items: center; gap: .4rem; color: var(--tanne); font-weight: 700; margin: 0 0 .8rem; }
.mini-haken { width: 1.15em; height: 1.15em; color: var(--tanne); vertical-align: -.18em; flex: none; }
.antwort-haken { width: 1.1em; height: 1.1em; margin-right: .45rem; vertical-align: -.17em; }
.antwort.weg { opacity: .4; }
.antwort:disabled { cursor: default; }
.frage { font-size: 1.12rem; text-align: center; margin: .2rem 0 1rem; }

.gross-satz { font-family: var(--serif); font-size: 1.7rem; line-height: 1.3; text-align: center; color: var(--rot); margin: 1.4rem 0 1.2rem; }
.stempel-zeile { text-align: center; min-height: .5rem; }
.extra-kopf { display: flex; gap: .8rem; align-items: center; margin: 0 0 .7rem; }
.extra-kopf svg { width: 3.4rem; height: 3.4rem; flex: none; }
.extra-kopf h2 { margin: 0; }
.extra-kopf .kicker { color: var(--tanne); }
.aufgabe-karte .aufgabe { margin-bottom: 1rem; }
.aufgabe p { margin: .2rem 0 0; }
.link-fehlt { font-size: .9rem; }

/* Wortinfo unter dem Vorlesen */
.wortinfo .laute + .bedeutung { margin-top: .1rem; }

/* Finale */
.lak-zeile { display: flex; align-items: center; justify-content: center; gap: .3rem 1.1rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.lak-zeile .ar-mittel { font-size: 3.2rem; color: var(--rot); }
.lak-text { display: flex; flex-direction: column; line-height: 1.3; }
.lak-text .laute { font-size: 1.1rem; }
.lak-text strong { font-family: var(--serif); font-size: 1.4rem; }
.code-karte h2 { font-size: 1.3rem; }
.brief-deutsch .uebersetzung { margin-top: .6rem; }
.finale-a1 .zeichen-riesig { color: var(--rot); }
.slot { color: var(--tinte); }

/* Zahlen-Spiel (Tür 20) */
.zahlen-spiel { margin-top: .6rem; }
.zahlen-spiel .zeichen-riesig { font-size: 4.6rem; line-height: 1.25; }
.reihe.drei { gap: .5rem; }
.reihe.drei .antwort { font-size: 1.4rem; font-family: var(--serif); }
@media (max-width: 22rem) { .reihe.drei { flex-direction: row; gap: .5rem; } }
.zahlen-block .hinweis { text-align: left; }

/* Prüfseite */
.app.pruef { max-width: 52rem; }
.pruef-summe { font-weight: 600; margin: 0; }
.pruef-wort { margin: 0 0 .4rem; }
.pruef-wort .ar-mittel { font-size: 2rem; }
.platz-liste { font-size: .78rem; padding-left: 1.1rem; margin: .4rem 0; }
.platz-liste li { margin: 0 0 .25rem; }
.pruef .karte { padding: .9rem .9rem 1rem; }
.pruef h2 { font-size: 1.1rem; }
#fehlerprotokoll { margin: 0; }
#fehlerprotokoll.sichtbar {
  max-width: 52rem; margin: 1rem auto 2rem; padding: .7rem .9rem; white-space: pre-wrap;
  font-size: .7rem; background: #fff; border: 1px dashed var(--linie-2); border-radius: .5rem; color: #7A1D14;
}
#fehlerprotokoll.sichtbar:empty::before { content: 'Fehlerprotokoll: keine JS-Fehler.'; color: var(--tanne); }

/* Tür 0: Gruß statt "Tür 0" als großer Titel */
.tuerkopf .start-titel { font-size: 2.5rem; margin-top: .6rem; }
.tuerkopf .anlass + .nummer { margin-top: .5rem; }

/* Karte in einer Karte (z. B. Schloss-Karte im Finale): etwas breiter, weniger Rand */
.karte .karte { margin-left: -.35rem; margin-right: -.35rem; padding: 1rem .9rem 1.1rem; }

/* Zahlen-Fallen (Tür 20) */
.zahlen-fallen { text-align: left; background: #FFF6DE; border-radius: var(--rund-klein); padding: .75rem .9rem .5rem; margin: 0 0 .9rem; }
.zahlen-fallen p { margin: 0 0 .3rem; }
.zahlen-fallen ul { list-style: none; padding: 0; margin: 0; }
.zahlen-fallen li { display: flex; align-items: center; gap: .55rem; padding: .2rem 0; }
.zahlen-fallen .ar-fall { font-size: 1.9rem; line-height: 1.3; min-width: 1.4rem; text-align: center; color: var(--rot); flex: none; }
.zahlen-fallen li span:last-child { flex: 1; }

/* ---------- Große Schrift (A+ / A++) auf schmalen Handys: nichts darf überlaufen ---------- */
h1 { overflow-wrap: break-word; }
.kal-kopf h1 { font-size: min(1.9rem, 9.8vw); }
.tuerkopf .nummer { font-size: min(3.2rem, 20vw); }
.tuerkopf .start-titel { font-size: min(2.5rem, 12vw); }
.tuer .zahl { font-size: min(1.75rem, 8.5vw); }
.tuer .status { font-size: min(.6rem, 3.3vw); }
.kachel span { display: block; line-height: 1.35; }
html[data-textgroesse="A++"] .tueren { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-textgroesse="A++"] .tuer .zahl { font-size: min(1.75rem, 11vw); }
html[data-textgroesse="A++"] .tuer .status { font-size: min(.6rem, 4.4vw); }
html[data-textgroesse="A+"] .kachel::after, html[data-textgroesse="A++"] .kachel::after { display: none; }
html[data-textgroesse="A++"] .kachel svg { width: 2.1rem; height: 2.1rem; padding: .35rem; }
html[data-textgroesse="A++"] .kachel { gap: .6rem; padding: .8rem .85rem; }
/* Lange deutsche Wörter (Geheimschlüssel …) bei großer Schrift trennen statt überlaufen */
body { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.ar, .knopf, .antwort, .kicker, .marke, h1 { -webkit-hyphens: manual; hyphens: manual; }
/* Seitenränder wachsen nicht mit der Schriftgröße mit (mehr Platz für Text bei A++) */
.app { padding-left: min(1rem, 20px); padding-right: min(1rem, 20px); }
.karte { padding-left: min(1.1rem, 20px); padding-right: min(1.1rem, 20px); }
.marke { font-size: min(.68rem, 3.4vw); }
.form small { font-size: min(.58rem, 2.7vw); }
.himmel { margin-left: max(-1.1rem, -20px); margin-right: max(-1.1rem, -20px); }
.ar { overflow-wrap: normal; }
.form .ar { white-space: nowrap; font-size: min(1.9rem, 10vw); }
/* Schreibtafel bei A++: Steuertasten mit Symbol über dem Wort */
html[data-textgroesse="A++"] .tasten.steuer .taste { flex-direction: column; gap: .1rem; font-size: .8rem; }
html[data-textgroesse="A++"] .marke { font-size: 0; }
@media (max-width: 380px) { html[data-textgroesse="A+"] .marke { font-size: 0; } }   /* nur der Stern – sonst zu eng neben „Kalender“ */
html.pruef-modus { font-size: 100%; }

/* Blitzrunde (Tür 23) */
.blitz-zaehler { text-align: center; font-weight: 700; color: var(--tinte-2); margin: .2rem 0 .6rem; }
.blitz-text { text-align: center; margin: 0 0 .7rem; }
.blitz-wahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .4rem; }
.blitz-zeichen { font-family: var(--arab); font-size: 2.2rem; line-height: 1.5; padding: .2rem 0 .5rem; min-height: 4.2rem; }
.blitz-ergebnis { text-align: center; margin: .3rem 0 .9rem; }
