/* Nachgebaute Rukomo-App für Startseite und „App erleben“. Werte wie in packages/design und der Web-App
   (Fläche Neutral, weiße Karten ohne Rahmen, Navy, Akzent Stahlblau, Ball-Rot nur für AI, Heute, Live, Zähler).
   Breit (Laptop) oder schmal (Handy) entscheidet der Rahmen über Container-Abfragen, nicht das Fenster. */

.m-rahmen,
.m-ausschnitt {
  container-type: inline-size;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--rk-text);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.m-rahmen {
  position: relative;
  border-radius: 30px;
  background: var(--rk-surface);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-card) 70%, transparent);
}
.m-rahmen *,
.m-ausschnitt * {
  box-sizing: border-box;
}
.m-rahmen p,
.m-rahmen h2,
.m-rahmen h3,
.m-rahmen h4,
.m-rahmen ul,
.m-rahmen ol,
.m-ausschnitt p,
.m-ausschnitt h2,
.m-ausschnitt h3,
.m-ausschnitt h4,
.m-ausschnitt ul,
.m-ausschnitt ol {
  margin: 0;
}
.m-rahmen button,
.m-ausschnitt button {
  font: inherit;
  color: inherit;
}
/* Der Bildschirm im Hero zeigt höchstens so viel wie ein iPad quer; was darunter liegt, ist wie weggescrollt */
.m-rahmen-hero {
  max-height: 760px;
  border-radius: 30px;
}
.m-rahmen-vorschau {
  height: 640px;
  border-radius: 36px;
}

/* ---------- Grundaufbau ---------- */
.m-app {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  height: 100%;
  min-height: 100%;
}
.m-haupt {
  min-width: 0;
  overflow: auto;
  padding: 26px 28px 28px 14px;
  scrollbar-width: thin;
}
.m-seite {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
}

/* Seitenleiste wie in der App: helle Fläche, aktive Zeile weiß */
.m-leiste {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px;
  padding: 18px 12px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--rk-card) 62%, var(--rk-inner));
  min-height: 0;
  overflow: hidden;
}
.m-marke {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font: 600 20px/1 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.m-zeichen {
  color: var(--rk-text);
}
.m-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--rk-card) 80%, transparent);
}
.m-wappen {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rk-text);
  color: var(--rk-surface);
  font-size: 11px;
  font-weight: 800;
}
.m-team-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
  color: var(--rk-text2);
}
.m-team-text strong {
  font-size: 14px;
  color: var(--rk-text);
}
.m-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-nav-fuss {
  margin-top: auto;
}
.m-nav-punkt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--rk-text);
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: left;
  cursor: pointer;
}
.m-nav-punkt:hover {
  background: color-mix(in srgb, var(--rk-card) 60%, transparent);
}
.m-nav-punkt.ist-aktiv {
  background: var(--rk-card);
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(3, 32, 61, 0.08);
}
.m-symbol {
  flex: none;
}
.m-funke {
  flex: none;
  color: var(--rk-brandBall);
}
.m-zaehler {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rk-brandBall);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.m-nav-punkt .m-zaehler {
  margin-left: auto;
}
.m-zaehler-gross {
  min-width: 26px;
  height: 24px;
  font-size: 13px;
  vertical-align: 2px;
}
.m-trenner {
  width: calc(100% - 20px);
  margin: 8px 10px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 10%, transparent);
}
.m-unten,
.m-mehr {
  display: none;
}

/* ---------- Kopf einer Seite ---------- */
.m-kopf {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 48px;
}
.m-kopf-text {
  flex: 1;
  min-width: 0;
}
.m-ueber {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-titel {
  font: 600 30px/1.15 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.m-kopf-knoepfe {
  display: flex;
  gap: 8px;
}
.m-zurueck {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--rk-card);
  color: var(--rk-text);
  font-size: 26px !important;
  line-height: 1;
  cursor: pointer;
  align-self: center;
}

/* ---------- Karten, Kacheln ---------- */
.m-karte {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: var(--rk-card);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.m-karte-innen {
  background: color-mix(in srgb, var(--rk-card) 55%, var(--rk-inner));
}
.m-h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.m-h3-gross {
  font: 600 22px/1.2 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.m-h4 {
  margin-top: 14px !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--rk-text2);
}
.m-zeile {
  color: var(--rk-text2);
  font-size: 14px;
}
.m-leise {
  color: var(--rk-text3);
  font-weight: 600;
}
.m-hinweis {
  margin-top: 10px !important;
  font-size: 13px;
  color: var(--rk-text3);
}
.m-raster {
  display: grid;
  gap: 16px;
}
.m-raster-dash {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.m-raster-termin {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}
.m-raster-ai {
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
}
.m-kacheln {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.m-kacheln-drei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.m-kachel {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--rk-card);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.m-kachel-titel {
  font-size: 13px;
  font-weight: 600;
  color: var(--rk-text2);
}
.m-kachel-wert {
  margin-top: 2px !important;
  font: 600 clamp(19px, 2.3cqw, 26px) / 1.2 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.m-kachel-notiz {
  margin-top: 2px !important;
  font-size: 13px;
  color: var(--rk-text3);
}
.m-gut {
  color: var(--rk-goodText);
}
.m-schlecht {
  color: var(--rk-badText);
}
.m-neutral {
  color: var(--rk-text2);
}
.m-knapp {
  color: var(--rk-nearMiss);
}

/* Kopf-Karte in Navy */
.m-navy {
  color: #fff;
  background: linear-gradient(140deg, var(--rk-navy1), var(--rk-navy2) 60%, var(--rk-navy3));
  border-radius: 26px;
  padding: 22px 24px;
}
.m-navy-ueber {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.m-navy-titel {
  margin-top: 6px !important;
  font: 600 28px/1.15 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.m-navy-zeile {
  margin-top: 6px !important;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}
.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.m-chip-hell,
.m-chip-glas,
.m-chip-ruhig,
.m-chip-navy {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}
.m-chip-hell {
  background: #fff;
  color: #03203d;
}
.m-chip-glas {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.m-chip-ruhig {
  background: var(--rk-inner);
  color: var(--rk-text2);
}
.m-chip-navy {
  min-height: 32px;
  background: var(--rk-text);
  color: var(--rk-surface);
}
/* Ruhiger Punkt vor „Nächstes Spiel“ wie in der App; der pulsierende Live-Punkt nur, wenn ein Spiel läuft */
.m-punkt {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rk-brandBall);
}
.m-live-punkt {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rk-brandBall);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--rk-brandBall) 60%, transparent);
  animation: m-puls 1.8s ease-out infinite;
}
@keyframes m-puls {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--rk-brandBall) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

/* Aufgaben */
.m-aufgaben {
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 4px 0 0 var(--rk-accent), 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.m-aufgabe {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}
.m-aufgabe-zahl {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--rk-inner);
  color: var(--rk-accent);
  font-weight: 800;
}
.m-aufgabe-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.m-aufgabe-text span {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-pfeil {
  color: var(--rk-accent);
  font-size: 22px;
  font-weight: 600;
}

/* Woche */
.m-woche {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}
.m-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border-radius: 14px;
  min-width: 0;
}
.m-tag-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--rk-text3);
}
.m-tag-zahl {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}
.m-tag-was {
  font-size: 11px;
  color: var(--rk-text2);
  min-height: 14px;
}
.m-tag.ist-heute {
  background: var(--rk-card);
  box-shadow: 0 2px 10px rgba(3, 32, 61, 0.08);
}
.ist-heute .m-tag-zahl {
  background: var(--rk-brandBall);
  color: #fff;
}
.m-heute,
.m-heute-marke {
  font-size: 11px;
  font-weight: 700;
  color: var(--rk-brandBall);
}
.m-woche-karte {
  padding-bottom: 14px;
}

/* ---------- Knöpfe der App ---------- */
.m-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--rk-inner);
  color: var(--rk-text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, opacity 0.15s;
}
.m-knopf:active:not(:disabled) {
  transform: scale(0.97);
}
.m-knopf:disabled {
  cursor: default;
  opacity: 0.45;
}
.m-knopf-voll {
  background: var(--rk-accent);
  color: var(--rk-onAccent) !important;
}
.m-knopf-rand {
  background: transparent;
  color: var(--rk-accent) !important;
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
}
.m-knopf-weiss {
  background: var(--rk-card);
  color: var(--rk-text) !important;
  box-shadow: 0 1px 3px rgba(3, 32, 61, 0.12);
}
.m-knopf-navy {
  background: var(--rk-text);
  color: var(--rk-surface) !important;
}
.m-knopf-klein {
  padding: 0 14px;
  font-size: 14px !important;
}
.m-knopf-voll .m-symbol {
  color: currentColor;
}

/* Zu- und Absage */
.m-antwort {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.m-zusage {
  background: var(--rk-goodBg);
  color: var(--rk-goodText) !important;
}
.m-absage {
  background: var(--rk-badBg);
  color: var(--rk-badText) !important;
}
.m-zusage.ist-gewaehlt {
  background: var(--rk-goodStrong);
  color: #fff !important;
}
.m-absage.ist-gewaehlt {
  background: var(--rk-badStrong);
  color: #fff !important;
}

/* ---------- Kalender und Termin ---------- */
.m-liste-karte {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-liste-karte .m-h3:not(:first-child) {
  margin-top: 10px;
}
.m-termin {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 8px 12px 8px 8px;
  border: 0;
  border-radius: 16px;
  background: var(--rk-inner);
  text-align: left;
  cursor: pointer;
}
.m-termin:hover {
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
}
.m-termin-tag {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--rk-card);
  font-size: 11px;
  font-weight: 700;
  color: var(--rk-text2);
}
.m-termin-tag span {
  font-size: 17px;
  color: var(--rk-text);
}
.m-termin.ist-heute .m-termin-tag {
  background: var(--rk-brandBall);
  color: #fff;
}
.m-termin.ist-heute .m-termin-tag span {
  color: #fff;
}
.m-termin-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.m-termin-text span {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-termin-zahl {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rk-card);
  font-size: 13px;
  font-weight: 700;
  color: var(--rk-goodText);
}
.m-termin-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-termin-info strong {
  color: var(--rk-text);
}
.m-termin-karte .m-zeile {
  margin-top: 4px;
}
.m-zahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--rk-text2);
}
.m-zahl strong {
  font: 600 22px/1 'Unbounded', system-ui, sans-serif;
  margin-right: 2px;
}
.m-zahl.m-gut strong {
  color: var(--rk-goodText);
}
.m-zahl.m-schlecht strong {
  color: var(--rk-badText);
}
.m-personen {
  list-style: none;
  padding: 0;
  margin-top: 6px !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.m-nr {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rk-inner);
  font-size: 13px;
  font-weight: 800;
}
.m-person-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.m-person-notiz,
.m-person-pos {
  font-size: 13px;
  color: var(--rk-text3);
  font-weight: 500;
}
.m-person-pos {
  margin-left: 8px;
}
.m-knopf-voll[data-aktion='erinnern'],
.m-antworten .m-knopf-voll {
  margin-top: 16px;
  width: 100%;
}
.m-antworten {
  max-height: none;
}

