@font-face {
  font-family: Sora;
  src: url("/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ruhiger Grund, passend zum vorhandenen theme-color in index.html. */
  --grund: #f4f6f9;
  --tinte: #20375a;
  --leise: #465a73;
  --blau: #1a7fea;
  --akzent: #0f66c9;
  --himmel: #a9cff7;
  --linie: #d5dee7;
  --hellblau: #e8f2fd;
  --halle: #0d1733;
  --platz: #2b4f8e;
  --auslauf: #4e9fe0;
  --ball: #dcf35a;
  --rot: #a3271a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --schatten: 0 8px 24px rgb(32 55 90 / 6%);
  color-scheme: light;
  font-family: Sora, system-ui, sans-serif;
  color: var(--tinte);
  background: var(--grund);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  font-size: 15px;
  line-height: 1.5;
  background: var(--grund);
  isolation: isolate;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h2 { font-size: 22px; font-weight: 750; line-height: 1.25; letter-spacing: -.04em; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
h4 { font-size: 16px; line-height: 1.4; }
small { font-size: 13px; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--akzent); }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 20px;
  background: white;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.rahmen { display: grid; gap: 24px; max-width: 1600px; margin: auto; padding: 104px 12px 0; }
.dashboard, .seitenleiste { display: contents; }
.intro { order: 0; }
noscript, .verbindung { order: 1; }
.rangliste { order: 2; }
.jetzt-bereich { order: 3; }
.plan-bereich { order: 4; }
.finals-bereich { order: 5; }
.fuss { order: 6; }
.dashboard section { min-width: 0; scroll-margin-top: 10px; }

.glas {
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 85%);
  box-shadow: inset 0 1px 0 white, 0 10px 40px rgb(20 30 60 / 8%);
}
.kopf {
  position: fixed;
  z-index: 30;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  max-width: 1552px;
  margin: auto;
  min-height: 64px;
  padding: 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.marke {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  color: var(--tinte);
  font-weight: 750;
  letter-spacing: -.04em;
  font-size: 13px;
}
.marke img {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transform: rotate(-7deg) scale(1.13);
  transform-origin: 50% 75%;
}
.status {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--tinte);
  background: white;
  padding: 7px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--akzent); }
.status.fehler { color: var(--rot); background: #ffefec; }
.status.fehler::before { background: var(--rot); }
.knopf {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 5px 6px 5px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease), background-color 180ms;
}
.knopf b { font-weight: 600; }
.knopf i {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--akzent);
  color: white;
  font-style: normal;
}
.knopf svg { width: 18px; height: 18px; }
.hell { background: white; }
.primary { background: var(--tinte); color: white; }
.ghost { background: white; box-shadow: inset 0 0 0 1px var(--linie); padding: 10px 16px; }
.kompakt { min-height: 44px; padding: 4px 8px; gap: 5px; font-size: 13px; }
.kompakt i { width: 26px; height: 26px; }
body.admin #admin { background: var(--tinte); color: white; }

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--akzent);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 650;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--blau);
  box-shadow: 10px 0 0 var(--himmel);
}

