/* Ballonwerkstatt. Farben und Schriften der Zauberakademie (Navy, Gold, Creme,
   Cinzel und Inter), dazu das Rot der Ballons. Gebaut für Tablets in
   Kinderhänden: große Flächen, wenig Text, nichts Kleines zum Treffen. */

@font-face {
  font-family: "Cinzel";
  src: url("../schrift/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../schrift/cinzel-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../schrift/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../schrift/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../schrift/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../schrift/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #1a2744;
  --navy-tief: #121c33;
  --gold: #c8a832;
  --gold-hell: #e8c84a;
  --gold-linie: #d4af37;
  --gold-tinte: #7a6410;
  --gold-blass: #faf5df;
  --creme: #f4f2ee;
  --papier: #fbfaf6;
  --weiss: #ffffff;
  --tinte: #4a4a5a;
  --rand: #e5e1d8;
  --rand-fest: #b9b5a8;
  --rot: #d8392b;
  --rot-blass: #fbe7e3;
  --gruen: #26794c;
  --gruen-blass: #e3f1e9;
  --filz: #2a2e33;
  --anzeige: "Cinzel", ui-serif, Georgia, serif;
  --schrift: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --leiste: 4.6rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--navy);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

img,
svg,
video {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.86em;
  background: var(--creme);
  border: 1px solid var(--rand);
  border-radius: 6px;
  padding: 0.08em 0.35em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--gold-linie);
  outline-offset: 2px;
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Rahmen ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.5rem max(1.1rem, env(safe-area-inset-left)) 0.5rem max(1.1rem, env(safe-area-inset-right));
  background: var(--navy);
  border-bottom: 3px solid var(--gold-linie);
}

.kopf .marke {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--weiss);
  text-decoration: none;
}
.kopf .marke span {
  color: var(--gold-hell);
}

.wer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.9rem 0 0.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: var(--weiss);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

#blatt {
  padding-bottom: calc(var(--leiste) + env(safe-area-inset-bottom) + 1rem);
  outline: none;
}
.ohne-leiste #blatt {
  padding-bottom: 2rem;
}

.seite {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 1.5rem;
}

.leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--leiste);
  padding: 0 max(0px, calc((100vw - 46rem) / 2)) env(safe-area-inset-bottom);
  background: var(--weiss);
  border-top: 1px solid var(--rand);
}
.ohne-leiste .leiste {
  display: none;
}
.leiste a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.2rem;
  color: var(--tinte);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 3px solid transparent;
}
.leiste a[aria-current="page"] {
  color: var(--navy);
  border-top-color: var(--gold-linie);
  background: var(--gold-blass);
}

/* ---------- Schrift ---------- */

.seitenkopf {
  margin-bottom: 0.9rem;
}
.seitenkopf h1 {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.12;
  text-wrap: balance;
}
.seitenkopf h1.satz {
  font-family: var(--schrift);
  font-size: clamp(1.5rem, 5vw, 1.9rem);
}

.vorzeile {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-tinte);
  margin-bottom: 0.25rem;
}

.vorspann {
  font-size: 1.14rem;
  color: var(--tinte);
  max-width: 36rem;
}

h2 {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.1rem 0 0.45rem;
}

h2.zwischen {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte);
  margin: 1.8rem 0 0.6rem;
}

.block {
  margin-top: 2.1rem;
}
.block > p + p {
  margin-top: 0.6rem;
}

.klein {
  font-size: 0.88rem;
  color: var(--tinte);
  margin-top: 0.6rem;
}

.leise-zeile {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--tinte);
}
.leise-zeile a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--navy);
}
.leise-zeile svg {
  width: 18px;
  height: 18px;
}

.fachname {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--tinte);
}
.kopf-sterne {
  margin-top: 0.35rem;
  min-height: 1.3rem;
}

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 2.75rem;
  margin: -0.4rem 0 0.4rem -0.4rem;
  padding-right: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tinte);
  text-decoration: none;
}