/* ---------- Spiele ---------- */
.m-heute-spiel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.m-spiel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--rk-inner);
  text-align: left;
}
button.m-spiel {
  cursor: pointer;
}
button.m-spiel:hover {
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
}
.m-spiel-flach {
  background: transparent;
  padding-inline: 0;
  border-radius: 0;
}
.m-spiel-flach + .m-spiel-flach {
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.m-spiel-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.m-spiel-text span {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-ergebnis {
  flex: none;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--rk-card);
  font: 600 16px/1 'Unbounded', system-ui, sans-serif;
}
.m-ergebnis.m-gut {
  background: var(--rk-goodBg);
}
.m-ergebnis.m-schlecht {
  background: var(--rk-badBg);
}
.m-betrag {
  font-weight: 700;
}
.m-spiel-karte .m-knopf {
  margin-top: 12px;
}

/* ---------- Live-Erfassung (wie die App, abgeglichen 2026-11-26 mit e2e/website-abgleich.spec.ts) ---------- */
.m-live {
  gap: 12px;
}
.m-live-kopf {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 14px;
  border-radius: 20px;
}
.m-lk-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.m-lk-mitte {
  display: flex;
  align-items: center;
  gap: 18px;
}
.m-lk-rechts {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.m-live-kopf .m-zurueck {
  box-shadow: 0 2px 8px rgba(3, 32, 61, 0.08);
  font-size: 26px;
}
.m-live-gegner {
  min-width: 0;
}
.m-live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m-live-gegner strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.m-uhr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 14px;
  background: var(--rk-navy1);
  color: #fff;
}
.m-hz {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.m-uhr-zeit {
  font: 600 30px/1 'Unbounded', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.m-uhr-stift {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}
.m-uhr-knopf {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  cursor: pointer;
}
.m-stand {
  font: 600 40px/1 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m-gespeichert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rk-text2);
  white-space: nowrap;
}
.m-gespeichert::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rk-goodStrong);
}
.m-gespeichert-kurz {
  display: none;
}
.m-lk-rechts .m-knopf {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
}
/* Wie die App: unter 1150 px zwei Reihen (Gegner und Knöpfe, darunter Uhr und Stand mittig) */
@container (max-width: 1149px) {
  .m-live-kopf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'links rechts' 'mitte mitte';
  }
  .m-lk-links {
    grid-area: links;
  }
  .m-lk-rechts {
    grid-area: rechts;
  }
  .m-lk-mitte {
    grid-area: mitte;
    justify-self: center;
  }
}
/* Handy: Gegner und Stand, Uhr über die ganze Breite, „Gespeichert“, beide Knöpfe gleich breit */
@container (max-width: 719px) {
  .m-live-kopf {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'links stand' 'uhr uhr' 'gesp gesp' 'ticker ende';
    gap: 10px;
  }
  .m-lk-mitte,
  .m-lk-rechts {
    display: contents;
  }
  .m-uhr {
    grid-area: uhr;
    justify-content: space-between;
  }
  .m-uhr-stift {
    margin-left: auto;
  }
  .m-stand {
    grid-area: stand;
    justify-self: end;
    align-self: center;
    font-size: 30px;
  }
  .m-gespeichert {
    grid-area: gesp;
    justify-self: end;
  }
  .m-gespeichert-lang {
    display: none;
  }
  .m-gespeichert-kurz {
    display: inline;
  }
  .m-lk-rechts .m-knopf-rand {
    grid-area: ticker;
  }
  .m-lk-rechts .m-knopf-voll {
    grid-area: ende;
  }
}

/* Kasten nach „Ticker“ */
.m-tk-kasten {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.m-tk-schalter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--rk-text);
  cursor: pointer;
}
.m-tk-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--rk-card);
  box-shadow: inset 0 0 0 1.5px var(--rk-text2);
  color: #fff;
}
.m-tk-schalter[aria-checked='true'] .m-tk-box {
  background: var(--rk-accent);
  box-shadow: none;
}
.m-tk-satz {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-tk-adresse {
  align-self: stretch;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--rk-inner);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-accent) 30%, transparent);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.m-tk-knoepfe {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.m-tk-knoepfe .m-knopf {
  padding: 0 8px;
}

/* Feld und Bank */
.m-live-mitte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.m-feld-karte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.m-feld {
  position: relative;
  aspect-ratio: 200 / 130;
  border-radius: 16px;
  background: var(--rk-inner);
}
.m-feld-linien {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.m-feld-sechs {
  fill: color-mix(in srgb, var(--rk-accent) 12%, transparent);
  stroke: color-mix(in srgb, var(--rk-accent) 45%, transparent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.m-feld-neun,
.m-feld-sieben {
  fill: none;
  stroke: color-mix(in srgb, var(--rk-accent) 45%, transparent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.m-feld-neun {
  stroke-dasharray: 8 8;
}
.m-feld-netz {
  fill: var(--rk-card);
}
.m-feld-netzlinien {
  fill: none;
  stroke: color-mix(in srgb, var(--rk-text) 25%, transparent);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.m-feld-tor {
  fill: none;
  stroke: var(--rk-navy1);
  stroke-width: 6px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.m-spieler {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -28px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.m-spieler-nr {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rk-card);
  box-shadow: inset 0 0 0 2px var(--rk-accent), 0 2px 6px rgba(3, 32, 61, 0.12);
  font: 600 22px/1 'Unbounded', system-ui, sans-serif;
  color: var(--rk-text);
  transition: transform 0.15s;
}
.m-spieler-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--rk-card);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--rk-text);
}
.m-spieler-zeile {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--rk-text) 8%, transparent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--rk-text);
}
.m-spieler.ist-gewaehlt .m-spieler-nr {
  background: var(--rk-navy1);
  color: #fff;
}
.m-spieler:disabled {
  cursor: default;
}
.m-spieler:not(:disabled):hover .m-spieler-nr {
  transform: scale(1.05);
}
.m-spieler[data-pos='p1'] { left: 50%; top: 6.5%; }
/* wie slots.ts (Gabriel 2026-11-26: Außen etwas tiefer, Rückraum etwas weiter außen, kein Kreis auf der 6-m-Linie);
   am Rand rückt der Kreis wegen des Namens nach innen wie in der App (--rand wie --chip-half) */
.m-feld {
  --rand: 48px;
}
.m-spieler[data-pos='p2'] { left: clamp(var(--rand), 7.5%, calc(100% - var(--rand))); top: 24.6%; }
.m-spieler[data-pos='p5'] { left: clamp(var(--rand), 19%, calc(100% - var(--rand))); top: 50.8%; }
.m-spieler[data-pos='p4'] { left: 38.6%; top: 60.9%; }
.m-spieler[data-pos='p11'] { left: 61.4%; top: 60.9%; }
.m-spieler[data-pos='p8'] { left: clamp(var(--rand), 81%, calc(100% - var(--rand))); top: 50.8%; }
.m-spieler[data-pos='p9'] { left: clamp(var(--rand), 92.5%, calc(100% - var(--rand))); top: 24.6%; }
.m-tw {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--rk-navy1);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.m-bank {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--rk-inner);
}
.m-bank-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.m-segment {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--rk-text) 9%, var(--rk-inner));
}
.m-segment-knopf {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--rk-text2) !important;
  cursor: pointer;
}
.m-segment-knopf.ist-gewaehlt {
  background: var(--rk-card);
  color: var(--rk-text) !important;
  box-shadow: 0 1px 3px rgba(3, 32, 61, 0.12);
}
.m-bank-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.m-bank-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 4px;
  border-radius: 22px;
  background: var(--rk-card);
  box-shadow: 0 1px 2px rgba(3, 32, 61, 0.06);
  font-size: 14px;
  font-weight: 600;
}
.m-bank-nr {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rk-inner);
  font-weight: 700;
}
.m-bank-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Unser Tor, Angriffe und Konter */
.m-tor-karte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.m-tor-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.m-tor-quote {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-tor-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-tor-chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 22px;
  background: var(--rk-inner);
  font-size: 14px !important;
  font-weight: 600;
  cursor: pointer;
}
.m-tor-leer {
  background: transparent;
  border: 1.5px dashed color-mix(in srgb, var(--rk-text) 35%, transparent);
}
.m-tor-chip.ist-gewaehlt {
  background: var(--rk-navy1);
  border-color: var(--rk-navy1);
  color: #fff !important;
}
.m-gross {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.m-gross .m-knopf {
  min-height: 68px;
  border-radius: 12px;
  font: 600 22px/1 'Unbounded', system-ui, sans-serif !important;
}
.m-tor-klein {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.m-tor-klein .m-knopf {
  min-height: 48px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.m-gut-voll {
  background: var(--rk-goodStrong);
  color: #fff !important;
}
.m-schlecht-voll {
  background: var(--rk-badStrong);
  color: #fff !important;
}
.m-gut-rand {
  background: var(--rk-card);
  color: var(--rk-goodText) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rk-goodStrong) 40%, transparent);
}
.m-schlecht-rand {
  background: var(--rk-card);
  color: var(--rk-badText) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rk-badStrong) 40%, transparent);
}
.m-halbzeit {
  margin-top: 4px !important;
}
.m-konter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  border-left: 4px solid;
  border-radius: 12px;
}
.m-konter-angriff {
  background: var(--rk-inner);
  border-color: color-mix(in srgb, var(--rk-text) 22%, transparent);
}
.m-konter-gut {
  background: color-mix(in srgb, var(--rk-goodStrong) 12%, var(--rk-card));
  border-color: var(--rk-goodStrong);
}
.m-konter-schlecht {
  background: color-mix(in srgb, var(--rk-badStrong) 11%, var(--rk-card));
  border-color: var(--rk-badStrong);
}
.m-konter-titel {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
}
.m-konter-titel strong {
  font: 600 20px/1 'Unbounded', system-ui, sans-serif;
}
.m-konter-knoepfe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 48px;
  gap: 8px;
}
.m-konter-knoepfe.ist-einer {
  grid-template-columns: minmax(0, 1fr) 48px;
}
.m-konter-knopf {
  min-height: 48px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--rk-card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rk-text) 10%, transparent);
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.m-konter-minus {
  min-height: 48px;
  padding: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rk-card) 60%, transparent);
  color: var(--rk-text3) !important;
  font-size: 18px !important;
}

