:root {
  /* Neue Farbpalette (dieselbe Vorgabe wie Portal + Artikel-Fresser):
     Petrol = Struktur, Gold = Highlight, Koralle = CTA/wichtige Aktionen,
     Mint = Erfolg (Bonus-Häkchen), Creme = Hintergrund. */
  --grund: #fffdf8;
  --karte: #ffffff;
  --hell: #003a4d;
  --gedaempft: #4c6b74;
  --rand: #cde9ef;
  --gold: #fdcb52;
  --gold-hell: #fedd82;
  --gold-dunkel: #8a6a18;
  --rot: #ff6b6b;
  --rot-hell: #ff8f8f;
  --rot-dunkel: #d94b4b;
  --gruen: #2ec4b6;

  /* Dieselben Rektionsfarben wie beim Satzbau-Puzzle (UNVERÄNDERT,
     pädagogisch festgelegt) - "wie bei Satzbau-Puzzle" war ausdrücklich
     der Wunsch, deshalb hier bewusst dieselben Werte übernommen statt neu
     erfunden. */
  --dativ: #c0273a;
  --akkusativ: #2f6fd0;
  --keins: #7d7565;
  --akkusativ-pastell: #cfe0f7;
  --akkusativ-pastell-text: #1a3a63;
  --dativ-pastell: #f6d7dc;
  --dativ-pastell-text: #6b1220;
  --subjekt-pastell: #cdebd0;
  --subjekt-pastell-text: #1f6b2c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--grund);
  color: var(--hell);
  -webkit-tap-highlight-color: transparent;
}

.schirm { display: none; padding: 20px 16px 28px; max-width: 1100px; margin: 0 auto; }
.schirm.sichtbar { display: block; }

.oben-leiste {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 10px 16px 0;
}
/* Einheitliche Größe in allen Spielen (vorher unterschiedlich groß je
   nach Spiel, auf Nutzer-Feedback hin jetzt überall gleich), ohne
   Umrandung - der Hintergrund + Schatten reicht als Abgrenzung. */
.home-knopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 16px; font-size: 30px;
  text-decoration: none; background: var(--karte); border: none;
  box-shadow: 0 2px 8px #00000022; flex-shrink: 0;
}
.home-knopf:hover { background: #fbf5e8; }
.sprach-auswahl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sprach-knopf { padding: 5px 12px; font-size: 13px; }
.sprach-knopf.aktiv { background: var(--hell); border-color: var(--hell); color: #fff; font-weight: 700; }

/* ------------------------------------------------------------ Startseite */
.kopf { text-align: center; margin-bottom: 22px; }
.kopf h1 { margin: 8px 0 4px; font-size: clamp(28px, 6vw, 46px); letter-spacing: -0.5px; }
/* Titelzeichen als SVG (das Emoji fehlte auf älteren Geräten). Pseudo-Element ohne Text -> wird nicht vorgelesen. */
.kopf h1::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .25em; vertical-align: -0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23bfe9f5' fill-opacity='.75' stroke='%232a8fb0' stroke-width='2.5'%3E%3Ccircle cx='26' cy='36' r='20'/%3E%3Ccircle cx='49' cy='18' r='11'/%3E%3Ccircle cx='51' cy='46' r='7'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cellipse cx='18' cy='27' rx='6' ry='3' transform='rotate(-40 18 27)'/%3E%3Cellipse cx='45' cy='13' rx='3.2' ry='1.7' transform='rotate(-40 45 13)'/%3E%3Ccircle cx='49' cy='43.5' r='1.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.untertitel { margin: 0; color: var(--gedaempft); font-size: 16px; }
.kopf::after {
  content: ""; display: block; height: 3px; width: 160px; margin: 14px auto 0;
  border-radius: 2px; opacity: .85;
  background: linear-gradient(90deg, var(--hell) 0 33.3%, var(--rot) 33.3% 66.6%, var(--gold) 66.6% 100%);
}

/* Standbild auf der Startseite, damit man VOR dem ersten Spielstart schon
   sieht, wie das Spiel aussieht (Wörter in Blasen, Verben golden mit
   Häkchen hervorgehoben) - dieselbe Bildidee wie die kleine Portal-Kachel-
   Vorschau, hier nur größer und mit zwei Beispiel-Verben statt einem. */
.start-vorschau { margin: 0 0 22px; }
.start-vorschau svg {
  width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto;
  border-radius: 14px; box-shadow: 0 2px 10px #00000018;
}

.wahl { margin-bottom: 22px; }
.wahl h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--gedaempft); margin: 0 0 10px;
}