/* ---------- Knöpfe und Felder ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.4rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: var(--weiss);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.knopf:active {
  background: var(--navy-tief);
}
.knopf.leise {
  background: var(--weiss);
  color: var(--navy);
}
.knopf.leise:active {
  background: var(--creme);
}
.knopf.gross {
  width: 100%;
  min-height: 3.9rem;
  font-size: 1.14rem;
  margin-top: 1.1rem;
}
.knopf.warn {
  color: var(--rot);
  border-color: var(--rot);
}
.knopf:disabled {
  opacity: 0.45;
  cursor: default;
}

.textknopf {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0 0.4rem;
  border: 0;
  background: none;
  color: var(--tinte);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.textknopf svg {
  width: 18px;
  height: 18px;
}

.zwei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.7rem;
}

.feld {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}
.feld input,
.feld select {
  display: block;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 0.3rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--rand-fest);
  border-radius: 12px;
  background: var(--weiss);
  color: var(--navy);
  font: inherit;
  font-weight: 500;
}

/* ---------- Listen ---------- */

.zeilen {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.block .zeilen {
  margin-top: 0.8rem;
}
.zeile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.4rem;
  padding: 0.8rem 0.9rem 0.8rem 1rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 14px;
  text-decoration: none;
}
a.zeile:active {
  background: var(--papier);
}
.zeile-nr {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--weiss);
  font-weight: 700;
}
.zeile-nr svg {
  width: 18px;
  height: 18px;
}
.zeile-text {
  flex: 1;
  min-width: 0;
}
.zeile-text b {
  display: block;
  font-size: 1.06rem;
  line-height: 1.3;
}
.zeile-text small,
.zeile-zusatz {
  display: block;
  font-size: 0.86rem;
  color: var(--tinte);
}
.zeile-pfeil {
  flex: none;
  display: grid;
  color: var(--rand-fest);
}
.zeile.gesperrt {
  background: transparent;
  border-style: dashed;
  color: var(--tinte);
  min-height: 3.6rem;
}
.zeile.gesperrt .zeile-nr {
  background: transparent;
  color: var(--tinte);
  border: 1.5px dashed var(--rand-fest);
}
.pannen .zeile-text b {
  font-weight: 600;
}

.sterne {
  flex: none;
  display: inline-flex;
  gap: 1px;
}
.stern path {
  fill: none;
  stroke: var(--rand-fest);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.stern.an path {
  fill: var(--gold);
  stroke: #a3861c;
}

.punkte,
.schritte,
.regeln {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.punkte li {
  position: relative;
  padding-left: 1.6rem;
}
.punkte li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--rot);
}
.schritte,
.regeln {
  counter-reset: schritt;
}
.schritte li,
.regeln li {
  position: relative;
  padding-left: 2.6rem;
  min-height: 1.9rem;
  counter-increment: schritt;
}
.schritte li::before,
.regeln li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: -0.05rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--weiss);
  font-weight: 700;
  font-size: 0.92rem;
}
.klein-schritte {
  font-size: 0.94rem;
}

.verweise,
.liste-kurz {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}
.verweise a,
a.verweis {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-underline-offset: 3px;
}
.verweise svg,
a.verweis svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.liste-kurz {
  gap: 0.45rem;
  margin-top: 0.6rem;
  font-size: 0.96rem;
}

/* ---------- Hinweise und Marken ---------- */

.hinweis {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--tinte);
}
.hinweis.offen {
  padding: 0.55rem 0.8rem;
  border: 1.5px dashed var(--gold-linie);
  border-radius: 10px;
  background: var(--gold-blass);
  color: var(--gold-tinte);
}
.hinweis.offen::before {
  content: "Offen: ";
  font-weight: 700;
}

.marke.ok,
.marke.offen {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-family: var(--schrift);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.marke.ok {
  background: var(--gruen-blass);
  color: var(--gruen);
  border: 1.5px solid transparent;
}
.marke.offen {
  background: var(--gold-blass);
  color: var(--gold-tinte);
  border: 1.5px dashed var(--gold-linie);
}

.material {
  margin-top: 0.7rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--tinte);
}