/* Ganzer Verlauf und Tabelle zum Aufklappen */
.m-karte.m-falt {
  padding: 0;
}
.m-falt-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 0;
  background: none;
  font-size: 16px !important;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.m-falt-pfeil {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transition: transform 0.15s;
}
.m-falt-kopf[aria-expanded='true'] .m-falt-pfeil {
  transform: rotate(90deg);
}
.m-verlauf-liste {
  list-style: none;
  padding: 0 20px 14px !important;
  display: flex;
  flex-direction: column;
}
.m-verlauf-eintrag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  font-size: 15px;
}
.m-verlauf-x {
  color: var(--rk-text2);
  font-size: 18px;
}
.m-live-tabelle {
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  border-collapse: collapse;
  font-size: 14px;
}
.m-live-tabelle th,
.m-live-tabelle td {
  padding: 6px 0;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}

/* Fenster nach einem Tipp auf einen Spieler */
.m-ueberlagerung-oben {
  align-items: start;
  overflow-y: auto;
}
.m-aktionsblatt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 4%;
  padding: 0 16px 16px;
  border-radius: 20px;
  background: var(--rk-card);
  box-shadow: 0 30px 60px rgba(3, 32, 61, 0.3);
}
.m-ab-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -16px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.m-ab-nr {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rk-navy1);
  box-shadow: 0 0 0 3px var(--rk-card), 0 0 0 5px color-mix(in srgb, var(--rk-accent) 35%, transparent);
  font: 600 18px/1 'Unbounded', system-ui, sans-serif;
  color: #fff;
}
.m-ab-titel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.m-ab-titel strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.m-ab-titel span {
  font-size: 13px;
  color: var(--rk-text2);
}
.m-ab-zurueck {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--rk-inner);
  color: var(--rk-accent) !important;
  font-size: 24px !important;
  cursor: pointer;
}
.m-ab-gruppe {
  margin-top: 6px !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rk-text2);
}
.m-ab-raster {
  display: grid;
  gap: 8px;
}
.m-ag-vier {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.m-ag-positiv {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.m-ag-positiv .m-ab-knopf:nth-child(-n + 2) {
  grid-column: span 3;
}
.m-ag-positiv .m-ab-knopf:nth-child(n + 3) {
  grid-column: span 2;
}
.m-ab-knopf {
  min-height: 48px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--rk-card);
  font-size: 15px !important;
  font-weight: 600;
}
.m-ab-gut {
  color: var(--rk-goodText) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rk-goodStrong) 40%, transparent);
}
.m-ab-schlecht {
  color: var(--rk-badText) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rk-badStrong) 40%, transparent);
}
.m-ab-strafe {
  background: var(--rk-penaltyBg);
  color: var(--rk-penaltyText) !important;
  box-shadow: inset 0 0 0 1.5px var(--rk-penalty);
}
.m-ab-knopf:disabled {
  opacity: 0.45;
  cursor: default;
}
.m-ab-wechseln {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--rk-card);
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
  color: var(--rk-accent) !important;
  font-size: 15px !important;
  font-weight: 600;
  cursor: pointer;
}
.m-wurfarten {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-wurfart {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--rk-inner);
  font-size: 15px !important;
  font-weight: 600;
  cursor: pointer;
}
.m-wurfart.ist-gewaehlt {
  background: var(--rk-navy1);
  color: #fff !important;
}
.m-torrahmen {
  align-self: center;
  width: min(420px, 100%);
  padding: 14px 14px 0;
  border-radius: 4px 4px 0 0;
  background: var(--rk-navy1);
}
.m-torraster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--rk-inner);
}
.m-zone {
  min-height: 78px;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: var(--rk-card);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-text) 10%, transparent);
  font-size: 13px !important;
  font-weight: 600;
  cursor: pointer;
}
.m-zone.ist-gewaehlt {
  background: var(--rk-accent);
  color: #fff !important;
}
.m-ab-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* ---------- Ticker für Fans ---------- */
.m-ueberlagerung {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 32, 61, 0.38);
}
.m-telefon,
.m-dialog {
  width: min(330px, 100%);
  padding: 14px 16px 18px;
  border-radius: 32px;
  background: var(--rk-card);
  box-shadow: 0 30px 60px rgba(3, 32, 61, 0.3), inset 0 0 0 7px var(--rk-text);
  padding: 20px 22px 24px;
}
.m-dialog {
  width: min(400px, 100%);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(3, 32, 61, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-telefon-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}
.m-schliessen {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--rk-inner);
  font-size: 22px !important;
  cursor: pointer;
}
/* Ticker wie die Seite /ticker/… der App: helle Fläche, weiße Karten, Namen nie abgeschnitten */
.m-ticker {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: var(--rk-surface);
}
.m-tk-karte {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--rk-card);
}
.m-tk-ueber {
  font-size: 12px;
  color: var(--rk-text2);
}
.m-tk-name {
  font: 600 19px/1.2 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
/* „Herren 1“ bleibt zusammen (Gabriel 2026-11-26) */
.m-tk-team {
  white-space: nowrap;
}
.m-ticker-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.m-ticker-stand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.m-ticker-team {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.m-ticker-team:last-child {
  text-align: right;
}
.m-ticker-zahl {
  font: 600 28px/1 'Unbounded', system-ui, sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m-ticker-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.m-ticker-eintrag {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}
.m-ticker-eintrag.ist-neu {
  animation: m-neu 0.6s ease-out;
}
@keyframes m-neu {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.m-verlauf-zeit {
  color: var(--rk-text2);
  font-variant-numeric: tabular-nums;
}
.m-tk-stand {
  font-weight: 700;
  white-space: nowrap;
}
.m-tk-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 4px 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rk-accent);
}
.m-tk-fuss span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* Schmaler Ticker (Handy im Rundgang): Vereine oben, Stand groß darunter, damit kein Name abgeschnitten wird */
@container (max-width: 300px) {
  .m-tk-karte {
    padding: 12px;
  }
  .m-ticker-stand {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'heim gast' 'zahl zahl';
  }
  .m-ticker-team:first-child {
    grid-area: heim;
  }
  .m-ticker-team:last-child {
    grid-area: gast;
  }
  .m-ticker-zahl {
    grid-area: zahl;
    justify-self: center;
  }
  .m-ticker-eintrag {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    font-size: 12px;
  }
}
@container (max-width: 420px) {
  .m-telefon {
    padding: 14px 12px 16px;
  }
  .m-zone {
    font-size: 12px !important;
  }
}
.m-telefon-adresse {
  justify-content: center;
  min-height: 32px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--rk-inner);
  font-size: 13px;
  font-weight: 600;
  color: var(--rk-text2);
}

.m-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rk-inner);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--rk-text2);
}

/* Rückblick */
.m-rueckblick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-textfeld {
  min-height: 112px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rk-inner);
  font-size: 15px;
  line-height: 1.5;
}
.m-textfeld.ist-leer {
  color: var(--rk-text3);
}
.m-rueckblick-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Team */
.m-kader {
  display: flex;
  flex-direction: column;
}
.m-personen-kader .m-person {
  min-height: 52px;
  border-bottom: 1px solid color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.m-personen-kader .m-person:last-child {
  border-bottom: 0;
}
.m-status {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rk-goodBg);
  color: var(--rk-goodText);
  font-size: 12px;
  font-weight: 700;
}
.m-status-warten {
  background: var(--rk-inner);
  color: var(--rk-text2);
}

/* ---------- Rukomo AI ---------- */
.m-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
}
.m-blase-zeile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.m-blase-ich {
  justify-content: flex-end;
}
.m-ki-symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rk-brandBall);
}
.m-ki-symbol .m-funke {
  color: #fff;
}
.m-blase {
  max-width: 62ch;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--rk-card);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent);
  line-height: 1.5;
}
.m-blase-frage {
  background: var(--rk-text);
  color: var(--rk-surface);
}
.m-blase.ist-tippend::after {
  content: '▍';
  margin-left: 2px;
  color: var(--rk-accent);
  animation: m-blinken 0.9s steps(2) infinite;
}
@keyframes m-blinken {
  50% {
    opacity: 0;
  }
}
.m-vorschlaege {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.m-vorschlag {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--rk-card);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-accent) 35%, transparent);
  color: var(--rk-accent) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-align: left;
}
.m-vorschlag:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
}
.m-vorschlag:disabled {
  opacity: 0.5;
  cursor: default;
}
.m-eingabe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 6px 6px 6px 18px;
  border-radius: 16px;
  background: var(--rk-card);
  color: var(--rk-text3);
}
.m-senden {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--rk-accent) 45%, var(--rk-card));
  color: #fff;
  font-weight: 800;
}
.m-kontingent-kopf {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.m-fortschritt {
  height: 8px;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--rk-inner);
  overflow: hidden;
}
.m-fortschritt-wert {
  display: block;
  width: 90%;
  height: 100%;
  border-radius: 4px;
  background: var(--rk-accent);
}

/* Hinweis unten */
.m-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--rk-text);
  color: var(--rk-surface);
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(3, 32, 61, 0.25);
  animation: m-neu 0.35s ease-out;
  white-space: nowrap;
}

/* Live-Erfassung im Vollbild (ohne Navigation, wie in der App) */
.m-vollbild {
  grid-template-columns: minmax(0, 1fr);
}
.m-vollbild .m-haupt {
  padding: 16px;
}
.m-vollbild .m-seite {
  max-width: none;
}

/* Termin kompakt */
.m-termin-kompakt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-tk-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.m-nr-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.m-nr-reihe .m-nr {
  width: 36px;
  height: 36px;
}
.m-tk-offen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Handy-Rahmen: die App in echter Handy-Breite (375 px), verkleinert; Leiste unten angedockt wie bei iOS */
.tel {
  position: relative;
  width: 268px;
  padding: 8px;
  border-radius: 46px;
  background: var(--rk-navy1);
  box-shadow: 0 30px 60px rgba(3, 32, 61, 0.22);
}
.tel .m-rahmen {
  width: 375px;
  height: 760px;
  zoom: 0.672;
  border-radius: 54px;
}
.tel .m-unten {
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 14px;
  border-radius: 0 0 54px 54px;
  background: var(--rk-card);
}