/* Nummerierte Auswahl-Schritte (1. Niveau, 2. ..., 3. ...) - Nutzer-
   Feedback: mehrere Auswahlpunkte hintereinander wirken unübersichtlich,
   eine Nummerierung schafft eine klare Reihenfolge. Zählt automatisch nur
   ".wahl"-Blöcke mit einer ECHTEN Überschrift - Kippschalter ohne eigene
   Überschrift (z.B. "Nur aktuelle Stufe") werden dadurch NICHT mitgezählt.
   Reine CSS-Lösung (counter-reset/-increment + ::before) - der über
   data-i18n übersetzte Text selbst bleibt unangetastet. */
#start { counter-reset: schrittzahl; }
#start .wahl h2 { counter-increment: schrittzahl; }
#start .wahl h2::before { content: counter(schrittzahl) ". "; }
.start-hinweis {
  margin: 4px 0 0; padding: 10px 14px; border-radius: 10px;
  background: #eaf6fa; border: 1px solid #7cc9e0; color: var(--hell);
  font-size: 14px; font-weight: 600;
}

.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; }
.knopfreihe-klein { display: flex; gap: 8px; flex-wrap: wrap; }
.knopfreihe-klein button { padding: 9px 16px; font-size: 14px; }

.tempo-regler { max-width: 360px; }
.tempo-regler input[type="range"] { width: 100%; accent-color: var(--gold); height: 26px; cursor: pointer; }
.tempo-marken { display: flex; justify-content: space-between; font-size: 13px; color: var(--gedaempft); margin-top: 2px; }
.tempo-marken span { transition: color .12s, font-weight .12s; }
.tempo-marken span.aktiv { color: var(--gold-dunkel); font-weight: 700; }