/* ---------- Heute ---------- */

.heute-karte {
  margin-top: 1rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 20px;
  box-shadow: 0 10px 28px -18px rgb(26 39 68 / 0.45);
}
.heute-karte h2 {
  font-family: var(--anzeige);
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.heute-bild {
  margin: 0.2rem 0 0.9rem;
  border: 1px solid var(--rand);
  border-radius: 12px;
  background: var(--papier);
  overflow: hidden;
}
.heute-bild svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Start ---------- */

.profile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.profil {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 4.2rem;
  padding: 0.5rem 0.9rem;
  background: var(--weiss);
  border: 2px solid var(--rand);
  border-radius: 14px;
  color: var(--navy);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.profil.aktiv {
  border-color: var(--gold-linie);
  background: var(--gold-blass);
}
.neu {
  display: grid;
  gap: 1rem;
}
.neu h2 {
  margin-bottom: 0;
}
.neu .knopf.gross {
  margin-top: 0.2rem;
}
.farben legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0.3rem;
}
.farbwahl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.farbwahl label {
  position: relative;
  cursor: pointer;
}
.farbwahl input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.farbwahl label > span:first-of-type {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.9rem;
  border: 2.5px solid transparent;
  border-radius: 14px;
}
.farbwahl input:checked + span {
  border-color: var(--navy);
  background: var(--weiss);
}
.farbwahl input:focus-visible + span {
  outline: 3px solid var(--gold-linie);
  outline-offset: 2px;
}

/* ---------- Filme: Aufnahmen, Platzhalter, Schemafilme ---------- */

.platz {
  margin-top: 0.8rem;
}
.film {
  margin: 0;
}
.film-bild {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--filz);
  overflow: hidden;
}
.film-bild[data-film] {
  cursor: pointer;
}
.film-bild video,
.film-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Fotos zeigen sich ganz, in ihrem eigenen Format. Die Regel `.foto img` (Logbuch, weiter unten) schneidet sonst
   auf 16:9 zu: Dem Hund fehlte die Schnauze (Tobias, 14.10.2026). */
.film.foto .film-bild {
  aspect-ratio: auto;
}
.film.foto .film-bild img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: auto;
  object-fit: contain;
}
.film-bild.wartet {
  background: var(--rand);
}
.film-bild.hell {
  background: var(--papier);
  border: 1px solid var(--rand);
}
.film-bild.hell svg {
  display: block;
  width: 100%;
  height: 100%;
}
.film svg text,
.karte svg text,
.heute-bild svg text {
  font-family: var(--schrift);
}

.film-bild.leer {
  overflow: visible;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.2rem 1rem;
  text-align: center;
  border: 2px dashed var(--gold-linie);
  background: repeating-linear-gradient(135deg, var(--gold-blass) 0 14px, var(--papier) 14px 28px);
}
.leer-code {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  padding: 0.1rem 0.7rem;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-hell);
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.5rem;
}
.leer-titel {
  font-weight: 700;
  font-size: 1.05rem;
}
.leer-was {
  max-width: 28rem;
  font-size: 0.92rem;
  color: var(--tinte);
}
.leer-datei {
  font-size: 0.85rem;
  color: var(--tinte);
}
.leer-datei code {
  background: var(--weiss);
}

.film-kopf {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  z-index: 1;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--weiss);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.film-kopf:empty {
  display: none;
}
.film-balken {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--rand);
}
.film-balken i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}
.film-satz {
  min-height: 3.3em;
  margin-top: 0.7rem;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.film-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.film-leiste.schmal {
  margin-top: 0.35rem;
}
.film-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0 0.95rem;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  background: var(--weiss);
  color: var(--navy);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
}
.film-knopf svg {
  width: 20px;
  height: 20px;
}
.film-knopf.haupt {
  background: var(--navy);
  color: var(--weiss);
  min-width: 8.6rem;
}
.film-knopf[aria-pressed="true"] {
  background: var(--gold-blass);
  border-color: var(--gold-linie);
  box-shadow: inset 0 0 0 1.5px var(--gold-linie);
}
.film-marke {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tinte);
  font-variant-numeric: tabular-nums;
}
.film-schritte {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.wahl {
  display: flex;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  overflow: hidden;
  background: var(--weiss);
}
.wahl button {
  flex: 1;
  min-height: 3rem;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-left: 1.5px solid var(--navy);
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.wahl button:first-child {
  border-left: 0;
}
.wahl button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--weiss);
}