/* ---------- Ausschnitte auf der Startseite ---------- */
.m-ausschnitt {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.m-ausschnitt-live .m-live {
  height: auto;
}
.m-ausschnitt-live .m-live-kopf {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent), 0 10px 30px rgba(3, 32, 61, 0.05);
}
.m-ausschnitt .m-karte,
.m-ausschnitt .m-kachel {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent), 0 16px 40px rgba(3, 32, 61, 0.07);
}
.m-ausschnitt-ticker .m-telefon {
  width: 100%;
}
.m-ausschnitt .m-chat {
  min-height: 0;
}

/* Laptop-Ansicht mit wenig Platz (z. B. iPad hoch): Kacheln in zwei Reihen */
@container (max-width: 980px) {
  .m-kacheln {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Schmal: Handy-Ansicht ---------- */
@container (max-width: 760px) {
  .m-app {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-leiste {
    display: none;
  }
  .m-haupt {
    padding: 18px 16px 104px;
  }
  .m-unten {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--rk-card) 88%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(3, 32, 61, 0.14);
  }
  .m-unten .m-nav-punkt {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 4px 0;
    font-size: clamp(9px, 2.85cqw, 11px) !important;
    text-align: center;
    border-radius: 18px;
  }
  .m-unten .m-nav-punkt.ist-aktiv {
    color: var(--rk-accent);
    box-shadow: none;
  }
  .m-unten .m-nav-punkt span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-unten .m-zaehler {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    margin: 0;
  }
  .m-mehr {
    position: absolute;
    right: 10px;
    bottom: 86px;
    z-index: 16;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: min(240px, calc(100% - 20px));
    padding: 8px;
    border-radius: 20px;
    background: var(--rk-card);
    box-shadow: 0 16px 40px rgba(3, 32, 61, 0.2);
  }
  .m-mehr-punkt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .m-mehr-punkt:hover {
    background: var(--rk-inner);
  }
  .m-titel {
    font-size: 25px;
  }
  .m-raster-dash,
  .m-raster-termin,
  .m-raster-ai,
  .m-live-mitte {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-kacheln,
  .m-kacheln-drei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .m-kachel {
    padding: 14px;
  }
  .m-kachel-wert {
    font-size: clamp(18px, 5.6cqw, 22px);
  }
  .m-nur-breit {
    display: none !important;
  }
  /* Live-Erfassung am Handy wie die App: Feld höher, Bank in einer Spalte, Spieler etwas kleiner, Aktionen in zwei Spalten */
  .m-feld {
    --rand: 22px;
    aspect-ratio: 100 / 93;
  }
  .m-bank-liste {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-spieler {
    transform: translate(-50%, -21px);
  }
  .m-spieler-nr {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .m-spieler-name {
    padding: 1px 6px;
    font-size: 11px;
  }
  .m-gross .m-knopf {
    min-height: 60px;
    padding: 0 8px;
    font-size: clamp(15px, 5.4cqw, 20px) !important;
  }
  .m-uhr-zeit {
    font-size: clamp(22px, 8cqw, 30px);
  }
  .m-ag-vier,
  .m-ag-positiv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m-ag-positiv .m-ab-knopf:nth-child(n) {
    grid-column: auto;
  }
  .m-ag-positiv .m-ab-knopf:first-child {
    grid-column: 1 / -1;
  }
  .m-aktionsblatt {
    margin-top: 0;
  }
  .m-zone {
    min-height: 60px;
  }
  .m-toast {
    bottom: 96px;
  }
  .m-chat {
    min-height: 0;
  }
  .m-woche {
    gap: 0;
  }
  .m-tag-zahl {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .m-tag-was {
    font-size: 10px;
  }
}
@container (max-width: 400px) {
  .m-kachel-titel {
    font-size: 12px;
  }
  /* Kader am kleinen Handy: Status unter den Namen, damit Namen nie abgeschnitten werden */
  .m-personen-kader .m-person {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-block: 8px;
  }
  .m-personen-kader .m-person-name {
    flex: 1 1 calc(100% - 40px);
  }
  .m-personen-kader .m-person > .m-status,
  .m-personen-kader .m-person > .m-knopf {
    margin-left: 40px;
  }
  .m-navy-titel {
    font-size: 23px;
  }
  .m-tag-was {
    display: none;
  }
  .m-heute {
    display: none;
  }
  .m-termin-zahl {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-live-punkt,
  .m-ticker-eintrag.ist-neu,
  .m-toast,
  .m-blase.ist-tippend::after {
    animation: none;
  }
}

/* ==========================================================================
   Statistik wie in der App (statistik.js, abgeglichen 2026-11-27 mit apps/web/e2e/website-abgleich-statistik.spec.ts).
   Klassen mit „ms-“. Handy-Ansicht über den benannten Container „mapp“ (der Rahmen der App), Karten über „mkarte“.
   ========================================================================== */
.m-rahmen,
.m-ausschnitt {
  container-name: mapp;
}
.ms-seite {
  gap: 16px;
}
.ms-seite p,
.ms-seite h3,
.ms-seite h4 {
  margin: 0;
}

/* Kopf: Überzeile, Titel, Knöpfe, Filter, Reiter */
.ms-kopf {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
button.ms-zurueck {
  align-self: flex-start;
  min-height: 44px;
  margin: -6px 0 -8px -4px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--rk-accent);
  font-weight: 700;
  cursor: pointer;
}
.ms-kopf-zeile {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ms-kopf-text {
  min-width: 0;
}
.ms-kopf-knoepfe {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ms-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ms-k-weiss {
  background: var(--rk-card);
  color: var(--rk-text);
  box-shadow: 0 1px 2px rgba(3, 32, 61, 0.06);
}
.ms-k-navy {
  background: var(--rk-navy1);
  color: #fff;
}
.ms-k-rand {
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
  color: var(--rk-accent);
}
.ms-k-klein {
  min-height: 40px;
  padding: 0 16px;
}
.ms-k-akzent {
  align-self: flex-start;
  background: var(--rk-accent);
  color: #fff;
}
.ms-k .m-funke {
  color: var(--rk-brandBall);
}
.ms-pfeil {
  flex: none;
}
.ms-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--rk-card) 55%, transparent);
}
.ms-auswahl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--rk-card);
  font-weight: 700;
}
.ms-auswahl > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-auswahl-feld {
  max-width: 380px;
  margin-top: 4px;
  background: var(--rk-inner);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-accent) 35%, transparent);
  font-weight: 500;
}
.ms-auswahl-rand {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rk-accent) 45%, transparent);
  font-weight: 500;
}
.ms-reiter {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--rk-card) 55%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}
.ms-reiter::-webkit-scrollbar {
  display: none;
}
button.ms-reiter-punkt {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--rk-text2);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
button.ms-reiter-punkt:hover {
  color: var(--rk-text);
}
button.ms-reiter-punkt.ist-aktiv {
  background: var(--rk-card);
  color: var(--rk-text);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(3, 32, 61, 0.08);
}