button {
  background: #fff; color: var(--hell);
  border: 2px solid var(--rand); border-radius: 12px;
  padding: 10px 16px; font-size: 15px; font-family: inherit;
  cursor: pointer; transition: background .12s, border-color .12s, transform .08s;
  box-shadow: 0 1px 2px #00000010;
}
button:hover:not(:disabled) { background: #fbf5e8; border-color: var(--gold); }
button:active:not(:disabled) { transform: translateY(1px); }
button.aktiv { background: var(--hell); border-color: var(--hell); color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }
/* Koralle statt Gold: der auslösende Haupt-Knopf ist die "wichtige
   Aktion", Gold bleibt für Highlights (aktive Auswahl etc.) reserviert. */
button.gross { padding: 15px 30px; font-size: 18px; font-weight: 700; background: var(--rot); border-color: var(--rot-dunkel); color: #fff; }
button.gross:hover:not(:disabled) { background: var(--rot-hell); }
button.flach { background: transparent; box-shadow: none; }
button.gefahr { border-color: var(--rot); color: var(--rot); }
button.gefahr:hover:not(:disabled) { background: #fdeef0; }

.startzeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }

/* ------------------------------------------------------------- Spielfeld */
.hud {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 8px 4px 12px; font-size: 15px; color: var(--gedaempft);
}
.hud b { color: var(--hell); font-size: 19px; }
.hud-rechts { margin-left: auto; display: flex; gap: 8px; }
.hud-rechts button { padding: 7px 13px; font-size: 14px; }

/* Die Wiese: blauer Himmel oben, grüne Wiese unten - die Blasen schweben
   frei darin und tragen die Wörter. */
.wiese {
  position: relative; overflow: hidden;
  height: clamp(320px, 56vh, 520px);
  border-radius: 20px; margin-bottom: 10px;
  background: linear-gradient(180deg, #8ec9f0 0%, #bfe3f7 55%, #cdeeb8 78%, #8fcf6c 100%);
  box-shadow: inset 0 0 0 2px #ffffff55;
}
.wiese-sonne {
  position: absolute; top: 20px; right: 26px; width: 54px; height: 54px;
  border-radius: 50%; background: radial-gradient(circle, #fff6c8 0%, #ffe58a 70%, #ffd65c 100%);
  box-shadow: 0 0 24px 6px #ffe58a80; pointer-events: none;
}
.wiese-wolke {
  position: absolute; opacity: .9; pointer-events: none;
  width: 70px; height: 26px; background: #fff; border-radius: 30px;
  box-shadow: 16px -10px 0 -2px #fff, -16px -6px 0 -4px #fff;
}
.wiese-wolke.w1 { top: 14%; left: 8%; }
.wiese-wolke.w2 { top: 28%; left: 55%; width: 54px; height: 20px; }

/* Jede Blase bekommt in game.js eine eigene Position in PIXELN (nicht mehr
   Prozent/Rasterzelle) und wird per requestAnimationFrame frei über die
   Wiese bewegt - mit Kollisionsvermeidung, damit sich zwei Blasen nie
   überlappen, sondern aneinander vorbeifliegen (siehe starteBewegung() in
   game.js). Die eigentliche Bewegung setzt left/top direkt per JS; hier in
   CSS bleibt nur noch ein kleines, ort-unabhängiges Pulsieren für die
   Lebendigkeit der Seifenblasen-Optik. Das Tempo (langsam/mittel/schnell)
   steuert direkt die JS-Geschwindigkeit, keine CSS-Variable mehr nötig. */
.blase {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffffcc 0%, #d7f0ff88 34%, #a9d9f555 62%, #8ec9f033 100%);
  border: 2px solid #ffffffaa;
  box-shadow: 0 2px 10px #00000020, inset 0 0 16px #ffffff55;
  font-size: 13px; font-weight: 700; color: #1b3a5c; text-align: center;
  /* Umbruch nur zwischen Wörtern (vorher „interessie|ren“); passt ein Wort
     nicht, vergrößert game.js (berechneBlasenmasse) die Blase. */
  padding: 6px; word-break: normal; overflow-wrap: normal; hyphens: manual; line-height: 1.15;
  cursor: pointer; user-select: none;
  transform: translate(-50%, -50%);
  animation: blasePulsieren 2.6s ease-in-out infinite;
}
.blase:hover { filter: brightness(1.05); }
@keyframes blasePulsieren {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.045); }
}
/* Falsche Wortart angetippt: kurz sichtbar rot einfärben und schütteln -
   die Blase bleibt danach weiter in Bewegung, sie platzt NICHT. */
.blase.falsch { animation: blaseWackeln .4s ease-in-out; }
@keyframes blaseWackeln {
  0%   { transform: translate(-50%, -50%) scale(1); }
  20%  { transform: translate(-50%, -50%) translateX(-7px) scale(1.03);
         background: radial-gradient(circle at 32% 28%, #ffe3e3cc 0%, #ffb3b3aa 34%, #ff8a8a77 62%, #ff6b6b55 100%);
         border-color: var(--rot); }
  50%  { transform: translate(-50%, -50%) translateX(6px) scale(1.03);
         background: radial-gradient(circle at 32% 28%, #ffe3e3cc 0%, #ffb3b3aa 34%, #ff8a8a77 62%, #ff6b6b55 100%);
         border-color: var(--rot); }
  80%  { transform: translate(-50%, -50%) translateX(-3px); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.blase.platzt {
  animation: blasePlatzen .35s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes blasePlatzen {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  40%  { transform: translate(-50%, -50%) scale(1.25); opacity: .9; box-shadow: 0 0 0 10px #ffffff60; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; box-shadow: 0 0 0 26px #ffffff00; }
}

/* Spritzende Wassertröpfchen beim Platzen - kleine Tropfenformen, die vom
   Platz-Ort radial wegfliegen und verblassen (--tx/--ty von JS gesetzt). */
.tropfen {
  position: absolute; width: 10px; height: 13px; border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 35% 30%, #f2fbff 0%, #bfe6fa 55%, #6fb8e6 100%);
  box-shadow: 0 1px 3px #00000030;
  pointer-events: none; z-index: 4;
  animation: tropfenSpritzen .55s cubic-bezier(.25,.7,.35,1) forwards;
}
@keyframes tropfenSpritzen {
  0%   { transform: translate(-50%, -50%) rotate(45deg) translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(45deg) translate(var(--tx, 30px), var(--ty, 30px)) scale(.25); opacity: 0; }
}

/* ------------------------------------------------------ Gefundene Verben */
.bereich {
  background: var(--karte); border: 2px solid var(--rand); border-radius: 16px;
  padding: 16px 20px 20px; margin-top: 10px;
}
.bereich h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--gedaempft); margin: 0 0 10px;
}
.gefundene-verben { display: flex; flex-wrap: wrap; gap: 8px; }
.verb-chip {
  padding: 7px 14px; border-radius: 20px; font-weight: 700; font-size: 14px;
  animation: chipEinblenden .35s ease-out; color: #fff;
  border: 2px solid transparent; font-family: inherit;
}
/* Als Knopf wiederverwendet (Verbauswahl beim Bonus-Satzbau): anklickbar,
   die gerade geladene Auswahl bekommt einen hellen Rand. */
button.verb-chip { cursor: pointer; box-shadow: 0 1px 2px #00000020; }
button.verb-chip.aktiv { border-color: #fff; box-shadow: 0 0 0 2px #00000030; }
@keyframes chipEinblenden {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}
.verb-akkusativ { background: var(--akkusativ); }
.verb-dativ { background: var(--dativ); }
.verb-beide { background: linear-gradient(135deg, var(--dativ) 0 49%, var(--akkusativ) 51% 100%); }
.verb-keins { background: var(--keins); }

.fusszeile { text-align: center; color: var(--gedaempft); font-size: 14px; margin: 16px 0 0; }

/* --------------------------------------------------------- Beispielsatz */
.baustein.subjekt { background: var(--subjekt-pastell); color: var(--subjekt-pastell-text); }
.baustein.objekt-akkusativ { background: var(--akkusativ-pastell); color: var(--akkusativ-pastell-text); }
.baustein.objekt-dativ, .baustein.objekt { background: var(--dativ-pastell); color: var(--dativ-pastell-text); }
/* Verb-Baustein im gebauten Satz farblich nach Rektion (wie die Blase
   selbst und wie im Satzbau-Puzzle) - NICHT pauschal golden, sonst sehen
   alle Verben im Satz gleich (bräunlich) statt nach Rektion gefärbt aus. */
.baustein.verb-akkusativ { background: var(--akkusativ); color: #eaf1ff; }
.baustein.verb-dativ { background: var(--dativ); color: #ffeef0; }
.baustein.verb-beide { background: linear-gradient(135deg, var(--dativ) 0 49%, var(--akkusativ) 51% 100%); color: #fff; }
.baustein.verb-keins { background: var(--keins); color: var(--grund); }
.baustein.angabe { background: #eef2f7; color: #33475b; }
/* Allgemeine Regeln der Bonusaufgabe (Bausteine, Bauplatz, Plaetze, Rueckmeldung) in ../bonus-satzbau.css */
.ergebnis { font-size: 17px; line-height: 1.7; }
.ergebnis .zahl { font-size: 40px; font-weight: 800; color: var(--gold); }

@media (max-width: 560px) {
  /* Nutzer-Feedback: auf dem Handy wirken die Blasen zu groß - etwas
     kleiner als vorher (76px), damit mehr vom Spielfeld sichtbar bleibt. */
  .blase { width: 64px; height: 64px; font-size: 10px; padding: 4px; }
  .wiese { height: clamp(260px, 50vh, 420px); }
  .bereich { padding: 14px 14px 18px; }
}

/* ---- Durchlauf 11/2026 ----------------------------------------------------
   Blasen auf dem Handy (hoch und quer): 68 px mit 12 px Schrift (vorher
   64 px / 10 px, schwer lesbar; 76 px war laut Nutzer-Feedback zu groß). */
@media (max-width: 560px), (max-height: 500px) and (orientation: landscape) {
  .blase { width: 68px; height: 68px; font-size: 12px; padding: 3px; }
}

/* Feedback 19.11.2026: Größe und Schrift jeder Blase setzt game.js
   (berechneBlasenmasse) nach Anzahl und Wiesenfläche - Schrift mindestens
   15 px, Zeilenumbruch nur an Leerzeichen (game.js setzt die Zeilen). */
.blase { font-size: 15px; padding: 0; white-space: pre-line; line-height: 1.1; overflow: visible; }

/* Knöpfe mindestens 48 px hoch (Tippfläche auf dem Handy) */
.knopfreihe button, .knopfreihe-klein button, .startzeile button,
.hud-rechts button, .sprach-knopf { min-height: 48px; }
.knopfreihe button, .knopfreihe-klein button { min-width: 56px; }
body .startzeile .hell-knopf { min-height: 48px; box-sizing: border-box; }

/* Spielschirm füllt genau den Bildschirm: Kopf, Punkte und gefundene Verben
   so hoch wie nötig, die Wiese bekommt den Rest (vorher musste man auf dem
   Handy quer und bei 320 px scrollen). */
body[data-schirm="spiel"] { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
body[data-schirm="spiel"] .oben-leiste { flex: none; width: 100%; }
body[data-schirm="spiel"] #spiel.sichtbar {
  flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; flex-direction: column;
  padding-top: 6px; padding-bottom: 56px; /* unten Platz für den Feedback-Knopf */
}
body[data-schirm="spiel"] .hud { flex: none; padding: 2px 4px 8px; }
body[data-schirm="spiel"] .wiese { flex: 1 1 auto; height: auto; min-height: 160px; margin-bottom: 8px; }
body[data-schirm="spiel"] #spiel .bereich { flex: none; margin-top: 0; padding: 10px 16px 12px; }
body[data-schirm="spiel"] .gefundene-verben { min-height: 36px; }
body[data-schirm="spiel"] .fusszeile { flex: none; margin: 8px 0 0; }

/* Handy hoch (schmal) und Handy quer (niedrig): kompakte Kopfzeile wie beim
   Adjektiv-Dieb - Sprachauswahl als ein Knopf „🌐 Deutsch“, Feedback-Knopf
   klein oben neben dem Haus, gefundene Verben in einer Zeile. */
@media (max-width: 560px), (max-height: 500px) and (orientation: landscape) {
  #sprachAuswahl { --sprach-einklappen: 1; }
  body[data-schirm="spiel"] .oben-leiste { padding: 6px 12px 0; align-items: flex-start; }
  body[data-schirm="spiel"] .home-knopf { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
  body[data-schirm="spiel"] #spiel.sichtbar { padding: 6px 12px 10px; }
  body[data-schirm="spiel"] #sprachAuswahl { flex-wrap: nowrap; }
  body[data-schirm="spiel"] #sprachAuswahl .sprach-knopf:not(.aktiv) { display: none; }
  body[data-schirm="spiel"] #sprachAuswahl .sprach-knopf.aktiv::before { content: "🌐 "; }
  body[data-schirm="spiel"] #sprachAuswahl.offen {
    position: absolute; top: 6px; right: 12px; z-index: 9999;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    width: min(calc(100vw - 24px), 420px); padding: 8px; background: #fff;
    border: 2px solid var(--rand); border-radius: 16px; box-shadow: 0 6px 20px #00000030;
  }
  body[data-schirm="spiel"] #sprachAuswahl.offen .sprach-knopf { display: block; padding: 4px 6px; }
  body[data-schirm="spiel"] .feedback-knopf {
    position: absolute; top: 6px; bottom: auto; left: 70px; right: auto;
    width: 48px; height: 48px; padding: 0; font-size: 0; line-height: 1;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
  }
  body[data-schirm="spiel"] .feedback-knopf::before { content: "💬"; font-size: 20px; }
  body[data-schirm="spiel"] .pwa-knopf { display: none; }
  body[data-schirm="spiel"] .feedback-panel { top: 60px; bottom: auto; }
  body[data-schirm="spiel"] .hud { padding: 0 2px 6px; gap: 4px 12px; }
  body[data-schirm="spiel"] .hud-rechts button { padding: 4px 14px; font-size: 15px; }
  body[data-schirm="spiel"] .wiese { min-height: 0; margin-bottom: 6px; border-radius: 16px; }
  body[data-schirm="spiel"] #spiel .bereich {
    display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px;
  }
  body[data-schirm="spiel"] #spiel .bereich h2 { flex: none; margin: 0; font-size: 11px; letter-spacing: .8px; max-width: 6.5em; }
  body[data-schirm="spiel"] .gefundene-verben {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; min-height: 36px; align-items: center;
  }
  body[data-schirm="spiel"] .verb-chip { flex: none; padding: 6px 12px; font-size: 15px; }
  body[data-schirm="spiel"] .fusszeile { display: none; }
}

/* Handy quer: zwei Spalten - links Punkte und gefundene Verben, rechts die Wiese. */
@media (max-height: 500px) and (orientation: landscape) {
  body[data-schirm="spiel"] #spiel.sichtbar {
    display: grid; column-gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "hud wiese" "bereich wiese";
  }
  body[data-schirm="spiel"] .hud { grid-area: hud; }
  body[data-schirm="spiel"] .wiese { grid-area: wiese; margin: 0; }
  body[data-schirm="spiel"] #spiel .bereich {
    grid-area: bereich; align-self: start; display: block; max-height: 100%; overflow-y: auto;
  }
  body[data-schirm="spiel"] #spiel .bereich h2 { max-width: none; margin-bottom: 6px; }
  body[data-schirm="spiel"] .gefundene-verben { flex-wrap: wrap; overflow-x: visible; gap: 6px; }
}

:root { color-scheme: light dark; }

/* ---- Eigener Dunkelmodus (Durchlauf 11/2026, Muster Tanzroboter) -----------
   Samsung Internet färbt trotz „only light“ selbst um. Seiten, die selbst
   „light dark“ anbieten, werden nicht umgefärbt und zeigen dieses Design.
   Gleiche Farbwelt (Petrol, Gold, Koralle, Mint), Texte ≥ 4,5 : 1. Die Wiese
   bleibt mittelhell (Abendhimmel), die Blasen hell, damit die dunkle Schrift
   gut lesbar bleibt. Hellmodus: alles oberhalb unverändert. */
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0e1d23;
    --karte: #17303a;
    --hell: #e8f3f6;      /* Haupttext (im Hellmodus: Petrol) */
    --gedaempft: #a7c3cb;
    --rand: #2f5664;
    --gold-hell: #5a4613;
    --gold-dunkel: #fedd82;
  }
  .home-knopf:hover { background: #22424e; }
  .sprach-knopf.aktiv, button.aktiv { background: #0d6b80; border-color: #7cc9e0; color: #fff; }
  button { background: var(--karte); color: var(--hell); box-shadow: 0 1px 2px #00000040; }
  button:hover:not(:disabled) { background: var(--karte); border-color: var(--rand); }
  @media (hover: hover) {
    button:hover:not(:disabled) { background: #22424e; border-color: var(--gold); }
  }
  button.gross, button.gross:hover:not(:disabled) { background: var(--rot); border-color: var(--rot-dunkel); color: #fff; }
  @media (hover: hover) { button.gross:hover:not(:disabled) { background: var(--rot-hell); } }
  button.flach, button.flach:hover:not(:disabled) { background: transparent; }
  @media (hover: hover) { button.flach:hover:not(:disabled) { background: #22424e; } }
  button.gefahr, button.gefahr:hover:not(:disabled) { border-color: var(--rot); color: var(--rot-hell); background: transparent; }
  @media (hover: hover) { button.gefahr:hover:not(:disabled) { background: #3a1f24; } }
  .start-hinweis { background: #143847; border-color: #3f8fa8; color: var(--hell); }
  .start-vorschau svg { box-shadow: 0 2px 10px #00000060; }

  /* Wiese: Abendhimmel, mittelhell; Blasen deutlich heller als der Grund */
  .wiese {
    background: linear-gradient(180deg, #3d6875 0%, #56808c 55%, #5e7f64 80%, #4f7347 100%);
    box-shadow: inset 0 0 0 2px #7cc9e055;
  }
  .wiese-sonne { opacity: .8; }
  .wiese-wolke { opacity: .35; }
  .blase {
    background: radial-gradient(circle at 32% 28%, #ffffffee 0%, #e4f4fbd9 40%, #c9e6f3c4 70%, #acd8eeb3 100%);
    border-color: #ffffffcc;
    box-shadow: 0 2px 10px #00000050, inset 0 0 16px #ffffff66;
  }

  /* Bonus-Satzbau (gemeinsame Optik in ../bonus-satzbau.css) */
  .baustein.verb-keins { color: #fff; }
  .platz.aktiv { background: #3a3218; }
  .bonus-meldung.gut { color: #6ee08f; }
  .bonus-meldung.schlecht { color: #ff8f85; }
  .ergebnis .zahl { color: var(--gold); }

  /* Sprachauswahl aufgeklappt (Handy, im Spiel) */
  body[data-schirm="spiel"] #sprachAuswahl.offen { background: var(--karte); box-shadow: 0 6px 20px #00000080; }

  /* Gemeinsame Knöpfe (feedback.css, memo-knopf.css) – nur auf dieser Seite.
     „body“ davor, weil die gemeinsamen Dateien nach style.css geladen werden. */
  body .feedback-knopf, body .hell-knopf, body .memo-knopf {
    background: #143847; color: #d8eef4; border-color: #3f8fa8; box-shadow: 0 1px 5px #00000060;
  }
  /* Feedback-Fenster und „Als App installieren“-Fenster bleiben hell;
     Eingabefeld und Knöpfe darin ausdrücklich hell. */
  .feedback-panel, .pwa-fenster { color-scheme: light; }
  .feedback-panel textarea { background: #fff; color: #2a231c; }
  .feedback-panel button { background: #fff; color: #2a231c; }
  .feedback-panel .fb-senden { background: #0d2b52; color: #fff; }
  .pwa-fenster button { background: #fdcb52; color: #003a4d; }
  @media (hover: hover) {
    .feedback-panel button:hover:not(:disabled) { background: #f4efe6; border-color: #ddd4c2; }
    .feedback-panel .fb-senden:hover:not(:disabled) { background: #16407a; border-color: #16407a; }
    .pwa-fenster button:hover:not(:disabled) { background: #fedd82; border-color: #e0ac2b; }
  }
}