/* ---------- Übung ---------- */

.uebung {
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--gold-linie);
  border-radius: 16px;
  background: var(--gold-blass);
}
.uebung p:first-of-type {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ---------- Versuch und Sterne-Weg ---------- */

.sternbereich {
  margin-top: 2.1rem;
}
.versuch {
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 16px;
}
.echo {
  margin-top: 0.85rem;
  font-size: 0.98rem;
}
.echo.gut {
  color: var(--gruen);
  font-weight: 600;
}
.echo-frage {
  margin-top: 0.5rem;
  font-weight: 700;
}
.echo-liste {
  list-style: none;
}
.echo-liste a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.weg {
  margin-top: 1.8rem;
}
.stufen {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.stufe {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
}
.stufe.zu {
  opacity: 0.55;
}
.stufe.dran {
  background: var(--weiss);
  border-color: var(--gold-linie);
}
.stufe-stern {
  padding-top: 0.1rem;
}
.stufe-name b {
  font-size: 1.06rem;
}
.stufe-name span {
  color: var(--tinte);
}
.stufe-was {
  font-size: 0.93rem;
  color: var(--tinte);
}
.stufe-vermerk {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gruen);
}
.stufe-tun {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}
.stufe-tun .feld,
.stufe-tun .zwei {
  width: 100%;
}
p.stufe-tun {
  display: block;
  font-weight: 600;
}
.reihe {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
  font-weight: 600;
}
.reihe-punkte {
  display: inline-flex;
  gap: 0.35rem;
}
.reihe-punkte i {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.reihe-punkte i.voll {
  background: var(--navy);
}
.uhr {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Figuren ---------- */

.brauchst {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brauchst a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.9rem 0 0.7rem;
  border: 1.5px solid;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.brauchst svg {
  width: 18px;
  height: 18px;
}
.brauchst .kann a {
  background: var(--gruen-blass);
  border-color: transparent;
  color: var(--gruen);
}
.brauchst .fehlt a {
  border-style: dashed;
  border-color: var(--rand-fest);
  color: var(--tinte);
}

.karte {
  padding: 1rem 1.1rem 1.1rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 16px;
}
.karte-bild {
  overflow-x: auto;
  margin: 0 -0.3rem 0.6rem;
}
.karte-bild svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.blasen {
  list-style: none;
}
.blasen li {
  display: grid;
  grid-template-columns: 1.9rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.3rem;
  border-top: 1px solid var(--rand);
}
.blasen li.knack {
  background: var(--gold-blass);
}
.blase-nr {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 700;
}
.blase-name {
  font-weight: 600;
}
.blase-name em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--tinte);
}
.blase-lang {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fehlt-wert {
  color: var(--gold-tinte);
  font-weight: 600;
  border-bottom: 1.5px dashed var(--gold-linie);
}

.fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.fotos > p {
  grid-column: 1 / -1;
  margin: 0;
}
.foto img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--rand);
}
.foto figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--tinte);
}
.block > .knopf {
  margin-top: 0.8rem;
}

/* ---------- Pannenhilfe ---------- */

.ursachen {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.ursache {
  padding: 1rem 1.1rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 14px;
}
.ursache h3 {
  margin-top: 0;
}
.zeigmir {
  margin-top: 0.3rem;
}
.zeigmir summary,
.legende summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legende {
  margin-top: 0.6rem;
  font-size: 0.94rem;
}
.legende ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.25rem;
}

/* ---------- Lehrertisch ---------- */