/* Dunkle Tennishalle: Nur die Kulisse wird begrenzt, der Chlaus nicht. */
.intro {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 14px 12px 16px;
  border-radius: 28px;
  color: white;
  background: var(--halle);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 8px 24px rgb(13 23 51 / 10%);
}
.buehnen-farbe {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 85% -8%, rgb(220 235 255 / 30%), rgb(125 163 219 / 10%) 30%, transparent 58%),
    linear-gradient(180deg, #172442, var(--halle) 62%);
}
/* Doppelplatz massstabsgetreu (SVG in index.html), schräg von oben gesehen. */
.platz {
  position: absolute;
  width: 76%;
  height: auto;
  right: -12%;
  top: 44px;
  transform: perspective(480px) rotateX(48deg) rotateZ(-12deg);
  transform-origin: center;
  opacity: .9;
}
.buehnen-farbe::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--halle) 2%, rgb(13 23 51 / 94%) 30%, rgb(13 23 51 / 70%) 54%, transparent 88%),
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 28%, rgb(13 23 51 / 35%) 100%);
}
.intro-text { min-width: 0; }
.intro-heading { position: relative; z-index: 2; min-height: 104px; padding-right: 104px; }
.intro .kicker { display: block; max-width: none; color: var(--himmel); font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.intro .kicker::before { display: none; background: var(--himmel); box-shadow: 10px 0 0 var(--ball); }
h1 { margin-top: 8px; font-size: clamp(24px, 6.2vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -.055em; }
h1 > span { display: block; }
.intro h1 { color: white; }
.turniername { max-width: none; hyphens: manual; -webkit-hyphens: manual; }
.jahr { position: relative; width: fit-content; margin-top: 3px; color: var(--ball); }
.ball-ziel { display: inline-block; position: relative; width: .28em; height: .28em; margin-left: .12em; vertical-align: .07em; }
#auftakt-ball { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 2px 2px rgb(32 55 90 / 14%)); }
.intro-note { margin-top: 3px; font-size: 13px; color: #e1edff; }
.live-leiste {
  display: block;
  position: relative;
  z-index: 2;
  min-height: 46px;
  margin-top: 12px;
  padding: 12px;
  color: var(--tinte);
  background: white;
  border: 1px solid var(--linie);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 650;
  text-wrap: balance;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.live-leiste.ist-live { background: #19345c; color: var(--ball); border-color: #7895b9; }
.intro .live-leiste:focus-visible,
.intro .team-waehlen:focus-visible,
.intro .bewegung:focus-visible { outline-color: var(--ball); }
.hero {
  position: absolute;
  z-index: 1;
  top: -18px;
  right: 0;
  width: 104px;
  pointer-events: none;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  transition: transform 400ms var(--ease);
}
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 992 / 1495; object-fit: contain; filter: drop-shadow(0 12px 9px rgb(0 0 0 / 24%)); }
.bewegung {
  position: absolute;
  z-index: 3;
  top: 125px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(32 55 90 / 15%);
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: var(--tinte);
}
.bewegung svg { width: 18px; height: 18px; }
.play-symbol { display: none; }
.bewegung[aria-pressed="true"] .play-symbol { display: block; }
.bewegung[aria-pressed="true"] .pause-symbol { display: none; }
.intro.ruhig .hero { transform: none; transition: none; }
.intro.ruhig .hero img, .intro.ausser-sicht .hero img { animation-play-state: paused; }

.karte { background: white; border: 1px solid var(--linie); border-radius: 22px; box-shadow: var(--schatten); }
.bereich-kopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bereich-kopf .kicker { margin-bottom: 6px; }
.note { margin-top: 12px; color: var(--leise); font-size: 13px; line-height: 1.65; }
.meta { color: var(--leise); font-size: 13px; font-weight: 600; }
.leer { padding: 22px 16px; color: var(--leise); font-size: 14px; }
.liste { display: grid; gap: 12px; min-width: 0; }
.name { display: block; min-width: 0; font-size: 15px; font-weight: 650; letter-spacing: -.015em; line-height: 1.5; }
.player { display: block; max-width: 100%; overflow-wrap: anywhere; }
.nr { font-size: 13px; font-weight: 650; color: var(--leise); white-space: nowrap; font-variant-numeric: tabular-nums; }
.raus, .prov {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}
.raus { background: #ffefec; color: var(--rot); }
.prov { background: #fff3d7; color: #705000; }

/* Rangliste: eine feste Kachel, darin klar getrennte Gruppensektionen. */
.rangliste {
  padding: 18px 12px 14px;
  background: white;
  border-top: 3px solid var(--akzent);
}
.rangliste .bereich-kopf { align-items: center; }
.rangliste .bereich-kopf > div:first-child .kicker { display: none; }
.segment { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--linie); border-radius: 999px; background: var(--grund); }
.segment button { border: 0; border-radius: 999px; min-height: 44px; padding: 0 10px; background: transparent; font-size: 13px; font-weight: 650; }
.segment button[aria-pressed="true"] { color: white; background: var(--tinte); }
.gruppen { display: grid; min-width: 0; }
.gruppe { min-width: 0; }
.gruppe.inaktiv { display: none; }
.gruppe h3 { display: flex; align-items: center; gap: 7px; margin: 4px 0 12px; font-size: 15px; }
.gruppe h3 span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: var(--hellblau); color: var(--akzent); }
.gruppe[data-group-panel="B"] h3 span { background: #efecfa; color: #60439a; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
col.rang-spalte { width: 26px; }
col.spiele-spalte { width: 27px; }
col.games-spalte { width: 35px; }
th { color: var(--leise); background: #f2f6fa; font-size: 13px; font-weight: 600; text-align: right; padding: 9px 2px; }
td { padding: 11px 2px; border-bottom: 1px solid var(--linie); text-align: right; vertical-align: middle; }
th:nth-child(2), td:nth-child(2) { text-align: left; padding-left: 6px; padding-right: 5px; }
th:first-child, td:first-child { text-align: left; }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
td b { font-size: 19px; font-weight: 750; color: var(--akzent); }
.rang { display: inline-grid; place-items: center; width: 24px; height: 28px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--tinte); background: var(--grund); }
.qual .rang { color: white; background: var(--akzent); }
tr.mein td { background: var(--hellblau); }
tr.mein td:first-child { box-shadow: inset 3px 0 0 var(--akzent); }
.tnr { display: inline-block; margin-top: 3px; color: var(--leise); font-size: 13px; font-weight: 500; }
.tnr .mein-hinweis { color: var(--akzent); font-weight: 650; }
.out .name { color: var(--leise); }
.team-edit { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: inherit; }
body.admin .team-edit .player { text-decoration: underline dotted; text-underline-offset: 3px; }
.qual-note { padding-top: 12px; font-size: 13px; color: var(--leise); }
.qual-note::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--akzent); border-radius: 50%; margin-right: 6px; }
details { border-radius: 16px; background: var(--grund); }
summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; list-style: none; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: inherit; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; font-weight: 400; }
details[open] > summary::after { content: "−"; }
.rang-regeln { margin-top: 10px; background: transparent; border-top: 1px solid var(--linie); border-radius: 0; }
.rang-regeln summary { padding: 8px 0; color: var(--akzent); }
.rang-regeln p { padding: 0 0 8px; color: var(--leise); font-size: 13px; line-height: 1.7; }

/* Mein Team: klare Auswahl und helle Einsatzkarte auf dunkler Bühne. */
.team-bereich { position: relative; z-index: 5; min-width: 0; margin-top: 14px; }
.team-bereich > h2 { margin-bottom: 7px; color: white; font-size: 14px; letter-spacing: -.015em; }
button.team-waehlen {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  width: 100%;
  min-height: 64px;
  padding: 10px 48px 10px 14px;
  border: 1px solid #a9cff7;
  border-radius: 16px;
  color: var(--tinte);
  background: white;
  text-align: left;
  box-shadow: 0 4px 14px rgb(0 0 0 / 10%);
  transition: background-color 180ms, border-color 180ms, transform 160ms var(--ease);
}
.team-waehlen > span { min-width: 0; font-size: 15px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.team-waehlen > small { min-width: 0; color: var(--leise); font-size: 12px; font-weight: 450; line-height: 1.45; overflow-wrap: anywhere; }
.team-waehlen::after {
  content: "";
  position: absolute;
  top: calc(50% - 7px);
  right: 20px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--akzent), var(--akzent)) center / 100% 2px no-repeat,
    linear-gradient(var(--akzent), var(--akzent)) center / 2px 100% no-repeat;
}
.mein-karte { margin-top: 8px; padding: 6px; color: var(--tinte); background: white; border: 1px solid #96b8df; border-radius: 22px; box-shadow: 0 6px 20px rgb(0 0 0 / 12%); }
.team-pille { display: flex; align-items: stretch; gap: 5px; color: var(--tinte); }
.pille-wahl {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  padding: 10px;
  text-align: left;
  color: var(--tinte);
  background: white;
  border: 1px solid #96b8df;
  border-radius: 16px;
}
.pille-wahl > .nr { display: grid; place-items: center; min-width: 32px; min-height: 32px; padding: 3px; border-radius: 10px; color: var(--akzent); background: var(--hellblau); }
.pille-wahl .name { flex: 1 1 110px; min-width: 0; font-size: 14px; }
.pille-aendern { margin-left: auto; font-size: 13px; font-weight: 650; color: var(--akzent); }
.mein-next { padding: 14px 8px 8px; color: var(--tinte); }
.mein-einsatz { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mein-next .eyebrow { color: var(--akzent); }
.mein-zeit { display: block; margin-top: 7px; font-size: 27px; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mein-zeit small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.mein-relativ { display: block; font-size: 13px; margin: 5px 0 10px; color: var(--leise); }
.gegen { padding-top: 10px; border-top: 1px solid var(--linie); font-size: 13px; color: var(--leise); }
.gegen .name { color: var(--tinte); margin-top: 3px; font-size: 14px; }
.mein-leer { padding: 12px 8px 8px; font-size: 13px; color: var(--leise); }

/* Spielkarten: gemeinsame Anatomie, eigene Container für Raster und Liste. */
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.match-list { display: grid; gap: 8px; }
.spiel, .jetzt-karte {
  --gruppenfarbe: #0f66c9;
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--linie);
  border-radius: 18px;
  text-align: left;
  color: var(--tinte);
  font: inherit;
  background: white;
  box-shadow: 0 3px 10px rgb(32 55 90 / 4%);
  transition: translate 240ms var(--ease), box-shadow 240ms var(--ease), transform 160ms var(--ease);
}
.spiel[data-gruppe="B"], .jetzt-karte[data-gruppe="B"] { --gruppenfarbe: #60439a; }
.match-grid > .spiel, .match-list > .spiel { container-type: inline-size; }
.karte-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--linie);
  border-radius: 17px 17px 0 0;
  background: #f3f7fb;
}
.uhr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.uhr-start { font-size: 25px; font-weight: 750; letter-spacing: -.045em; }
.uhr-ende { font-size: 14px; font-weight: 550; color: var(--leise); }
.kopf-labels { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.runden-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: white;
  color: var(--tinte);
  font-size: 13px;
  font-weight: 650;
}
.runden-badge::before { content: ""; width: 5px; height: 12px; flex: none; border-radius: 3px; background: var(--gruppenfarbe); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: .015em; font-weight: 700; text-transform: uppercase; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 7px; background: #e7eef6; color: var(--leise); font-size: 13px; font-weight: 600; }
.status-chip.live-chip { color: #145394; background: #dcecff; }
.status-chip.wo-chip { background: #e8edf2; color: var(--leise); }
.status-chip.fertig-chip { color: #245641; background: #e9f3ed; }
.status-chip.mein-chip { color: var(--akzent); background: var(--hellblau); }
.paar { display: grid; min-width: 0; padding: 12px 14px; }
.seite { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: stretch; gap: 9px; min-width: 0; }
.team-inhalt { display: block; min-width: 0; }
.team-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 2px; min-height: 20px; }
.seite .name { font-size: 15px; font-weight: 550; line-height: 1.55; }
.seite.sieg .name { font-weight: 750; }
.seite.verloren .name { color: var(--leise); font-weight: 450; }
.seite.mein .nr { color: var(--akzent); font-weight: 750; }
.team-marke { color: var(--akzent); font-size: 13px; font-weight: 650; }
.sieger-haken { margin-left: auto; color: var(--akzent); font-size: 14px; font-weight: 750; }
.seite.offen .name { color: var(--leise); }
.g {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  min-width: 0;
  padding: 5px 7px 5px 4px;
  border-radius: 9px;
  background: #f0f4f8;
  color: var(--tinte);
  font-size: 29px;
  font-weight: 650;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.seite.sieg .g { background: #e4effd; color: #1057aa; font-weight: 800; }
.seite.verloren .g { color: var(--leise); }
.g.ohne-resultat { font-size: 19px; color: var(--leise); }
.g.wo-resultat { font-size: 13px; }
.versus { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--leise); font-size: 13px; line-height: 1; }
.versus::before, .versus::after { content: ""; height: 1px; background: var(--linie); }
.versus::before { width: 12px; }
.versus::after { flex: 1; }
.spiel-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 0 14px 12px;
  color: var(--leise);
  font-size: 13px;
}
.fuss-status { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bearbeiten { font-weight: 650; color: var(--akzent); }
.spiel.live { border-color: #6a9dd7; box-shadow: inset 3px 0 0 var(--akzent), 0 4px 16px rgb(15 102 201 / 9%); }
.spiel.live .karte-kopf { background: #e8f2fd; }
.spiel.ist-mein { border-color: #6a9dd7; }
.spiel.wo { background: #f8fafc; box-shadow: none; }
.spiel.wo .karte-kopf { background: #edf1f5; }
.spiel.ko-spiel:not(.endspiel) .runden-badge { background: var(--tinte); border-color: var(--tinte); color: white; }
.spiel.ko-spiel:not(.endspiel) .runden-badge::before { background: var(--ball); }

/* Listenansicht: Zeitspalte plus zweizeilige Doppel, kein Slash-Fliesstext. */
.zeile {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  column-gap: 0;
  border-radius: 14px;
  border-left: 3px solid var(--gruppenfarbe);
  box-shadow: none;
}
.zeile .karte-kopf {
  display: block;
  height: 100%;
  padding: 12px 6px 10px 8px;
  border: 0;
  border-right: 1px solid var(--linie);
  border-radius: 11px 0 0 11px;
  background: #f3f7fb;
}
.zeile .uhr { display: block; }
.zeile .uhr-start { display: block; font-size: 18px; letter-spacing: -.04em; }
.zeile .uhr-ende { display: block; margin-top: 2px; font-size: 13px; }
.zeile .kopf-labels { margin-top: 8px; }
.zeile .runden-badge { padding: 0; border: 0; background: transparent; font-size: 13px; }
.zeile .runden-badge::before { display: none; }
.zeile .paar { padding: 9px 9px 8px; }
.zeile .seite { grid-template-columns: minmax(0, 1fr) 33px; gap: 5px; }
.zeile .seite .name { font-size: 13px; line-height: 1.55; letter-spacing: -.025em; }
.zeile .team-meta { gap: 5px; margin-bottom: 1px; min-height: 19px; }
.zeile .g { padding-right: 5px; font-size: 25px; border-radius: 7px; }
.zeile .g.ohne-resultat { font-size: 17px; }
.zeile .g.wo-resultat { font-size: 13px; }
.zeile .versus { padding: 5px 0; }
.zeile .spiel-fuss { grid-column: 2; padding: 0 9px 9px; }
.zeile .pokal { grid-column: 1 / -1; }
.zeile .karte-kopf { grid-row: 1 / span 2; }

/* Breite Listenzeilen: Paarung links gegen rechts; Scores bleiben am Team. */
@container (min-width: 620px) {
  .zeile .paar { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: stretch; padding: 12px; gap: 10px; }
  .zeile .versus { align-self: center; justify-content: center; padding: 8px 0; border-radius: 8px; background: #edf2f7; }
  .zeile .versus::before, .zeile .versus::after { display: none; }
  .zeile .seite .name { font-size: 14px; }
  .zeile .seite:last-child .team-inhalt { text-align: right; }
  .zeile .seite:last-child .team-meta { justify-content: flex-end; }
  .zeile .seite:last-child .sieger-haken { margin-left: 0; }
  .zeile .spiel-fuss { padding-left: 12px; padding-right: 12px; }
}

/* Live und Danach bilden eine einzige, angedockte Karte. */
.hallen-panel { border: 1px solid #b8cbe0; border-radius: 24px; background: white; box-shadow: 0 10px 30px rgb(32 55 90 / 9%); }
.hallen-panel > .jetzt-karte { border: 0; border-radius: 0; box-shadow: none; }
.hallen-panel > :first-child { border-radius: 23px 23px 0 0; }
.hallen-panel > :last-child { border-radius: 0 0 23px 23px; }
.hallen-panel > :only-child { border-radius: 23px; }
.hallen-panel .karte-kopf { background: transparent; border-radius: inherit; }
.hallen-panel .karten-ansage { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 14px 0; }
.karten-tag { font-size: 13px; font-weight: 550; }
.hallen-panel .danach { border-top: 1px solid var(--linie); background: linear-gradient(130deg, #f3f8fd, white); }
.danach .karten-ansage .eyebrow::before { content: "↳"; font-size: 18px; color: var(--akzent); line-height: 1; }
.danach .uhr-start { font-size: 23px; }
.danach .seite .name { font-size: 14px; }
.platz {
  background: radial-gradient(ellipse at top right, #3665a5, transparent 75%), #234674;
  color: white;
}
.platz .karte-kopf { border-color: #6686af; }
.platz .uhr-ende, .platz .nr, .platz .spiel-fuss,
.platz .seite.offen .name, .platz .versus, .platz .seite.verloren .name { color: #e1edff; }
.platz .runden-badge { color: white; background: #234674; border-color: #7895b9; }
.platz .runden-badge::before { background: var(--ball); }
.platz .versus::before, .platz .versus::after { background: #6686af; }
.platz .g { background: #19395f; color: white; }
.platz .seite.sieg .g { background: var(--ball); color: #20375a; }
.platz .sieger-haken, .platz .team-marke, .platz .seite.mein .nr, .platz .bearbeiten { color: var(--ball); }
.platz .status-chip { background: #19395f; color: #e1edff; }
.platz .live-chip { color: var(--ball); }
.puls { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.puls::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: puls 2s var(--ease) infinite; }
.platz .eyebrow .puls { color: var(--ball); }
.chlaus-pause { display: flex; align-items: center; gap: 12px; padding: 20px 14px; background: #eef5fd; }
.chlaus-pause img { display: block; width: 64px; height: 64px; flex: none; object-fit: contain; transform: rotate(-7deg); }
.chlaus-pause p { min-width: 0; font-size: 14px; color: var(--tinte); }
.chlaus-pause small { display: block; margin-top: 4px; color: var(--leise); }

/* Der Final: dunkle Anzeigetafel und eigene Pokalzone. */
.endspiel {
  color: white;
  border-color: #263e62;
  background: radial-gradient(ellipse at 100% 0, #335984, transparent 65%), #192f4f;
  box-shadow: 0 12px 28px rgb(25 47 79 / 17%);
}
.endspiel .karte-kopf { background: rgb(255 255 255 / 5%); border-color: #59718f; }
.endspiel .uhr-start { font-size: 29px; }
.endspiel .uhr-ende, .endspiel .nr, .endspiel .spiel-fuss,
.endspiel .versus, .endspiel .seite.offen .name, .endspiel .seite.verloren .name { color: #e1edff; }
.endspiel .runden-badge { background: var(--ball); color: #20375a; border-color: var(--ball); }
.endspiel .runden-badge::before { background: #20375a; }
.endspiel .versus::before, .endspiel .versus::after { background: #59718f; }
.endspiel .g { background: #304866; color: white; }
.endspiel .seite.sieg .g { background: var(--ball); color: #20375a; }
.endspiel .team-marke, .endspiel .sieger-haken, .endspiel .seite.mein .nr, .endspiel .bearbeiten { color: var(--ball); }
.endspiel .status-chip { background: #304866; color: white; }
.endspiel .live-chip { color: var(--ball); }
.pokal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 8px;
  margin: 2px 14px 14px;
  padding: 12px 0 0;
  border-top: 1px solid #59718f;
  background: radial-gradient(ellipse at right, rgb(220 243 90 / 13%), transparent 72%);
}
.pokal-text { display: block; min-width: 0; font-size: 15px; }
.pokal .eyebrow { display: block; margin-bottom: 7px; color: var(--ball); font-size: 13px; }
.pokal .name { font-weight: 750; }
.pokal img { display: block; width: 82px; height: auto; aspect-ratio: 921 / 1489; object-fit: contain; filter: drop-shadow(0 7px 6px rgb(0 0 0 / 18%)); }
.pokal.gewonnen { background: radial-gradient(ellipse at right, rgb(220 243 90 / 22%), transparent 75%); }

/* Navigation, Filter und unveränderte Tagesseiten mit Scroll-Snap. */
.ansicht { display: inline-flex; padding: 3px; gap: 3px; background: #e8eff6; border: 1px solid var(--linie); border-radius: 999px; }
.ansicht button { min-height: 44px; padding: 0 13px; font-size: 14px; font-weight: 650; color: var(--leise); background: transparent; border: 0; border-radius: 999px; }
.ansicht button[aria-pressed="true"] { color: var(--tinte); background: white; box-shadow: 0 2px 8px rgb(32 55 90 / 10%); }
.tag-navigation { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.pfeil { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--linie); border-radius: 50%; background: white; box-shadow: var(--schatten); font-size: 20px; }
.tag-tabs { display: flex; flex: 1; min-width: 0; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.tag-tabs button { flex: 1 0 84px; min-height: 52px; padding: 8px 5px; border: 1px solid var(--linie); border-radius: 14px; background: white; font-size: 13px; line-height: 1.4; font-weight: 650; }
.tag-tabs small { display: block; font-size: 13px; font-weight: 500; margin-top: 2px; }
.tag-tabs button[aria-selected="true"] { color: white; background: var(--tinte); border-color: var(--tinte); }
.plan-suche { position: relative; display: block; margin: 0 0 8px; }
.plan-suche svg { position: absolute; left: 15px; top: calc(50% - 9px); width: 18px; height: 18px; color: var(--leise); pointer-events: none; }
.plan-suche input { width: 100%; min-height: 48px; margin: 0; padding: 0 14px 0 42px; font-size: 16px; color: var(--tinte); background: white; border: 1px solid var(--linie); border-radius: 999px; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 0 8px; margin-bottom: 8px; font-size: 13px; }
.filter button { min-height: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--linie); border-radius: 999px; font-size: 13px; font-weight: 650; }
.filter button[aria-pressed="true"] { background: white; border-color: var(--tinte); color: var(--tinte); box-shadow: 0 2px 5px rgb(32 55 90 / 5%); }
#filter button.filter-team { min-height: 44px; color: var(--akzent); background: var(--hellblau); border: 1px dashed var(--akzent); }
#filter button.filter-team[aria-pressed="true"] { color: white; background: var(--akzent); border-style: solid; border-color: var(--akzent); }
.plan-info { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #96b8df; border-radius: 18px; background: var(--hellblau); font-size: 13px; }
.plan-info > span { flex: 1; min-width: 0; }
.plan-info .name { margin-top: 3px; }
.plan-info button { box-shadow: none; }
.tage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--himmel) transparent;
  min-width: 0;
}
.spieltag { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 5px 3px 18px; }
.tag-titel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; margin: 6px 2px 14px; }
.tag-titel small { font-size: 13px; font-weight: 500; color: var(--leise); }
.finals-link { grid-column: 1 / -1; display: flex; align-items: center; min-height: 52px; padding: 12px 14px; border: 1px solid #96b8df; border-radius: 14px; background: var(--hellblau); color: var(--tinte); text-decoration: none; font-size: 14px; font-weight: 650; }
.bodennav { position: fixed; z-index: 30; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 5px; max-width: 520px; margin: auto; border-radius: 999px; }
.bodennav a { min-width: 0; display: grid; place-items: center; min-height: 50px; padding: 6px 0; border-radius: 999px; color: var(--tinte); text-decoration: none; font-size: clamp(12px, 3.15vw, 13px); font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.bodennav a[aria-current] { background: white; box-shadow: 0 2px 10px rgb(32 55 90 / 8%); }
.bodennav a[aria-current] span { position: relative; }
.bodennav a[aria-current] span::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--akzent); left: calc(50% - 2px); bottom: -9px; }
.fuss { display: grid; gap: 4px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--linie); color: var(--leise); font-size: 13px; }
.meldung { padding: 18px; border-radius: 20px; background: #ffefec; color: var(--rot); font-size: 14px; }
.verbindung { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.verbindung p { flex: 1 1 240px; }

/* Admin-Dialoge und Konfliktschutz. */
dialog {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 24px 18px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 28px 28px 0 0;
  color: var(--tinte);
  background: white;
  box-shadow: 0 -16px 60px rgb(20 30 60 / 18%);
}
dialog::backdrop { background: rgb(20 36 61 / 42%); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog h3 { margin: 8px 0 20px; font-size: 22px; overflow-wrap: anywhere; }
dialog form { margin: 0; }
.dialog-note { margin: 12px 0 20px; color: var(--leise); font-size: 13px; line-height: 1.7; }
label { display: block; margin-bottom: 16px; color: var(--tinte); font-size: 14px; font-weight: 600; min-width: 0; }
input, select { display: block; width: 100%; min-width: 0; min-height: 52px; margin-top: 7px; padding: 12px 14px; color: var(--tinte); background: white; border: 1px solid var(--linie); border-radius: 14px; font-size: 16px; font-weight: 500; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
input::placeholder { color: var(--leise); opacity: 1; }
input:disabled { opacity: .55; background: var(--grund); }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 0; color: var(--tinte); }
.check input { flex: none; width: 24px; height: 24px; min-height: 24px; margin: 0; accent-color: var(--akzent); }
.check small { display: block; font-size: 13px; font-weight: 400; color: var(--leise); margin-top: 3px; }
.score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.score label { margin: 0; }
.score label > span { display: block; min-height: 3em; color: var(--tinte); font-size: 15px; overflow-wrap: anywhere; }
.score input { min-height: 86px; padding: 8px; background: var(--grund); border-color: transparent; font-size: 40px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.doppelpunkt { padding-bottom: 20px; font-size: 30px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; padding: 8px 14px; }
.form-grid .breit { grid-column: 1 / -1; }
.loeschen { color: var(--rot); margin: 16px 0 6px; }
.forfait-hinweis { padding: 12px; border-radius: 12px; background: var(--hellblau); color: var(--tinte); }
.konflikt { margin-top: 18px; padding: 16px; background: #fff3d7; border: 1px solid #c69d48; border-radius: 16px; }
.konflikt p { margin-top: 10px; font-size: 14px; }
.konflikt .server-result { font-size: 18px; font-weight: 750; }
.server-details { white-space: pre-line; overflow-wrap: anywhere; }
.konflikt .check { margin: 16px 0 0; font-size: 14px; }
.dialog-fuss { position: sticky; z-index: 2; bottom: 0; background: white; border-top: 1px solid var(--linie); margin: 18px -18px 0; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
.aktionen { display: flex; gap: 10px; }
.aktionen .knopf { flex: 1; min-height: 52px; font-size: 14px; }
.err { color: var(--rot); font-size: 14px; font-weight: 500; line-height: 1.5; }
.err:not(:empty) { padding-bottom: 12px; }
.toast { pointer-events: none; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); width: fit-content; max-width: min(520px, calc(100% - 32px)); margin: auto; padding: 14px 20px; background: var(--tinte); color: white; box-shadow: var(--schatten); border-radius: 18px; font-size: 14px; }
body:has(dialog[open]) { overflow: hidden; }
.update-meldung { position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 520px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 20px; background: var(--tinte); color: white; font-size: 14px; font-weight: 650; box-shadow: 0 12px 32px rgb(13 23 51 / 28%); }
.update-meldung[hidden] { display: none; }
.update-meldung .knopf { padding: 5px 18px; color: var(--tinte); background: var(--ball); }

/* Teamwahl: unten angedocktes Blatt mit separat scrollendem Raster. */
dialog.blatt {
  --blatt-start: 100%;
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  overflow: hidden;
  border: 0;
  border-radius: 24px 24px 0 0;
  color: var(--tinte);
  background: white;
  box-shadow: 0 -16px 60px rgb(13 23 51 / 25%);
}
dialog.blatt[open] { display: flex; flex-direction: column; }
dialog.blatt::backdrop { background: rgb(13 23 51 / 65%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.blatt-kopf {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--linie);
  background: white;
}
.blatt-kopf h3 { min-width: 0; margin: 0; font-size: 19px; line-height: 1.35; }
.blatt-kopf .pfeil { width: 44px; height: 44px; font-size: 27px; line-height: 1; box-shadow: none; }
.team-kacheln {
  display: grid;
  flex: 0 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
  scrollbar-width: thin;
}
button.team-kachel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 2px solid var(--linie);
  border-radius: 14px;
  color: var(--tinte);
  background: white;
  text-align: left;
  white-space: normal;
  transition: background-color 180ms, border-color 180ms, transform 160ms var(--ease);
}
.team-kachel .nr { color: var(--akzent); font-size: 12px; font-weight: 750; }
.team-kachel .name { width: 100%; font-size: 13px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.team-kachel .gruppe { display: block; margin-top: auto; padding-top: 2px; color: var(--leise); font-size: 12px; font-weight: 500; line-height: 1.4; }
.team-kachel .raus { font-size: 12px; }
.team-kachel.kein-team { justify-content: center; border-style: dashed; background: var(--grund); }
button.team-kachel[aria-pressed="true"] { border-color: var(--akzent); background: var(--hellblau); box-shadow: inset 0 0 0 1px var(--akzent); }
.team-kachel[aria-pressed="true"] .nr { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Sichtbarer Grundzustand, kurze Rückmeldung ohne Inhaltsblinken. */
.resultat-neu { animation: resultat 800ms var(--ease); }
@keyframes resultat {
  0%, 35% { outline: 3px solid var(--blau); outline-offset: -3px; box-shadow: 0 0 0 3px rgb(26 127 234 / 18%); }
  100% { outline: 0 solid transparent; outline-offset: 0; }
}
@keyframes puls {
  0%, 100% { transform: scale(1); opacity: .5; }
  60% { transform: scale(1.9); opacity: 0; }
}
@keyframes schweben {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(.5deg); }
}
@keyframes kopfnicken {
  0%, 100% { transform: rotate(-7deg) scale(1.13); }
  35% { transform: translateY(3px) rotate(5deg) scale(1.1); }
  65% { transform: translateY(-2px) rotate(-11deg) scale(1.15); }
}
@keyframes blatt-ein {
  from { transform: translateY(var(--blatt-start)); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cursor { display: none; }

@media (max-width: 359px) {
  .marke { gap: 3px; }
  .marke img { width: 40px; height: 40px; }
  .kompakt i { display: none; }
  .status { padding: 5px; }
  .intro .kicker { max-width: 170px; }
  .bodennav { left: 8px; right: 8px; gap: 0; padding: 4px; }
  .bodennav a { letter-spacing: -.04em; }
}
@media (max-width: 420px) { .status-wort { display: none; } }

@media (min-width: 390px) {
  .rahmen { padding-left: 16px; padding-right: 16px; }
  .kopf { left: 16px; right: 16px; gap: 7px; padding-left: 9px; }
  .marke img { width: 48px; height: 48px; }
  .status { padding: 8px; }
  .kompakt { padding-left: 12px; }
  .kompakt i { width: 32px; height: 32px; }
  .intro { padding-left: 16px; padding-right: 16px; }
  .rangliste { padding-left: 16px; padding-right: 16px; }
  .zeile { grid-template-columns: 70px minmax(0, 1fr); }
  .zeile .karte-kopf { padding-left: 10px; }
  .zeile .uhr-start { font-size: 20px; }
  .zeile .seite .name { font-size: 14px; }
  .zeile .paar { padding-left: 11px; padding-right: 11px; }
}

@media (width < 700px) {
  .rahmen { padding-top: max(92px, calc(env(safe-area-inset-top) + 78px)); gap: 18px; }
  .intro { padding-top: 12px; padding-bottom: 12px; }
  .intro-heading { min-height: 100px; padding-right: 88px; }
  .intro .kicker { font-size: 11px; line-height: 1.5; }
  .intro h1 { margin-top: 6px; padding-right: 0; font-size: clamp(24px, 6.2vw, 26px); line-height: 1.08; }
  .intro .turniername { max-width: none; }
  .intro .jahr { margin-top: 2px; }
  .intro-note { display: none; }
  .live-leiste { margin-top: 8px; padding: 10px 12px; }
  .team-bereich { margin-top: 10px; }
  .team-bereich > h2 { margin-bottom: 6px; }
  /* Kompakte Einsatzkarte: Zeit links, Gegner rechts. */
  .mein-next { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 10px 8px 6px; }
  .mein-einsatz { grid-column: 1 / -1; }
  .mein-zeit { margin-top: 4px; font-size: 23px; }
  .mein-relativ { grid-column: 1; margin: 0; }
  .gegen { grid-column: 2; grid-row: 2 / span 2; align-self: center; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--linie); }
  .mein-next .prov { grid-column: 1 / -1; margin-top: 8px; }
  /* Platz sichtbar hinter dem Chlaus, Text links bleibt auf dunklem Grund. */
  .platz { width: 100%; right: -30%; top: 0; opacity: 1; }
  .buehnen-farbe::after { background: linear-gradient(90deg, rgb(13 23 51 / 92%) 8%, rgb(13 23 51 / 55%) 50%, rgb(13 23 51 / 10%) 90%), linear-gradient(180deg, transparent 40%, rgb(13 23 51 / 55%) 100%); }
  .hero { width: 100px; top: -20px; right: -2px; transform: none; transition: none; }
  .bewegung { display: none !important; }
  .rangliste .bereich-kopf { gap: 8px; margin-bottom: 10px; }
  .gruppe h3 { margin: 0 0 8px; }
}
@media (390px <= width < 700px) {
  .intro-heading { padding-right: 92px; }
  .hero { width: 104px; right: -2px; }
}

@media (min-width: 700px) {
  .rahmen { padding: 116px 24px 0; gap: 32px; }
  .kopf { left: 24px; right: 24px; padding: 8px 8px 8px 14px; }
  .marke { font-size: 16px; gap: 10px; }
  .status { border-radius: 999px; padding: 9px 13px; }
  .kompakt { padding-left: 16px; }
  .intro { padding: 26px; border-radius: 36px; }
  .intro-heading { padding-right: 210px; min-height: 178px; }
  h1 { font-size: 38px; }
  .turniername { max-width: 6em; }
  .hero { width: 192px; top: -18px; right: 12px; }
  .intro-note { margin-top: 12px; font-size: 15px; padding-right: 160px; }
  .live-leiste { font-size: 14px; }
  .team-bereich { max-width: 520px; margin-top: 18px; }
  .bewegung { top: 272px; right: 16px; }
  .platz { width: 62%; top: 76px; right: -8%; }
  .rangliste { padding: 26px; }
  col.rang-spalte { width: 34px; }
  col.spiele-spalte { width: 36px; }
  col.games-spalte { width: 42px; }
  .rangliste .bereich-kopf > div:first-child .kicker { display: flex; }
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeile { grid-template-columns: 94px minmax(0, 1fr); }
  .zeile .uhr-start { font-size: 23px; }
  .zeile .karte-kopf { padding-left: 13px; }
  .tag-tabs small { display: inline; margin-left: 6px; }
  .filter button { padding: 0 18px; }
  .fuss { display: flex; justify-content: space-between; }
  dialog { width: min(560px, calc(100% - 48px)); max-width: 560px; margin: auto; padding: 28px 26px 0; border-radius: 28px; }
  .dialog-fuss { margin-left: -26px; margin-right: -26px; padding: 14px 26px 24px; }
  dialog.blatt {
    --blatt-start: 24px;
    inset: 0;
    width: min(560px, calc(100% - 48px));
    max-width: 560px;
    height: fit-content;
    margin: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgb(13 23 51 / 30%);
  }
  .blatt-kopf { padding: 16px 20px; }
  .blatt-kopf h3 { font-size: 20px; }
  .team-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; }
}
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  .intro.bewegt .hero img { animation: schweben 4.8s ease-in-out infinite; }
  .intro.bewegt.ruhig .hero img, .intro.bewegt.ausser-sicht .hero img { animation-play-state: paused; }
}

@media (min-width: 1100px) {
  body { padding-bottom: 40px; }
  .rahmen { display: block; padding-top: 126px; }
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 0 24px;
    align-content: center;
    min-height: 452px;
    padding: 36px;
    margin-bottom: 40px;
    border-radius: 42px;
  }
  .intro-text { grid-column: 1; }
  .intro-heading { min-height: 0; padding: 0; }
  .intro .kicker { display: flex; max-width: none; }
  .intro .kicker::before { display: block; }
  h1 { margin-top: 14px; font-size: clamp(39px, 3.8vw, 54px); line-height: 1.1; }
  .turniername { max-width: none; white-space: nowrap; }
  .jahr { font-size: 1.45em; margin-top: 4px; }
  .intro-note { max-width: 36em; margin-top: 16px; padding: 0; font-size: 14px; }
  .live-leiste { width: fit-content; max-width: 100%; }
  .team-bereich { grid-column: 1; width: 100%; max-width: 470px; margin-top: 18px; }
  .hero { top: -45px; right: 8px; width: 330px; }
  .bewegung { top: auto; bottom: 14px; right: 16px; }
  .platz { width: 58%; right: -5%; top: auto; bottom: -45px; transform: perspective(700px) rotateX(48deg) rotateZ(-12deg); }
  .buehnen-farbe::after {
    background:
      linear-gradient(90deg, var(--halle) 2%, rgb(13 23 51 / 96%) 28%, rgb(13 23 51 / 78%) 49%, transparent 85%),
      linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 28%, rgb(13 23 51 / 25%) 100%);
  }
  .verbindung, noscript .meldung { margin-bottom: 24px; }
  .dashboard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); grid-template-rows: auto 1fr; gap: 24px; align-items: start; }
  .rangliste { grid-column: 1; grid-row: 1; padding: 24px 20px 16px; }
  .plan-bereich { grid-column: 1; grid-row: 2; padding-top: 12px; }
  .seitenleiste { display: grid; grid-column: 2; grid-row: 1 / 3; gap: 28px; position: static; min-width: 0; align-self: start; }
  .jetzt-bereich, .finals-bereich { order: initial; }
  .bodennav { display: none; }
  .update-meldung { bottom: 24px; }
  .fuss { margin-top: 36px; }
  .toast { bottom: 24px; }
}
@media (min-width: 1280px) {
  .intro { grid-template-columns: minmax(0, 1fr) 430px; padding-left: 44px; }
  .hero { right: 28px; }
  .rangliste { padding: 28px 24px 16px; }
  .gruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .gruppe.inaktiv { display: block; }
  #group-tabs { display: none; }
  col.rang-spalte { width: 26px; }
  col.spiele-spalte { width: 27px; }
  col.games-spalte { width: 35px; }
}
@media (min-width: 1500px) {
  .dashboard { grid-template-columns: minmax(0, 1fr) 370px; }
  .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  .finals-link:hover { background: #dcecff; }
  .team-waehlen:hover:not(:disabled) { background: var(--hellblau); border-color: var(--himmel); }
  button.team-kachel:hover:not(:disabled) { border-color: var(--akzent); background: #f2f7fe; }
  button.team-kachel[aria-pressed="true"]:hover:not(:disabled) { background: #dcecff; }
  .filter button:hover, .pfeil:hover:not(:disabled), .bewegung:hover { background: var(--hellblau); }
  #filter button.filter-team:hover:not(:disabled) { background: #dcecff; }
  #filter button.filter-team[aria-pressed="true"]:hover:not(:disabled) { background: #1057aa; }
  .knopf:hover:not(:disabled) { box-shadow: 0 4px 14px rgb(32 55 90 / 12%); }
  .spiel:hover { border-color: #8aa8cd; }
  button.jetzt-karte:hover { box-shadow: inset 0 0 0 2px #8aa8cd; }
}
@media (prefers-reduced-motion: no-preference) {
  button:active:not(:disabled), .bodennav a:active { transform: scale(.985); }
  article.spiel:active, article.jetzt-karte:active { transform: scale(.992); }
  dialog.blatt[open] { animation: blatt-ein 280ms var(--ease) both; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .spiel:hover { translate: 0 -3px; box-shadow: 0 12px 24px rgb(32 55 90 / 11%); }
  .zeile:hover { translate: 0 -1px; }
  .marke:hover img, .marke:focus-visible img { animation: kopfnicken 550ms var(--ease); }
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 1000; overflow: hidden; }
  .cursor > span { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
  .cursor-ball { width: 14px; height: 14px; }
  .cursor-ball svg { display: block; width: 100%; height: 100%; }
  .cursor-ring { width: 44px; height: 44px; border: 1.5px solid var(--akzent); border-radius: 50%; }
  .cursor.hot .cursor-ring { background: rgb(169 207 247 / 18%); }
  .cursor-trail { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  html, .tage { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor, .bewegung { display: none !important; }
  .hero, #auftakt-ball { transform: none !important; }
  .spiel, .jetzt-karte, button:active, .bodennav a:active { transform: none !important; translate: none !important; }
}

/* WO: Feld so breit wie «weiter»/«WO», sonst läuft der Text über den Namen (feste Breite ist für Ziffern). */
.seite:has(.g.wo-resultat), .zeile .seite:has(.g.wo-resultat) { grid-template-columns: minmax(0, 1fr) auto; }
.g.wo-resultat, .zeile .g.wo-resultat { justify-content: center; padding: 5px 9px; white-space: nowrap; }