/* Auf einen Blick */
.ms-blick-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ms-chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--rk-card) 55%, transparent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ms-kpis {
  display: grid;
  gap: 14px;
}
.ms-kpis-fuenf {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ms-kpis-vier {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ms-kpis-drei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ms-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--rk-card);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.ms-kpis-flach .ms-kpi {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.ms-kpi-titel {
  font-size: 13px;
  font-weight: 700;
  color: var(--rk-text2);
}
.ms-kpi-wert {
  font: 600 clamp(20px, 2.5cqw, 30px) / 1.15 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ms-kpi-notiz {
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-kpi .ms-spur {
  margin-top: 4px;
}
.ms-gut {
  color: var(--rk-goodText);
}
.ms-schlecht {
  color: var(--rk-badText);
}
.ms-knapp {
  color: var(--rk-nearMiss);
}

/* Bereiche als Flächen (wie .rk-zone) */
.ms-bereich {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 26px;
  background: #cadbeb;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.ms-bereich-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 0;
}
.ms-bereich-symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--rk-card);
  color: var(--rk-accent);
}
.ms-bereich-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 160px;
  min-width: 0;
}
.ms-bereich-titel {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.ms-bereich-unter {
  font-size: 14px;
  color: var(--rk-text2);
}
.ms-bereich-marke {
  flex: none;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--rk-navy1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
button.ms-bereich-knopf {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--rk-card);
  color: var(--rk-accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

/* Karten */
.ms-karte {
  container: mkarte / inline-size;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: var(--rk-card);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent);
}
.ms-karte-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.ms-seg-kopf {
  align-items: center;
}
.ms-karte-titel {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.ms-karte-rechts {
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-karte-unter {
  margin-top: -8px !important;
  font-size: 14px;
  color: var(--rk-text2);
}
.ms-link {
  color: var(--rk-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ms-notiz {
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-label {
  font-size: 15px;
  font-weight: 700;
}
.ms-label-gross {
  margin-top: 8px !important;
}
.ms-leer {
  color: var(--rk-text2);
}
.ms-zwei,
.ms-drei {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.ms-drei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ms-raster-bilder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

/* Umschalter wie .rk-segmented */
.ms-segment {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rk-text) 6%, var(--rk-card));
}
button.ms-segment-punkt,
span.ms-segment-punkt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--rk-text2);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
button.ms-segment-punkt.ist-aktiv,
span.ms-segment-punkt.ist-aktiv {
  background: var(--rk-card);
  color: var(--rk-text);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(3, 32, 61, 0.1);
}
.ms-segment-still .ms-segment-punkt {
  cursor: default;
}

/* Linien je Spiel */
.ms-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.ms-chart-schmal {
  display: none;
}
.ms-gitter {
  stroke: color-mix(in srgb, var(--rk-text) 7%, transparent);
  stroke-width: 1;
}
.ms-null,
.ms-achslinie {
  stroke: color-mix(in srgb, var(--rk-text) 18%, transparent);
  stroke-width: 1;
}
.ms-achse {
  fill: var(--rk-text2);
  font-size: 12px;
  font-family: system-ui, -apple-system, sans-serif;
}
.ms-achse-fett {
  fill: var(--rk-text);
  font-weight: 700;
}
.ms-ziel {
  stroke: var(--rk-muted);
  stroke-width: 1.5;
  stroke-dasharray: 2 4;
}
.ms-linie-voll,
.ms-linie-ring {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ms-linie-voll {
  stroke: var(--rk-text);
}
.ms-linie-ring {
  stroke: color-mix(in srgb, var(--rk-accent) 55%, var(--rk-card));
}
.ms-punkt-voll {
  fill: var(--rk-text);
}
.ms-punkt-ring {
  fill: var(--rk-card);
  stroke: color-mix(in srgb, var(--rk-accent) 55%, var(--rk-card));
  stroke-width: 2.5;
}
.ms-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-leg::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--rk-text);
}
.ms-leg-ring::before {
  background: color-mix(in srgb, var(--rk-accent) 55%, var(--rk-card));
}
.ms-leg-balken::before {
  width: 18px;
  height: 8px;
  border-radius: 4px;
  background: var(--rk-accent);
}
.ms-leg-team::before {
  width: 3px;
  height: 14px;
  background: var(--rk-badBar);
}

/* Balken und Zielwerte */
.ms-spur,
.ms-zielspur,
.ms-vgl-svg {
  display: block;
  overflow: visible;
}
.ms-spur-grund {
  fill: color-mix(in srgb, var(--rk-text) 9%, transparent);
}
.ms-spur-f {
  fill: var(--rk-accent);
}
.ms-ton-gut {
  fill: var(--rk-goodStrong);
}
.ms-ton-schlecht {
  fill: var(--rk-badBar);
}
.ms-ton-knapp {
  fill: #d9a21b;
}
.ms-marke {
  fill: var(--rk-text);
}
.ms-marke-rot {
  fill: var(--rk-badBar);
}
.ms-ziele {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ms-ziel-zeile,
.ms-saisonziel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ms-ziel-text {
  display: flex;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.ms-ziel-wert {
  color: var(--rk-text2);
}
.ms-ziel-wert strong {
  color: var(--rk-text);
}

/* Wurfpositionen (Geometrie wie apps/web/src/stats/court.ts) */
.ms-posansicht {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@container mkarte (min-width: 560px) {
  .ms-posansicht {
    grid-template-columns: minmax(0, 1.5fr) minmax(170px, 1fr);
  }
  .ms-posansicht-breit {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-posansicht-breit .ms-posliste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
  }
}
.ms-posansicht-kompakt {
  grid-template-columns: minmax(0, 1fr) !important;
}
.ms-feld-huelle {
  container: mfeld / inline-size;
  min-width: 0;
  border-radius: 14px;
}
.ms-feld {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}
.ms-posansicht-breit .ms-feld {
  max-width: 1100px;
}
.ms-feld-boden {
  fill: var(--rk-inner);
}
.ms-feld-flaeche {
  fill: var(--rk-card);
  stroke: color-mix(in srgb, var(--rk-accent) 45%, transparent);
  stroke-width: 2;
}
.ms-feld-fuellung {
  fill: var(--rk-accent);
}
.ms-feld-torraum {
  fill: color-mix(in srgb, var(--rk-accent) 22%, var(--rk-card));
  stroke: var(--rk-navy3);
  stroke-width: 3;
}
.ms-feld-neun {
  fill: none;
  stroke: var(--rk-navy3);
  stroke-width: 2.5;
  stroke-dasharray: 10 8;
}
.ms-feld-tor {
  fill: var(--rk-navy1);
}
.ms-feld-zahl {
  fill: var(--rk-text);
  font-size: 17px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
}
.ms-feld-quote {
  fill: var(--rk-text2);
  font-size: 13px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
}
.ms-feld-an {
  fill: #fff;
}
@container mfeld (max-width: 459px) {
  .ms-feld-zahl {
    font-size: 25px;
    transform: translateY(-6px);
  }
  .ms-feld-quote {
    font-size: 22px;
    transform: translateY(9px);
  }
}
.ms-posliste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-poszeile {
  display: grid;
  grid-template-columns: 44px minmax(40px, 1fr) minmax(52px, auto);
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.ms-posliste-lang .ms-poszeile {
  grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr) auto;
}
.ms-zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Torbilder: dunkler Rahmen, neun Felder */
.ms-tor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 6px 0;
  border: 6px solid var(--rk-text);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.ms-tor-feld {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 4px 2px;
  border-radius: 6px;
  background: var(--rk-card);
  color: var(--rk-text);
  line-height: 1.2;
  text-align: center;
}
.ms-tor-feld > strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.ms-tor-feld > span {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ms-gruen-1 { background: color-mix(in srgb, var(--rk-goodStrong) 22%, var(--rk-card)); }
.ms-gruen-2 { background: color-mix(in srgb, var(--rk-goodStrong) 29%, var(--rk-card)); }
.ms-gruen-3 { background: color-mix(in srgb, var(--rk-goodStrong) 37%, var(--rk-card)); }
.ms-gruen-4 { background: color-mix(in srgb, var(--rk-goodStrong) 44%, var(--rk-card)); }
.ms-gruen-5 { background: color-mix(in srgb, var(--rk-goodStrong) 52%, var(--rk-card)); }
.ms-gruen-6 { background: color-mix(in srgb, var(--rk-goodStrong) 60%, var(--rk-card)); }
.ms-gruen-7 { background: color-mix(in srgb, var(--rk-goodStrong) 67%, var(--rk-card)); }
.ms-gruen-8 { background: color-mix(in srgb, var(--rk-goodStrong) 75%, var(--rk-card)); }
.ms-gruen-9 { background: color-mix(in srgb, var(--rk-goodStrong) 82%, var(--rk-card)); }
.ms-gruen-10 { background: color-mix(in srgb, var(--rk-goodStrong) 90%, var(--rk-card)); }
.ms-hell {
  color: #fff;
}
.ms-tw-gut {
  background: var(--rk-goodBg);
  color: var(--rk-goodText);
}
.ms-tw-mittel {
  background: var(--rk-penaltyBg);
  color: var(--rk-penaltyText);
}
.ms-tw-schlecht {
  background: var(--rk-badBg);
  color: var(--rk-badText);
}
.ms-tw-leer {
  background: color-mix(in srgb, var(--rk-text) 6%, var(--rk-card));
  color: var(--rk-muted);
}
button.ms-falt {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rk-accent);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

/* Fehlwürfe: drüber oben, vorbei an den Seiten, im Tor gehalten */
.ms-fw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1fr);
  gap: 8px;
  max-width: 460px;
}
.ms-fw-oben {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ms-fw > :nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.ms-fw > :nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.ms-fw > :nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.ms-fw-seite {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ms-fw-aussen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 4px 2px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-accent) 30%, transparent);
  color: var(--rk-accent);
  line-height: 1.15;
  text-align: center;
  hyphens: manual;
}
.ms-fw-aussen > strong {
  font-size: 16px;
}
.ms-fw-aussen > span {
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ms-fw-treffer {
  background: var(--rk-badBg);
  box-shadow: none;
}
.ms-fw-tor {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 8px 8px 0 0;
  background: var(--rk-navy1);
  color: #fff;
}
.ms-fw-latte {
  grid-column: 1 / -1;
  padding: 2px 0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.ms-fw-pfosten {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.ms-fw-pfosten > span {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.ms-fw-netz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--rk-card);
}
.ms-fw-zelle {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-text) 8%, transparent);
  color: var(--rk-text);
  font-size: 16px;
  font-weight: 800;
}
.ms-rot-1 { background: color-mix(in srgb, var(--rk-badBar) 20%, var(--rk-card)); box-shadow: none; }
.ms-rot-2 { background: color-mix(in srgb, var(--rk-badBar) 35%, var(--rk-card)); box-shadow: none; }
.ms-rot-3 { background: color-mix(in srgb, var(--rk-badBar) 52%, var(--rk-card)); box-shadow: none; }
.ms-rot-4 { background: color-mix(in srgb, var(--rk-badBar) 70%, var(--rk-card)); box-shadow: none; color: #fff; }

/* Spiele */
.ms-spiele {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-spiel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 0;
}
.ms-spiel + .ms-spiel {
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.ms-spiel {
  flex-wrap: wrap;
}
.ms-spiel-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 130px;
  min-width: 0;
}
.ms-spiel-stand {
  margin-left: auto;
}
.ms-spiel-text > span {
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-spiel-stand {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ms-ergebnis {
  flex: none;
  min-width: 96px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.ms-ergebnis-gut {
  background: var(--rk-goodBg);
  color: var(--rk-goodText);
}
.ms-ergebnis-schlecht {
  background: var(--rk-badBg);
  color: var(--rk-badText);
}
.ms-ergebnis-neutral {
  background: var(--rk-inner);
  color: var(--rk-text2);
}
.ms-weiter {
  flex: none;
  color: var(--rk-muted);
  font-size: 20px;
}
button.ms-mehr {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rk-accent);
  font-weight: 700;
  cursor: pointer;
}

/* Listen: Ranglisten, Spieler der Saison */
.ms-liste {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-liste > li + li {
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
button.ms-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin: 0 -12px;
  padding: 6px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  width: calc(100% + 24px);
}
button.ms-zeile:hover {
  background: var(--rk-inner);
}
.ms-rang {
  flex: none;
  width: 22px;
  color: var(--rk-text2);
  font-weight: 700;
  text-align: center;
}
.ms-nr {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rk-inner);
  font-size: 13px;
  font-weight: 800;
}
.ms-zeile-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}
.ms-zeile-zwei {
  display: flex;
  flex-direction: column;
}
.ms-zeile-zwei > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--rk-text2);
}
.ms-zeile-wert {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}
.ms-zeile-wert > span,
.ms-zeile-leise {
  font-size: 13px;
  color: var(--rk-text2);
  white-space: nowrap;
}

/* Tabellen: am Handy waagerecht wischen */
.ms-tabelle-huelle {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.ms-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.ms-tabelle th,
.ms-tabelle td {
  padding: 8px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
  text-align: right;
  white-space: nowrap;
}
.ms-tabelle thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--rk-text2);
}
.ms-tabelle tbody th {
  font-weight: 700;
}
.ms-tabelle .ms-links {
  text-align: left;
}
.ms-tabelle tbody tr:last-child > * {
  border-bottom: 0;
}
button.ms-tab-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rk-accent);
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}
.ms-tab-ergebnis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ms-beste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-beste li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Training */
.ms-anwesenheit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-anw-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.ms-anw-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ms-anw-zahl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ms-anw-zahl > span {
  font-size: 12px;
  color: var(--rk-text2);
}

/* Positionen im Kader */
.ms-gruppe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--rk-card) 55%, var(--rk-inner));
}
.ms-gruppe-zeile {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--rk-text2);
}
.ms-gruppe-zeile strong {
  color: var(--rk-text);
  font-size: 16px;
}