.reiter {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin: 0.4rem -1.1rem 0;
  padding: 0.2rem 1.1rem 0.5rem;
}
.reiter a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1.5px solid var(--rand-fest);
  border-radius: 999px;
  background: var(--weiss);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.reiter a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--weiss);
}

.zaehler {
  font-size: 1.1rem;
  color: var(--tinte);
}
.zaehler b {
  font-family: var(--anzeige);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--navy);
}
.balken {
  height: 8px;
  margin: 0.5rem 0 1.1rem;
  border-radius: 999px;
  background: var(--rand);
  overflow: hidden;
}
.balken i {
  display: block;
  height: 100%;
  background: var(--gold);
}
.kasten {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 14px;
}
.kasten h3 {
  margin-top: 0;
}
.gruppe-titel {
  margin-top: 1.6rem;
}
.aufnahmen {
  list-style: none;
}
.aufnahme {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rand);
}
.aufnahme-code {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.12rem;
}
.aufnahme-text {
  font-size: 0.93rem;
  color: var(--tinte);
}
.aufnahme-text b {
  color: var(--navy);
}
.aufnahme-text code {
  display: inline-block;
  margin-top: 0.15rem;
}

.tabelle-rahmen {
  overflow-x: auto;
  margin-top: 0.6rem;
}
.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.tabelle th,
.tabelle td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--rand);
  vertical-align: middle;
}
.tabelle thead th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tinte);
  white-space: nowrap;
}
.tabelle.gruppe td {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.tabelle.gruppe tbody th {
  white-space: nowrap;
  font-weight: 600;
}
.tabelle.gruppe .ballon {
  vertical-align: -3px;
}
.tabelle.gruppe td.s0 {
  color: var(--rand-fest);
  font-weight: 400;
}
.tabelle.gruppe td.haengt {
  background: var(--rot-blass);
  color: var(--rot);
}

.rechner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem;
}
.ergebnis,
.plan {
  margin-top: 1.1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 16px;
}
.plan h3 {
  margin-top: 0;
  font-size: 1.15rem;
}
.plan > p {
  margin-top: 0.7rem;
}
.plan .knopf {
  margin-top: 1rem;
}
.ablauf {
  list-style: none;
  margin-top: 0.8rem;
}
.ablauf li {
  display: grid;
  grid-template-columns: 4.3rem 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rand);
}
.ablauf-zeit {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.auswahl {
  display: grid;
  gap: 0.6rem;
}
.auswahl label,
.haken-zeile {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 14px;
  cursor: pointer;
}
.auswahl input,
.haken-zeile input {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}
.auswahl b {
  display: block;
}
.haken-zeile {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}
.kinder {
  list-style: none;
}
.kinder li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--rand);
  font-weight: 600;
}
.kinder li span {
  flex: 1;
}

.halteknopf {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.halteknopf i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.halteknopf.haelt i {
  transform: scaleX(1);
  transition: transform 2s linear;
}
.halteknopf span {
  position: relative;
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 48rem) {
  .seite {
    padding: 2rem 1.5rem 2rem;
  }
  .leiste a {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .halteknopf.haelt i {
    transition-duration: 2s !important;
  }
}

@media print {
  body {
    background: #fff;
  }
  .kopf,
  .leiste,
  .nicht-drucken {
    display: none !important;
  }
  #blatt {
    padding: 0;
  }
  .plan {
    border: 0;
    padding: 0;
  }
}

.blase-cm {
  opacity: 0.6;
  font-size: 0.85em;
  margin-left: 0.35em;
  white-space: nowrap;
}

.modell {
  display: block;
  width: 100%;
  height: min(34rem, 78vh);
  border: 1px solid var(--rand);
  border-radius: 14px;
  background: var(--papier);
}

.hand-halten {
  font-style: normal;
  font-weight: 700;
  color: var(--rot);
}
.hand-los {
  font-style: normal;
  font-weight: 700;
  color: var(--gruen);
}

.modell.hoch {
  height: min(46rem, 82vh);
}
.werkstatt-tuer {
  margin: 0 0 1rem;
}
