/* Jura-Duell · Handschrift „Robe und Siegel“ (1.6.0): warmes Papier, Tinte, satte Farben wie Leineneinbände statt Neon,
   Guilloche wie auf Urkunden auf den großen Karten. Hell ist der Standard. Schrift seit 1.6.1 wieder Inter/Systemschrift. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/schrift/inter/InterVariable.woff2") format("woff2"); }
@font-face { font-family: "Framework7 Icons"; font-style: normal; font-weight: 400; font-display: block; src: url("/schrift/f7/Framework7Icons-Regular.woff2") format("woff2"); }

/* ---------- Grundwerte ---------- */

:root {
  color-scheme: light;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --rund: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;

  --bg: light-dark(#f3f1ec, #0e0e0f);
  --karte: light-dark(#fffefb, #1a1a1c);
  --hoch: light-dark(#fffefb, #3a3a3d);
  --blatt: light-dark(#f3f1ec, #1a1a1c);
  --blattkarte: light-dark(#fffefb, #262628);
  --text: light-dark(#17161a, #f4f1ea);
  --text2: light-dark(rgba(46, 40, 32, .64), rgba(244, 241, 234, .62));
  --text3: light-dark(rgba(46, 40, 32, .36), rgba(244, 241, 234, .32));
  --trenner: light-dark(rgba(46, 40, 32, .12), rgba(244, 241, 234, .12));
  --fuell: light-dark(rgba(80, 66, 46, .075), rgba(244, 241, 234, .08));
  --fuell2: light-dark(rgba(80, 66, 46, .13), rgba(244, 241, 234, .14));

  /* Akzent: Robenrot wie die Robe am Bundesverfassungsgericht. Knöpfe sind Tinte auf Papier. */
  --akzent: light-dark(#9e1b2b, #e2525e);
  --akzent-auf: #fff;
  --akzent-text: light-dark(#9e1b2b, #ef6b75);
  --akzent-rand: light-dark(#9e1b2b, #e2525e);
  --knopf: light-dark(#17161a, #f4f1ea);
  --knopf-auf: light-dark(#f8f5ee, #17161a);
  --gold: light-dark(#94722a, #d9b86c);

  --gut: light-dark(#1f9a55, #34c77b);
  --gut-text: light-dark(#17803f, #4fd38c);
  --schlecht: light-dark(#d8383c, #ff5d5d);
  --schlecht-text: light-dark(#c42a2f, #ff6b6b);
  --teils: light-dark(#d98a0b, #f2a93b);
  --teils-text: light-dark(#b06d00, #f2a93b);

  /* Flüssiges Glas: durchscheinende Fläche, heller Rand oben, weicher Schatten. Die Brechung am Rand legt app/js/glas.js darüber. */
  --glas: light-dark(rgba(255, 253, 248, .62), rgba(40, 40, 43, .58));
  --glasfilter: blur(22px) saturate(190%);
  --glasrand: inset 0 0 0 .5px light-dark(rgba(255, 255, 255, .8), rgba(255, 255, 255, .14)), inset 0 1.5px 1px -1px light-dark(#fff, rgba(255, 255, 255, .42)), inset 0 -1.5px 1px -1px light-dark(rgba(255, 255, 255, .75), rgba(255, 255, 255, .14)), inset 0 -12px 16px -14px light-dark(rgba(0, 0, 0, .13), rgba(0, 0, 0, .5));
  --glasschatten: 0 0 0 .5px light-dark(rgba(0, 0, 0, .07), rgba(0, 0, 0, .5)), 0 14px 34px -8px light-dark(rgba(0, 0, 0, .2), rgba(0, 0, 0, .6)), 0 2px 6px light-dark(rgba(0, 0, 0, .05), rgba(0, 0, 0, .3));
  --glasschatten-klein: 0 0 0 .5px light-dark(rgba(0, 0, 0, .06), rgba(0, 0, 0, .5)), 0 6px 16px -6px light-dark(rgba(0, 0, 0, .16), rgba(0, 0, 0, .5));

  --weich: cubic-bezier(.2, .8, .2, 1);
  /* Karte auf Papier: feine Kante, kurzer Kontaktschatten, weicher Schatten darunter */
  --kartenschatten: 0 0 0 .5px light-dark(rgba(60, 44, 20, .1), rgba(255, 255, 255, .07)), 0 1px 2px light-dark(rgba(60, 44, 20, .05), transparent), 0 10px 26px -14px light-dark(rgba(60, 44, 20, .18), transparent);
}
:root[data-theme="dunkel"] { color-scheme: dark; }
:root[data-theme="auto"] { color-scheme: light dark; }

/* Farben für Zahlen, Ringe, Symbole: --f kräftig, --ft als Schrift auf der Karte */
/* Satte Farben wie Leineneinbände juristischer Bücher, keine Neontöne. Im Dunkeln eine hellere Stufe. */
.f-move { --f: light-dark(#b0233a, #ec5a6e); --ft: light-dark(#a01f34, #f07083); }
.f-lime { --f: light-dark(#4f7a1f, #9ccf5a); --ft: light-dark(#466d1b, #a8d86a); }
.f-cyan { --f: light-dark(#13798a, #4cc0cf); --ft: light-dark(#106a79, #5ccbd9); }
.f-rot { --f: light-dark(#b42532, #ec5f69); --ft: light-dark(#a51f2c, #f0737c); }
.f-blau { --f: light-dark(#1f4f99, #6f9cec); --ft: light-dark(#1d4a90, #82aaf0); }
.f-gruen { --f: light-dark(#1d7a4c, #45c487); --ft: light-dark(#186c43, #57cf95); }
.f-orange { --f: light-dark(#bd6514, #eb9a4a); --ft: light-dark(#a8580f, #f0a75e); }
.f-gold { --f: light-dark(#b38a2e, #dcb862); --ft: light-dark(#8f6c1d, #e2c070); }
.f-lila { --f: light-dark(#6a3d8f, #b18ad6); --ft: light-dark(#5f3582, #bd99de); }
.f-indigo { --f: light-dark(#34408f, #8d98e6); --ft: light-dark(#2f3a84, #9ba5ea); }
.f-pink { --f: light-dark(#a8325a, #e46b93); --ft: light-dark(#982b50, #ea7fa2); }
.f-flamme { --f: light-dark(#c8501a, #f07a3f); --ft: light-dark(#b14614, #f38a55); }
.f-tuerkis { --f: light-dark(#15727a, #4cbcc4); --ft: light-dark(#12656c, #5ec8cf); }
.f-grau { --f: light-dark(#8a857c, #9a958c); --ft: light-dark(#6b665d, #a29d94); }
.f-akzent { --f: var(--akzent-rand); --ft: var(--akzent-text); }

/* Farben der Avatare: dieselben Leinentöne */
.a0 { --a: #1f4f99; } .a1 { --a: #a3202f; } .a2 { --a: #1d7a4c; } .a3 { --a: #bd6514; }
.a4 { --a: #6a3d8f; } .a5 { --a: #15727a; } .a6 { --a: #a8325a; } .a7 { --a: #34408f; }

/* ---------- Grundlage ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 17px/22px var(--schrift); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; appearance: none; touch-action: manipulation; }
button:disabled { cursor: default; }
input { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid color-mix(in srgb, var(--akzent-text) 50%, transparent); outline-offset: 3px; }
.unsichtbar { position: fixed; left: -999px; top: 0; opacity: 0; }

/* Symbole aus dem Symbolsatz: der Name im Text wird zum Zeichen */
.ikon {
  font-family: "Framework7 Icons"; font-weight: 400; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; flex: none;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; text-rendering: optimizeLegibility;
}

#buehne {
  max-width: 520px; margin: 0 auto; min-height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(116px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
body.im-spiel #buehne { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
#buehne:not(.ruhig) > * { animation: herein .42s var(--weich) both; }
#buehne:not(.ruhig) > :nth-child(2) { animation-delay: 30ms; }
#buehne:not(.ruhig) > :nth-child(3) { animation-delay: 60ms; }
#buehne:not(.ruhig) > :nth-child(4) { animation-delay: 90ms; }
#buehne:not(.ruhig) > :nth-child(5) { animation-delay: 120ms; }
#buehne:not(.ruhig) > :nth-child(n+6) { animation-delay: 150ms; }
#buehne > .fussleiste, #buehne:not(.ruhig) > .kopfzeile, #buehne:not(.ruhig) > .spielkopf, #buehne:not(.ruhig) > .leistenkopf { animation: none; }
/* Am Handy liegen alle Karten in einer Spalte. Erst am großen Bildschirm werden daraus zwei. */
.spalten, .spalte { display: contents; }
.nach { order: 1; }
#buehne:not(.ruhig) .spalte > * { animation: herein .42s var(--weich) both; }
#buehne:not(.ruhig) .spalte > :nth-child(2) { animation-delay: 50ms; }
#buehne:not(.ruhig) .spalte > :nth-child(n+3) { animation-delay: 100ms; }
.lade { text-align: center; color: var(--text3); padding-top: 26vh; font-size: 28px; }

/* ---------- Kopf einer Ansicht ---------- */

.kopfzeile { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 4px 6px; }
.grosstitel { font: 700 30px/36px var(--schrift); letter-spacing: -.028em; font-optical-sizing: auto; }
.grosstitel.mittig { text-align: center; }
.kopf-unter { font: 500 15px/20px var(--schrift); color: var(--text2); margin-top: 1px; }
.avatarknopf {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin: -2px -2px 0 0; border-radius: 50%;
  background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); box-shadow: var(--glasrand), var(--glasschatten-klein);
  transition: transform .15s var(--weich);
}
.avatarknopf:active { transform: scale(.92); }

.abschnitt { font: 700 22px/28px var(--schrift); letter-spacing: -.024em; padding: 14px 4px 0; }
.abschnitt-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 4px; }
.abschnitt-zahl { font: 500 15px/20px var(--schrift); color: var(--text2); }
.fussnote { font: 400 13px/18px var(--schrift); color: var(--text2); text-align: center; padding: 4px 16px; }
.fehler { color: var(--schlecht-text); font: 600 15px/20px var(--schrift); text-align: center; }
.fehler:empty { display: none; }
.hinweis { color: var(--schlecht-text); font: 600 15px/20px var(--schrift); }

/* ---------- Karte ---------- */

.karte { display: block; width: 100%; background: var(--karte); border-radius: 22px; padding: 16px; box-shadow: var(--kartenschatten); position: relative; }
.karte.zart { background: color-mix(in srgb, var(--f) 13%, var(--karte)); box-shadow: none; }
button.karte, .tippbar { transition: transform .16s var(--weich), opacity .16s; }
button.karte:active:not(:disabled) { transform: scale(.972); }
button.karte:disabled { opacity: .5; }
.k-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-bottom: 8px; }
.k-titel { font: 650 17px/22px var(--schrift); letter-spacing: -.022em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-pfeil { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--text3); }
.k-pfeil .ikon { font-size: 14px; }
button.k-pfeil:active { opacity: .6; }
.k-label { display: block; font: 500 13px/16px var(--schrift); color: var(--text2); }
.k-ober { display: block; font: 600 14px/18px var(--schrift); letter-spacing: -.005em; color: var(--ft, var(--akzent-text)); }
.k-fuss { display: block; font: 400 13px/18px var(--schrift); color: var(--text2); }

/* Große Zahl in der Buchschrift, die Einheit klein und kursiv dahinter */
.wert { display: block; font: 700 30px/34px var(--rund); letter-spacing: -.03em; color: var(--ft, var(--text)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wert small { font: 700 .52em/1 var(--rund); letter-spacing: .01em; margin-left: 4px; color: var(--text2); }
.wert.mittel { font-size: 25px; line-height: 30px; }
.wert.klein { font-size: 17px; line-height: 22px; letter-spacing: -.01em; }
.wert.leer { color: var(--text3); font-weight: 600; }

.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.raster > .karte { min-height: 172px; display: flex; flex-direction: column; min-width: 0; }
.raster > .karte > .unten { margin-top: auto; padding-top: 10px; }
.raster .breit { grid-column: 1 / -1; }

/* Runder Hintergrund für ein Symbol */
.kreis { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--f) 16%, transparent); color: var(--ft); }
.kreis .ikon { font-size: 19px; }
.kreis.voll { background: var(--f); color: #fff; }
.kreis.k-kl { width: 28px; height: 28px; } .kreis.k-kl .ikon { font-size: 14px; }
.kreis.k-gr { width: 52px; height: 52px; } .kreis.k-gr .ikon { font-size: 25px; }

/* ---------- Kleine Schaubilder ---------- */

.saeulen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 62px; }
.sl { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 4px; min-height: 0; }
.sl-bahn { width: 8px; height: 100%; border-radius: 4px; background: var(--fuell); display: flex; align-items: flex-end; overflow: hidden; }
.sl-bahn i { display: block; width: 100%; border-radius: 4px; background: color-mix(in srgb, var(--f) 42%, transparent); }
.sl.voll .sl-bahn i { background: var(--f); }
.sl b { font: 600 10px/12px var(--schrift); color: var(--text3); }
.sl.heute b { color: var(--text); }

.linie { display: block; width: 100%; height: auto; overflow: visible; }
.linie polyline { fill: none; stroke: var(--f); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.linie path { fill: color-mix(in srgb, var(--f) 13%, transparent); }
.linie circle { fill: var(--karte); stroke: var(--f); stroke-width: 2.6; }
.linie line { stroke: var(--trenner); stroke-width: 1; stroke-dasharray: 2 3; }

.balken { display: block; height: 8px; border-radius: 4px; background: var(--fuell); overflow: hidden; }
.balken > i { display: block; height: 100%; border-radius: 4px; background: var(--f, var(--akzent-rand)); }
.balken-fuss { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font: 500 13px/16px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.gebietbalken { display: grid; gap: 8px; }
.gb { display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 7px; }
.gb .ikon { font-size: 13px; color: var(--ft); }
.gb .balken { height: 6px; }

/* ---------- Abzeichen als Medaille ---------- */

.medaille {
  --md: 56px; --m: var(--f, #8e8e93); position: relative; display: inline-grid; place-items: center; flex: none; width: var(--md); height: var(--md); border-radius: 50%;
  background: conic-gradient(from 200deg, #fdfdfe, #b4b8c2 12%, #f4f5f7 25%, #9da2ad 38%, #eceef1 50%, #a9adb8 62%, #fafbfc 75%, #a2a6b1 88%, #fdfdfe);
  box-shadow: 0 calc(var(--md) * .035) calc(var(--md) * .09) rgba(0, 0, 0, .2), inset 0 0 0 .5px rgba(0, 0, 0, .2);
}
.medaille.f-gold { background: conic-gradient(from 200deg, #fff6cf, #d8a31c 12%, #ffeaa0 25%, #c48a12 38%, #ffe58a 50%, #cf9a1a 62%, #fff3c0 75%, #c99016 88%, #fff6cf); }
.md-flaeche {
  width: 80%; height: 80%; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 48%), radial-gradient(circle at 50% 42%, var(--m), color-mix(in srgb, var(--m) 74%, #000));
  box-shadow: inset 0 calc(var(--md) * .025) calc(var(--md) * .05) rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(0, 0, 0, .22), 0 .5px 0 rgba(255, 255, 255, .85);
}
.md-flaeche .ikon { font-size: calc(var(--md) * .38); filter: drop-shadow(0 calc(var(--md) * .014) calc(var(--md) * .012) rgba(0, 0, 0, .32)); }
.md-flaeche b { font: 700 calc(var(--md) * .36)/1 var(--rund); filter: drop-shadow(0 calc(var(--md) * .014) calc(var(--md) * .012) rgba(0, 0, 0, .32)); }
.md-flaeche b.eng { font-size: calc(var(--md) * .25); letter-spacing: -.03em; }
.medaille.gesperrt { --m: #c3c6cd; filter: saturate(0); opacity: .62; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.md-s { --md: 34px; } .md-m { --md: 56px; } .md-l { --md: 88px; } .md-xl { --md: 132px; }

/* ---------- Avatar ---------- */

.avatar {
  --av: 40px; display: inline-grid; place-items: center; flex: none; width: var(--av); height: var(--av); border-radius: 50%; color: #fff;
  background: radial-gradient(120% 100% at 30% 0%, color-mix(in srgb, var(--a, #1f4f99) 78%, #fff), var(--a, #1f4f99) 70%);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.avatar .ikon { font-size: calc(var(--av) * .44); }
.avatar b { font: 700 calc(var(--av) * .52)/1 var(--rund); }
.av-k { --av: 22px; } .av-m { --av: 40px; } .av-g { --av: 56px; } .av-l { --av: 76px; } .av-xl { --av: 96px; }
.avatar.leer { background: var(--fuell2); }
.avatar.verfehlt { filter: grayscale(1); opacity: .32; }
.botmarke { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--fuell); color: var(--text2); font: 600 11px/14px var(--schrift); letter-spacing: .01em; vertical-align: 1px; }

/* ---------- Knöpfe ---------- */

.kn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 22px; border-radius: 25px;
  background: var(--knopf); color: var(--knopf-auf); font: 600 17px/22px var(--schrift); letter-spacing: -.015em; text-align: center;
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, .14), rgba(255, 255, 255, .6)), 0 10px 22px -14px light-dark(rgba(23, 22, 26, .7), transparent);
  transition: transform .16s var(--weich), opacity .16s, filter .16s;
}
.kn:active:not(:disabled) { transform: scale(.97); filter: brightness(.9); }
.kn.akzent { background: var(--akzent); color: var(--akzent-auf); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -12px color-mix(in srgb, var(--akzent) 70%, transparent); }
.kn:disabled { opacity: .4; }
.kn.grau { background: var(--fuell2); color: var(--text); box-shadow: none; }
.kn.weiss { background: var(--karte); color: var(--text); box-shadow: var(--kartenschatten); }
.kn.rot { background: color-mix(in srgb, var(--schlecht) 15%, transparent); color: var(--schlecht-text); box-shadow: none; }
.kn.klein { width: auto; min-height: 34px; padding: 0 16px; border-radius: 17px; font: 600 15px/20px var(--schrift); }
.kn .ikon { font-size: 18px; }
.knopfpaar { display: grid; gap: 8px; }
.knopfreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.knopfreihe .kn { padding: 0 8px; white-space: nowrap; }
.rundknopf { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--knopf); color: var(--knopf-auf); box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, .14), rgba(255, 255, 255, .6)), 0 8px 16px -10px light-dark(rgba(23, 22, 26, .7), transparent); transition: transform .16s var(--weich); }
.rundknopf .ikon { font-size: 19px; margin-left: 2px; }
.rundknopf.weiss { width: 56px; height: 56px; background: #fff; color: var(--h0, #000); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); }
.rundknopf.weiss .ikon { font-size: 23px; }
.rundknopf.aus { opacity: .45; }
.glasknopf {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--text);
  background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); box-shadow: var(--glasrand), var(--glasschatten-klein);
  transition: transform .16s var(--weich);
}
.glasknopf .ikon { font-size: 17px; }
.glasknopf:active { transform: scale(.9); }
.glasplatz { width: 44px; height: 44px; }
.glaslager { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Mit der Linse aus glas.js darf die Fläche klarer sein */
.leiste.linse { --glas: light-dark(rgba(255, 255, 255, .36), rgba(44, 44, 48, .36)); }
.textknopf { display: inline-flex; align-items: center; gap: 4px; color: var(--akzent-text); font: 600 15px/20px var(--schrift); padding: 6px 2px; border-radius: 8px; }
.textknopf:active { opacity: .5; }
.textknopf.klein { font-size: 13px; line-height: 18px; color: var(--text2); }
.textknopf .ikon { font-size: 13px; }
.kapselknopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 19px; white-space: nowrap;
  background: var(--karte); color: var(--text); font: 500 15px/20px var(--schrift); box-shadow: var(--kartenschatten); transition: transform .16s var(--weich);
}
.kapselknopf:active { transform: scale(.95); }
.kapselknopf .ikon { font-size: 15px; color: var(--text2); }

/* ---------- Listen in einer Karte ---------- */

.gruppe { background: var(--karte); border-radius: 22px; padding: 4px 16px; box-shadow: var(--kartenschatten); }
.gruppe > li + li { border-top: .5px solid var(--trenner); }
.zeile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 0; }
button.zeile:active:not(:disabled) { opacity: .55; }
button.zeile:disabled { opacity: .45; }
.z-text { display: grid; flex: 1; min-width: 0; }
.z-titel { font: 500 17px/22px var(--schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-unter { font: 400 13px/18px var(--schrift); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-hinten { display: flex; align-items: center; gap: 8px; flex: none; color: var(--text2); font: 400 17px/22px var(--schrift); font-variant-numeric: tabular-nums; }
.z-hinten.gestapelt { display: grid; justify-items: end; gap: 0; }
.z-pfeil { font-size: 14px; color: var(--text3); }
.zeile.ich { margin: 0 -10px; padding-left: 10px; padding-right: 10px; width: calc(100% + 20px); border-radius: 14px; background: color-mix(in srgb, var(--akzent) 8%, transparent); box-shadow: inset 3px 0 0 var(--akzent); }
.zeile.leise .z-titel { color: var(--text2); font-weight: 400; }
.zeile.mit-balken .z-unter { overflow: visible; padding-top: 6px; }
.zeile.mit-balken .z-unter .balken { height: 6px; }
.rangnr { width: 34px; flex: none; text-align: center; font: 700 17px/22px var(--rund); color: var(--text2); font-variant-numeric: tabular-nums; }
.delta { font: 700 15px/20px var(--rund); font-variant-numeric: tabular-nums; color: var(--text2); }
.delta.plus { color: var(--gut-text); }
.delta.minus { color: var(--schlecht-text); }
.datum { font: 400 13px/16px var(--schrift); color: var(--text2); }
.status { display: inline-flex; align-items: center; gap: 5px; font: 400 15px/20px var(--schrift); color: var(--text2); }
.status.gut { color: var(--gut-text); font-weight: 600; }
.status .ikon { font-size: 14px; }

/* ---------- Auswahl, Schalter, Feld ---------- */

.segment { display: inline-flex; padding: 2px; border-radius: 18px; background: var(--fuell); }
.segment button { min-width: 44px; min-height: 32px; padding: 0 13px; border-radius: 16px; font: 500 14px/18px var(--schrift); color: var(--text); text-align: center; transition: background .2s, box-shadow .2s; }
.segment button[aria-pressed="true"] { background: var(--hoch); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.schalter { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fuell2); transition: background .22s; }
.schalter i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .26s var(--weich); }
.schalter[aria-checked="true"] { background: var(--gut); }
.schalter[aria-checked="true"] i { transform: translateX(20px); }
.feld { display: block; width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--blattkarte); font: 400 17px/22px var(--schrift); outline: none; box-shadow: var(--kartenschatten); }
.feld:focus { box-shadow: 0 0 0 2.5px var(--akzent-rand); }
.feld::placeholder { color: var(--text3); }
.code-feld { text-align: center; font: 700 30px/36px var(--rund); letter-spacing: .32em; text-transform: uppercase; min-height: 68px; padding-left: calc(16px + .32em); }
.code-feld::placeholder { letter-spacing: 0; font: 400 17px/22px var(--schrift); text-transform: none; }

/* ---------- Leiste: Kapsel aus Glas, die Auswahl gleitet als Blase ---------- */

.leiste {
  position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 28px), 420px); height: 64px; padding: 5px; display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; border-radius: 32px;
  background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); box-shadow: var(--glasrand), var(--glasschatten);
}
.leiste-blase {
  position: absolute; z-index: 0; top: 5px; left: 0; width: 0; height: calc(100% - 10px); border-radius: 27px; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: light-dark(rgba(120, 120, 128, .17), rgba(255, 255, 255, .15));
  box-shadow: inset 0 0 0 .5px light-dark(rgba(255, 255, 255, .7), rgba(255, 255, 255, .16)), inset 0 1px 0 light-dark(rgba(255, 255, 255, .9), rgba(255, 255, 255, .24)), inset 0 -6px 10px -8px light-dark(rgba(0, 0, 0, .1), rgba(0, 0, 0, .4));
}
.leiste-blase.da { opacity: 1; }
.leiste button { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 27px; color: var(--text); font: 500 11px/13px var(--schrift); letter-spacing: 0; transition: color .2s, transform .16s var(--weich); }
.leiste button .ikon { font-size: 24px; height: 25px; line-height: 25px; }
.leiste button[aria-current="true"] { color: var(--akzent-text); }
.leiste button:active { transform: scale(.92); }
/* Duell als großer, hervorgehobener Knopf in der Mitte: ragt aus der Kapsel nach oben */
.leiste button.mitte { align-content: end; padding-bottom: 7px; }
.leiste button.mitte:active { transform: none; }
.mitte-kreis {
  position: absolute; left: 50%; top: -27px; translate: -50% 0; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 12%, color-mix(in srgb, var(--akzent) 72%, #fff) 0%, var(--akzent) 50%, color-mix(in srgb, var(--akzent) 78%, #000) 100%);
  color: var(--akzent-auf);
  box-shadow: 0 0 0 4px light-dark(rgba(255, 253, 248, .94), #1a1a1c), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 .5px rgba(0, 0, 0, .2), 0 12px 24px -8px color-mix(in srgb, var(--akzent) 70%, transparent);
  transition: scale .2s var(--weich), box-shadow .2s;
}
.leiste .mitte-kreis .ikon { font-size: 28px; height: auto; line-height: 1; }
.leiste button.mitte:active .mitte-kreis { scale: .92; }
.leiste button.mitte[aria-current="true"] .mitte-kreis {
  scale: 1.07;
  box-shadow: 0 0 0 4px light-dark(rgba(255, 253, 248, .94), #1a1a1c), inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 0 7px color-mix(in srgb, var(--akzent) 22%, transparent), 0 14px 28px -8px color-mix(in srgb, var(--akzent) 80%, transparent);
}
.leiste button.mitte .reiter-name { font-weight: 600; }
body.im-spiel .leiste, body.ohne-profil .leiste { display: none; }

/* Inhalt läuft weich unter den Rand, statt hart abzubrechen */
body::before, body::after { content: ""; position: fixed; z-index: 14; left: 0; right: 0; pointer-events: none; }
/* Oben kein schmaler Verlauf mehr (auf dem iPhone ein Strich beim Scrollen), dafür die Kopfleiste aus Glas */
body::before { display: none; top: 0; height: 44px; background: linear-gradient(to bottom, var(--bg), transparent); }
.kopfglas {
  position: fixed; z-index: 16; top: 0; left: 0; right: 0; display: grid; place-items: center;
  height: calc(env(safe-area-inset-top) + 46px); padding: env(safe-area-inset-top) 72px 0;
  font: 600 17px/22px var(--schrift); letter-spacing: -.02em; color: var(--text);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 .5px 0 var(--trenner);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s var(--weich), transform .22s var(--weich);
}
.kopfglas span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gescrollt .kopfglas { opacity: 1; transform: none; }
body.ohne-profil .kopfglas { display: none; }
body::after { bottom: 0; height: calc(env(safe-area-inset-bottom) + 34px); background: linear-gradient(to top, var(--bg) 25%, transparent); }
body.im-spiel::after, body.ohne-profil::after { display: none; }

/* Knöpfe am unteren Rand im Spiel */
.fussleiste {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; align-content: end;
  padding: 14px max(16px, calc(50vw - 244px)) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 34%);
}
.fussleiste.klar { background: none; pointer-events: none; }
.fussleiste.klar > * { pointer-events: auto; }
.auto-spur { height: 3px; border-radius: 2px; background: var(--fuell); overflow: hidden; margin: 2px 28px 0; }
.auto-balken { height: 100%; background: var(--text3); transform-origin: left; }

/* ---------- Meldungen, Blatt ---------- */

.stoerung { position: fixed; z-index: 40; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 18px; background: var(--schlecht); color: #fff; font: 600 15px/20px var(--schrift); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 22px; background: light-dark(rgba(30, 30, 32, .9), rgba(72, 72, 74, .92)); color: #fff; font: 500 15px/20px var(--schrift); white-space: nowrap;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: opacity .22s, transform .3s var(--weich);
}
.toast.da { opacity: 1; transform: translate(-50%, 0); }
.schicht { position: fixed; inset: 0; z-index: 35; display: flex; align-items: flex-end; justify-content: center; }
.blatt-grund { position: absolute; inset: 0; background: rgba(0, 0, 0, .24); }
.blatt {
  position: relative; width: calc(100% - 16px); max-width: 504px; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 8px calc(8px + env(safe-area-inset-bottom)); padding: 0 16px 20px; border-radius: 36px;
  background: light-dark(rgba(246, 243, 236, .84), rgba(32, 32, 34, .78)); -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
  box-shadow: var(--glasrand), 0 -4px 50px rgba(0, 0, 0, .22);
}
.blatt .gruppe, .blatt .karte { background: light-dark(rgba(255, 254, 251, .8), rgba(255, 255, 255, .07)); box-shadow: 0 0 0 .5px light-dark(rgba(60, 44, 20, .08), transparent); }
.blatt-griff { display: grid; place-items: center; height: 28px; margin: 0 -16px; cursor: grab; touch-action: none; }
.blatt-griff i { width: 36px; height: 5px; border-radius: 3px; background: var(--text3); }
.blatt-titel { font: 650 17px/22px var(--schrift); letter-spacing: -.02em; text-align: center; margin: 2px 0 18px; }
.liste { display: grid; gap: 10px; }

/* ---------- Übersicht ---------- */

.kontakte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 2px -6px -4px; }
.kontakt { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 6px 2px 8px; border-radius: 18px; transition: transform .16s var(--weich); }
.kontakt:active { transform: scale(.93); }
.kt-name { font: 500 13px/16px var(--schrift); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--fuell); color: var(--text); box-shadow: inset 0 0 0 1px var(--trenner); }
.kt-plus .ikon { font-size: 24px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 5px; height: 5px; border-radius: 50%; background: var(--fuell2); }
.pips i.an { background: var(--text2); }
.abz-mitte { display: grid; justify-items: center; gap: 2px; text-align: center; margin: auto 0; padding-top: 2px; }
.abz-mitte .medaille { margin-bottom: 8px; }
.abz-name { font: 500 13px/16px var(--schrift); }
.einladung { display: grid; gap: 12px; }
.einl-code { font: 700 40px/46px var(--rund); letter-spacing: .2em; padding-left: .2em; text-align: center; }

/* ---------- Duell starten ---------- */

.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 3px; }
.kachel { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 16px 6px 14px; border-radius: 20px; background: var(--karte); box-shadow: var(--kartenschatten); text-align: center; transition: transform .16s var(--weich), box-shadow .2s; }
.kachel:active:not(:disabled) { transform: scale(.95); }
.kachel:disabled { opacity: .4; }
.kachel span.ka-name { font: 600 13px/16px var(--schrift); letter-spacing: -.01em; }
.kachel[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); }
.kachel[aria-pressed="false"] .kreis { background: var(--fuell); color: var(--text3); }
.kachel[aria-pressed="false"] .ka-name { color: var(--text2); }
.botkarte { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; }
.botkarte .z-titel { font-weight: 650; letter-spacing: -.02em; }
.botkarte .z-unter { display: flex; align-items: center; gap: 8px; overflow: visible; }

/* ---------- Lernen ---------- */

.raster > .lernkarte { min-height: 0; }
.lernkarte .k-kopf { align-items: flex-start; margin-bottom: 14px; }
.lernkarte .k-titel { display: block; white-space: normal; margin-top: 6px; }
.zeile-frei { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.zeile-frei .k-titel { font-weight: 500; }

/* ---------- Module wie Kurse ---------- */

.modulbereich { display: grid; gap: 14px; order: 2; }
.modulgebiet { display: grid; gap: 10px; }
.modulraster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modulkarte { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 116px; padding: 14px 14px 15px; text-align: left; }
.mk-name { font: 650 15px/19px var(--schrift); letter-spacing: -.016em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.mk-fuss { display: grid; gap: 8px; }
.mk-zahl { font: 650 13px/16px var(--rund); color: var(--ft); font-variant-numeric: tabular-nums; }
.modulkarte .balken { height: 6px; }
button.modulkarte:disabled { opacity: .42; }
.modulkarte:disabled .mk-zahl { color: var(--text3); }
.modulknopf { min-height: 52px; }
.modulknopf .z-hinten { font-size: 15px; }
/* Auswahl im Blatt: Haken im Kreis, leer wenn nicht gewählt */
.wahlpunkt { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text3); color: transparent; transition: background .18s, box-shadow .18s, color .18s; }
.wahlpunkt .ikon { font-size: 13px; }
.modulwahl[aria-pressed="true"] .wahlpunkt { background: var(--knopf); box-shadow: none; color: var(--knopf-auf); }
.blatt .k-ober { padding: 6px 4px 0; }

/* ---------- Liga ---------- */


/* ---------- Profil ---------- */

.leistenkopf { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.leistenkopf .kn.klein { min-height: 44px; border-radius: 22px; }
.profilkopf { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 2px 0 6px; }
.profilkopf .avatar { margin-bottom: 14px; box-shadow: 0 0 0 5px var(--bg), 0 0 0 5.5px var(--trenner), 0 18px 30px -14px color-mix(in srgb, var(--a, #007aff) 70%, transparent); }
.pk-name { font: 700 28px/34px var(--schrift); letter-spacing: -.026em; }
.pk-unter { font: 500 15px/20px var(--schrift); color: var(--text2); }
.pk-level { margin-top: 10px; width: 100%; max-width: 300px; }
.abzeichen-gitter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px; padding: 18px 8px; }
.abz { display: grid; justify-items: center; align-content: start; gap: 7px; text-align: center; font: 500 12px/15px var(--schrift); border-radius: 14px; transition: transform .16s var(--weich); }
.abz:active { transform: scale(.92); }
.abz.gesperrt > span:last-child { color: var(--text2); }
.abz-stand { display: grid; gap: 6px; width: 100%; max-width: 240px; font: 500 13px/16px var(--schrift); color: var(--text2); text-align: center; }
.wahl-vorschau { display: grid; place-items: center; padding: 4px 0 2px; }
.formular { display: grid; gap: 16px; }
.farben, .zeichenreihe { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; justify-items: center; }
.tupfer { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, color-mix(in srgb, var(--a) 70%, #fff), var(--a)); transition: transform .16s var(--weich); }
.tupfer[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--blatt), 0 0 0 5px var(--a); }
.zeichenwahl { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fuell); color: var(--text2); transition: transform .16s var(--weich); }
.zeichenwahl .ikon { font-size: 16px; } .zeichenwahl b { font: 700 17px/1 var(--rund); }
.zeichenwahl[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.tupfer:active, .zeichenwahl:active { transform: scale(.88); }
.willkommen { display: grid; justify-items: center; gap: 14px; padding-top: 7vh; }
.willkommen .karte { margin-top: 12px; }
/* Marke: Siegel in Robenrot, darauf der Paragraf */
.mz {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22.5%; color: #f8f1e2; font: 700 26px/1 var(--rund);
  background: radial-gradient(120% 100% at 30% 0%, #c0303f, #9e1b2b 55%, #74111e); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mz.gross { width: 92px; height: 92px; font-size: 60px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 34px -12px rgba(116, 17, 30, .6); }

/* ---------- Im Spiel ---------- */

.spielkopf { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; }
.spielkopf > :last-child { justify-self: end; }
.runde { display: grid; justify-items: center; text-align: center; }
.runde b { font: 650 17px/22px var(--schrift); letter-spacing: -.02em; }
.runde small { font: 500 13px/16px var(--schrift); color: var(--text2); }
.ring { width: 44px; height: 44px; }
.ring-spur { fill: none; stroke: var(--fuell2); stroke-width: 4.5; }
.ring-lauf { fill: none; stroke: var(--text); stroke-width: 4.5; stroke-linecap: round; }
.ring-text { font: 700 15px var(--rund); fill: var(--text); font-variant-numeric: tabular-nums; }
.ring.knapp .ring-lauf { stroke: var(--schlecht); }
.ring.knapp .ring-text { fill: var(--schlecht-text); }

.tafel-box { background: var(--karte); border-radius: 22px; padding: 14px 16px 14px; box-shadow: var(--kartenschatten); display: grid; gap: 12px; }
.tafel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platte { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 0; }
.platte-bild { position: relative; grid-row: 1 / 3; }
.platte.gegner { grid-template-columns: 1fr auto; text-align: right; }
.platte.gegner .platte-bild { grid-column: 2; }
.platte.gegner .pname, .platte.gegner .platte-zahl { grid-column: 1; }
.platte.gegner .pname { grid-row: 1; justify-content: flex-end; }
.platte.gegner .platte-zahl { grid-row: 2; justify-content: flex-end; flex-direction: row-reverse; }
.platte.weg { opacity: .45; }
.pname { display: flex; align-items: center; min-width: 0; font: 500 13px/16px var(--schrift); color: var(--text2); }
.pname > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platte-zahl { display: flex; align-items: baseline; gap: 6px; }
.ppunkte { font: 700 26px/30px var(--rund); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ppunkte.gross { font-size: 40px; line-height: 44px; }
.plus { font: 700 13px/16px var(--rund); color: var(--text3); animation: pop .4s var(--weich) both; }
.plus.treffer { color: var(--gut-text); }
.fertig { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gut); color: #fff; box-shadow: 0 0 0 2px var(--karte); animation: pop .3s var(--weich) both; }
.fertig .ikon { font-size: 9px; }
.tauziehen { display: flex; gap: 3px; height: 8px; }
.tauziehen i { display: block; border-radius: 4px; background: var(--a); transition: width .7s var(--weich); }
.tauziehen .tz-gegner { flex: 1; }
.fortschritt { display: flex; justify-content: center; gap: 6px; }
.fortschritt i { width: 8px; height: 8px; border-radius: 50%; background: var(--fuell2); }
.fortschritt i.luecke { margin-left: 8px; }
.fortschritt i.gut { background: var(--gut); }
.fortschritt i.teils { background: var(--teils); }
.fortschritt i.schlecht { background: var(--schlecht); }
.fortschritt i.jetzt { background: var(--text); }
.blase {
  position: absolute; z-index: 4; left: 0; top: 100%; margin-top: 6px; padding: 7px 13px; border-radius: 18px;
  background: var(--text); color: var(--karte); font: 500 15px/20px var(--schrift); white-space: nowrap; animation: blase 4s both; pointer-events: none;
}
.platte.gegner .blase, .stand .blase { left: auto; right: 0; }
.stand .blase { top: -16px; right: 14px; margin: 0; }

[data-g="strafrecht"] { --f: light-dark(#b42532, #ec5f69); --ft: light-dark(#a51f2c, #f0737c); }
[data-g="zivilrecht"] { --f: light-dark(#1f4f99, #6f9cec); --ft: light-dark(#1d4a90, #82aaf0); }
[data-g="oeffentliches-recht"] { --f: light-dark(#6a3d8f, #b18ad6); --ft: light-dark(#5f3582, #bd99de); }
/* Die Frage wie ein Klausurblatt: oben eine Linie in der Farbe des Rechtsgebiets, Sachverhalt in der Buchschrift */
.fragekopf { background: var(--karte); border-radius: 22px; padding: 18px 18px 20px; box-shadow: inset 0 3px 0 var(--f, var(--text)), var(--kartenschatten); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fk-zeile { display: flex; align-items: center; gap: 8px; font: 600 14px/18px var(--schrift); letter-spacing: -.005em; color: var(--ft); }
.fk-zeile > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-zeile.mittig { justify-content: center; }
.fk-zeile.mittig > span:first-of-type { flex: none; }
.stufe { display: inline-flex; gap: 3px; flex: none; }
.stufe i { width: 6px; height: 6px; border-radius: 50%; background: var(--fuell2); }
.stufe i.an { background: var(--f); }
.fall { font: 400 16px/22px var(--schrift); color: var(--text); hyphens: auto; -webkit-hyphens: auto; }
.fall + .frage { padding-top: 12px; border-top: .5px solid var(--trenner); }
.frage { font: 650 20px/26px var(--schrift); letter-spacing: -.022em; hyphens: auto; -webkit-hyphens: auto; }

.antworten { display: grid; gap: 10px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.antwort {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 14px; border-radius: 18px;
  background: var(--karte); box-shadow: var(--kartenschatten); font: 500 17px/22px var(--schrift); transition: transform .16s var(--weich), background .2s, box-shadow .2s, opacity .2s;
}
.antwort:active:not(:disabled) { transform: scale(.975); }
.antwort .buchstabe { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fuell); color: var(--text2); font: 700 14px/1 var(--rund); transition: background .2s, color .2s; }
.antwort-text { flex: 1; min-width: 0; }
.zwei .antwort { min-height: 66px; justify-content: center; text-align: center; font-weight: 650; }
.zwei .antwort-text { flex: none; }
.antwort.gewaehlt { box-shadow: 0 0 0 2px var(--text); }
.antwort.gewaehlt .buchstabe { background: var(--knopf); color: var(--knopf-auf); }
.antwort.richtig { background: color-mix(in srgb, var(--gut) 16%, var(--karte)); box-shadow: none; }
.antwort.richtig .buchstabe { background: var(--gut); color: #fff; }
.antwort.falsch { background: color-mix(in srgb, var(--schlecht) 13%, var(--karte)); box-shadow: none; animation: schuetteln .4s both; }
.antwort.falsch .buchstabe { background: var(--schlecht); color: #fff; }
.antwort.blass { opacity: .5; box-shadow: none; }
.marken { display: inline-flex; flex: none; }
.marken .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--karte); }
.urteilzeichen { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; animation: pop .34s var(--weich) both; }
.urteilzeichen .ikon { font-size: 13px; }
.urteilzeichen.gut { background: var(--gut); }
.urteilzeichen.teils { background: var(--teils); }
.urteilzeichen.schlecht { background: var(--schlecht); }

.plaetze { display: grid; gap: 8px; counter-reset: platz; }
.plaetze > li { counter-increment: platz; }
.platz {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 16px;
  font: 500 16px/21px var(--schrift); background: transparent; box-shadow: inset 0 0 0 1.5px var(--fuell2);
}
.platz::before { content: counter(platz); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--fuell); color: var(--text2); font: 700 13px/1 var(--rund); }
.platz > span:first-of-type { flex: 1; min-width: 0; }
.platz.voll { background: var(--karte); box-shadow: var(--kartenschatten); }
.platz.voll::before { background: var(--knopf); color: var(--knopf-auf); }
button.platz:active:not(:disabled) { transform: scale(.975); }
li.platz.richtig { background: color-mix(in srgb, var(--gut) 16%, var(--karte)); box-shadow: none; animation: herein .34s var(--weich) both; }
li.platz.richtig::before { background: var(--gut); color: #fff; }
li.platz.offen { background: var(--karte); box-shadow: var(--kartenschatten); animation: herein .34s var(--weich) both; }
.vorrat { display: flex; flex-wrap: wrap; gap: 8px; min-height: 8px; }
.punkt { min-height: 44px; padding: 10px 15px; border-radius: 16px; background: var(--karte); box-shadow: var(--kartenschatten); font: 500 15px/20px var(--schrift); transition: transform .16s var(--weich); }
.punkt:active:not(:disabled) { transform: scale(.94); }

.rueckmeldung { display: grid; gap: 10px; box-shadow: none; scroll-margin-bottom: 190px; }
.rueckmeldung.gut { background: color-mix(in srgb, var(--gut) 15%, var(--karte)); --rt: var(--gut-text); }
.rueckmeldung.teils { background: color-mix(in srgb, var(--teils) 15%, var(--karte)); --rt: var(--teils-text); }
.rueckmeldung.schlecht { background: color-mix(in srgb, var(--schlecht) 11%, var(--karte)); --rt: var(--schlecht-text); }
.rm-kopf { display: flex; align-items: center; gap: 10px; }
.rm-titel { flex: 1; font: 700 20px/25px var(--schrift); letter-spacing: -.022em; color: var(--rt); }
.rm-plus { font: 700 15px/20px var(--rund); color: var(--rt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.begruendung { font: 400 16px/22px var(--schrift); }
.beleg-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.beleg { font: 600 13px/18px var(--schrift); color: var(--text2); }
.reaktionen { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.reaktionen::-webkit-scrollbar { display: none; }
.getrennt { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.vorlauf { display: grid; justify-items: center; gap: 6px; padding: 9vh 0 0; }
.v-zahl { font: 700 120px/1 var(--rund); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ft, var(--text)); }
.v-zahl.tick { animation: tick .8s var(--weich) both; }

.raumcode { display: grid; justify-items: center; gap: 14px; padding: 22px 16px 18px; }
.code { display: flex; gap: 8px; }
.code i { display: grid; place-items: center; width: 58px; height: 68px; border-radius: 16px; background: var(--fuell); font: 700 34px/1 var(--rund); font-style: normal; }

.ergebnis { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 0 4px; }
.ergebnis .medaille { margin-bottom: 10px; animation: pop .5s var(--weich) both; }
.urteil { font: 700 34px/40px var(--schrift); letter-spacing: -.03em; }
.erg-unter { font: 500 15px/20px var(--schrift); color: var(--text2); }
.erg-zahl { font: 700 44px/1 var(--rund); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.erg-zahl small { font-size: .5em; color: var(--text2); }
.stand { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px 16px; }
.stand-seite { display: grid; justify-items: center; gap: 4px; min-width: 0; text-align: center; }
.stand-name { font: 500 13px/16px var(--schrift); color: var(--text2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-seite .ppunkte { color: var(--a); }
.platte .ppunkte { color: var(--a); }
.trenner { font: 700 28px/1 var(--rund); color: var(--text3); }
.raster.flach > .karte { min-height: 0; }
.rb > summary { list-style: none; cursor: pointer; }
.rb > summary::-webkit-details-marker { display: none; }
.rb[open] > summary .z-pfeil { transform: rotate(90deg); }
.rb .z-pfeil { transition: transform .2s var(--weich); }
.rb-inhalt { display: grid; gap: 10px; padding: 4px 0 16px; }
.rb-frage { font: 600 16px/22px var(--schrift); }
.rb-zeile { display: flex; align-items: flex-start; gap: 8px; font: 500 15px/20px var(--schrift); }
.rb-zeile .ikon { font-size: 13px; margin-top: 4px; }
.rb-zeile.gut { color: var(--gut-text); }
.rb-zeile.schlecht { color: var(--schlecht-text); }

.konfetti { position: absolute; inset: -30px -16px auto; height: 80vh; overflow: hidden; pointer-events: none; z-index: 3; }
.konfetti i { position: absolute; top: -24px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: konfetti 2s cubic-bezier(.2, .5, .5, 1) both; }
.konfetti .k0 { background: #a3202f; } .konfetti .k1 { background: #d9b86c; } .konfetti .k2 { background: #1f3a6b; } .konfetti .k3 { background: #efe4cc; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); } .konfetti .k4 { background: #1d7a4c; }

/* ---------- Feier ---------- */

.feier { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 8px 0; }
.feier > .medaille { margin-bottom: 14px; animation: pop .5s var(--weich) both; }
.feier-klein { font: 600 15px/20px var(--schrift); letter-spacing: -.005em; color: var(--akzent-text); }
.feier-titel { font: 700 28px/34px var(--schrift); letter-spacing: -.026em; }
.feier-text { font: 400 16px/22px var(--schrift); color: var(--text2); }
.feier .kn { margin-top: 20px; }
.feier .abz-stand { margin-top: 8px; }

/* ---------- Heldenkarte: die eine satte Fläche je Ansicht, einfarbig wie ein Leineneinband, mit Guilloche ---------- */

/* --h1 hell oben, --h0 Grundton, --h2 tief unten, --hg Farbe der Akzente auf der Karte */
.h-gruen { --h1: #b3283a; --h0: #8e1726; --h2: #5e0c17; --hg: #f1d79c; }   /* Robenrot: Tagesakte, Heute */
.h-rot { --h1: #33343c; --h0: #1d1e23; --h2: #0d0d10; --hg: #e7c77f; }     /* Tinte: Duell, Einladung, Warteraum */
.h-orange { --h1: #a85a1c; --h0: #7f3f10; --h2: #4f2408; --hg: #f6d49a; }  /* Kupfer: Fehlerkartei */
.h-blau { --h1: #2b4a80; --h0: #19305a; --h2: #0c1a35; --hg: #e3c27a; }    /* Marine: Kammer */
.held {
  position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 20px 20px 22px; color: #fff; text-align: left;
  background:
    url("/muster/guilloche.svg") no-repeat right -112px top -128px / 360px 360px,
    radial-gradient(90% 70% at 0% 0%, rgba(255, 255, 255, .09), transparent 70%),
    linear-gradient(162deg, var(--h1) 0%, var(--h0) 52%, var(--h2) 100%);
  box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--h2) 90%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--h2) 40%, transparent), inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .2);
}
button.held { transition: transform .16s var(--weich), opacity .16s; }
button.held:active { transform: scale(.975); }
.held-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.held-ober { font: 600 15px/20px var(--schrift); letter-spacing: -.005em; color: rgba(255, 255, 255, .8); }
.held-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.held-wert { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; font-family: var(--rund); font-variant-numeric: tabular-nums; }
.held-zahl { font-weight: 700; font-size: 68px; line-height: 66px; letter-spacing: -.045em; }
.held-von { font-weight: 700; font-size: 28px; letter-spacing: -.02em; color: rgba(255, 255, 255, .6); }
.held-einheit { font: 700 17px/1 var(--rund); letter-spacing: -.01em; color: var(--hg); margin-left: 8px; }
.held-titel { font: 700 30px/36px var(--schrift); letter-spacing: -.03em; margin: 4px 0 18px; }
.held-bahn { height: 6px; margin-top: 16px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.held-bahn i { display: block; height: 100%; border-radius: 3px; background: var(--hg); transform-origin: left; animation: fuellen .9s var(--weich) both; }
#buehne.ruhig .held-bahn i { animation: none; }
.held-fuss { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font: 600 13px/16px var(--schrift); color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
/* Drei Kennzahlen nebeneinander, getrennt durch feine Linien statt Glaskacheln */
.held-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 14px; border-top: .5px solid rgba(255, 255, 255, .2); }
.held-kachel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 6px; padding: 0 12px; min-width: 0; }
.held-kachel:first-child { padding-left: 0; }
.held-kachel + .held-kachel { border-left: .5px solid rgba(255, 255, 255, .2); }
.held-kachel .ikon { font-size: 13px; color: var(--hg); }
.held-kachel b { font: 700 20px/24px var(--rund); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.held-kachel span { grid-column: 1 / -1; font: 600 12px/14px var(--schrift); color: rgba(255, 255, 255, .7); }
/* Glas nur noch für Marken und Knöpfe auf der Karte, nicht für ganze Flächen */
.glaschip, .glaskreis, .kn.glas {
  background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.glaschip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px; font: 700 13px/1 var(--schrift); color: #fff; white-space: nowrap; }
.glaschip .ikon { font-size: 14px; color: var(--hg, #fff); }
.glaschip.hell { background: rgba(255, 253, 248, .94); color: #2a1a0c; -webkit-backdrop-filter: none; backdrop-filter: none; }
.glaschip.hell .ikon { color: #c8501a; }
.glaskreis { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.glaskreis .ikon { font-size: 20px; }
.kn.glas { color: #fff; }
.held .kn.weiss { background: #fffdf8; color: #17161a; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }
.held .einl-code { color: #fff; }

/* ---------- Einladung: wer herausfordert ---------- */

.einladung { display: grid; gap: 14px; }
.einl-von { display: flex; align-items: center; gap: 16px; padding: 4px 0 2px; }
.einl-avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 14px 26px -12px rgba(0, 0, 0, .45); animation: pop .5s var(--weich) both; }
.einl-text { display: grid; gap: 2px; min-width: 0; }
.einl-text > b { font: 700 26px/31px var(--schrift); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.einl-text > span { font: 600 15px/20px var(--schrift); color: rgba(255, 255, 255, .78); }
.einl-gebiete { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.glaschip.klein { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; }
.glaschip.klein .ikon { font-size: 12px; }
.einl-titel { font: 700 22px/28px var(--schrift); letter-spacing: -.02em; }
.willkommen.mit-einladung { padding-top: 2vh; justify-items: stretch; }
.willkommen > .held { width: 100%; }
.willkommen > .textknopf, .schluessel .textknopf { min-height: 44px; }
.willkommen > .textknopf { justify-self: center; margin-top: 2px; }

/* ---------- Warteraum: Code auf Glas, zwei Plätze gegenüber ---------- */

.warteraum { display: grid; gap: 16px; padding-bottom: 18px; }
.glascode { justify-content: center; }
.held .code i {
  color: #fff; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 22px -12px rgba(0, 0, 0, .4);
  animation: pop .45s var(--weich) both;
}
.held .code i:nth-child(2) { animation-delay: .05s; } .held .code i:nth-child(3) { animation-delay: .1s; } .held .code i:nth-child(4) { animation-delay: .15s; }
#buehne.ruhig .held .code i { animation: none; }
.wr-gegenueber { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 6px; padding: 22px 12px 20px; }
.wr-platz { display: grid; justify-items: center; gap: 1px; text-align: center; min-width: 0; }
.wr-platz > b { max-width: 100%; margin-top: 10px; font: 600 17px/22px var(--schrift); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-stand { font: 400 13px/18px var(--schrift); color: var(--text2); }
.wr-platz.bereit .wr-stand { color: var(--gut-text); font-weight: 600; }
.wr-platz.frei > b { color: var(--text2); font-weight: 500; }
.wr-bild { position: relative; display: grid; }
.wr-haken { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gut); color: #fff; box-shadow: 0 0 0 3px var(--karte); animation: pop .3s var(--weich) both; }
.wr-haken .ikon { font-size: 13px; }
.avatar.wr-leer { background: var(--fuell); color: var(--text3); box-shadow: inset 0 0 0 1.5px var(--trenner); animation: warten 1.8s ease-in-out infinite; }
.wr-vs { align-self: center; margin-top: -24px; font: 800 14px/1 var(--rund); letter-spacing: .08em; color: var(--text3); }
@keyframes warten { 50% { transform: scale(.93); opacity: .55; } }

/* ---------- Profilschlüssel ---------- */

.schluessel { display: grid; justify-items: center; gap: 16px; padding-top: 4px; }
.schluessel .kn { max-width: 320px; }
.schluessel-code { flex-wrap: wrap; justify-content: center; }
.schluessel-code i { width: auto; height: 56px; padding: 0 12px; font-size: 24px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.schluessel-feld { text-align: center; font: 700 22px/28px var(--rund); letter-spacing: .08em; text-transform: uppercase; min-height: 60px; }
.schluessel-feld::placeholder { letter-spacing: .08em; font-weight: 600; color: var(--text3); }

/* ---------- Bewegung ---------- */

@keyframes herein { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
@keyframes fuellen { from { transform: scaleX(0); } }
@keyframes schuetteln { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes konfetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(76vh) rotate(var(--dreh)); } }
@keyframes blase { 0% { opacity: 0; transform: scale(.8); } 6% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tick { 0% { opacity: 0; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .konfetti { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .leiste, .glasknopf, .avatarknopf, .blatt, .toast { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--karte); }
  .kopfglas { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .toast { color: var(--text); }
}
@media (prefers-contrast: more) {
  :root { --text2: light-dark(rgba(0, 0, 0, .78), rgba(255, 255, 255, .82)); --trenner: light-dark(rgba(0, 0, 0, .4), rgba(255, 255, 255, .5)); }
  .karte, .gruppe, .antwort, .kachel, .tafel-box, .fragekopf { box-shadow: 0 0 0 1px var(--text2); }
}

/* ---------- Großer Bildschirm: dieselbe Spalte, etwas mehr Luft ---------- */

@media (min-width: 700px) {
  .modulraster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #buehne { padding-top: 34px; }
  .schicht { align-items: center; }
  .blatt { max-width: 440px; margin-bottom: 0; }
  .leiste { bottom: 22px; }
  .toast { bottom: 104px; }
}

/* Großer Bildschirm wie am iPad: zwei Spalten, die Leiste schwebt als Kapsel oben in der Mitte */
@media (min-width: 900px) {
  #buehne { max-width: 1000px; padding-top: 92px; padding-bottom: 48px; }
  body.im-spiel #buehne, body.ohne-profil #buehne { max-width: 520px; padding-top: 34px; }
  body.im-spiel #buehne { padding-bottom: 176px; }
  .spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .spalte { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .spalte > .abschnitt:first-child, .spalte > .abschnitt-zeile:first-child .abschnitt { padding-top: 0; }
  .modulraster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .leiste { top: 18px; bottom: auto; width: auto; height: 52px; padding: 4px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: auto; border-radius: 25px; }
  .leiste button { display: flex; align-items: center; justify-items: unset; gap: 7px; padding: 0 18px; border-radius: 22px; font: 600 14px/18px var(--schrift); letter-spacing: -.01em; }
  .leiste button .ikon { font-size: 17px; height: auto; line-height: 1; }
  .leiste-blase { top: 4px; height: calc(100% - 8px); border-radius: 22px; }
  /* Oben als Kapsel: Duell wird zur leuchtenden Pille in der Mitte */
  .leiste button.mitte { padding: 0 20px 0 14px; margin: 0 4px; background: radial-gradient(140% 160% at 30% 0%, color-mix(in srgb, var(--akzent) 72%, #fff) 0%, var(--akzent) 55%, color-mix(in srgb, var(--akzent) 80%, #000) 100%); color: var(--akzent-auf); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px color-mix(in srgb, var(--akzent) 70%, transparent); }
  .leiste button.mitte[aria-current="true"] { color: var(--akzent-auf); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px color-mix(in srgb, var(--akzent) 25%, transparent), 0 8px 18px -8px color-mix(in srgb, var(--akzent) 80%, transparent); }
  .mitte-kreis, .leiste button.mitte[aria-current="true"] .mitte-kreis { position: static; translate: none; scale: none; width: auto; height: auto; background: none; box-shadow: none; color: inherit; }
  .leiste .mitte-kreis .ikon { font-size: 17px; }
  .leiste button.mitte:hover { color: var(--akzent-auf); filter: brightness(1.04); }
  body::before { display: block; height: 44px; }
  body::after { display: none; }
  .kopfglas { display: none; }
  .stoerung { top: 80px; }
  .toast { bottom: 40px; }
}
@media (max-width: 359px) {
  .code i { width: 50px; height: 60px; font-size: 28px; }
  .kacheln { gap: 8px; }
}

/* ---------- Zeiger: Karten heben sich leicht, wenn die Maus darüber steht ---------- */

@media (hover: hover) and (pointer: fine) {
  button.karte:not(:disabled):hover, .kachel:not(:disabled):hover, .antwort:not(:disabled):hover, button.held:hover, .punkt:not(:disabled):hover {
    transform: translateY(-2px);
  }
  button.karte:not(:disabled):hover, .kachel:not([aria-pressed="true"]):not(:disabled):hover, .antwort:not(:disabled):not(.gewaehlt):hover, .punkt:not(:disabled):hover {
    box-shadow: 0 0 0 .5px light-dark(rgba(0, 0, 0, .05), transparent), 0 12px 26px -12px light-dark(rgba(0, 0, 0, .18), transparent);
  }
  .kn:not(:disabled):hover, .rundknopf:hover { filter: brightness(1.04); }
  .kontakt:hover { transform: translateY(-2px); }
  .leiste button:hover { color: var(--akzent-text); }
  .leiste button.mitte:hover .mitte-kreis { filter: brightness(1.05); }
  .glasknopf:hover, .avatarknopf:hover { transform: scale(1.06); }
  button.zeile:not(:disabled):hover .z-titel { color: var(--akzent-text); }
}

/* ---------- Tagesakte, Serie, Wiedereinsetzung (0.10.0) ---------- */

/* Die Posten der Tagesakte als Liste auf der Karte, getrennt durch feine Linien */
.akte-liste { display: grid; margin-top: 18px; border-top: .5px solid rgba(255, 255, 255, .2); }
.akte-posten {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 0;
  color: #fff; text-align: left; border-bottom: .5px solid rgba(255, 255, 255, .2); transition: transform .16s var(--weich), opacity .2s;
}
.akte-posten:last-child { border-bottom: 0; padding-bottom: 0; min-height: 54px; }
.akte-posten:active:not(:disabled) { transform: scale(.985); opacity: .8; }
.akte-posten.erledigt { opacity: .55; }
.akte-posten.erledigt .ap-text b { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, .5); }
.akte-posten.uebernommen .ap-text small::after { content: " · begonnen"; }
.glaskreis.klein { width: 40px; height: 40px; }
.glaskreis.klein .ikon { font-size: 17px; }
.akte-posten .glaskreis { background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .28); }
.akte-posten .glaskreis .ikon { color: var(--hg); }
.akte-posten.erledigt .glaskreis { background: var(--hg); box-shadow: none; }
.akte-posten.erledigt .glaskreis .ikon { color: var(--h2); }
.ap-text { display: grid; gap: 1px; min-width: 0; }
.ap-text b { font: 600 16px/21px var(--schrift); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-text small { font: 500 13px/17px var(--schrift); color: rgba(255, 255, 255, .68); font-variant-numeric: tabular-nums; }
.ap-ring { display: grid; place-items: center; width: 24px; height: 24px; color: rgba(255, 255, 255, .5); }
.ap-ring .ikon { font-size: 14px; }

.glaschip .vorrat { display: inline-flex; gap: 1px; margin-left: 4px; padding-left: 6px; border-left: 1px solid currentColor; }
.glaschip .vorrat .ikon { font-size: 11px; color: #1f4f99; }
.glaschip.glimmt { animation: glimmen 2.4s ease-in-out infinite; }
@keyframes glimmen { 50% { box-shadow: 0 0 0 4px rgba(241, 215, 156, .35), 0 0 22px rgba(241, 215, 156, .45); } }

/* Wiedereinsetzung als Bescheid auf Papier: helle Karte, Siegelrot nur für Zahl, Frist und Knopf */
.wiedereinsetzung { display: grid; gap: 4px; }
.wiedereinsetzung .kn { margin-top: 14px; }
.wiedereinsetzung .held-ober { white-space: normal; }
.held.wiedereinsetzung {
  color: var(--text); background: var(--karte);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 26%, transparent), inset 0 4px 0 var(--akzent), var(--kartenschatten);
}
.held.wiedereinsetzung .held-ober { color: var(--akzent-text); font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: -.015em; }
.held.wiedereinsetzung .held-zahl { color: var(--akzent-text); }
.held.wiedereinsetzung .held-einheit { color: var(--text2); }
.held.wiedereinsetzung .held-bahn { background: var(--fuell2); }
.held.wiedereinsetzung .held-bahn i { background: var(--akzent); }
.held.wiedereinsetzung .held-fuss { color: var(--text2); }
.held.wiedereinsetzung .glaschip { background: color-mix(in srgb, var(--akzent) 10%, transparent); color: var(--akzent-text); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.held.wiedereinsetzung .kn.weiss { background: var(--akzent); color: #fff; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--akzent) 75%, transparent); }

/* Schatten: das eigene Bild, blass */
.avatar.schatten { opacity: .5; filter: saturate(.35) contrast(.9); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.kontakte.mit-schatten { grid-template-columns: repeat(5, 1fr); }
.kontakte.mit-schatten .avatar.av-g, .kontakte.mit-schatten .kt-plus { --av: 50px; }

/* Lauf und Abschluss */
.laufmarke { justify-self: end; display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 12px; border-radius: 17px; background: color-mix(in srgb, #c8501a 13%, transparent); color: light-dark(#b14614, #f38a55); font: 700 15px/1 var(--rund); animation: pop .35s var(--weich) both; }
.laufmarke .ikon { font-size: 15px; }
.erg-marken { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.glaschip.lauf-chip { background: var(--fuell); color: var(--text); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.glaschip.lauf-chip .ikon { color: #c8501a; }
.erg-ausblick { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 500 15px/20px var(--schrift); color: var(--text2); }
.tagesfall-raster { display: flex; gap: 6px; margin-top: 10px; }
.tagesfall-raster i { width: 34px; height: 34px; border-radius: 9px; }
.tagesfall-raster i.gut { background: var(--gut); }
.tagesfall-raster i.schlecht { background: var(--schlecht); }

.pk-avatar { display: grid; border-radius: 50%; margin-bottom: 14px; }
.pk-avatar .avatar { margin-bottom: 0; }
.pk-avatar:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) { .glaschip.glimmt { animation: none; box-shadow: 0 0 0 2px rgba(241, 215, 156, .6); } }

/* ---------- Kammer (0.10.0) ---------- */

.kammer .held-titel { margin: 4px 0 14px; }
.kammer-stufen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kammer-stufen i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.kammer-stufen i.durch { background: color-mix(in srgb, var(--hg) 55%, transparent); }
.kammer-stufen i.jetzt { background: var(--hg); box-shadow: 0 0 14px color-mix(in srgb, var(--hg) 60%, transparent); }
.kammer .held-fuss { margin-top: 12px; }
.kammerliste .zone-auf .rangnr { color: var(--gut-text); font-weight: 700; }
.kammerliste .zone-ab .rangnr { color: var(--schlecht-text); font-weight: 700; }
.kammerliste .zone-ab .z-titel { color: var(--text2); }
.zonen-trenner { display: flex; align-items: center; gap: 10px; padding: 6px 0; font: 600 13px/16px var(--schrift); letter-spacing: -.005em; }
.zonen-trenner::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }

/* ---------- Konto: Registrieren und Anmelden (1.11.0) ---------- */

.willkommen-wahl { display: flex; justify-content: center; width: 100%; }
.willkommen-wahl .segment { display: flex; width: min(100%, 340px); }
.willkommen-wahl .segment button { flex: 1; }
.willkommen > .karte { width: min(100%, 440px); }
.pw-feld { position: relative; }
.pw-feld .feld { padding-right: 92px; }
.pw-zeigen { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 8px; }
.fehler.klein { font-size: 13px; line-height: 18px; margin-top: -8px; text-align: left; padding-left: 4px; }
.textknopf.mittig { justify-self: center; }
.blatt-text { font: 400 16px/22px var(--schrift); color: var(--text2); text-align: center; }
.zeile.gefahr .z-titel { color: var(--schlecht-text); }
.z-hinten.leise { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55vw; }

/* ---------- Wappen: Abzeichen in fünf Stufen, Vitrine (1.18.0, Wappen in der Bauweise des Katzenkönigs seit 1.21.0) ---------- */

.wp-vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
.wappen { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--md); height: var(--md); }
.wappen svg { position: absolute; left: -14%; top: -14%; width: 128%; height: 128%; overflow: visible; }
/* Flach wie der Katzenkönig: Symbol weiß, nur eine weiche Druckkante darunter, keine Kontur. Das Siegel ist mittig, das Symbol auch. */
.wappen .ikon { position: relative; color: #fff; font-size: calc(var(--md) * .3); filter: drop-shadow(0 calc(var(--md) * .025) 0 rgba(0, 0, 0, .16)); }
.aw-1 .ikon { color: #e4e8ef; font-size: calc(var(--md) * .28); filter: none; }
.aw-7 .ikon { color: #ffe48a; }
.aw-7 { top: calc(var(--md) * .06); }
/* Diamant und Legende: Plus-Funken blinken; Legende: Strahlen drehen sich langsam, ein Glanz wandert über das Feld */
.aw-strahlen { transform-origin: 50px 50px; animation: aw-dreh 24s linear infinite; }
.aw-glanz { animation: aw-glanz 3.6s ease-in-out infinite; }
.aw-funke { transform-box: fill-box; transform-origin: center; animation: aw-funke 2.6s ease-in-out infinite; }
@keyframes aw-dreh { to { transform: rotate(360deg); } }
@keyframes aw-glanz { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(150px) skewX(-20deg); } }
@keyframes aw-funke { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* Gesperrt: graue Fläche, ohne Bewegung */
.wappen.gesperrt svg { filter: grayscale(1) brightness(1.1); opacity: .32; }
.wappen.gesperrt .ikon { color: light-dark(#9a958c, #8f8a81); filter: none; opacity: .8; }
.wappen.gesperrt .aw-funke, .wappen.gesperrt .aw-strahlen, .wappen.gesperrt .aw-glanz { display: none; }
@media (prefers-reduced-motion: reduce) { .aw-strahlen, .aw-glanz, .aw-funke { animation: none; } }

.abz-stufe { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 0 8px; font: 700 12px/16px var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.stufe-7 .abz-stufe span:first-child, .stufe-4 .abz-stufe span:first-child { color: light-dark(#8f6c1d, #e2c070); }
.stufe-6 .abz-stufe span:first-child { color: light-dark(#137aa6, #3ccbff); }
.stufe-5 .abz-stufe span:first-child { color: light-dark(#4f7d93, #a9dcf0); }
.karte.abzeichen-gitter + .karte.abzeichen-gitter { margin-top: 0; }
.vitrine { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 16px 0 8px; }
.vit-platz { display: grid; justify-items: center; align-content: start; gap: 10px; width: 100px; font: 600 12px/15px var(--schrift); text-align: center; border-radius: 16px; transition: transform .16s var(--weich); }
button.vit-platz:active { transform: scale(.94); }
.vit-leer { display: grid; place-items: center; width: 64px; height: 64px; margin: 12px 0; border-radius: 50%; border: 1.5px dashed var(--text3); color: var(--text3); }
.vit-leer .ikon { font-size: 22px; }
.vit-wahl { padding: 4px 0; max-height: 52vh; overflow-y: auto; }
.vit-wahl .abz { padding: 8px 2px; }
.vit-wahl .abz[aria-pressed="true"] { background: color-mix(in srgb, var(--akzent-rand) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--akzent-rand); }

/* ---------- Kein seitliches Wischen: die Seite bewegt sich nur auf und ab ---------- */

html { overflow-x: hidden; overscroll-behavior-x: none; }
body { overflow-x: clip; touch-action: pan-y pinch-zoom; max-width: 100vw; }
.kontakte, .kontakte.mit-schatten { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; row-gap: 8px; }
.kontakte .kontakt { flex: none; min-width: 0; }
.held-titel, .pk-name, .feier-titel { overflow-wrap: anywhere; }
.anfrage-knoepfe { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Wer online ist: Gesichterreihe (1.19.0) ---------- */

.online-reihe { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.or-gesichter { display: inline-flex; padding-left: 7px; }
.or-gesichter .avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--h0, #19305a); }
.or-text { font: 500 13px/18px var(--schrift); color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.or-text b { font-weight: 700; color: #fff; }
.suche .online-reihe { justify-content: center; }
.online-reihe + .liga-knoepfe { margin-top: 12px; }

/* ---------- Handybreite und Tippen (1.19.0) ---------- */

/* Doppeltipp vergrößert nichts mehr, zwei Finger schon */
* { touch-action: manipulation; }
/* Vier Spalten, die sich die Breite teilen, statt sich nach dem längsten Wort zu richten: lange Namen trennen */
.abzeichen-gitter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.abz { min-width: 0; }
.abz > span:last-child, .vit-platz > span:last-child { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.vitrine { width: 100%; }
.vit-platz { flex: 0 1 100px; min-width: 0; width: auto; }
.leistenkopf { gap: 8px; }
.balken-fuss > span { min-width: 0; }
.balken-fuss > span:last-child { text-align: right; }
.raster > .karte .wert { overflow-wrap: anywhere; }
.raster .k-titel { font-size: 16px; letter-spacing: -.03em; }
/* Bot-Karte: langer Titel bricht um, statt unter die Wertung zu laufen */
.botkarte .z-text { min-width: 0; }
.botkarte .z-unter { display: block; white-space: normal; overflow: visible; }
.botkarte .bot-wert { flex: none; }
.rivale { grid-template-columns: auto minmax(0, 1fr) minmax(0, auto); }

/* ---------- Titelseite, Minister als Einzelner (1.15.0) ---------- */

.zeile.tl-offen .z-titel { color: var(--text2); }
.tl-du { font: 700 13px/18px var(--schrift); color: var(--akzent-text); }
.tl-noch { font: 600 13px/18px var(--schrift); color: var(--akzent-text); font-variant-numeric: tabular-nums; }
.minister-karte { display: grid; justify-items: center; gap: 6px; text-align: center; }
.minister-regel { font: 500 13px/18px var(--schrift); color: var(--text2); }
.minister-inhaber { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 6px; text-align: left; }
.minister-inhaber .z-text { flex: 1; min-width: 0; display: grid; }

/* ---------- Freunde, Uni-Gruppen, Duell-Aufbau (1.14.0) ---------- */

.liga-knoepfe { margin-top: 14px; }
.freund-marke { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; font: 600 11px/16px var(--schrift); color: var(--akzent-text); background: color-mix(in srgb, var(--akzent-rand) 16%, transparent); vertical-align: 1px; }
.zeile.freund { background: color-mix(in srgb, var(--akzent-rand) 6%, transparent); }
.freund-plus { width: 100%; }
.anfrage-knoepfe { display: inline-flex; gap: 6px; }
.kn.klein { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 17px; }
.uni-leer { display: grid; gap: 12px; }
.leise { color: var(--text2); font: 500 13px/18px var(--schrift); }

/* ---------- Liga im Duell, Gegnersuche (1.13.0) ---------- */

.liga-suche { width: 100%; margin-top: 14px; }
.suche { display: grid; justify-items: center; text-align: center; }
.suche-puls { position: relative; margin: 10px 0 6px; }
.suche-puls::before, .suche-puls::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--hg); opacity: 0; animation: suchpuls 2.4s ease-out infinite; }
.suche-puls::after { animation-delay: 1.2s; }
@keyframes suchpuls { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.suche-text { font: 600 15px/20px var(--schrift); color: rgba(255, 255, 255, .8); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .suche-puls::before, .suche-puls::after { animation: none; opacity: .5; } }

/* ---------- Fünf Bots und Titelleiter (1.12.0) ---------- */

.kontakte .avatar.av-g, .kontakte .kt-plus { --av: 52px; width: 52px; height: 52px; }
.kt-wert { font: 600 12px/14px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.bot-wert { margin-left: auto; color: var(--text2); }
.titelleiter { display: grid; gap: 14px; }
.tl-kopf { display: grid; gap: 8px; }
.tl-jetzt { font: 700 22px/28px var(--schrift); letter-spacing: -.02em; text-align: center; }
.tl-liste { display: grid; max-height: 56vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; border-radius: 16px; }
.tl-abschnitt { position: sticky; top: 0; z-index: 1; padding: 12px 4px 6px; font: 700 12px/16px var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--text2); background: var(--blatt, var(--bg)); }
.tl-zeile { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 14px; color: var(--text3); }
.tl-zeile.erreicht { color: var(--text); }
.tl-zeile.jetzt { color: var(--text); background: color-mix(in srgb, var(--akzent-rand) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--akzent-rand); }
.tl-marke { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fuell); font: 700 11px/1 var(--schrift); color: var(--text2); }
.tl-zeile.erreicht .tl-marke { background: var(--gut-text); color: #fff; }
.tl-marke .ikon { font-size: 12px; }
.tl-text { display: grid; min-width: 0; flex: 1; }
.tl-titel { font: 600 15px/20px var(--schrift); }
.tl-ab { font: 500 12px/16px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.tl-bots { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.tl-bot { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/16px var(--schrift); color: var(--text2); }

/* ---------- Liga und Rangliste (1.10.0) ---------- */

.liga-wahl { display: flex; justify-content: center; }
.liga-wahl .segment { display: flex; width: min(100%, 360px); }
.liga-wahl .segment button { flex: 1; }
.held .balken { height: 5px; background: rgba(255, 255, 255, .18); }
.held .balken > i { background: var(--hg); box-shadow: 0 0 14px color-mix(in srgb, var(--hg) 60%, transparent); }
.zonen-trenner span { display: inline-flex; align-items: center; gap: 4px; }
.zonen-trenner .ikon { font-size: 11px; }
.zonen-trenner.auf { color: var(--gut-text); }
.zonen-trenner.ab { color: var(--schlecht-text); }
.gruppe > li.zonen-trenner + li { border-top: 0; }

/* ---------- Laufbahn: Rahmen um das eigene Bild je Station (0.12.0) ---------- */

.pk-avatar.robe-1 .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px #c58a52, 0 18px 30px -14px rgba(0, 0, 0, .35); }
.pk-avatar.robe-2 .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px #b8bfc9, 0 0 22px rgba(184, 191, 201, .8), 0 18px 30px -14px rgba(0, 0, 0, .35); }
.pk-avatar.robe-3 .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #15161a, 0 0 0 9px #c9a227, 0 18px 30px -14px rgba(0, 0, 0, .45); }
.pk-avatar.robe-4 .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #b31b1b, 0 0 0 10px #e8c25a, 0 0 28px rgba(232, 194, 90, .7), 0 18px 30px -14px rgba(0, 0, 0, .45); }

/* ---------- Titel, Rahmen, Spielerprofil (1.1.0) ---------- */

.pk-avatar.robe-5 .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #0b1f4d, 0 0 0 10px #e8c25a, 0 0 34px rgba(232, 194, 90, .9), 0 18px 30px -14px rgba(0, 0, 0, .45); animation: glanz 3.2s ease-in-out infinite; }
@keyframes glanz { 50% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #0b1f4d, 0 0 0 10px #ffe08a, 0 0 46px rgba(255, 214, 102, 1), 0 18px 30px -14px rgba(0, 0, 0, .45); } }
.avatar.rb-1 { box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px #c58a52; }
.avatar.rb-2 { box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px #aab2bd; }
.avatar.rb-3 { box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px #15161a, 0 0 0 5px #c9a227; }
.avatar.rb-4 { box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px #b31b1b, 0 0 0 5px #e8c25a; }
.avatar.rb-5 { box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px #0b1f4d, 0 0 0 5.5px #e8c25a, 0 0 14px rgba(232, 194, 90, .8); }
.pk-titel { font: 700 15px/20px var(--schrift); letter-spacing: -.01em; color: var(--akzent-text); margin-bottom: 2px; }
.minister-marke { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 15px; margin-bottom: 6px; background: linear-gradient(162deg, #2b4a80, #19305a 55%, #0c1a35); color: #e3c27a; font: 700 14px/18px var(--schrift); letter-spacing: -.005em; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 8px 20px -10px rgba(12, 26, 53, .8); }
.minister-marke .ikon { font-size: 14px; }
.pk-spitze { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font: 500 13px/18px var(--schrift); color: var(--text2); }
.pk-spitze .ikon { font-size: 12px; color: var(--gold); }
.zum-profil { display: grid; border-radius: 50%; }
.zum-profil:active { transform: scale(.96); }
.einl-titel-klein { font: 600 13px/16px var(--schrift); letter-spacing: -.005em; color: var(--hg, rgba(255, 255, 255, .8)); }
.spieler { display: grid; gap: 14px; }
.spieler .profilkopf { padding-top: 0; }
.gegeneinander { display: grid; justify-items: center; gap: 2px; padding: 16px; }
.gg-stand { display: flex; align-items: baseline; gap: 10px; font: 700 40px/1 var(--rund); font-variant-numeric: tabular-nums; }
.gg-stand .f-gruen { color: var(--gut-text); }
.gg-stand .f-rot { color: var(--schlecht-text); }
.gg-stand span { color: var(--text3); }
@media (prefers-reduced-motion: reduce) { .pk-avatar.robe-5 .avatar { animation: none; } }

/* ---------- Herrschende Meinung, Rivale, Wette, Dossier, Prognose (1.2.0) ---------- */

.hm-zeile { display: flex; align-items: center; gap: 6px; font: 600 13px/18px var(--schrift); color: var(--text2); margin: -2px 0 2px; }
.hm-zeile .ikon { font-size: 13px; }
.hm-zeile.selten { color: var(--gold); }
.rivale { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; }
.rv-text { display: grid; gap: 1px; min-width: 0; }
.rv-text small { font: 600 13px/16px var(--schrift); letter-spacing: -.005em; color: var(--akzent-text); }
.rv-text b { font: 700 18px/22px var(--schrift); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-titel { font: 500 13px/17px var(--schrift); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-abstand { display: inline-flex; align-items: center; gap: 4px; max-width: 120px; font: 600 13px/16px var(--schrift); text-align: right; }
.rv-abstand.rv-vorn { color: var(--schlecht-text); }
.rv-abstand.rv-hinten { color: var(--gut-text); }
.rv-abstand .ikon { font-size: 12px; flex: none; }
.wette .knopfpaar { margin-top: 10px; }
.wette-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.wette-tage i { height: 10px; border-radius: 5px; background: var(--fuell2); }
.wette-tage i.gut { background: var(--gold); }
.wette-tage i.schlecht { background: var(--schlecht); }
.pk-prognose { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 14px/18px var(--schrift); color: var(--akzent-text); }
.pk-prognose .ikon { font-size: 14px; }
.dossier-karte { position: relative; display: grid; gap: 2px; width: 100%; text-align: left; padding: 16px 18px; background: light-dark(#f4ecd8, #2b2619); box-shadow: inset 0 0 0 1px light-dark(#e3d4ad, #4a3f25), var(--kartenschatten); }
.dossier-karte b { font: 700 20px/24px var(--schrift); letter-spacing: -.02em; color: light-dark(#3b2f12, #f0e2bd); }
.dossier-stempel { justify-self: start; padding: 2px 8px; border: 2px solid #c62828; border-radius: 4px; color: #c62828; font: 800 11px/14px var(--schrift); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-4deg); }
.dossier-stempel.gross { font-size: 14px; line-height: 18px; padding: 4px 12px; }
.dossier { display: grid; gap: 14px; }
.ds-kopf { display: grid; justify-items: center; gap: 8px; padding: 6px 0 4px; text-align: center; }
.ds-akte { font: 700 22px/26px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; }
.ds-titel { font: 500 13px/18px var(--schrift); color: var(--text2); }
.ds-eintrag { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: light-dark(#f7f1e3, #24211a); box-shadow: inset 0 0 0 1px light-dark(#eadfc3, #3a3322); }
.ds-zeichen { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: light-dark(#ece0bf, #3a3322); color: light-dark(#6b551c, #e8d39a); }
.ds-zeichen .ikon { font-size: 15px; }
.ds-eintrag small { font: 600 13px/16px var(--schrift); letter-spacing: -.005em; color: var(--text2); }
.ds-eintrag p { font: 500 15px/20px var(--schrift); margin-top: 2px; }
.wette .kn.klein { min-height: 44px; width: 100%; border-radius: 22px; }

/* ---------- Steckbrief (1.3.0) ---------- */

.sb-zeichen { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fuell); color: var(--akzent-text); }
.sb-zeichen .ikon { font-size: 15px; }
.steckbrief .z-unter { font: 600 13px/16px var(--schrift); letter-spacing: -.005em; color: var(--text2); }
.steckbrief .z-titel { white-space: normal; }

/* ---------- Profilbild, Motto, Uni (1.4.0) ---------- */

.avatar.mit-bild { overflow: hidden; background: var(--fuell); }
.avatar.mit-bild img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.foto-knoepfe { display: flex; justify-content: center; gap: 8px; }
.foto-knoepfe .kn.klein { min-height: 44px; border-radius: 22px; }
.pk-motto { max-width: 320px; margin-top: 4px; font: italic 500 15px/20px var(--schrift); color: var(--text2); text-align: center; }
.pk-uni { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font: 600 13px/18px var(--schrift); color: var(--text2); }
.pk-uni .ikon { font-size: 12px; }

/* ---------- Runde zu dritt oder viert (1.7.0) ---------- */

/* Spielerzahl auf der roten Karte */
.glassegment { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); }
.glassegment button { min-height: 36px; color: rgba(255, 255, 255, .92); font-weight: 600; }
.glassegment button[aria-pressed="true"] { background: #fffdf8; color: #17161a; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }

/* Warteraum: alle Plätze nebeneinander */
.wr-runde { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: start; gap: 6px; padding: 22px 8px 20px; }
.wr-runde .wr-platz > b { font-size: 15px; line-height: 20px; }

/* Tafel: jeder Spieler eine Spalte, der Führende mit Pokal */
.runde-tafel { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.rplatte { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 8px 2px 6px; border-radius: 16px; text-align: center; transition: opacity .3s, background .3s; }
.rplatte.ich { background: color-mix(in srgb, var(--a) 8%, transparent); }
.rplatte.weg { opacity: .45; }
.rplatte .pname { max-width: 100%; justify-content: center; margin-top: 5px; }
.rplatte .ppunkte { color: var(--a); font-size: 22px; line-height: 26px; }
.rplatte .plus { min-height: 16px; }
.rplatte .blase { left: 0; right: 0; width: max-content; max-width: 160px; margin: 6px auto 0; white-space: normal; }
.vorn { position: absolute; left: -5px; top: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #fff; box-shadow: 0 0 0 2px var(--karte); animation: pop .3s var(--weich) both; }
.vorn .ikon { font-size: 11px; }

/* Ergebnis: Rangfolge */
.rangtafel .z-hinten { position: relative; }
.rangtafel .blase { left: auto; right: 0; top: auto; bottom: 100%; margin: 0 0 6px; }

/* ---------- Wiedervorlage 2.0 (1.21.0): Reiter Lernen, Auflösung, Sitzungsende ---------- */

.wiedervorlage { width: 100%; text-align: left; }
.wv-erledigt { font-size: 40px; line-height: 44px; letter-spacing: -.03em; }
.balken.zwei { display: flex; }
.balken.zwei > i { border-radius: 0; }
.balken.zwei > i:first-child { border-radius: 4px 0 0 4px; }
.balken.zwei > i.arbeit { opacity: .32; }
.rm-zeile { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: -2px 0 2px; }
.rm-termin { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/18px var(--schrift); color: var(--gut-text); }
.rm-termin .ikon { font-size: 13px; }
.hm-knopf { margin: 0 0 0 auto; min-height: 32px; padding: 0 11px; border-radius: 16px; background: var(--fuell); }
.erg-zahlen { display: flex; justify-content: center; gap: 24px; margin-top: 4px; }
.erg-zahlen span { display: grid; justify-items: center; gap: 2px; }
.erg-zahlen b { font: 700 26px/30px var(--rund); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.erg-zahlen small { font: 500 13px/16px var(--schrift); color: var(--text2); }

/* ---------- Gesamtumbau 1.26.0: Nachtschiefer, Rubik, ruhiges Glas, Druckkante ----------
   Entscheidungen in konzept/gestaltung/AUFTRAG.md (Nr. 1 bis 75). Nur noch dunkel, Farben aus farbwelten/welten-ruhig.mjs (Stufe Mittel),
   Glas ohne Linse und Leuchten (Nr. 60), Licht von oben schwach in der Ligafarbe, zwei langsame Flecken nur auf Übersicht und Duell,
   Druckkante wie Duolingo auf allem, was man antippt. Rot heißt nur noch „falsch“, Strafrecht ist blau. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/schrift/rubik/Rubik.woff2") format("woff2"); }

:root, :root[data-theme] {
  color-scheme: dark;
  --schrift: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --rund: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: #1b2029; --karte: #252b36; --hoch: #303745; --blatt: #1b2029; --blattkarte: #252b36; --linie: #3d4555;
  --text: #f5f5f7; --text2: #b3b8c2; --text3: #7f8796;
  --trenner: rgba(255, 255, 255, .1); --fuell: rgba(255, 255, 255, .07); --fuell2: rgba(255, 255, 255, .13);
  --knopf: #f5f5f7; --knopf-auf: #15161a; --gold: #d3aa25;
  --gut: #01a34a; --gut-text: #06c95e; --schlecht: #f85452; --schlecht-text: #fe9088; --teils: #d57407; --teils-text: #fa973f;
  --glas: rgba(48, 55, 69, .64);
  --glasfilter: blur(24px) saturate(140%);
  --glasrand: inset 0 .5px 0 rgba(255, 255, 255, .2);
  --glasschatten: 0 12px 30px -14px rgba(0, 0, 0, .55);
  --glasschatten-klein: 0 6px 16px -8px rgba(0, 0, 0, .5);
  --kartenschatten: inset 0 .5px 0 rgba(255, 255, 255, .2);
  --kante-tief: #11151c; --kante: #11151c;
  --blattglas: rgba(27, 32, 41, .86); --leistenglas: rgba(37, 43, 54, .72); --toastgrund: rgba(48, 55, 69, .94); --knopf-kante: #8f95a1;
}
/* Ligafarben (1.30.1): Amtsgericht Indigo, Landgericht Türkis, OLG Blau, BGH Violett, BVerfG Gold. Je höher die Liga, desto kräftiger. Der Akzent folgt der eigenen Liga. */
body { --liga: #8483e6; }
body[data-liga="1"] { --liga: #029f8e; }
body[data-liga="2"] { --liga: #5390db; }
body[data-liga="3"] { --liga: #9d7dd4; }
body[data-liga="4"] { --liga: #f2b01e; }
body {
  --akzent: var(--liga); --akzent-auf: #15161a; --akzent-rand: var(--liga);
  --akzent-text: color-mix(in oklab, var(--liga) 62%, #fff);
  --akzent-kante: color-mix(in oklab, var(--liga) 58%, #000);
  background: var(--bg); letter-spacing: 0;
}

/* Farben für Zahlen, Ringe, Marken in der neuen Reihe: --f Fläche, --ft Schrift */
.f-rot { --f: #f85452; --ft: #fe9088; }
.f-gruen { --f: #01a34a; --ft: #06c95e; }
.f-blau { --f: #5f8de4; --ft: #84affe; }
.f-cyan { --f: #049abb; --ft: #44bdde; }
.f-lila { --f: #a17ad7; --ft: #c39cfc; }
.f-orange, .f-flamme { --f: #d57407; --ft: #fa973f; }
.f-gold { --f: #ad8904; --ft: #d3aa25; }
.f-indigo { --f: #8483e6; --ft: #a9a8f5; }
.f-tuerkis { --f: #029f8e; --ft: #3fc3b2; }
.f-move, .f-pink { --f: #cd6daf; --ft: #e391c8; }
.f-lime { --f: #799821; --ft: #a3c24a; }
.f-grau { --f: #788faf; --ft: #a3b4cc; }
[data-g="strafrecht"] { --f: #5f8de4; --ft: #84affe; }
[data-g="zivilrecht"] { --f: #049abb; --ft: #44bdde; }
[data-g="oeffentliches-recht"] { --f: #a17ad7; --ft: #c39cfc; }
.a0 { --a: #5390db; } .a1 { --a: #cd6daf; } .a2 { --a: #19a24e; } .a3 { --a: #d57407; }
.a4 { --a: #9d7dd4; } .a5 { --a: #029f8e; } .a6 { --a: #da698d; } .a7 { --a: #8483e6; }
.avatar { background: var(--a, #5390db); box-shadow: none; }

/* Licht von oben in der Ligafarbe, dazu zwei sehr langsame Flecken nur auf Übersicht und Duell */
.licht { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.licht::before { content: ""; position: absolute; left: -40%; right: -40%; top: -360px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--liga) 9%, transparent), transparent); }
.fleck { display: none; position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(70px); opacity: .08; background: var(--liga);
  animation: licht-wandern 48s ease-in-out infinite alternate; }
.fleck.a { left: -140px; top: 380px; }
.fleck.b { right: -150px; top: 600px; animation-duration: 60s; animation-delay: -20s; }
body[data-ansicht="start"] .fleck, body[data-ansicht="duell-wahl"] .fleck { display: block; }
body.im-spiel .fleck, body.ohne-profil .fleck { display: none; }
@keyframes licht-wandern { from { transform: translate(0, 0); } to { transform: translate(50px, -60px); } }
@media (prefers-reduced-motion: reduce) { .fleck { animation: none; } }

/* Titel in Rubik etwas leichter, Rubik ist von sich aus kräftig */
.grosstitel { font-weight: 600; letter-spacing: -.012em; }
.abschnitt { font-weight: 600; letter-spacing: -.01em; }
.held-titel, .urteil, .feier-titel { font-weight: 600; letter-spacing: -.015em; }
.k-titel, .runde b, .blatt-titel { font-weight: 500; letter-spacing: 0; }
.frage { font-weight: 500; letter-spacing: -.005em; }

/* Karten aus Glas: Unschärfe, Tönung, feine helle Oberkante, sonst nichts */
.karte, .gruppe, .tafel-box, .fragekopf, .platz.voll, li.platz.offen {
  background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); box-shadow: var(--glasrand);
}
.karte.zart { background: color-mix(in srgb, var(--f) 18%, var(--glas)); }
.fragekopf { box-shadow: inset 0 3px 0 var(--f, var(--text)), var(--glasrand); }
.blatt { background: var(--blattglas); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .2), 0 -4px 50px rgba(0, 0, 0, .4); }
.blatt .gruppe, .blatt .karte { background: var(--fuell); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.blatt-grund { background: rgba(0, 0, 0, .4); }
.toast { background: var(--toastgrund); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .2); }
.stoerung { background: var(--schlecht); color: #15161a; }
.feld { background: var(--karte); box-shadow: inset 0 0 0 1px var(--linie); }
.feld:focus { box-shadow: 0 0 0 2px var(--akzent); }
.segment { background: var(--fuell); }
.segment button[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.zeile.ich { background: color-mix(in srgb, var(--akzent) 14%, transparent); box-shadow: inset 3px 0 0 var(--akzent); }

/* Heldenkarte: Glas in der Ligafarbe getönt statt Leineneinband mit Guilloche */
.held { --hx: var(--liga); --hg: color-mix(in oklab, var(--hx) 45%, #fff);
  background: color-mix(in srgb, var(--hx) 28%, var(--glas)); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .22); }
.h-gruen, .h-blau { --hx: var(--liga); }
.h-rot { --hx: #3d4555; --hg: #f5f5f7; }
.h-orange { --hx: var(--teils); }
.held .kn.weiss { background: var(--akzent); color: var(--akzent-auf); --kante: var(--akzent-kante); }
.h-rot .kn.weiss { background: var(--knopf); color: var(--knopf-auf); --kante: var(--knopf-kante); }
.glaschip.hell { background: rgba(245, 245, 247, .94); color: #15161a; }
.glaschip.hell .ikon { color: var(--teils); }

/* Druckkante wie Duolingo: eine dunklere Unterkante, beim Drücken sinkt die Fläche hinein */
.kn, .antwort, .punkt, button.karte, button.held, .kapselknopf, button.platz, .rundknopf, .glasknopf {
  box-shadow: 0 4px 0 var(--kante); transition: transform 80ms ease-out, box-shadow 80ms ease-out, background .2s, opacity .2s;
}
button.karte, button.held { box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .2), 0 4px 0 var(--kante); }
.kn:active:not(:disabled), .antwort:active:not(:disabled), .punkt:active:not(:disabled), button.karte:active:not(:disabled), button.held:active,
.kapselknopf:active, button.platz:active:not(:disabled), .rundknopf:active, .glasknopf:active {
  transform: translateY(4px); box-shadow: 0 0 0 var(--kante); filter: none; scale: none;
}
.kn:disabled { box-shadow: none; }
.kn { --kante: var(--knopf-kante); background: var(--knopf); color: var(--knopf-auf); font-weight: 600; letter-spacing: 0; }
.kn.akzent { background: var(--akzent); color: var(--akzent-auf); --kante: var(--akzent-kante); }
.kn.weiss, .kn.grau, .kapselknopf { background: var(--hoch); color: var(--text); }
.kn.weiss, .kn.grau, .kapselknopf, .glasknopf { --kante: var(--kante-tief); }
.kn.rot { background: color-mix(in srgb, var(--schlecht) 22%, var(--karte)); color: var(--schlecht-text); --kante: var(--kante-tief); }
.kn.glas { background: rgba(255, 255, 255, .13); color: #fff; --kante: rgba(0, 0, 0, .35); }
.rundknopf { --kante: var(--knopf-kante); }
.rundknopf.weiss { --kante: var(--knopf-kante); background: var(--knopf); color: var(--knopf-auf); }
.punkt { background: var(--hoch); --kante: var(--kante-tief); }

/* Antworten: Glas mit Kante, gewählt bleibt eingedrückt, richtig und falsch als volle Flächen */
.antwort { background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); --kante: var(--linie); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16), 0 4px 0 var(--kante); }
.antwort .buchstabe { background: var(--fuell2); color: var(--text2); }
.antwort.gewaehlt { transform: translateY(4px); box-shadow: 0 0 0 2px var(--text); }
.antwort.gewaehlt .buchstabe { background: var(--text); color: var(--bg); }
.antwort.richtig { background: var(--gut); color: #15161a; font-weight: 600; --kante: color-mix(in oklab, var(--gut) 58%, #000); box-shadow: 0 4px 0 var(--kante); transform: none; }
.antwort.falsch { background: var(--schlecht); color: #15161a; --kante: color-mix(in oklab, var(--schlecht) 58%, #000); box-shadow: 0 4px 0 var(--kante); transform: none; }
.antwort.richtig .buchstabe, .antwort.falsch .buchstabe { background: rgba(0, 0, 0, .2); color: #15161a; }
.antwort.richtig.gewaehlt, .antwort.falsch.gewaehlt { transform: translateY(4px); box-shadow: 0 0 0 var(--kante); }
.antwort.blass { opacity: .45; box-shadow: none; }
li.platz.richtig { background: var(--gut); color: #15161a; }
li.platz.richtig::before { background: rgba(0, 0, 0, .2); color: #15161a; }
.fertig, .urteilzeichen.gut { color: #15161a; }

/* Reiterleiste: ruhiges Glas, Duell als flacher weißer Kreis mit Kante */
.leiste { background: var(--leistenglas); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .18), 0 12px 30px -12px rgba(0, 0, 0, .6); }
.leiste-blase { background: rgba(255, 255, 255, .12); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16); }
.leiste button { color: var(--text3); }
.leiste button[aria-current="true"] { color: var(--text); }
.mitte-kreis { background: var(--knopf); color: var(--knopf-auf); box-shadow: 0 0 0 4px var(--bg), 0 4px 0 4px var(--knopf-kante); }
.leiste button.mitte[aria-current="true"] .mitte-kreis { scale: 1.06; box-shadow: 0 0 0 4px var(--bg), 0 4px 0 4px var(--knopf-kante); }
.leiste button.mitte:active .mitte-kreis { scale: none; transform: translateY(4px); box-shadow: 0 0 0 4px var(--bg), 0 0 0 4px var(--knopf-kante); }

/* Konfetti in der neuen Reihe */
.konfetti .k0 { background: var(--liga); } .konfetti .k1 { background: #d3aa25; } .konfetti .k2 { background: #5f8de4; }
.konfetti .k3 { background: #f5f5f7; box-shadow: none; } .konfetti .k4 { background: #19a24e; }

/* Hell bleibt als Einstellung (Entscheidung 3): dieselbe Bauweise auf hellem Grund, Knöpfe dunkel, Heldenkarten in voller Ligafarbe */
:root[data-theme="hell"] {
  color-scheme: light;
  --bg: #eef0f4; --karte: #ffffff; --hoch: #e3e6ed; --blatt: #eef0f4; --blattkarte: #ffffff; --linie: #c9ced8;
  --text: #15161a; --text2: #555b66; --text3: #8a909b;
  --trenner: rgba(0, 0, 0, .1); --fuell: rgba(0, 0, 0, .05); --fuell2: rgba(0, 0, 0, .09);
  --knopf: #15161a; --knopf-auf: #ffffff; --knopf-kante: #000000;
  --gut-text: #13803d; --schlecht-text: #c43c37; --teils-text: #a95a00;
  --glas: rgba(255, 255, 255, .72);
  --glasrand: inset 0 .5px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .07);
  --kartenschatten: 0 0 0 .5px rgba(0, 0, 0, .07);
  --kante-tief: #c3c8d2; --kante: #c3c8d2;
  --blattglas: rgba(238, 240, 244, .9); --leistenglas: rgba(255, 255, 255, .78); --toastgrund: rgba(21, 22, 26, .9);
}
:root[data-theme="hell"] body { --akzent-text: color-mix(in oklab, var(--liga) 70%, #000); }
:root[data-theme="hell"] .held { background: color-mix(in oklab, var(--hx) 82%, #000); }
:root[data-theme="hell"] .h-rot { --hx: #2b3140; }
:root[data-theme="hell"] .leiste { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 12px 30px -12px rgba(0, 0, 0, .25); }
:root[data-theme="hell"] .leiste-blase { background: rgba(0, 0, 0, .07); box-shadow: none; }
:root[data-theme="hell"] .toast { color: #fff; }

/* ---------- 1.27.0: Übersicht und Duell-Reiter nach den Entscheidungen 14, 30, 34 ---------- */

/* Kleine Zeilen über Karten tragen jetzt den Titel selbst (Entscheidung 17) */
.held-ober { font: 600 19px/24px var(--schrift); letter-spacing: -.01em; color: #fff; }
.kopf-streak { align-self: center; font: 500 17px/22px var(--schrift); color: var(--teils-text); white-space: nowrap; }
.kopf-streak.offen { color: var(--text2); }

/* Gerichtsgebäude: flach in der Ligafarbe */
.bau { display: block; }
.bau svg { display: block; width: 100%; height: auto; }

/* Übersicht: das nächste Duell frei auf dem Grund */
.naechstes { display: grid; justify-items: center; text-align: center; padding: 4px 0 6px; }
.naechstes .bau { width: 200px; margin: 0 0 14px; }
.platz-satz { display: grid; margin: 0 0 18px; }
.platz-satz .riesig { font: 700 72px/76px var(--schrift); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.platz-satz .rest { margin-top: 2px; font: 500 20px/26px var(--schrift); }
.naechstes .kn { max-width: 360px; }
.letztes { display: grid; gap: 10px; padding: 18px 20px 20px; text-align: left; }
.letztes h2 { font: 500 17px/22px var(--schrift); }
.wertungszahl { display: flex; align-items: baseline; gap: 10px; }
.wertungszahl .w { font: 700 48px/52px var(--schrift); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.wertungszahl .plus { font: 600 22px/26px var(--schrift); color: var(--gut-text); font-variant-numeric: tabular-nums; }
.wertungszahl .minus { font: 600 22px/26px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.bahn { display: block; height: 8px; border-radius: 4px; background: var(--fuell2); overflow: hidden; }
.bahn i { display: block; height: 100%; border-radius: 4px; background: var(--akzent); }
.letztes .satz { font: 400 15px/21px var(--schrift); color: var(--text2); }
.faellig { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; }
.faellig b { font: 500 17px/22px var(--schrift); }
.faellig .kn { width: auto; min-height: 44px; padding: 0 18px; flex: none; }

/* Duell-Reiter: die Liga als Bühne */
.liga-buehne { display: grid; justify-items: center; padding-top: 4px; }
.liga-buehne .bau-gross { width: 240px; margin-bottom: -6px; }
.liga-tabelle { display: grid; gap: 6px; padding: 16px 12px 12px; }
.liga-tabelle h2 { margin: 0 8px 4px; font: 500 19px/24px var(--schrift); }
.platzreihen { display: grid; gap: 4px; }
.platzreihe { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 12px; border-radius: 16px; text-align: left; }
.platzreihe:disabled { cursor: default; opacity: 1; }
.platzreihe:not(:disabled):active { background: var(--fuell); }
.platzreihe.ich { background: var(--fuell2); }
.pr-nr { width: 24px; flex: none; font: 500 17px/22px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.pr-name { flex: 1; min-width: 0; font: 500 17px/22px var(--schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-xp { flex: none; font: 500 16px/22px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.platzreihe.ich .pr-nr, .platzreihe.ich .pr-xp { color: var(--text); }
.pr-leer, .pr-satz { margin: 0 8px; font: 400 15px/21px var(--schrift); color: var(--text2); }
.knopfgruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.knopfgruppe .kn { padding: 0 10px; white-space: nowrap; }
.knopfgruppe .breit { grid-column: 1 / -1; }
.stoffwahl { display: grid; gap: 10px; }
.stoffwahl .kachel { justify-content: center; }
.blatt .segment { display: flex; }
.blatt .segment button { flex: 1; }
.kachel { background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); padding: 18px 6px; align-content: center;
  box-shadow: var(--glasrand), 0 4px 0 var(--kante-tief); transition: transform 80ms ease-out, box-shadow 80ms ease-out, background .2s; }
.kachel:active:not(:disabled) { transform: translateY(4px); box-shadow: var(--glasrand), 0 0 0 var(--kante-tief); }
.kachel span.ka-name { font: 500 15px/19px var(--schrift); letter-spacing: 0; }
.kachel[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-auf); box-shadow: 0 4px 0 var(--akzent-kante); }
.kachel[aria-pressed="true"] .ka-name { color: var(--akzent-auf); }

/* ---------- 1.28.0: Profil als Ausweis, Rangliste mit Podest (Entscheidungen 35, 37, 46) ---------- */
.kopfzeile .textknopf { align-self: center; color: var(--text); font-weight: 500; font-size: 17px; }
.ausweis { position: relative; display: grid; gap: 16px; padding: 20px; border-radius: 28px; overflow: hidden; color: #fff;
  background: color-mix(in oklab, var(--liga) 52%, #1b2029); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25); }
.aw-kopf { display: flex; align-items: center; gap: 14px; }
.aw-kopf .pk-avatar { flex: none; }
.aw-wer { flex: 1; min-width: 0; display: grid; gap: 2px; }
.aw-name { font: 600 24px/29px var(--schrift); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.aw-titel { font: 400 16px/21px var(--schrift); color: rgba(255, 255, 255, .86); }
.aw-uni { font: 400 15px/20px var(--schrift); color: rgba(255, 255, 255, .7); }
.aw-bearbeiten { align-self: flex-start; color: #fff; }
.aw-motto { font: 400 16px/22px var(--schrift); color: rgba(255, 255, 255, .86); }
.ausweis .vitrine { margin: 0; }
.aw-weg { display: grid; gap: 8px; text-align: left; }
.aw-weg .bahn { background: rgba(255, 255, 255, .2); }
.aw-weg .bahn i { background: #fff; }
.aw-satz { font: 500 15px/20px var(--schrift); color: rgba(255, 255, 255, .86); }
.podest { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 8px 0 0; }
.podest-platz { display: grid; justify-items: center; gap: 4px; min-width: 0; text-align: center; }
.podest-platz:disabled { opacity: 1; cursor: default; }
.pd-name { max-width: 100%; font: 500 15px/19px var(--schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-wert { font: 500 14px/18px var(--schrift); color: var(--text2); font-variant-numeric: tabular-nums; }
.pd-sockel { display: grid; place-items: center; width: 100%; margin-top: 6px; border-radius: 16px 16px 6px 6px; font: 700 28px/1 var(--schrift);
  background: var(--glas); -webkit-backdrop-filter: var(--glasfilter); backdrop-filter: var(--glasfilter); box-shadow: var(--glasrand), 0 4px 0 var(--kante-tief); }
.p1 .pd-sockel { height: 92px; background: var(--akzent); color: var(--akzent-auf); box-shadow: 0 4px 0 var(--akzent-kante); }
.p2 .pd-sockel { height: 68px; }
.p3 .pd-sockel { height: 52px; }
.podest-platz.ich .pd-name { font-weight: 700; }

/* ---------- 1.29.0: Katzenkönig, große Momente, Gegner gefunden (Entscheidungen 12, 24, 27, 44, 45) ---------- */
.koenig { display: block; width: 120px; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.koenig.gross { width: min(62vw, 240px); }
.koenig.hopst { animation: koenig-hopst 1.1s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
@keyframes koenig-hopst { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 45% { transform: translateY(-18px) scale(1.04); opacity: 1; } 70% { transform: translateY(0) scale(.98); } 100% { transform: none; } }
.erg-koenig { width: 132px; margin-bottom: 6px; }
.erg-satz { max-width: 30ch; font: 400 16px/22px var(--schrift); color: var(--text2); }
.suche-frei { display: grid; justify-items: center; gap: 14px; padding: 18px 0 8px; text-align: center; }
.suche-koenig { width: 170px; animation: koenig-spaeht 2.6s ease-in-out infinite; }
@keyframes koenig-spaeht { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
.suche-titel { font: 600 24px/30px var(--schrift); letter-spacing: -.01em; }

.moment { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--liga) 26%, transparent), transparent 70%), rgba(17, 21, 28, .94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #f5f5f7; animation: moment-herein .32s ease-out both; cursor: pointer; }
.moment.geht { animation: moment-weg .3s ease-in both; }
@keyframes moment-herein { from { opacity: 0; } }
@keyframes moment-weg { to { opacity: 0; transform: scale(1.03); } }
.moment-inhalt { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 420px; }
.moment-titel { margin-top: 8px; font: 700 54px/58px var(--schrift); letter-spacing: -.02em; animation: moment-stempel .5s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
@keyframes moment-stempel { from { transform: scale(1.8); opacity: 0; } }
.moment-stand { font: 700 34px/40px var(--schrift); font-variant-numeric: tabular-nums; }
.moment-plus { font: 600 20px/26px var(--schrift); color: #4bc56f; }
.moment-satz { max-width: 28ch; font: 400 17px/24px var(--schrift); color: rgba(245, 245, 247, .82); }
.moment-vs .moment-inhalt { width: 100%; gap: 22px; }
.vs-kopf { font: 600 22px/28px var(--schrift); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; }
.vs-seite { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.vs-seite.ich { animation: vs-links .5s cubic-bezier(.2, .9, .3, 1) both; }
.vs-seite.gegner { animation: vs-rechts .5s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes vs-links { from { transform: translateX(-60vw); } }
@keyframes vs-rechts { from { transform: translateX(60vw); } }
.vs-name { max-width: 100%; font: 600 19px/24px var(--schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-titel { font: 400 14px/18px var(--schrift); color: rgba(245, 245, 247, .75); }
.vs-wert { font: 600 17px/22px var(--schrift); font-variant-numeric: tabular-nums; }
.vs-mitte { font: 800 44px/1 var(--schrift); color: var(--liga); animation: moment-stempel .45s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
@media (prefers-reduced-motion: reduce) {
  .koenig.hopst, .suche-koenig, .moment-titel, .vs-seite.ich, .vs-seite.gegner, .vs-mitte { animation: none; }
}

/* ---------- 1.30.0: Katzenkönig im Leerlauf auf leeren Seiten (Entscheidung 64) ---------- */
.leer-koenig { display: grid; justify-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; }
.leer-koenig p { max-width: 30ch; font: 400 16px/22px var(--schrift); color: var(--text2); }
.koenig-lebt { display: block; width: 150px; height: 150px; }
.koenig-lebt svg { display: block; width: 100%; height: 100%; overflow: visible; }
.koenig-lebt #figur { transform-box: fill-box; transform-origin: 50% 100%; animation: k-atmen 3.6s ease-in-out infinite; }
.koenig-lebt #augen { transform-box: fill-box; transform-origin: 50% 50%; animation: k-blinzeln 5.2s linear infinite; }
.koenig-lebt #ohr-l, .koenig-lebt #ohr-r { transform-box: fill-box; transform-origin: 50% 100%; animation: k-ohr 7s ease-in-out infinite; }
.koenig-lebt #ohr-r { animation-delay: -3.1s; }
.koenig-lebt #zepter { transform-box: fill-box; transform-origin: 50% 80%; animation: k-zepter 9s ease-in-out infinite; }
.koenig-lebt #schweif { transform-box: fill-box; transform-origin: 0% 100%; animation: k-schweif 4.4s ease-in-out infinite; }
@keyframes k-atmen { 0%, 100% { transform: none; } 50% { transform: scale(1.012, 1.025); } }
@keyframes k-blinzeln { 0%, 91%, 97%, 100% { transform: none; } 94% { transform: scaleY(.08); } }
@keyframes k-ohr { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-9deg); } 94% { transform: rotate(4deg); } }
@keyframes k-zepter { 0%, 78%, 100% { transform: none; } 85% { transform: rotate(-10deg); } 92% { transform: rotate(3deg); } }
@keyframes k-schweif { 0%, 100% { transform: none; } 50% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .koenig-lebt * { animation: none !important; } }
.letztes + .leer-koenig, .naechstes + .leer-koenig { margin-top: 4px; }
.feier-teilen { margin-top: 12px; }

/* ---------- 1.32.0: Rückmeldung als dunkle Glasleiste von unten (Entscheidung 21) ---------- */
.rm-leiste { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
.rm-leiste > .rueckmeldung {
  pointer-events: auto; display: grid; gap: 10px; max-width: 504px; max-height: 64dvh; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px 16px; border-radius: 32px; color: #f5f5f7;
  background: rgba(21, 25, 33, .9); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 0 0 1.5px var(--rt-f), inset 0 .5px 0 rgba(255, 255, 255, .2), 0 -12px 40px rgba(0, 0, 0, .45);
  animation: rm-hoch .36s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes rm-hoch { from { transform: translateY(105%); } }
.rueckmeldung.gut { --rt: #06c95e; --rt-f: var(--gut); }
.rueckmeldung.teils { --rt: #fa973f; --rt-f: var(--teils); }
.rueckmeldung.schlecht { --rt: #fe9088; --rt-f: var(--schlecht); }
.rm-leiste .rm-titel { font: 700 26px/32px var(--schrift); letter-spacing: -.01em; color: var(--rt); }
.rm-leiste .rm-plus { font: 600 16px/20px var(--schrift); color: var(--rt); }
.rm-leiste .begruendung { font: 400 16px/23px var(--schrift); color: #f5f5f7; }
.rm-leiste .beleg, .rm-leiste .hm-zeile, .rm-leiste .rm-termin { color: rgba(245, 245, 247, .62); }
.rm-leiste .textknopf { color: rgba(245, 245, 247, .7); }
.rm-leiste .hm-knopf { background: rgba(255, 255, 255, .1); color: #f5f5f7; }
.rm-weiter { margin-top: 6px; }
.rueckmeldung.gut .rm-weiter { background: var(--gut); color: #15161a; --kante: color-mix(in oklab, var(--gut) 58%, #000); }
.rueckmeldung.teils .rm-weiter { background: var(--teils); color: #15161a; --kante: color-mix(in oklab, var(--teils) 58%, #000); }
.rueckmeldung.schlecht .rm-weiter { background: var(--schlecht); color: #15161a; --kante: color-mix(in oklab, var(--schlecht) 58%, #000); }
.rm-leiste .auto-spur { margin: 2px 28px 0; background: rgba(255, 255, 255, .12); }
.rm-leiste .auto-balken { background: rgba(245, 245, 247, .5); }
/* Platz unter der Frage, damit sich Antworten und Reaktionen über die Leiste schieben lassen */
#buehne:has(.rm-leiste) { padding-bottom: calc(46dvh + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .rm-leiste > .rueckmeldung { animation: none; } }

/* ---------- 1.33.0: Instanzwechsel, Streak, Aufstieg, drehbare Abzeichen (Entscheidungen 22, 23, 26, 31, 32, 33) ---------- */
.moment-instanz .moment-titel { font-size: 48px; line-height: 54px; }
.instanz-stufen { display: flex; gap: 8px; }
.instanz-stufen i { width: 44px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.instanz-stufen i.an { background: var(--liga); }
.streak-zahl { font: 800 120px/1 var(--schrift); letter-spacing: -.03em; color: #fa973f; font-variant-numeric: tabular-nums; }
.streak-zahl.springt { animation: streak-sprung .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes streak-sprung { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-26px) scale(1.18); } 100% { transform: none; } }
.streak-wort { font: 600 24px/30px var(--schrift); color: #f5f5f7; }
.moment-streak.gross .streak-zahl { font-size: 140px; }
.bau-aufstieg { width: min(80vw, 300px); }
.bau-aufstieg .nacht { animation: nacht-weg .9s ease-out forwards; }
@keyframes nacht-weg { to { opacity: 0; } }
.bau-aufstieg .fenster { fill: #2a3140; animation: fenster-an .3s ease-out forwards; }
@keyframes fenster-an { to { fill: #ffe28a; } }
.bau-aufstieg .wappen-portal { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: wappen-pop .55s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes wappen-pop { to { transform: scale(1); } }
.moment-aufstieg .moment-titel { animation-delay: 3.5s; }
.dreh { display: grid; place-items: center; perspective: 700px; touch-action: none; cursor: grab; user-select: none; }
.dreh:active { cursor: grabbing; }
.dreh-innen { transform-style: preserve-3d; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .streak-zahl.springt, .bau-aufstieg .nacht, .bau-aufstieg .fenster, .bau-aufstieg .wappen-portal { animation-duration: .01s; animation-delay: 0s; }
}

/* ---------- 1.33.2: Duell in der Reiterleiste nur als großer Kreis, ohne Wort, etwas tiefer (Kenneth) ---------- */
.leiste button.mitte .reiter-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.leiste .mitte-kreis { top: -13px; }

/* ---------- 1.34.0: Wertung als Herzstück des Duell-Reiters, Zonen und Weg der Woche in der Liga ---------- */
.wertung-held { display: grid; gap: 6px; width: 100%; padding: 20px 20px 18px; border-radius: 28px; text-align: left; color: #fff;
  background: color-mix(in oklab, var(--liga) 48%, #1b2029);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25), 0 4px 0 color-mix(in oklab, var(--liga) 30%, #000); transition: transform 80ms ease-out, box-shadow 80ms ease-out; }
.wertung-held:active { transform: translateY(4px); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25), 0 0 0 color-mix(in oklab, var(--liga) 30%, #000); }
.wh-titel { font: 600 19px/24px var(--schrift); color: rgba(255, 255, 255, .92); }
.wh-zeile { display: flex; align-items: baseline; gap: 12px; }
.wh-zahl { font: 800 78px/80px var(--schrift); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wh-delta { font: 700 24px/28px var(--schrift); font-variant-numeric: tabular-nums; }
.wh-delta.plus { color: #9ff0bd; }
.wh-delta.minus { color: rgba(255, 255, 255, .7); }
.wh-weg { display: grid; gap: 6px; margin-top: 6px; }
.wh-bahn { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.wh-bahn i { display: block; height: 100%; border-radius: 5px; background: #fff; }
.wh-enden { display: flex; justify-content: space-between; font: 500 13px/16px var(--schrift); color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.wh-satz { font: 500 16px/22px var(--schrift); }
.wh-einsatz { font: 400 14px/20px var(--schrift); color: rgba(255, 255, 255, .8); }
.gegner-suchen { min-height: 58px; font-size: 19px; }
.liga-kopf { display: flex; align-items: center; gap: 14px; margin: 0 6px 10px; }
.liga-kopf .bau-klein { width: 84px; flex: none; }
.liga-kopf h2 { margin: 0; font: 600 19px/24px var(--schrift); }
.liga-zeit { font: 400 15px/20px var(--schrift); color: var(--text2); }
.zonen { display: flex; align-items: center; gap: 3px; margin: 2px 6px 12px; }
.zonen i { flex: 1; height: 12px; border-radius: 4px; background: var(--fuell2); }
.zonen i.auf { background: var(--naechste, var(--liga)); }
.zonen i.ab { background: color-mix(in srgb, var(--teils) 75%, transparent); }
.zonen i.ich { height: 20px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.platzreihe.zone-auf { box-shadow: inset 4px 0 0 var(--naechste, var(--liga)); }
.platzreihe.zone-ab { box-shadow: inset 4px 0 0 var(--teils); }
.weg-satz { margin: 6px 8px 0; font: 400 15px/21px var(--schrift); color: var(--text2); }
.weg-satz + .weg-satz { margin-top: 2px; }
.blatt .zonen { margin: 0 2px 4px; }
.blatt .weg-satz { margin: 0 2px; }