/* Gegner: Wurfbilder je Werfer */
.ms-gegner-tor {
  max-width: 560px;
}
.ms-ueberzeile {
  margin-top: 6px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rk-text2);
}
.ms-werfer-gruppe {
  gap: 14px;
}
/* je Gegner eine Karte, der Name groß mit Strich links (wie die App seit 2026-11-28) */
.ms-gegner-kopf {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 4px solid var(--rk-navy1);
}
.ms-gegner-kopf .ms-ueberzeile {
  margin-top: 0 !important;
}
.ms-gegner-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ms-gegner-spiele {
  font-size: 14px;
  color: var(--rk-text2);
}
.ms-werfer-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
@container mapp (min-width: 1000px) {
  .ms-werfer-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ms-werfer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--rk-inner);
}
.ms-werfer-oben {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 12px;
}
.ms-werfer-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-werfer-nr {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rk-navy1);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.ms-werfer-kopf {
  flex-wrap: wrap;
}
.ms-werfer-wer {
  display: flex;
  flex-direction: column;
  flex: 1 1 150px;
  min-width: 0;
}
.ms-werfer-wer > span {
  font-size: 14px;
  color: var(--rk-text2);
}
.ms-werfer-rate {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.ms-werfer-rate > strong {
  font: 600 24px/1.1 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.ms-werfer-rate > span {
  font-size: 12px;
  color: var(--rk-text2);
}
.ms-werfer-fakten {
  font-size: 14px;
  color: var(--rk-text2);
}

/* Spielerprofil: Kopf in Navy */
.ms-profilkopf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(200px, 240px);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 26px;
  background: linear-gradient(140deg, var(--rk-navy1), var(--rk-navy2) 70%, var(--rk-navy3));
  color: #fff;
  box-shadow: 0 10px 30px rgba(3, 32, 61, 0.16);
}
.ms-profil-nr {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: color-mix(in srgb, #fff 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 25%, transparent);
  font: 600 30px/1 'Unbounded', system-ui, sans-serif;
}
.ms-profil-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.ms-profil-ueber {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 82%, transparent);
}
.ms-profil-name {
  font: 600 clamp(22px, 2.8cqw, 30px) / 1.15 'Unbounded', system-ui, sans-serif;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.ms-profil-form {
  color: color-mix(in srgb, #fff 88%, transparent);
}
.ms-k-glas {
  margin-top: 6px;
  background: color-mix(in srgb, #fff 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 25%, transparent);
  color: #fff;
  white-space: normal;
  text-align: left;
}
.ms-profil-rechts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-k-breit {
  width: 100%;
}
.ms-auswahl-navy {
  background: color-mix(in srgb, #fff 88%, var(--rk-inner));
  color: var(--rk-text);
  font-weight: 500;
}

/* Vergleich zum Teamschnitt */
.ms-vgl-reihe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.ms-vgl-drei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ms-vgl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ms-vgl-kopf {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ms-vgl-team {
  color: var(--rk-badText);
  font-size: 14px;
}
.ms-vgl-wert {
  fill: var(--rk-text);
  font-size: 14px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}
.ms-vgl-innen {
  fill: #fff;
}

/* Saisonziele */
.ms-ziele-zwei {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.ms-ziele-teil {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ms-ziele-eigen .ms-karte-titel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ms-ziele-eigen {
  padding: 16px;
  border-radius: 18px;
  background: var(--rk-inner);
}
.ms-ziele-teil .ms-karte-unter {
  margin-top: -6px !important;
}
.ms-saisonziel {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--rk-inner);
}
.ms-eingabe {
  display: block;
  min-height: 46px;
  border-radius: 12px;
  background: var(--rk-inner);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk-accent) 35%, transparent);
}
.ms-ziele-eigen .ms-eingabe {
  flex: 1;
  background: var(--rk-card);
}
.ms-eigen-reihe {
  display: flex;
  gap: 10px;
}
.ms-eigene {
  margin: 0;
  padding-left: 20px;
}

/* Formkurve und Feedback */
.ms-form {
  font-weight: 700;
}
.ms-form-up {
  color: var(--rk-goodText);
}
.ms-form-down {
  color: var(--rk-badText);
}
.ms-feedback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-fb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--rk-inner);
}
.ms-fb-intern {
  background: color-mix(in srgb, var(--rk-penaltyBg) 60%, var(--rk-card));
}
.ms-fb-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-fb-kopf strong {
  color: var(--rk-text);
  font-size: 14px;
}
.ms-fb-note {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--rk-card);
  color: var(--rk-text);
  font-weight: 700;
}

/* Ausschnitte auf der Startseite */
.m-ausschnitt .ms-karte,
.m-ausschnitt .ms-kpi,
.m-ausschnitt .ms-werfer,
.m-ausschnitt .ms-profilkopf {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rk-text) 6%, transparent), 0 16px 40px rgba(3, 32, 61, 0.07);
}
.m-ausschnitt-werfer .ms-werfer {
  background: var(--rk-card);
}

