/* AssistUK Arcade — Startseite (Kacheln, Profile, Fortschritt). Baut auf spiel.css auf (Tokens, .knopf, .titel, .leiste-unten …).
   Regeln: kern/LAYOUT.md. Kacheln, Profile, Figuren und Fortschritt blättern über rahmen.js seitenweise(). */
/* Hintergrund (05.11.2026, Lars: „schöner und moderner“): Nachtblau mit zwei ruhigen Lichtern, keine Bewegung */
body.startseite { background:
  radial-gradient(ellipse 70% 55% at 50% -12%, #24507e 0%, transparent 70%),
  radial-gradient(ellipse 45% 40% at 100% 105%, #ffd23f1c 0%, transparent 70%),
  radial-gradient(ellipse 45% 40% at 0% 105%, #3fa8ff1a 0%, transparent 70%),
  linear-gradient(180deg, #0d2034 0%, var(--grund) 55%, #060e18 100%); }
.startseite .bildschirm { background: none; display: flex; flex-direction: column; }
.startseite .bildschirm > .titel { flex: none; }

/* Kopf: links Profil, Mitte AssistUK Arcade, rechts Ansteuerung + Fortschritt */
.kopf { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: var(--luecke); }
.kopf > :first-child { justify-self: start; }
.kopf > :last-child { justify-self: end; display: flex; gap: var(--luecke); }
.marke-kopf { text-align: center; min-width: 0; }
.marke-kopf small { display: block; font-size: clamp(14px, 0.6vw + 1vh, 24px); letter-spacing: 3px; font-weight: 700; }
.marke-kopf .assistuk-marke { display: block; height: clamp(28px, 4.5vh, 48px); width: auto; margin: 0 auto 4px; filter: drop-shadow(0 2px 8px #000a); }
.marke-kopf h1 { margin: 0; font-size: clamp(30px, 2.2vw + 2.2vh, 64px); color: var(--gold); line-height: 1.02; text-shadow: 0 5px 0 var(--gold-dunkel), 0 10px 28px #000c;
  display: flex; align-items: center; justify-content: center; gap: 0.18em; }
.marke-kopf h1 .logo { width: 1em; height: 1em; border-radius: 22%; box-shadow: 0 4px 14px #000a; }
.marke-kopf p { margin: 4px 0 0; font-size: var(--s-text); color: var(--leise); }
.knopf.profil-knopf { flex-direction: row; min-height: var(--knopf-min-h); min-width: 200px; background: #00000080; text-align: left; }
.knopf.profil-knopf small { margin-top: 2px; color: var(--gold); font-weight: 700; }   /* gewählte Ansteuerung unter dem Namen */
.knopf.profil-knopf img, .figur img { width: 64px; height: 64px; border-radius: 14px; aspect-ratio: 1; }
.figur img { width: clamp(64px, 14vh, 150px); height: auto; border-radius: 0; filter: drop-shadow(0 6px 10px #0009); }

/* Begrüßung (05.11.2026, Lars „mache 1 bis 5“): die Figur des Profils groß und bewegt, daneben „Hallo, Koala!“ — ein Knopf
   (öffnet „Wer spielt?“). Die Figur läuft als Bildstreifen (startseite.js figurBewegen: einmal Gruß, dann „warten“). */
.kopf .knopf.profil-knopf.gruss { flex-direction: row; justify-content: flex-start; align-items: flex-end; gap: 12px; padding: 6px 18px 10px 8px; min-width: 220px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff12, #0000005c); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.knopf.profil-knopf.gruss > span:not(.figur-anim):not(.dwell-dot) { display: flex; flex-direction: column; align-self: center; min-width: 0; }
.knopf.profil-knopf.gruss b { overflow-wrap: anywhere; line-height: 1.15; }   /* lange Namen brechen um, statt aus dem Knopf zu ragen */
.knopf.profil-knopf.gruss b { font-size: var(--s-h3); color: #fff; }
.figur-anim { flex: none; height: clamp(64px, 10vh, 104px); aspect-ratio: var(--b) / var(--h); background-repeat: no-repeat;
  background-size: calc(var(--n, 1) * 100%) 100%; background-position: 0 0; filter: drop-shadow(0 6px 8px #000a); }
@media (max-height: 500px), (max-width: 400px) { .figur-anim { height: 56px; } .kopf .knopf.profil-knopf.gruss { min-width: 170px; padding-right: 12px; } }
/* Telefon hoch (≤ 560): Profil, Ansteuerung, Barrierefreiheit in einer Reihe — Figur über dem Gruß, wie die anderen Knöpfe */
@media (max-width: 560px) {
  .kopf .knopf.profil-knopf.gruss { flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 6px; text-align: center; }
  .kopf .knopf.profil-knopf.gruss > span:not(.figur-anim):not(.dwell-dot) { align-self: center; align-items: center; }
  .knopf.profil-knopf.gruss b { font-size: var(--s-klein); }
  .figur-anim { height: 48px; }
}
@keyframes figur-lauf { from { background-position-x: 0%; } to { background-position-x: 100%; } }
.figur-anim.gruss { animation: figur-lauf var(--dauer) steps(var(--n), jump-none) 1 both; }
.figur-anim.warten { animation: figur-lauf var(--dauer) steps(var(--n), jump-none) infinite; }
@media (prefers-reduced-motion: reduce) { .figur-anim { animation: none !important; background-position: 0 0 !important; } }
body:is(.bf-bewegung-wenig, .bf-ruhig, .bf-cvi) .figur-anim { animation: none !important; background-position: 0 0 !important; }

/* Kacheln (09.11.2026, Gruppen): Maß setzt startseite.js kachelMass() nach dem Platz (--kb × --kh); zentrierte Reihen,
   die letzte Reihe steht mittig. Rückfall ohne Skript-Maß: 220 × 180. */
.kacheln { --kb: 220px; --kh: 180px; flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; justify-content: center;
  align-content: flex-start; align-content: safe center; gap: var(--luecke); padding-top: var(--luecke); width: 100%; margin: 0 auto; }
.kacheln > .kachel { flex: none; width: var(--kb); height: var(--kh); min-height: 0; }
.kacheln > .kachel.weiter { width: var(--kb); }
.kachel { gap: 8px; border-radius: calc(var(--r-gross) + 4px); min-width: 0; border: 2px solid color-mix(in srgb, var(--k) 38%, transparent);
  background:
    linear-gradient(145deg, #ffffff22 0%, transparent 38%),
    radial-gradient(ellipse 120% 80% at 50% 0%, color-mix(in srgb, var(--k) 30%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--k) 14%, #14273d), #0b1622);
  box-shadow: 0 1px 0 #ffffff36 inset, 0 -1px 0 #00000028 inset, 0 10px 26px #0007; transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s; }
.kachel:hover { border-color: var(--k); box-shadow: 0 1px 0 #ffffff40 inset, 0 -1px 0 #00000028 inset, 0 0 0 4px color-mix(in srgb, var(--k) 30%, transparent), 0 12px 30px #0009; }
/* Tastaturfokus: der Fokusring des Hauses (var(--fokus) wie .knopf) und sofort — ohne Übergang */
.kachel:focus-visible { border-color: var(--k); box-shadow: 0 12px 30px #0009, var(--fokus); transition: none; }
.kachel img { width: clamp(52px, 10vh, 120px); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 6px 18px #0009, 0 0 0 2px #ffffff26; }
.kachel b { font-size: clamp(18px, 1vw + 1vh, 28px); color: color-mix(in srgb, var(--k) 70%, #fff); text-shadow: 0 2px 6px #000a; text-align: center; letter-spacing: 0.2px; }
.kachel .satz { font-size: var(--s-klein); color: var(--leise); text-align: center; line-height: 1.3; font-weight: 500; min-height: 2.6em; }   /* immer zwei Zeilen: Symbole stehen auf einer Höhe */
.kachel .sterne-zahl { font-size: var(--s-klein); color: #1d1d1f; background: var(--gold); font-weight: 700; padding: 2px 12px; border-radius: var(--r-pille); }

/* Kacheln mit Spielbild (05.11.2026): das Bild füllt die Kachel, unten ein dunkler Verlauf mit Symbol, Name und Satz.
   Ohne Bild (kein kern/assets/kacheln/<id>.webp) und in CVI bleibt die Kachel wie vorher (Symbol auf Farbverlauf). */
.kachel-text { display: contents; }
.kachel.mit-bild { position: relative; overflow: hidden; justify-content: flex-end; padding: 0; background: #0b1622; isolation: isolate;
  box-shadow: 0 1px 0 #ffffff2e inset, 0 -1px 0 #00000033 inset, 0 10px 26px #0007; }
.kachel.mit-bild:hover { box-shadow: 0 1px 0 #ffffff38 inset, 0 -1px 0 #00000033 inset, 0 0 0 4px color-mix(in srgb, var(--k) 30%, transparent), 0 12px 30px #0009; }
.kachel-bild { position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.02); }   /* Bild: style im HTML (url() in einer Variablen gälte relativ zu kern/css/) */
/* Dezenter Glanz auf dem Kachelbild (unter dem Text); CVI blendet das Bild samt Glanz aus */
.kachel-bild::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(145deg, #ffffff38 0%, #ffffff10 26%, transparent 52%); }
.kachel-bild::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0b162200 25%, color-mix(in srgb, var(--k) 18%, #0b1622d0) 62%, #0b1622f2 100%); }
.kachel.mit-bild .kachel-text { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 10px 12px 14px; }
.kachel.mit-bild .kachel-text img { width: clamp(44px, 7vh, 80px); }
.kachel.mit-bild .kachel-text b { color: #fff; text-shadow: 0 2px 8px #000; }
.kachel.mit-bild .satz { color: #e6edf5; min-height: 0; }
.kachel.mit-bild .sterne-zahl { position: absolute; top: 10px; right: 10px; }
body.bf-cvi .kachel-bild { display: none; }
body.bf-cvi .kachel.mit-bild { justify-content: center; }
body.bf-cvi .kachel.weiter .kachel-text { margin-block: auto; padding-top: 52px; }
/* Ruhige Bewegung beim Ansehen (Blick/Maus ruht darauf, Tasten- oder Scan-Fokus): das Bild wandert langsam — nie bei
   „Bewegung reduzieren“, „Ruhiger Hintergrund“, CVI oder prefers-reduced-motion */
@keyframes kachel-schweben { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }
@media (prefers-reduced-motion: no-preference) {
  body:not(.bf-bewegung-wenig):not(.bf-ruhig):not(.bf-cvi) .kachel.mit-bild:is(:hover, :focus-visible, :focus) .kachel-bild { animation: kachel-schweben 7s ease-in-out infinite alternate; }
}

/* „Weiterspielen“: das zuletzt geöffnete Spiel vorn, gleich groß wie die übrigen Kacheln. */
.kachel.weiter { border-color: var(--gold); border-width: 3px; }
.kachel.weiter .kachel-text { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 12px 14px; }
.kachel.weiter .kachel-text b { font-size: clamp(18px, 1vw + 1vh, 28px); text-align: center; }
.kachel.weiter .satz { text-align: center; }
@media (max-height: 500px) { .kachel.weiter .satz { display: none; } .kachel.weiter .kachel-text b { align-self: center; } .kachel.weiter .kachel-text img { grid-row: auto; } }
.weiter-marke { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-pille); background: var(--gold); color: #1d1d1f; font-weight: 800; font-size: var(--s-text); box-shadow: 0 4px 14px #0008; }
.weiter-marke svg { width: 1.2em; height: 1.2em; }
.kachel.playlist-einstieg { --k: #72c3e5; background: radial-gradient(ellipse at 50% 0%, #315b75, #102637 75%); border-color: #72c3e580; }
.kachel.support-einstieg { --k: #ffad91; background: radial-gradient(ellipse at 50% 0%, #774956, #282036 80%); border-color: #ffad9180; }
.assistuk-marke { display: block; height: clamp(22px, 3.2vh, 36px); width: auto; margin: 0 auto 4px; filter: drop-shadow(0 2px 8px #000a); }
.assistuk-marke-klein, .assistuk-marke-info { display: block; height: 0.55em; width: auto; margin: 0 auto 0.12em; filter: drop-shadow(0 2px 6px #0008); }
.marke-kopf .assistuk-marke { margin-bottom: 2px; }
.support-seite { display: flex; flex-direction: column; align-items: center; gap: var(--luecke); }
.support-seite .titel { flex: none; margin: 0; }
/* blättern über seitenweise() (LAYOUT.md) — Absätze/Karten sind direkte Kinder (kern/unterstuetzen.js) */
.support-inhalt { flex: 1 1 auto; min-height: 0; width: min(100%, 1100px); display: flex; flex-direction: column; align-items: center; gap: var(--luecke); }
@media (min-width: 700px) and (min-height: 651px) {
  .support-inhalt { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; align-content: start; }
  .support-inhalt > :not(.support-karte) { grid-column: 1 / -1; }
}
.support-text, .support-punkte, .support-ehrlich { max-width: 900px; width: 100%; text-align: left; }
.support-text { margin: 0; font-size: var(--s-text); line-height: 1.35; }
.support-punkte { margin: 0; padding-left: 1.2em; font-size: var(--s-text); line-height: 1.4; }
.support-punkte li { margin: 0.25em 0; }
.support-karte { width: min(100%, 530px); min-width: 0; min-height: 330px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: var(--innen); border: 2px solid var(--rand-leise); border-radius: var(--r-gross); background: var(--flaeche); text-align: center; }
.support-karte h2, .support-karte p { margin: 0; }
.support-karte h2 { font-size: var(--s-h3); }
.support-karte p { font-size: var(--s-klein); line-height: 1.35; overflow-wrap: anywhere; }
.support-qr { flex: none; width: clamp(110px, 18vh, 160px); aspect-ratio: 1; background: #fff; border-radius: 10px; overflow: hidden; }
.support-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.support-konto { margin: 0; text-align: left; font-size: var(--s-klein); line-height: 1.35; width: 100%; }
.support-konto dt { font-weight: 700; margin-top: 0.35em; }
.support-konto dd { margin: 0; }
.support-nr { font-family: ui-monospace, monospace; letter-spacing: 0.02em; }
.support-link { min-height: var(--knopf-min-h); width: min(100%, 360px); color: var(--text); text-decoration: none; }
.support-ehrlich { margin: 0; font-size: var(--s-text); line-height: 1.35; }
.support-mehr { display: flex; flex-wrap: wrap; gap: var(--luecke); justify-content: center; width: 100%; }
.support-mehr .support-link { width: auto; min-width: min(100%, 280px); }
@media (max-height: 650px) {
  .support-karte { min-height: 165px; flex-direction: row; flex-wrap: wrap; padding: 6px; }
  .support-karte h2 { width: 100%; }
  .support-qr { width: 100px; }
  .support-karte p { flex: 1 1 140px; }
  .support-link { flex: 1 1 180px; }
}
@media (prefers-reduced-motion: no-preference) { .kachel:hover { transform: translateY(-2px); } }
.hinweis-unten { position: fixed; left: 260px; right: 16px; bottom: max(30px, env(safe-area-inset-bottom)); text-align: center; color: var(--leise); font-size: var(--s-klein); }
.start-arcade .leiste-unten > .schritt { flex: 1 1 0; }
.start-arcade .leiste-unten.hat-seiten > .schritt { display: none; }
/* Auf schmalen Hochformaten bleibt die Seitenangabe zwischen den großen Pfeiltasten lesbar. */
@media (min-width: 360px) and (max-width: 560px) and (min-height: 501px) {
  :lang(de) .start-arcade .seiten-nav .schritt { max-width: none; white-space: nowrap; }
}

/* Profile und Figuren */
.figuren, .profile { --spalten: 4; display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); gap: var(--luecke); max-width: 1300px; width: 100%; margin: 0 auto; }
.figur { min-height: 150px; min-width: 0; }
.figur.gewaehlt { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 25%, var(--flaeche)); }
.namensfeld { flex: none; display: flex; gap: 14px; align-items: center; justify-content: center; margin: var(--luecke) auto 0; font-size: var(--s-h3); }
.namensfeld input { font: inherit; font-size: var(--s-h3); min-height: 64px; width: min(420px, 60vw); padding: 0 16px; border-radius: var(--r-mittel); border: 3px solid #ffffff60;
  background: var(--flaeche); color: #fff; }
.profile-seite .leiste-unten > .schritt { flex: 1 1 0; }

/* Fortschritt: je Spiel eine Karte, zwei Spalten */
.fortschritt { display: grid; grid-template-columns: 1fr 1fr; gap: var(--luecke); max-width: 1300px; width: 100%; margin: 0 auto; align-content: start; }
.fs-karte { display: flex; gap: 16px; align-items: center; background: var(--flaeche-zeile); border: 2px solid var(--rand-leise); border-radius: var(--r-mittel); padding: var(--innen) 16px; }
.fs-karte img { width: 64px; height: 64px; border-radius: 14px; aspect-ratio: 1; }
.fs-karte b { font-size: var(--s-h3); color: var(--k); display: block; }
.fs-karte span { font-size: var(--s-text); color: var(--leise); }
.fs-balken { height: 12px; border-radius: 6px; background: #ffffff20; margin-top: 6px; overflow: hidden; }
.fs-balken i { display: block; height: 100%; background: var(--k); }
.fs-karte > div { flex: 1; min-width: 0; }
.fs-seite .leiste-unten > .schritt { flex: 1 1 0; }

/* ---------- Anpassung an den Bildschirm ---------- */
@media (max-width: 900px) { .figuren, .profile { --spalten: 2; } .fortschritt { grid-template-columns: 1fr; } }
.kacheln:not(.mit-satz) .kachel:not(.weiter) .satz { display: none; }
@media (max-height: 780px) { .figur { min-height: var(--knopf-h); } }
/* schmal und hoch (iPad hoch): Kopf in zwei Reihen — „AssistUK Arcade“ oben, Profil links und Knöpfe rechts darunter */
@media (max-width: 960px) and (min-height: 600px), (orientation: portrait) and (min-height: 600px) {
  .kopf { grid-template-columns: 1fr 1fr; grid-template-areas: "mitte mitte" "links rechts"; row-gap: var(--luecke); }
  .kopf > :nth-child(1) { grid-area: links; }
  .kopf { grid-template-columns: minmax(0, 1fr) auto; }
  .kopf .knopf.profil-knopf.gruss { min-width: 0; max-width: 100%; }
  .kopf > :nth-child(2) { grid-area: mitte; }
  .kopf > :nth-child(3) { grid-area: rechts; }
}
/* Telefon hoch, sehr schmal (≤ 420): Gruß in eigener Reihe, sonst bleibt neben Ansteuerung + Barrierefreiheit unter
   120 px (Prüfwerk 07.11.2026: 111 × 98 bei 375 × 667) */
@media (max-width: 420px) and (min-height: 600px) {
  .kopf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mitte" "links" "rechts"; }
  .kopf .knopf.profil-knopf.gruss { min-width: 120px; justify-self: stretch; }
  .kopf > :nth-child(3) { justify-self: center; }
}
/* Hochformat: Kacheln nicht in die Länge ziehen — Reihen höchstens so hoch wie nötig, mittig */
@media (orientation: portrait) and (min-height: 600px) {
  .profile, .figuren { align-content: start; }
}
/* kompakt (Handy quer): eine flache Kopfzeile, Kacheln in einer Reihe, Knöpfe mit Symbol über dem Text */
@media (max-height: 500px) {
  .kopf { align-items: center; }
  .marke-kopf small { font-size: 11px; letter-spacing: 2px; }
  .marke-kopf h1 { font-size: 30px; text-shadow: 0 3px 0 var(--gold-dunkel), 0 6px 16px #000c; }
  .marke-kopf h1 .logo, .marke-kopf p { display: none; }
  .knopf.profil-knopf { min-width: var(--knopf-b); max-width: 160px; flex-direction: column; gap: 2px; padding: 6px; font-size: var(--s-klein); }
  .knopf.profil-knopf img, .figur img { width: 40px; height: 40px; border-radius: 10px; }
  .figuren, .profile { --spalten: 4; }
  .kachel { gap: 2px; padding: 6px; }
  .kachel img { width: 44px; border-radius: 10px; }
  .kachel b { font-size: 16px; }
  .kachel .sterne-zahl { font-size: 12px; }
  .figur { min-height: var(--knopf-min-h); }
  .namensfeld input { min-height: 52px; }
  .start-arcade .leiste-unten > .schritt { display: none; }
  .fortschritt { grid-template-columns: 1fr 1fr; }
  .fs-karte { gap: 10px; padding: 6px 10px; }
  .fs-karte img { width: 36px; height: 36px; border-radius: 8px; }
  .fs-karte b { font-size: 16px; } .fs-karte span { font-size: 13px; }
  .fs-balken { height: 8px; margin-top: 3px; }
}
/* Handy hoch: Kopf gestapelt, Kacheln zwei Spalten, Hinweis unten weg (die Kacheln sprechen für sich) */
@media (max-width: 560px) {
  .kopf { display: flex; flex-wrap: wrap; justify-content: center; }
  .kopf > .marke-kopf { order: -1; flex: 1 1 100%; }
  .kopf > :last-child { display: contents; }
  .kopf > .knopf, .kopf > :last-child > .knopf { flex: 1 1 100px; min-width: var(--knopf-b); flex-direction: column; gap: 4px; padding: 6px; font-size: var(--s-klein); }
  .knopf.profil-knopf img { width: 40px; height: 40px; }
  .marke-kopf h1 { font-size: 40px; }
  .marke-kopf p { font-size: var(--s-klein); }
  .figuren, .profile { --spalten: 2; }
  .kachel .satz { display: none; }
  .start-arcade .leiste-unten > .schritt { display: none; }
  .namensfeld { flex-direction: column; gap: 6px; }
  .namensfeld input { width: 100%; }
  .fs-karte img { width: 44px; height: 44px; }
}
/* iPhone SE/mini hoch (≤ 400 × 700): „AssistUK Arcade“ in einer Zeile ohne Untertitel (der Kopf hat 2 + 1 Knöpfe — sonst
   bleibt für keine Kachelreihe Platz), Namensfeld neben seiner Beschriftung */
@media (max-width: 400px) and (max-height: 700px) {
  .marke-kopf { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .marke-kopf small { font-size: 11px; letter-spacing: 2px; }
  .marke-kopf h1 { font-size: 30px; }
  .marke-kopf h1 .logo, .marke-kopf p { display: none; }
  .kachel { gap: 2px; padding: 6px; }
  .kachel img { width: 44px; border-radius: 10px; }
  .kachel b { font-size: 16px; }
  .figur { min-height: var(--knopf-min-h); }
  .knopf.figur img { width: 44px; height: 44px; }
  .namensfeld { flex-direction: row; gap: 8px; font-size: var(--s-klein); }
  .namensfeld input { flex: 1 1 0; min-width: 0; width: auto; min-height: 52px; }
}
/* breite Bildschirme: alle 12 Figuren auf einer Seite (05.11.2026) — nach der Grundregel .figuren { --spalten: 4 } */
@media (min-width: 1400px) { .figuren { --spalten: 6; max-width: 1800px; } }

/* Offline (08.11.2026): nur ohne Netz sichtbar — bereit: kleines Häkchen „Offline bereit“; noch nicht gespeichert: Kachel
   abgeschwächt mit „Braucht Internet“ (ein Klick erklärt es, startseite.js). Die Marke selbst bleibt voll lesbar. */
.offline-marke { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: var(--r-pille); background: #0b1622f2; color: #fff; font-size: var(--s-klein); font-weight: 700;
  border: 2px solid #ffffffa0; white-space: nowrap; pointer-events: none; }
.offline-marke.bereit { background: #14532d; border-color: #86efac; }
.offline-marke svg { width: 1.3em; height: 1.3em; }
.kachel.offline-fehlt { border-style: dashed; border-color: #ffffff60; box-shadow: none; }
.kachel.offline-fehlt :is(.kachel-bild, .kachel-text > *, .sterne-zahl, .weiter-marke) { opacity: 0.4; filter: grayscale(1); }
.kachel.weiter .offline-marke { left: auto; right: 12px; transform: none; }

/* Kopf mit drittem Knopf „Vollbild“ (08.11.2026, Prüfwerk): schmal hoch (720 × 1280, 768 × 1366) — die drei Knöpfe rechts mit
   Symbol über dem Text, sonst bleiben für „Hallo, …!“ nur 46 px; iPhone SE quer (568 × 320) — der Name „AssistUK Arcade“ nur
   für Vorlesen (er lag dort über „Ansteuerung“), Knöpfe nach Ausnahme 4 (≥ 96 × 72, kern/LAYOUT.md) */
@media (max-width: 960px) and (min-height: 600px), (orientation: portrait) and (min-height: 600px) {
  .kopf > :nth-child(3) .knopf.glas { flex-direction: column; gap: 4px; min-width: var(--knopf-b); padding: 6px 12px; }
  .kopf > :nth-child(3) .knopf.glas span:not(.dwell-dot) { font-size: var(--s-klein); line-height: 1.1; }
}
@media (max-height: 420px) and (max-width: 820px) {   /* QA 23.11.: auch 667 × 375 und Safari 750 × 342 (vorher Kopf in zwei Reihen, Kategorien 81 × 45) */
  .kopf { grid-template-columns: auto minmax(0, 1fr); }
  .kopf > .marke-kopf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .kopf .knopf.glas { min-width: 96px; }
  .kopf .support-kopf, .start-breit .kopf .support-kopf { min-width: 96px; padding: 4px 6px; }   /* QA 23.11.: lag bei 568 × 320 unter „Ansteuerung“ */
  .kopf .knopf.profil-knopf.gruss, .start-breit .kopf .knopf.profil-knopf.gruss { min-width: 112px; max-width: 124px; padding-right: 8px; gap: 6px; }
  .kopf .profil-bereich, .kopf > :last-child { gap: 6px; }
  .kopf .knopf.profil-knopf.gruss, .start-breit .kopf .knopf.profil-knopf.gruss { flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 6px; text-align: center; }
  .kopf .knopf.profil-knopf.gruss > span:not(.figur-anim):not(.dwell-dot) { align-self: center; align-items: center; }
  .kopf .knopf.profil-knopf.gruss b { font-size: 14px; } .kopf .figur-anim, .start-breit .figur-anim { height: 40px; }
  .kopf > :last-child .knopf.glas, .start-breit .kopf > :last-child .knopf.glas { flex-direction: column; gap: 2px; padding: 4px 6px; }
  .kopf > :last-child .knopf.glas span:not(.dwell-dot), .kopf .support-kopf span:not(.dwell-dot) { font-size: 12px; line-height: 1.1; }
}
/* 23.11.2026 (Kern-Fix, Messung 667 × 375): Ausnahme 4 (≥ 96 × 72) gilt nur bis 640 px Breite — darüber ist für fünf
   Kopfknöpfe à 120 Platz (5 × 120 + Lücken < 667). Der Gruß bleibt schmal (Name wird kleiner, startseite.js namenEinpassen). */
@media (max-height: 420px) and (min-width: 641px) and (max-width: 820px) {
  .kopf .knopf.glas, .kopf .support-kopf, .start-breit .kopf .support-kopf { min-width: 120px; }
  .kopf .knopf.profil-knopf.gruss, .start-breit .kopf .knopf.profil-knopf.gruss { min-width: 120px; max-width: 132px; }
}
/* Winzig hoch (≤ 420 × ≤ 619, iPhone SE 1. Generation 320 × 568; QA-Audit N1): Marke nur für Vorlesen, Impressum steht im
   Kopf neben Vollbild (startseite.js WINZIG) — so bleibt unter 3 × 2 Kopfknöpfen und der Blätterleiste eine Kachelreihe */
@media (max-width: 420px) and (max-height: 619px) {
  .start-arcade .kopf > .marke-kopf, .start-arcade .kopf > .marke-kopf > * { position: absolute; top: 0; left: 0; width: 1px; height: 1px;
    margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
/* Telefon hoch mit vier Kopfknöpfen: 2 + 2 statt 3 + 1 (ruhiger; gleiche Höhe) */
@media (max-width: 560px) {
  .kopf:has(.vollbild-knopf) > .knopf, .kopf:has(.vollbild-knopf) > :last-child > .knopf { flex-basis: 40%; }
}

/* ======================================================================= Gruppen (09.11.2026)
   Lars: „Gruppiere sinnvoll und mache es modern und schön.“ Definition kern/gruppen.json; startseite.js baut
   breit: Reiterleiste (.reiter-leiste) unter dem Kopf, darunter die Kacheln der gewählten Gruppe;
   klein (Telefon hoch/quer): Gruppen-Karten als erste Seite, in der Gruppe vorn die Karte „Alle Gruppen“.
   Jede Gruppe hat ihre Akzentfarbe --g (Reiter, Karte, schmaler Streifen unten an den Kacheln). */
.reiter-leiste { --rs: 7; flex: none; display: grid; grid-template-columns: repeat(var(--rs), minmax(0, 1fr)); gap: var(--luecke);
  width: 100%; margin: var(--luecke) auto 0; }

/* Compact-Hub Höhe ≤ 600 (17.11.2026, Autarkie Residual): kompaktere Kopfzeile + ein flaches Reiter-Band.
   Vorher bei 1024 × 600: Kopf + zwei Reiterreihen → Kachelfläche ~52 px, Hub-Kacheln ~75 × 42 (unter CVI 120 × 96).
   Marke AssistUK Arcade bleibt sichtbar. startseite.js reiterMass erzwingt eine Reihe. */
@media (max-height: 600px) {
  .start-breit .kopf { align-items: center; }
  .start-breit .marke-kopf .assistuk-marke { height: clamp(22px, 3.8vh, 34px); margin-bottom: 0; }
  .start-breit .marke-kopf h1 { font-size: clamp(24px, 3.6vh, 32px); text-shadow: 0 3px 0 var(--gold-dunkel), 0 6px 16px #000c; }
  .start-breit .marke-kopf h1 .logo { display: none; }
  .start-breit .figur-anim { height: 48px; }
  .start-breit .kopf .knopf.profil-knopf.gruss { min-width: 160px; max-width: 220px; padding: 4px 12px 6px 6px; gap: 8px; }
  .start-breit .kopf .knopf.glas { min-width: var(--knopf-b); padding: 6px 10px; font-size: var(--s-klein); }
  .start-breit .kopf .support-kopf { min-width: var(--knopf-b); padding: 6px 8px; }
  .start-breit .reiter-leiste { margin-top: 6px; gap: 6px; }
  .start-breit .knopf.reiter { flex-direction: row; justify-content: center; gap: 4px; padding: 4px 6px; font-size: var(--s-klein);
    line-height: 1.05; min-height: var(--knopf-min-h); }
  .start-breit .reiter-symbol { width: 28px; }
  .start-breit .reiter-zahl { top: 2px; right: 3px; min-width: 1.5em; padding: 0 4px; font-size: 11px; }
  .start-breit .reiter-breit .knopf.reiter { padding: 6px 10px; gap: 8px; }
}
/* Reiter-Blätter (23.11.2026, M1): Reiter anderer Blätter und der Knopf „Weitere Gruppen“, solange alle passen */
.reiter-leiste > [hidden] { display: none !important; }
.knopf.reiter.reiter-mehr { --g: #c9d2e8; }
.reiter-mehr .reiter-blatt { font-size: 11px; font-weight: 600; opacity: .85; white-space: nowrap; }
.knopf.reiter { --g: var(--gold); min-width: 0; min-height: var(--knopf-min-h); padding: 8px 10px 10px; gap: 4px; flex-direction: column;
  border-radius: var(--r-gross); border: 2px solid color-mix(in srgb, var(--g) 42%, transparent); color: #fff; text-align: center;
  background:
    linear-gradient(145deg, #ffffff20 0%, transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--g) 15%, #142a40), #0b1622);
  box-shadow: 0 1px 0 #ffffff30 inset, 0 -1px 0 #00000022 inset, 0 8px 20px #0006; font-size: var(--s-text); font-weight: 700; line-height: 1.12;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.knopf.reiter:hover { border-color: var(--g); box-shadow: 0 1px 0 #ffffff3a inset, 0 -1px 0 #00000022 inset, 0 8px 22px #0007; }
/* Tastaturfokus sichtbar (die eigene Schattenregel oben verdeckte sonst den Fokusring) */
.knopf.reiter:focus-visible { border-color: var(--g); box-shadow: 0 8px 20px #0006, 0 0 0 3px #000, 0 0 0 6px var(--g); }
.reiter-symbol { flex: none; display: grid; place-items: center; width: clamp(36px, 4.4vmin, 52px); aspect-ratio: 1; border-radius: 50%;
  color: var(--g); background: color-mix(in srgb, var(--g) 20%, transparent); }
.reiter-symbol svg { width: 64%; height: 64%; }
.reiter-name { overflow-wrap: break-word; }
.reiter-zahl { position: absolute; top: 6px; right: 8px; min-width: 1.9em; padding: 1px 7px; border-radius: var(--r-pille); text-align: center;
  font-size: var(--s-klein); font-weight: 800; color: var(--text); background: #ffffff1f; }
/* gewählt: die Gruppe leuchtet in ihrer Farbe, Schrift dunkel */
.knopf.reiter.gewaehlt { background: linear-gradient(180deg, color-mix(in srgb, var(--g) 88%, #fff), var(--g)); color: #0d1520;
  border-color: color-mix(in srgb, var(--g) 55%, #fff); box-shadow: 0 1px 0 #ffffff80 inset, 0 10px 26px color-mix(in srgb, var(--g) 32%, transparent), 0 8px 20px #0007; }
.knopf.reiter.gewaehlt .reiter-symbol { color: #0d1520; background: #0d152020; }
.knopf.reiter.gewaehlt .reiter-zahl { color: #0d1520; background: #0d152024; }
.knopf.reiter.gewaehlt:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
/* breite Reiter (≥ 300 px, startseite.js reiterMass): Symbol, Name und Anzahl in einer Zeile */
.reiter-breit .knopf.reiter { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 10px 16px; }
.reiter-breit .reiter-zahl { position: static; margin-left: auto; }

/* Kacheln: unten ein schmaler Streifen in der Gruppenfarbe; „Alle Spiele“: Gruppenzeichen oben links */
.kachel.mit-bild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--g, var(--k)); opacity: 0.9; }
.kachel-oben { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.kachel-gruppe { display: grid; place-items: center; width: clamp(34px, 3.6vmin, 46px); aspect-ratio: 1; border-radius: 50%;
  background: #0b1622e0; color: var(--g); border: 2px solid color-mix(in srgb, var(--g) 70%, transparent); box-shadow: 0 3px 10px #0008; }
.kachel-gruppe svg { width: 62%; height: 62%; }
.zuletzt-marke { padding: 4px 12px; border-radius: var(--r-pille); background: #0b1622e8; color: #fff; font-weight: 700; font-size: var(--s-klein);
  border: 2px solid #ffffff70; white-space: nowrap; }
.kachel.zuletzt { border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
/* große Kacheln (Gruppe mit wenigen Spielen): größeres Symbol und Name */
.kacheln.mit-satz .kachel.mit-bild .kachel-text { padding: 14px 18px 20px; }
.kacheln.mit-satz .kachel b { font-size: clamp(22px, 1.2vw + 1.2vh, 40px); }
.kacheln.mit-satz .kachel.mit-bild .kachel-text img { width: clamp(52px, 8vh, 96px); }
.kacheln.mit-satz .kachel .satz { font-size: var(--s-text); }

/* Gruppen-Karten (klein, erste Seite) und „Alle Gruppen“ */
.kachel.gruppen-karte { justify-content: center; gap: 6px; padding: 10px; color: #fff;
  border-color: color-mix(in srgb, var(--g) 50%, transparent);
  background:
    linear-gradient(145deg, #ffffff26 0%, transparent 42%),
    radial-gradient(ellipse 110% 75% at 50% 0%, color-mix(in srgb, var(--g) 30%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--g) 12%, #14273d), #0b1622);
  box-shadow: 0 1px 0 #ffffff38 inset, 0 -1px 0 #00000028 inset, 0 10px 26px #0007; }
.kachel.gruppen-karte:hover { box-shadow: 0 1px 0 #ffffff44 inset, 0 -1px 0 #00000028 inset, 0 0 0 4px color-mix(in srgb, var(--g) 30%, transparent), 0 12px 30px #0009; }
.gk-symbol { flex: none; display: grid; place-items: center; width: clamp(44px, 8vmin, 80px); aspect-ratio: 1; border-radius: 50%;
  color: var(--g); background: color-mix(in srgb, var(--g) 20%, transparent); }
.gk-symbol svg { width: 62%; height: 62%; }
.gruppen-karte b { font-size: var(--s-h3); color: #fff; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.gk-zahl { font-size: var(--s-klein); color: var(--leise); font-weight: 600; }
.gk-bilder { display: flex; gap: 6px; }
.gk-bilder img { width: clamp(28px, 4.5vmin, 44px); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 3px 8px #0008; }
@media (max-height: 640px), (max-width: 420px) { .gk-bilder { display: none; } }
/* flache Karten (< 130 hoch, Telefon): Symbol links, Name und Anzahl rechts */
.kacheln.flach .kachel.gruppen-karte { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 12px; text-align: left; }
.kacheln.flach .gruppen-karte b { text-align: left; font-size: var(--s-text); }
.kacheln.flach .gruppen-karte .gk-zahl { display: none; }
.kacheln.flach .gruppen-karte .gk-symbol { width: 44px; }
.kacheln.flach .gk-bilder { display: none; }
/* flache Spielkacheln (Telefon quer, 6 Spalten ≈ 130 breit): weniger Rand um den Namen — „Schneckenrennen“,
   „Sternengeschichte“ passen so noch ganz (12 px ist die Untergrenze von namenEinpassen) */
.kacheln.flach .kachel.mit-bild:not(.weiter) .kachel-text { padding: 6px 5px 10px; }
/* flaches „Weiterspielen“: Marke oben, Name darunter (sonst lag die Marke über dem Namen) */
.kacheln.flach .kachel.weiter .kachel-text { padding: 44px 14px 6px; }
.kacheln.flach .kachel.weiter .kachel-text img { display: none; }
.kacheln.flach .kachel.weiter .kachel-text b { font-size: var(--s-h3); }
.kachel.zu-gruppen { justify-content: center; gap: 6px; padding: 10px; border: 2px dashed color-mix(in srgb, var(--g) 65%, #fff);
  background: linear-gradient(145deg, #ffffff1c 0%, transparent 40%), linear-gradient(180deg, #ffffff10, #0b1622); color: #fff; }
.kachel.zu-gruppen > svg { width: 40px; height: 40px; }
.kachel.zu-gruppen b { font-size: var(--s-h3); color: #fff; }
.zg-jetzt { display: inline-flex; align-items: center; gap: 6px; font-size: var(--s-klein); color: var(--leise); font-weight: 600; text-align: center; }
.zg-jetzt svg { flex: none; color: var(--g); }
@media (max-height: 500px) { .kachel.zu-gruppen > svg { width: 28px; height: 28px; } .gruppen-karte .gk-zahl { display: none; } .gk-symbol { width: 40px; } }

/* Telefon (klein) in einer Gruppe oder „Alle Spiele“ (14.11.2026, 104 Spiele): Profil, Ansteuerung, Barrierefreiheit,
   Vollbild und Impressum nur auf der Gruppen-Seite — sie liegt eine Wahl entfernt („Alle Gruppen“, Escape).
   Vorher blieb bei 375 × 667 unter Kopf (2 × 2 Knöpfe) und zweireihiger Leiste Platz für eine Kachelreihe: „Alle Gruppen“
   + EIN Spiel je Blatt. Die Übersicht nutzt höchstens zwei Reihen und blättert weitere Spiele um. */
.start-klein.in-gruppe .kopf > :not(.marke-kopf) { display: none; }
.start-klein.in-gruppe .leiste-unten > .knopf[data-aktion="datenschutz"] { display: none; }
/* Telefon quer: auch „AssistUK Arcade“ weg — so passen zwei Kachelreihen (die Karte „Alle Gruppen“ nennt die Gruppe) */
@media (max-height: 500px) { .start-klein.in-gruppe .kopf { display: none; } }

/* sanftes Einblenden nach einer Gruppenwahl — nie bei „Bewegung reduzieren“, „Ruhiger Hintergrund“, CVI, prefers-reduced-motion */
/* nur Deckkraft: eine Verschiebung (transform) verfälschte das Messen beim Blättern (getBoundingClientRect) */
@keyframes kachel-ein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  body:not(.bf-bewegung-wenig):not(.bf-ruhig):not(.bf-cvi) .kacheln.einblenden > .kachel { animation: kachel-ein 0.26s ease-out both; }
  body:not(.bf-bewegung-wenig):not(.bf-ruhig):not(.bf-cvi) .kacheln.einblenden > .kachel:nth-child(2) { animation-delay: 0.03s; }
  body:not(.bf-bewegung-wenig):not(.bf-ruhig):not(.bf-cvi) .kacheln.einblenden > .kachel:nth-child(3) { animation-delay: 0.06s; }
  body:not(.bf-bewegung-wenig):not(.bf-ruhig):not(.bf-cvi) .kacheln.einblenden > .kachel:nth-child(n+4) { animation-delay: 0.09s; }
}
/* CVI: Reiter und Karten wie alle Knöpfe (Baustein); Gruppenzeichen in der Kachel und Vorschaubilder fallen weg */
body.bf-cvi .reiter-symbol, body.bf-cvi .gk-symbol { background: none !important; color: inherit !important; }
body.bf-cvi .reiter-zahl { background: none !important; color: inherit !important; border: 2px solid currentColor; }
body.bf-cvi .kachel.mit-bild::after { display: none; }
body.bf-cvi .kachel-bild::before { display: none; }
body.bf-cvi .zuletzt-marke { background: #000; }
body.bf-cvi .zg-jetzt svg { color: inherit; }   /* „Alle Gruppen“: Gruppenzeichen in der CVI-Farbe, nicht in der Gruppenfarbe */

/* 4K und größer (≥ 2400 × 1300): Ziele, Schrift und Abstände wachsen mit — sonst wirkt die Seite auf großen Bildschirmen winzig */
@media (min-width: 2400px) and (min-height: 1300px) {
  body.startseite { --knopf-min-h: 132px; --knopf-b: 168px; --knopf-h: 150px; --zurueck-b: 300px; --zurueck-h: 150px; --leiste-h: 150px;
    --luecke: 22px; --s-klein: 22px; --s-text: 28px; --s-knopf: 32px; --s-h3: 32px; --r-gross: 28px; }
  .startseite .knopf.klein svg, .startseite .leiste-unten .knopf svg { width: 60px; height: 60px; }
  .startseite .marke-kopf h1 { font-size: 92px; }
  .startseite .marke-kopf small { font-size: 30px; }
  .startseite .figur-anim { height: 140px; }
  .startseite .kachel b { font-size: 40px; }
}

/* Namen nie mitten im Wort umbrechen (09.11.2026, Lars): Umbruch nur an Leerzeichen und vorhandenen Bindestrichen, ohne
   eingefügten Trennstrich; passt ein Wort nicht, verkleinert startseite.js namenEinpassen() nur diesen Namen. max-width hält
   den Namen in seinem Knopf, damit das Messen (scrollWidth > clientWidth) greift. */
.knopf.profil-knopf.gruss b, .kachel b, .reiter-name, .fs-karte b {
  overflow-wrap: normal !important; word-break: normal !important; hyphens: manual; max-width: 100%; min-width: 0; }
/* Telefon quer: der Gruß darf breiter werden (links ist Platz) — „Hallo, Maulwurf!“ in zwei ganzen Wörtern */
@media (max-height: 500px) { .kopf .knopf.profil-knopf.gruss { max-width: 260px; } }

/* Lieblingsspiele: Auswahl, Ablauf und Fehlermeldungen. */
.playlist-seite{display:flex;flex-direction:column;align-items:center;gap:var(--luecke);overflow:auto;padding-bottom:calc(var(--knopf-h) + 24px)}
.playlist-hinweis,.playlist-leer{max-width:1000px;text-align:center;font-size:var(--s-text);margin:0}
.playlist-leer{font-weight:700}
.playlist-liste{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--luecke);width:min(95%,1000px)}
.playlist-liste .knopf{min-height:var(--knopf-min-h)}
.playlist-aktionen{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--luecke);width:min(95%,1000px)}
.playlist-aktionen .knopf{width:auto;flex:1 1 200px}
.playlist-auswahl{margin:0;text-align:left;font-size:var(--s-text)}
.playlist-auswahl li{list-style:none}
@media(max-width:520px){.playlist-liste{grid-template-columns:1fr}.playlist-aktionen .knopf{flex-basis:42%}}

@media(max-width:520px){.playlist-aktionen .knopf,.playlist-aktionen .knopf.haupt{flex-direction:column;gap:4px;font-size:16px;padding:8px}.playlist-aktionen .knopf svg{width:28px;height:28px}}

.playlist-aktionen{gap:28px}

@media (min-width:521px) and (max-height:420px){.playlist-aktionen .knopf{flex-basis:160px}}

.playlist-seite{gap:14px}

.playlist-liste{gap:24px}

@media(max-height:420px){.playlist-seite > p{margin:0}.playlist-aktionen .knopf{height:80px;min-height:72px}}

.playlist-auswahl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 16px;width:min(90%,700px);padding:0}

@media(max-height:420px){.playlist-aktionen .knopf,.playlist-aktionen .knopf.haupt{font-size:16px;gap:6px;padding:6px}.playlist-aktionen .knopf svg{width:28px;height:28px}}

.playlist-status-auswahl{width:min(95%,1000px);min-height:2.4em;margin:0;text-align:center;line-height:1.2;font-size:18px;color:inherit}

.playlist-liste .knopf span:not(.dwell-dot){min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:center}

/* Spiel-Hülle (kern/huelle.js, 14.11.2026): im Vollbild läuft das Spiel in einer Ebene über der Startseite — ganzer Schirm,
   kein Rand; die Startseite darunter ist unsichtbar (inert), damit nichts durchscheint oder mitliest */
.spiel-huelle { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0; z-index: 10000;
  background: #000; display: block; }
body.huelle-offen > :not(.spiel-huelle, .lade-schicht) { visibility: hidden; }
/* Ladeanzeige zwischen Wahl und Spiel (startseite.js ladeSchicht) — über allem, auch über der Hülle */
.lade-schicht { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center;
  background: var(--grund, #0b1a2a); color: var(--text, #fff); }
.lade-schicht .laden { height: auto; }
body.bf-cvi .lade-schicht { background: #000; }

/* Keep support next to the profile, outside the game pagination. */
.kopf .profil-bereich { display: flex; align-items: stretch; gap: var(--luecke); min-width: 0; }
.kopf .support-kopf { flex-direction: column; min-width: var(--knopf-b); padding: 8px 12px; }
@media (max-width: 1100px) {
  .kopf .profil-bereich { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .kopf .profil-bereich { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kopf .profil-bereich .knopf { min-width: 0; max-width: none; width: 100%; font-size: var(--s-klein); }
}

/* QA 23.11.2026 (Prüfwerk responsiv): Querformat 561–1199 px — „Unterstützen“ bleibt neben dem Profil (vorher eigene Reihe
   bei 1024 × 768), dafür die Knöpfe rechts kompakt (Symbol über dem Text, ≥ 120 breit); der Name rückt nicht mehr an „Hallo …“ */
@media (min-width: 561px) and (max-width: 1199px) and (orientation: landscape) and (min-height: 421px) {
  .kopf .profil-bereich { flex-wrap: nowrap; }
  .kopf > :last-child .knopf.glas { flex-direction: column; gap: 4px; min-width: var(--knopf-b); padding: 6px 10px; }
  .kopf > :last-child .knopf.glas span:not(.dwell-dot) { font-size: var(--s-klein); line-height: 1.1; }
}