@container mapp (max-width: 1100px) {
  .ms-kpis-vier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-drei {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Laptop mit wenig Platz (iPad hoch): Kacheln in zwei Reihen */
/* Fünf Kacheln: unter 1150 px Breite der App drei und zwei */
@container mapp (max-width: 1150px) {
  .ms-kpis-fuenf {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ms-kpis-fuenf > .ms-kpi {
    grid-column: span 2;
  }
  .ms-kpis-fuenf > .ms-kpi:nth-child(n + 4) {
    grid-column: span 3;
  }
}
@container mapp (max-width: 980px) {
  .ms-raster-bilder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-profilkopf {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ms-profil-rechts {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .ms-profil-rechts > * {
    flex: 1;
  }
}

/* Handy */
@container mapp (max-width: 760px) {
  .ms-kopf-knoepfe {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .ms-kopf-knoepfe .ms-k-ai {
    grid-column: 1 / -1;
  }
  .ms-kopf-knoepfe:has(> .ms-auswahl) {
    display: flex;
    width: auto;
  }
  .ms-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-filter > .ms-auswahl:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
  .ms-kpis-fuenf,
  .ms-kpis-vier,
  .ms-kpis-drei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ms-kpis-fuenf > .ms-kpi,
  .ms-kpis-fuenf > .ms-kpi:nth-child(n + 4) {
    grid-column: auto;
  }
  .ms-kpis-fuenf > .ms-kpi:first-child,
  .ms-kpis-drei > .ms-kpi:first-child {
    grid-column: 1 / -1;
  }
  .ms-kpi {
    padding: 14px;
  }
  .ms-kpi-wert {
    font-size: clamp(19px, 6.2cqw, 26px);
  }
  .ms-bereich {
    padding: 12px;
    border-radius: 22px;
  }
  .ms-bereich-kopf {
    flex-wrap: wrap;
  }
  .ms-bereich-knopf {
    margin-left: 50px;
  }
  .ms-karte {
    padding: 16px;
  }
  .ms-zwei,
  .ms-drei,
  .ms-raster-bilder,
  .ms-ziele-zwei,
  .ms-vgl-reihe,
  .ms-vgl-drei {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-zwei-immer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-chart-breit {
    display: none;
  }
  .ms-chart-schmal {
    display: block;
  }
  .ms-seg-kopf .ms-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .ms-segment-still {
    display: inline-flex !important;
    width: auto !important;
  }
  .ms-profilkopf {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .ms-profil-nr {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .ms-profil-rechts {
    flex-direction: column;
  }
  .ms-spiel {
    row-gap: 4px;
  }
  .ms-ergebnis {
    min-width: 0;
  }
  .ms-anw-zeile {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ms-anw-zeile > .ms-spur {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .ms-werfer-rate > strong {
    font-size: 20px;
  }
}
@container mkarte (max-width: 400px) {
  .ms-fw {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
    gap: 5px;
  }
  .ms-fw-oben,
  .ms-fw-seite {
    gap: 5px;
  }
  .ms-fw-aussen {
    min-height: 46px;
    border-radius: 10px;
  }
  .ms-fw-aussen > span {
    font-size: 9px;
  }
  .ms-fw-netz {
    gap: 3px;
    padding: 3px;
  }
  .ms-fw-zelle {
    min-height: 34px;
    font-size: 13px;
  }
  .ms-fw-tor {
    grid-template-columns: 13px minmax(0, 1fr) 13px;
  }
  .ms-fw-pfosten > span {
    font-size: 9px;
  }
}
@container mapp (max-width: 420px) {
  .ms-zwei-immer {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-bereich {
    padding: 10px;
  }
  .ms-karte {
    padding: 14px;
  }
  .ms-werfer {
    padding: 12px;
  }
  .ms-werfer-rate {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    margin-left: 56px;
  }
  /* Listen: Name braucht den Platz, Zusatz („10 Spiele“, „je Spiel“, Pfeil) fällt weg */
  .ms-zeile-leise,
  .ms-zeile-wert > span,
  .ms-zeile .ms-weiter {
    display: none;
  }
  .ms-zeile {
    gap: 10px;
  }
}
@container mapp (max-width: 360px) {
  .ms-kpis-fuenf,
  .ms-kpis-vier,
  .ms-kpis-drei {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Wurfwege der Gegner-Werfer wie die App (ShotPaths, Gabriel 2026-11-28): Tor von vorn, Feld darunter, Linien von der
   Position in die Ecke; grün der häufigste Weg, blau weitere ab zwei Würfen, hell gestrichelt einzelne Würfe */
.ms-wege {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-wege-box {
  container: mwege / inline-size;
}
.ms-wege-svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
.ms-wege-rahmen {
  fill: var(--rk-navy1);
}
.ms-wege-feld {
  fill: var(--rk-card);
}
.ms-wege-anteil {
  fill: var(--rk-accent);
}
.ms-wege-summe {
  fill: var(--rk-text);
  font-size: 24px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}
.ms-wege-summe-an {
  fill: #fff;
}
.ms-weg {
  fill: none;
  stroke-linecap: round;
}
.ms-weg-often {
  stroke: var(--rk-goodStrong);
}
.ms-weg-mid {
  stroke: var(--rk-accent);
  opacity: 0.9;
}
.ms-weg-rare {
  stroke: var(--rk-muted);
  stroke-dasharray: 10 9;
  opacity: 0.9;
}
.ms-weg-zahl circle,
.ms-weg-pos circle {
  stroke: var(--rk-card);
  stroke-width: 3;
}
.ms-weg-zahl-often circle {
  fill: var(--rk-goodStrong);
}
.ms-weg-zahl-mid circle {
  fill: var(--rk-accent);
}
.ms-weg-zahl-rare circle {
  fill: var(--rk-muted);
}
.ms-weg-pos circle {
  fill: var(--rk-navy1);
}
.ms-weg-zahl text,
.ms-weg-pos text {
  fill: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}
@container mwege (max-width: 459px) {
  .ms-weg-zahl circle {
    r: 21px;
  }
  .ms-weg-pos circle {
    r: 30px;
  }
  .ms-weg-zahl text,
  .ms-weg-pos text {
    font-size: 21px;
  }
  .ms-wege-summe {
    font-size: 32px;
  }
}
.ms-wege-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--rk-text2);
}
.ms-wege-key::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 4px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}
.ms-wege-key-often::before {
  background: var(--rk-goodStrong);
}
.ms-wege-key-mid::before {
  background: var(--rk-accent);
}
.ms-wege-key-rare::before {
  background: repeating-linear-gradient(90deg, var(--rk-muted) 0 6px, transparent 6px 10px);
}

/* ---------- Trainingsplanung (training.js, wie apps/web/src/styles/training.css, 2026-11-28) ---------- */
.m-termin-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mt-seite > .ms-karte + .ms-karte {
  margin-top: 0;
}
.mt-fokus {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rk-accent) 10%, var(--rk-card));
}
.mt-fokus-thema {
  color: var(--rk-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mt-fokus-text {
  margin: 0;
  font-weight: 600;
}
.mt-zeit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mt-zeitleiste {
  display: block;
  width: 100%;
  height: 14px;
}
.mt-zeit-grund {
  fill: var(--rk-inner);
}
.mt-zeit-text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  font-size: 14px;
}
.mt-teil-erwaermung {
  fill: color-mix(in srgb, var(--rk-accent) 35%, var(--rk-card));
  background: color-mix(in srgb, var(--rk-accent) 35%, var(--rk-card));
}
.mt-teil-torhueter {
  fill: color-mix(in srgb, var(--rk-accent) 55%, var(--rk-card));
  background: color-mix(in srgb, var(--rk-accent) 55%, var(--rk-card));
}
.mt-teil-haupt1 {
  fill: color-mix(in srgb, var(--rk-accent) 80%, var(--rk-card));
  background: color-mix(in srgb, var(--rk-accent) 80%, var(--rk-card));
}
.mt-teil-haupt2 {
  fill: var(--rk-accent);
  background: var(--rk-accent);
}
.mt-teil-spiel {
  fill: var(--rk-navy1);
  background: var(--rk-navy1);
}
.mt-teil-auslaufen {
  fill: color-mix(in srgb, var(--rk-text) 25%, var(--rk-card));
  background: color-mix(in srgb, var(--rk-text) 25%, var(--rk-card));
}
.mt-ablauf {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mt-zeile {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.mt-zeile:last-child {
  border-bottom: 0;
}
.mt-zeile-min {
  flex: none;
  width: 52px;
  color: var(--rk-text2);
  font-variant-numeric: tabular-nums;
}
.mt-zeile-titel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mt-zeile-name {
  flex: 1 1 auto;
  min-width: 0;
}
.mt-zeile-meta {
  flex: 0 1 auto;
  color: var(--rk-text2);
  font-size: 13px;
  text-align: right;
}
.mt-punkt {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.4em;
  border-radius: 5px;
}
.mt-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@container mkarte (max-width: 480px) {
  .mt-zeile {
    flex-wrap: wrap;
  }
  .mt-zeile-meta {
    flex-basis: 100%;
    padding-left: 62px;
    text-align: left;
  }
}
/* Übersicht: nächste Trainings und Wochen */
.mt-liste {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mt-liste-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 52px;
  padding: 8px 4px;
}
.mt-liste-zeile + .mt-liste-zeile {
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.mt-liste-tag {
  flex: none;
  width: 150px;
  font-weight: 700;
}
.mt-liste-text {
  flex: 1 1 180px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mt-liste-rechts,
.mt-leise {
  color: var(--rk-text2);
  font-size: 14px;
}
.mt-wochen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mt-woche {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--rk-inner);
}
.mt-woche.ist-jetzt {
  box-shadow: inset 0 0 0 2px var(--rk-accent);
}
.mt-woche-name {
  display: flex;
  flex-direction: column;
}
.mt-woche-name > span {
  color: var(--rk-text2);
  font-size: 13px;
}
.mt-woche-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.mt-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--rk-card);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mt-chip-spiel {
  background: var(--rk-navy1);
  color: #fff;
  font-weight: 600;
}
.mt-chip-leer {
  color: var(--rk-text2);
}
.mt-woche-last {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.mt-lastbalken {
  display: block;
  width: 100%;
  height: 8px;
}
.mt-last-grund {
  fill: var(--rk-card);
}
.mt-last-low {
  fill: color-mix(in srgb, var(--rk-accent) 45%, var(--rk-card));
}
.mt-last-normal {
  fill: var(--rk-goodStrong);
}
.mt-last-high {
  fill: var(--rk-badStrong);
}
@container mkarte (max-width: 560px) {
  .mt-woche {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
  .mt-woche-chips {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .mt-liste-tag {
    width: auto;
    flex-basis: 100%;
  }
}
/* Übungen und Taktiktafel */
/* Angriff oder Abwehr über den Kategorien (wie die App seit 2026-11-29), nur so breit wie der Inhalt */
.mt-seiten {
  align-self: flex-start;
  max-width: 100%;
}
.mt-seiten span.ms-segment-punkt {
  padding: 0 12px;
}
.mt-kategorien {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mt-kat {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--rk-inner);
  font-size: 14px;
  font-weight: 700;
}
.mt-kat.ist-aktiv {
  background: var(--rk-navy1);
  color: #fff;
}
.mt-uebungen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
button.mt-uebung {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--rk-inner);
  color: var(--rk-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.mt-uebung:hover {
  box-shadow: 0 0 0 2px var(--rk-accent);
}
.mt-uebung-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mt-uebung-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mt-marke {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px var(--rk-text);
  font-size: 13px;
  font-weight: 600;
}
.mt-tafel {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--rk-card);
}
.mt-tafel-rahmen {
  width: 100%;
  max-width: 620px;
}
.mt-boden {
  fill: color-mix(in srgb, #e9c995 22%, var(--rk-card));
}
.mt-raum {
  fill: color-mix(in srgb, var(--rk-accent) 20%, var(--rk-card));
  stroke: var(--rk-text2);
  stroke-width: 0.8;
}
.mt-neun {
  fill: none;
  stroke: var(--rk-text2);
  stroke-width: 0.8;
  stroke-dasharray: 3 2.4;
}
.mt-strich {
  fill: none;
  stroke: var(--rk-text2);
  stroke-width: 0.8;
}
.mt-tor {
  fill: var(--rk-text);
}
.mt-weg {
  fill: none;
  stroke: var(--rk-text);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mt-pass {
  stroke: #3d6a9e;
  stroke-linecap: butt;
  stroke-dasharray: 2.2 1.6;
}
.mt-shot {
  stroke: #d98200;
  stroke-width: 2.6;
}
.mt-kopf {
  fill: var(--rk-text);
  stroke: var(--rk-card);
  stroke-width: 2.4;
  stroke-linejoin: round;
  paint-order: stroke;
}
/* Pfeilspitze als eigene Form über den Figuren (Gabriel 2026-11-30), heller Rand in Einheiten der Tafel */
.mt-kopf.mt-pfeilkopf {
  stroke-width: 0.9;
  pointer-events: none;
}
.mt-kopf-pass {
  fill: #3d6a9e;
}
.mt-kopf-shot {
  fill: #d98200;
}
.mt-off .mt-form {
  fill: #3d6a9e;
}
.mt-def .mt-form {
  fill: #c23a2e;
}
.mt-gk .mt-form {
  fill: #2e9e63;
}
.mt-ball .mt-form {
  fill: #f5b700;
  stroke: #03203d;
  stroke-width: 0.7;
}
.mt-naht {
  fill: none;
  stroke: #03203d;
  stroke-width: 0.5;
}
.mt-schrift {
  fill: #fff;
  font-size: 5px;
  font-weight: 700;
}
.mt-text {
  margin: 0;
}
.mt-hinweis {
  font-weight: 600;
}
.mt-schritte {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
button.mt-schritt {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--rk-inner);
  color: var(--rk-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.mt-schritt.ist-aktiv {
  background: var(--rk-navy1);
  color: #fff;
}

/* Zweite Runde (2026-11-28): Farbe je Thema und Kategorie, nächste Trainings mit Datumskachel, Erklärung der Belastung,
   frühere Wochen, Regler der Taktiktafel */
.mt-th-abwehr { --th: #c23a2e; }
.mt-th-angriff { --th: #3d6a9e; }
.mt-th-tempo { --th: #0b8793; }
.mt-th-wurf { --th: #7b4bb7; }
.mt-th-torhueter { --th: #2e9e63; }
.mt-th-athletik { --th: #d2691e; }
.mt-th-spielform { --th: #b8860b; }
.mt-th-taktik { --th: #2f3e8c; }
.mt-th-regeneration { --th: #4aa3c7; }
.mt-th-erwaermung { --th: #4aa3c7; }
.mt-th-spielzug { --th: #2f3e8c; }
.mt-th-all { --th: #03203d; }
.mt-th-none { --th: var(--rk-text3); }
.mt-chip-thema {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--th) 16%, var(--rk-card));
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.mt-chip-thema::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--th);
}
.mt-chip-thema.mt-th-none {
  background: var(--rk-card);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rk-text) 18%, transparent);
  color: var(--rk-text2);
}
.mt-fokus[class*='mt-th-'] {
  background: color-mix(in srgb, var(--th) 12%, var(--rk-card));
  box-shadow: inset 4px 0 0 var(--th);
}
.mt-fokus[class*='mt-th-'] .mt-fokus-thema {
  color: color-mix(in srgb, var(--th) 80%, var(--rk-text));
}
.mt-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mt-next-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--th) 7%, var(--rk-inner));
  box-shadow: inset 4px 0 0 var(--th);
}
.mt-next-datum {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 54px;
  padding: 6px 0;
  border-radius: 12px;
  background: var(--rk-card);
  line-height: 1.1;
}
.mt-next-datum > span {
  color: var(--rk-text2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.mt-next-datum > strong {
  color: color-mix(in srgb, var(--th) 75%, var(--rk-text));
  font-size: 22px;
  font-weight: 800;
}
.mt-next-haupt {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mt-next-oben {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.mt-next-text {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mt-next-cta {
  color: var(--rk-accent);
  font-weight: 600;
}
.mt-erklaerung {
  border-radius: 12px;
  background: var(--rk-inner);
}
.mt-erklaerung > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--rk-accent);
  font-weight: 600;
  cursor: pointer;
}
.mt-erklaerung > p {
  margin: 0;
  padding: 0 14px 12px;
}
button.mt-k-auf {
  align-self: flex-start;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mt-woche.ist-frueher {
  background: color-mix(in srgb, var(--rk-inner) 55%, var(--rk-card));
  color: var(--rk-text2);
}
.mt-chip[class*='mt-th-'] {
  background: color-mix(in srgb, var(--th) 16%, var(--rk-card));
  box-shadow: inset 3px 0 0 var(--th);
}
.mt-chip.mt-th-none {
  background: var(--rk-card);
  box-shadow: none;
  color: var(--rk-text2);
}
button.mt-uebung[class*='mt-th-'] {
  background: color-mix(in srgb, var(--th) 7%, var(--rk-inner));
  box-shadow: inset 0 4px 0 var(--th);
}
.mt-kat[class*='mt-th-'] {
  gap: 8px;
}
.mt-kat[class*='mt-th-']::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--th);
}
.mt-kat.ist-aktiv::before {
  background: #fff;
}
.mt-steuerung {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mt-schritte-titel {
  align-self: center;
  margin-right: 4px;
  font-weight: 700;
}
.mt-regler {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 620px;
}
button.mt-abspielen {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: var(--rk-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mt-regler-bahn {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.mt-regler-bahn input[type='range'] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--rk-accent);
  cursor: pointer;
}
.mt-regler-zahlen {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  padding: 0 4px;
  color: var(--rk-text2);
  font-size: 12px;
  font-weight: 600;
}

/* Dritte Runde (2026-11-28): „So planst du ein Training“ */
.mt-ablauf-kasten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mt-ablauf-schritt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--rk-inner);
}
.mt-ablauf-schritt.ist-jetzt {
  background: color-mix(in srgb, var(--rk-accent) 12%, var(--rk-card));
  box-shadow: inset 0 0 0 2px var(--rk-accent);
}
.mt-ablauf-n {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--rk-navy1);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.mt-ablauf-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mt-ablauf-text > span {
  color: var(--rk-text2);
  font-size: 14px;
}
@container mkarte (max-width: 640px) {
  .mt-ablauf-kasten {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Vereinsbereich wie in der App (verein.js, wie apps/web/src/routes/verein und styles/verein.css, 2026-11-29;
   Vergleichsbilder mit apps/web/e2e/website-abgleich.spec.ts). Klassen mit „mv-“.
   ========================================================================== */
.mv-seite {
  gap: 14px;
}
.mv-seite p,
.mv-seite h3,
.mv-seite ul,
.mv-seite dl,
.mv-seite dd {
  margin: 0;
}
/* Kopf wie PageHeader: Knöpfe rechts, bei wenig Platz darunter */
.mv-kopf {
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: 12px;
}
.mv-kopf .m-kopf-text {
  flex: 1 1 260px;
}
.mv-kopf-knoepfe,
.mv-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mv-knopf {
  padding: 0 20px;
  border-radius: 10px;
}
.mv-knopf.mv-klein {
  padding: 0 14px;
  font-size: 13px !important;
}
.mv-rot {
  color: var(--rk-badText) !important;
  box-shadow: inset 0 0 0 1.5px var(--rk-badBar);
}
/* Pro kaufen im Vereinsbereich (Bezahlung 2026-12-01), wie .rk-plan-option der App */
.mv-plan-kaufen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.mv-plan-optionen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mv-plan-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rk-card);
  color: var(--rk-text);
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
}
.mv-plan-option-an {
  box-shadow: inset 0 0 0 3px var(--rk-accent);
}
.mv-plan-punkt {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--rk-text2);
}
.mv-plan-punkt-an {
  box-shadow: inset 0 0 0 5px var(--rk-accent);
}
.mv-plan-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mv-plan-preis {
  font-size: 16px;
  font-weight: 700;
}
.mv-hinweis {
  font-size: 13px;
  color: var(--rk-text2);
}
.mv-hinweis-kopf {
  margin-top: -2px !important;
}
.mv-label {
  margin-bottom: 6px !important;
  font-weight: 600;
}
.mv-karte-titel,
.mv-box-titel {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.mv-zwischen {
  font-size: 17px;
  font-weight: 600;
}
/* Schmale Karte in der Mitte wie .rk-narrow, so breit wie ihr Inhalt */
.mv-schmal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.mv-eng {
  width: fit-content;
}
.mv-zwei {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* Mannschaften: Karten in zwei Spalten, Trainerteam als Liste Beschriftung – Wert */
.mv-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.mv-team,
.mv-anlass,
.mv-regeln,
.mv-pro-was,
.mv-pro-teams,
.mv-admins {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mv-team-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px 16px;
}
.mv-team-name {
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mv-plan {
  font-size: 13px;
  color: var(--rk-text2);
  padding-top: 2px;
}
.mv-fakten {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  align-items: baseline;
}
.mv-fakten dt {
  font-size: 13px;
  color: var(--rk-text2);
}
.mv-fakten dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mv-leise {
  color: var(--rk-text2);
}

/* Box „Trainer wechseln“ in der Karte */
.mv-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}
.mv-gruppe {
  display: flex;
  flex-direction: column;
}
.mv-wahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}
.mv-wahl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--rk-accent);
  color: var(--rk-accent) !important;
  font-weight: 600 !important;
  text-align: center;
  cursor: pointer;
}
.mv-wahl.ist-aktiv {
  background: var(--rk-accent);
  color: var(--rk-onAccent) !important;
}
.mv-radio {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rk-card);
  box-shadow: inset 0 0 0 1px var(--rk-muted);
}
.ist-aktiv > .mv-radio {
  background: radial-gradient(circle, var(--rk-text) 0 4px, var(--rk-card) 4.5px);
  box-shadow: inset 0 0 0 1.5px var(--rk-text);
}
.mv-wahl-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mv-wahl-unter {
  font-size: 13px;
  color: var(--rk-text2);
}
.mv-gruppe > .mv-hinweis {
  margin-top: 6px !important;
}
/* Bestätigungskasten wie .rk-warnbox: rot umrahmt, Überschrift rot, Text in Schriftfarbe */
.mv-warnbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--rk-brandBall);
  border-radius: 12px;
  background: color-mix(in srgb, var(--rk-brandBall) 6%, var(--rk-card));
}
.mv-warnbox-titel {
  color: var(--rk-brandBall);
  font-size: 18px;
  font-weight: 700;
}
/* Feld nur zum Lesen (Einladungslink, Vereinsname) */
.mv-feld {
  display: flex;
  flex-direction: column;
}
.mv-eingabe {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid color-mix(in srgb, var(--rk-accent) 45%, transparent);
  border-radius: 10px;
  background: var(--rk-surface);
  overflow-wrap: anywhere;
}
.mv-feld > .mv-hinweis {
  margin-top: 6px !important;
}
/* Kästchen wie .rk-check */
.mv-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.mv-kasten {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--rk-muted);
  background: var(--rk-card);
}
.mv-check.ist-aktiv .mv-kasten {
  background: var(--rk-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: none;
}
.mv-check-text {
  min-width: 0;
}

/* Dienste: Auswahl, Regeln, Heimspiele und Vereinstermine */
.mv-auswahl {
  width: 100%;
  min-height: 44px;
  padding: 8px 44px 8px 12px;
  border: 1.5px solid color-mix(in srgb, var(--rk-accent) 45%, transparent);
  border-radius: 10px;
  background: var(--rk-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2330475F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  color: var(--rk-text);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.mv-fuer {
  gap: 0;
}
.mv-fuer > .mv-hinweis {
  margin-top: 6px !important;
}
.mv-zeilen {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}
.mv-zeilen > li + li {
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.mv-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.mv-zeile-text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mv-zeile-text strong {
  font-weight: 600;
}
.mv-zeile-text span {
  font-size: 12.5px;
  color: var(--rk-text2);
}
.mv-namen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}
.mv-dienst > .mv-auswahl {
  margin-top: 4px;
}
.mv-anlass-kopf {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mv-zeit {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rk-text2);
}
.mv-marke {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-size: 13px;
  font-weight: 600;
}

/* Pro */
.mv-pro {
  align-self: flex-start;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--rk-accent) 40%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--rk-accent) 12%, transparent);
  color: var(--rk-accent);
  font-size: 12px;
  font-weight: 700;
}
.mv-pro-liste {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px !important;
  list-style: none;
}
.mv-pro-zeilen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.mv-pro-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.mv-pro-zeile .mv-zeile-text {
  flex: 0 1 auto;
}
.mv-pro-zeile .mv-zeile-text span {
  font-size: 13px;
}
.mv-pro-hinweis {
  width: 100%;
}

/* Admins */
.mv-admin-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.mv-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.mv-admin strong {
  overflow-wrap: anywhere;
}

/* Mehr am Handy: wie in der App über die ganze Breite, dahinter abgedunkelt */
.mv-mehr-schleier {
  display: none;
}
.m-rahmen[data-rolle='verein'] .m-toast {
  width: max-content;
  white-space: normal;
  text-align: center;
}

@container mapp (max-width: 760px) {
  .mv-teams,
  .mv-zwei {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .mv-mehr-schleier {
    position: absolute;
    inset: 0;
    z-index: 14;
    display: block;
    border: 0;
    background: color-mix(in srgb, var(--rk-text) 22%, transparent);
    cursor: pointer;
  }
  .mv-mehr {
    left: 10px;
    right: 10px;
    width: auto;
    gap: 4px;
    padding: 10px;
    border-radius: 24px;
  }
  .mv-mehr .m-team {
    margin-bottom: 4px;
  }
}

/* Verein Runde 3 (2026-11-29): „i“ wie components/Info.tsx, Dienste-Kopf in einer Karte, Anlässe in einer Karte mit
   Linien, Hauptadmin mit Marke */
.mv-info {
  position: relative;
  display: inline-flex;
  flex: none;
}
.mv-info-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rk-accent) !important;
  cursor: pointer;
}
/* Links im Inhalt (z. B. neben „Hauptadmin“): Text nach rechts aufklappen, sonst ragt er aus dem Rahmen */
.mv-info-links > .mv-info-text {
  right: auto;
  left: 0;
}
.mv-info-text {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  max-width: min(20rem, 70cqw);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rk-card);
  color: var(--rk-text);
  box-shadow: 0 10px 30px rgb(3 32 61 / 0.2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}
.mv-dienste-kopf {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mv-dienste-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.mv-dienste-wahl {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  min-width: 0;
  max-width: 28rem;
}
.mv-anlaesse {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mv-anlaesse > .mv-anlass + .mv-anlass {
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--rk-text) 8%, transparent);
}
.mv-admin-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}
.mv-admin-haupt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mv-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rk-accent) 14%, transparent);
  color: var(--rk-text);
  font-size: 13px;
  font-weight: 600;
}
