/* ══ Bikeball Matchday auf der Startseite ═══════════════════════════════
   Die Anzeigetafel der Halle: Kopf, drei Wege (Live, Vorschau,
   Ergebnisse), die Tafel mit dem, was gerade los ist, drei Takte.
   Alles unter .mdh; einzige Regel außerhalb ist .mdh + .hero.
   Die Tafel hat je Breite eine Mindesthöhe: Kein Zustand verschiebt
   die Seite. Bewegung nur über transform/opacity, nur ohne
   „Bewegung reduzieren“. Ausgangszustände nur unter html.mdh-js. */

.mdh {
  --mdh-rand: rgba(255, 255, 255, .1);
  --mdh-rand-2: rgba(255, 255, 255, .17);
  --mdh-haar: rgba(255, 255, 255, .075);
  --mdh-leise: #9898a6;
  --mdh-leiser: #7c7c89;
  --mdh-live: #ff3b30;
  --mdh-live-text: #e5221c;
  --mdh-gelb: var(--accent-2, #ffc300);
  --mdh-heim: 48 209 88;
  --mdh-gast: 10 132 255;
  --mdh-feder: cubic-bezier(.32, .72, 0, 1);
  --mdh-sanft: cubic-bezier(.22, .8, .24, 1);
  --mdh-h: 21.75rem;
  --mdh-r: 24px;
  --mdh-pad-l: max(var(--pad), env(safe-area-inset-left));
  --mdh-pad-r: max(var(--pad), env(safe-area-inset-right));
  --mdh-wegschrift: .9rem;

  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kopf" "wege" "tafel" "quelle" "text" "takte" "fuss";
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(1.25rem, 4.4vw, 3.4rem) var(--mdh-pad-r) clamp(2.5rem, 6vw, 4.5rem) var(--mdh-pad-l);
  border-bottom: 1px solid var(--line-soft);
}
/* svh und cqi nur, wo es sie gibt: Mit var() zusammen fiel unter iOS 15 die
   ganze Angabe weg (Abstand 0, Titel in Fließtextgröße) */
@supports (height: 1svh) { .mdh { padding-top: min(clamp(1.25rem, 4.4vw, 3.4rem), 6svh); } }
.mdh + .hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); }
html[lang="cs"] .mdh { --mdh-wegschrift: .82rem; }
html[lang="fr"] .mdh { --mdh-wegschrift: .86rem; }
/* Lange Namen der Wege (cs „Připravované“): am Telefon das Symbol über dem Namen */
@media (max-width: 719.98px) {
  html:is([lang="cs"], [lang="fr"]) .mdh-weg-kopf { flex-direction: column; gap: .2rem; }
  html:is([lang="cs"], [lang="fr"]) .mdh-weg { padding-block: .45rem; }
}
@media (max-width: 374.98px) {
  .mdh { --mdh-wegschrift: .8rem; }
  html[lang="cs"] .mdh, html[lang="fr"] .mdh { --mdh-wegschrift: .74rem; }
  .mdh-weg-kopf { flex-direction: column; gap: .2rem; }
  .mdh-weg { padding-block: .45rem; }
}

.mdh-licht {
  position: absolute; z-index: -1; inset: 18% 0 0; pointer-events: none;
  background:
    radial-gradient(44% 52% at 22% 72%, rgba(255, 75, 31, .16), transparent 70%),
    radial-gradient(36% 40% at 70% 96%, rgba(10, 132, 255, .06), transparent 70%);
  /* Zu den Rändern der 1180-px-Spalte ausblenden — sonst endete das Licht auf
     breiten Fenstern an einer harten Kante (Jury, 16.10.2026) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
}

/* ── Kopf und Text ────────────────────────────────────────────────── */
.mdh-kopf { grid-area: kopf; container-type: inline-size; min-width: 0; }
.mdh-text { grid-area: text; min-width: 0; margin-top: 1.75rem; }
.mdh-eyebrow {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 clamp(.85rem, 1.6vw, 1.15rem);
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--fg);
}
.mdh-neu {
  display: inline-flex; align-items: center; height: 1.375rem; padding: 0 .55rem;
  border-radius: 999px; background: var(--accent); color: #0b0b0e;
  font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
/* --b: Breite der längsten Titelzeile in em (je Sprache gemessen + 3 %) */
.mdh-titel {
  font-size: clamp(2.6rem, 1.45rem + 4.9vw, 5.6rem);
  font-weight: 850; letter-spacing: -.042em; word-spacing: .06em; line-height: .96;
  margin: 0;
}
.mdh-titel > span:not(.mdh-sr) { display: block; }
@supports (width: 1cqi) and (height: 1svh) { .mdh-titel { font-size: min(clamp(2.6rem, 1.45rem + 4.9vw, 5.6rem), 100cqi / var(--b, 5.15), 11.5svh); } }
.mdh-titel-b { color: #8a8a97; }
@supports (font-stretch: 85%) { .mdh-titel { font-stretch: 95%; } }
.mdh-lede {
  max-width: 42ch; color: var(--mdh-leise);
  font-size: clamp(1rem, .93rem + .34vw, 1.2rem); line-height: 1.5; letter-spacing: -.012em; text-wrap: pretty;
}
.mdh-tat { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.15rem; }
.mdh-knopf {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 3rem; padding: 0 1.45rem; border-radius: 999px;
  font-size: 1rem; font-weight: 750; letter-spacing: -.012em; line-height: 1.1; white-space: nowrap;
  text-decoration: none;
  transition: transform .25s var(--mdh-sanft), background-color .2s ease;
}
.mdh-knopf svg, .mdh-mehr svg, .mdh-einl a svg, .mdh-pfeil {
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.mdh-knopf svg { width: .7rem; height: .7rem; flex: none; transition: transform .25s var(--mdh-sanft); }
.mdh-knopf-a { background: var(--fg); color: #0a0a0d; }
.mdh-knopf-b { min-height: 2.75rem; padding: 0 .15rem; color: var(--fg); }
.mdh-knopf-b span { position: relative; }
.mdh-knopf-b span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--mdh-sanft);
}
@media (hover: hover) {
  .mdh-knopf-a:hover { background: #fff; transform: translateY(-1px); }
  .mdh-knopf-b:hover span::after { transform: none; }
  .mdh-knopf:hover svg { transform: translateX(2px); }
}
.mdh-knopf-a:active { transform: scale(.97); }
@media (max-width: 379.98px) { .mdh-knopf-a { flex: 1 1 100%; } .mdh-knopf-b { margin-inline: auto; } }
.mdh-fein { margin-top: .9rem; font-size: .84rem; color: var(--mdh-leise); }
.mdh :focus-visible { outline: 2px solid var(--mdh-gelb); outline-offset: 3px; border-radius: 999px; }

/* ── Drei Wege ────────────────────────────────────────────────────── */
.mdh-wege { grid-area: wege; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; min-width: 0; }
.mdh-weg {
  position: relative; min-width: 0; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: .2rem;
  min-block-size: 4rem; padding: .55rem .35rem; border-radius: 18px;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--mdh-rand);
  color: var(--fg); text-decoration: none; text-align: center;
  transition: background-color .2s ease, box-shadow .3s ease, transform .3s var(--mdh-sanft);
}
.mdh-weg:focus-visible { border-radius: 18px; }
.mdh-weg-kopf { display: flex; align-items: center; justify-content: center; gap: .4rem; min-width: 0; max-width: 100%; }
.mdh-weg-ikon { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mdh-weg[data-weg="live"][data-n] .mdh-weg-ikon { color: var(--mdh-live); }
.mdh-weg-name { min-width: 0; font-size: var(--mdh-wegschrift); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-pfeil { display: none; flex: none; width: .65rem; height: .65rem; margin-left: auto; color: var(--mdh-leise); transition: transform .3s var(--mdh-sanft), color .2s ease; }
.mdh-weg-zahl { position: relative; display: block; min-width: 0; max-width: 100%; font-size: .78rem; color: var(--mdh-leise); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-weg-n { color: var(--fg); font-weight: 750; font-variant-numeric: tabular-nums; display: inline-block; }
.mdh-weg-wort { margin-left: .25em; }
.mdh-weg-unten { display: block; min-width: 0; max-width: 100%; }
.mdh-weg-zweck, .mdh-weg-info { display: none; }
.mdh-weg-info { min-width: 0; font-size: .84rem; color: var(--mdh-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-medaille {
  display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-right: .35rem; vertical-align: -.15em;
  border-radius: 50%; background: var(--mdh-gelb); color: #141000; font-size: .64rem; font-weight: 850; font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .mdh-weg:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--mdh-rand-2); background: rgba(255, 255, 255, .07); }
  .mdh-weg:hover .mdh-pfeil { transform: translateX(3px); color: var(--fg); }
}
.mdh-weg:active { transform: scale(.985); }

/* ── Tafel ────────────────────────────────────────────────────────── */
.mdh-buehne { grid-area: tafel; position: relative; min-width: 0; margin-top: .75rem; }
.mdh-tafel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr);
  min-block-size: var(--mdh-h); height: 100%;
  border-radius: var(--mdh-r);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .068), rgba(255, 255, 255, .022) 34%, rgba(255, 255, 255, .03) 100%),
    rgba(14, 14, 20, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .03),
    0 40px 90px -34px rgba(0, 0, 0, .9), 0 14px 34px -16px rgba(0, 0, 0, .6);
  container: mdhtafel / inline-size;
  transition: box-shadow .3s ease;
}
.mdh-tafel::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .07) 28%, rgba(255, 255, 255, .05) 72%, rgba(255, 255, 255, .13));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.mdh-spur { grid-area: 1 / 1; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: hidden; min-width: 0; min-height: 0; }
.mdh-tafel[data-n] .mdh-spur { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.mdh-tafel[data-n] .mdh-spur::-webkit-scrollbar { display: none; }
.mdh-blatt {
  position: relative; min-width: 0; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  scroll-snap-align: start; scroll-snap-stop: always;
}
/* Das statische Blatt (ohne JS, Beispiel, Fehler) — sonst weicht es den Daten */
.mdh-tafel:is([data-zustand="live"], [data-zustand="naechstes"], [data-zustand="zuletzt"]) .mdh-blatt[data-art="statisch"] { display: none; }
.mdh-tafel[data-zustand="laden"] .mdh-spur { visibility: hidden; }

.mdh-tk {
  display: flex; align-items: center; gap: .7rem; min-width: 0;
  min-height: 3.6rem; padding: .55rem .8rem .55rem 1rem;
  border-bottom: 1px solid var(--mdh-haar);
}
.mdh-chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: .4rem;
  height: 1.375rem; padding: 0 .55rem; border-radius: 999px;
  font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.mdh-chip-live { background: var(--mdh-live-text); color: #fff; padding-left: .45rem; }
.mdh-chip-live i { position: relative; width: .4rem; height: .4rem; border-radius: 50%; background: #fff; }
.mdh-chip-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; opacity: 0; }
/* Ohne Verbindung sieht nichts mehr live aus: Chip gedämpft, Punkt ruhig */
.mdh-chip-live.mdh-chip-alt { background: rgba(255, 255, 255, .14); color: var(--mdh-leise); }
.mdh-chip-alt i { background: var(--mdh-leiser); }
.mdh-chip-alt i::after { animation: none !important; opacity: 0 !important; }
.mdh-chip-naechstes { color: var(--mdh-gelb); background: rgba(255, 195, 0, .1); box-shadow: inset 0 0 0 1px rgba(255, 195, 0, .45); }
.mdh-chip-zuletzt { color: var(--fg); background: rgba(255, 255, 255, .1); }
.mdh-chip-beispiel { color: var(--fg); border: 1px dashed rgba(255, 255, 255, .5); }
.mdh-tk-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .05rem; line-height: 1.25; margin: 0; }
.mdh-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 1rem; font-weight: 800; letter-spacing: -.016em; color: var(--fg);
}
.mdh-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--mdh-leise); }
@media (max-width: 719.98px) {
  .mdh-solo .mdh-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.2; }
}
.mdh-strecke::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--mdh-r); }
.mdh-strecke:focus-visible { outline: none; }
.mdh-strecke:focus-visible::after { box-shadow: inset 0 0 0 2px var(--mdh-gelb); }
/* Innen gezeichnet: Das Blatt ist so groß wie die Spur, ein Rahmen außen wurde abgeschnitten */
.mdh-tafel :is(button, .mdh-stream, .mdh-einl a) { position: relative; z-index: 2; }
.mdh-stream {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  height: 2.25rem; padding: 0 .85rem 0 .75rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--fg); text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--mdh-rand);
  transition: background-color .2s ease;
}
.mdh-stream i { width: 0; height: 0; border-style: solid; border-width: .3rem 0 .3rem .5rem; border-color: transparent transparent transparent #ff6259; }
@media (hover: hover) { .mdh-stream:hover { background: rgba(255, 255, 255, .12); } }
@media (max-width: 719.98px) {
  .mdh-stream { width: 2.25rem; padding: 0; justify-content: center; }
  .mdh-stream::before { content: ""; position: absolute; inset: -4px; }
  .mdh-stream span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mdh-stream i { margin-left: 2px; }
}
@media (hover: hover) {
  .mdh-tafel:has(.mdh-blatt:not([inert]) .mdh-strecke:hover) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -34px rgba(0, 0, 0, .9), 0 14px 34px -16px rgba(0, 0, 0, .6); }
}

.mdh-tb { --mdh-tbp: .5rem; position: relative; min-height: 0; display: grid; gap: .4rem; padding: var(--mdh-tbp); }
.mdh-tb[data-n="2"] { grid-template-rows: 1fr 1fr; }
.mdh-tf {
  display: flex; align-items: center; gap: .9rem; min-width: 0;
  min-height: 3rem; padding: .4rem 1rem;
  border-top: 1px solid var(--mdh-haar);
  font-size: .82rem; color: var(--mdh-leise); line-height: 1.3;
}
.mdh-tf-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s ease; }
.mdh-tf-text b { color: var(--fg); font-weight: 650; }
.mdh-tf-stark { text-wrap: balance; color: var(--fg); font-weight: 650; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.mdh-fort { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.mdh-balken { flex: none; width: 2.5rem; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mdh-balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--mdh-gelb), #ffd84d); border-radius: inherit; transform-origin: 0 50%; }
.mdh-fort-lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mdh-mehr {
  flex: none; display: inline-flex; align-items: center; gap: .3rem; margin-left: auto;
  min-height: 2.75rem; padding: 0 .1rem;
  color: var(--fg); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.mdh-mehr svg { width: .62rem; height: .62rem; stroke-width: 2.6; transition: transform .25s var(--mdh-sanft); }
@media (hover: hover) { .mdh-mehr:hover svg { transform: translateX(2px); } .mdh-mehr:hover { color: #fff; } }
.mdh-nur-breit { display: none !important; }
/* Lang und kurz (Fehler, „Stand … · Verbindung unterbrochen“): am Handy die
   kurze Fassung, statt sie mit „…“ abzuschneiden */
.mdh-kurz { display: none; }
@media (max-width: 719.98px) {
  .mdh-lang, .mdh-tf .mdh-voll { display: none; }
  .mdh-kurz, .mdh-tf .mdh-knapp { display: inline; }
  .mdh-blatt[data-art="statisch"] .mdh-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.2; }
  /* Lange Turniernamen und „Danach: …“ in zwei Zeilen statt mit „…“ */
  .mdh-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.2; text-wrap: balance; }
  .mdh-tf-text:not(.mdh-alt-text) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.25; }
}
.mdh-alt-punkt { display: inline-block; width: .45rem; height: .45rem; margin-right: .45rem; border-radius: 50%; background: var(--mdh-leiser); vertical-align: .05em; }
.mdh-tf-fehler { display: none; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.mdh-hohl { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--mdh-leiser); vertical-align: .02em; }
.mdh-erneut {
  flex: none; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--mdh-rand-2);
  font: 750 .86rem/1 var(--font); color: var(--fg);
}
@media (hover: hover) { .mdh-erneut:hover { background: rgba(255, 255, 255, .14); } }
.mdh-tafel[data-zustand="fehler"] .mdh-blatt[data-art="statisch"] .mdh-tf > :not(.mdh-tf-fehler) { display: none !important; }
.mdh-tafel[data-zustand="fehler"] .mdh-tf-fehler { display: flex; }

/* Punkte für 2 bis 4 Live-Turniere */
.mdh-blaettern {
  position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; height: 3rem;
}
.mdh-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 999px; }
.mdh-dot i { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: width .35s var(--mdh-feder), background-color .2s ease; }
.mdh-dot[aria-current="true"] i { width: 22px; background: var(--fg); }
@media (hover: hover) { .mdh-dot:hover i { background: rgba(255, 255, 255, .55); } .mdh-dot[aria-current="true"]:hover i { background: var(--fg); } }
@container mdhtafel (max-width: 339.98px) { .mdh-dot { width: 40px; } }
.mdh-tafel[data-n] .mdh-tf > :first-child:not(.mdh-mehr) { max-width: calc(50% - var(--mdh-pw, 4rem)); }
@media (max-width: 719.98px) {
  .mdh-tafel[data-n] .mdh-blaettern { left: .3rem; transform: none; }
  .mdh-tafel[data-n] .mdh-tf > :first-child:not(.mdh-mehr) { visibility: hidden; }
}

/* Ladebild: nur Fläche, kein Atmen */
.mdh-ske { display: none; grid-area: 1 / 1; align-content: start; gap: 0; pointer-events: none; }
.mdh-tafel[data-zustand="laden"] .mdh-ske { display: grid; }
.mdh-ske i { display: block; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.mdh-ske i:nth-child(1) { width: 3.2rem; height: 1.375rem; margin: 1.1rem 1rem 0; }
.mdh-ske i:nth-child(2) { width: min(14rem, 50%); height: .9rem; margin: -1rem 0 0 5.2rem; }
.mdh-ske i:nth-child(3) { width: min(20rem, 70%); height: 1.6rem; margin: 4.2rem 1.5rem 0; }
.mdh-ske i:nth-child(4) { width: min(16rem, 56%); height: 1.6rem; margin: 1rem 1.5rem 0; }
.mdh-ske i:nth-child(5) { width: 7rem; height: .7rem; margin: 4.2rem 1rem 0; }

/* ── Ein Spielfeld ────────────────────────────────────────────────── */
.mdh-feld {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 0;
  container: mdhfeld / inline-size;
  border-radius: calc(var(--mdh-r) - 10px);
  background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}
.mdh-schein { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mdh-schein i { position: absolute; inset: 0; transition: opacity .9s ease; }
.mdh-schein .mdh-sh { background: radial-gradient(70% 120% at 0% 30%, rgb(var(--mdh-heim) / .17), transparent 70%); }
.mdh-schein .mdh-sg { background: radial-gradient(70% 120% at 100% 70%, rgb(var(--mdh-gast) / .19), transparent 70%); }
.mdh-feld.mdh-still .mdh-schein i { opacity: .45; }
.mdh-linien { display: none; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mdh-linien::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .07);
  -webkit-mask: linear-gradient(#000 0 24%, transparent 32% 68%, #000 76%); mask: linear-gradient(#000 0 24%, transparent 32% 68%, #000 76%);
}
.mdh-linien i { position: absolute; top: 50%; width: 15rem; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mdh-linien i:first-child { left: 0; transform: translate(-62%, -50%); }
.mdh-linien i:last-child { right: 0; transform: translate(62%, -50%); }
.mdh-fi {
  height: 100%; display: grid; align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kopf kopf" "hn th" "gn tg" "fuss fuss";
  column-gap: .75rem; row-gap: .1rem;
  padding: .45rem .85rem .5rem 1rem;
}
.mdh-fk { grid-area: kopf; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 0; margin-bottom: .3rem; }
.mdh-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mdh-leise); }
.mdh-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; font-weight: 700; letter-spacing: -.016em; line-height: 1.75rem; }
/* Eigennamen werden nicht getrennt („RV Mus-terstadt“) — nur sehr lange
   Wörter in Mannschaftsnamen, wenn es gar nicht anders geht */
html:is([lang="de"], [lang="cs"], [lang="fr"]) .mdh .mdh-team { hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
.mdh :is(.mdh-name, .mdh-sieger b, .mdh-stufe p) { hyphens: manual; }
.mdh-team.mdh-h { grid-area: hn; }
.mdh-team.mdh-g { grid-area: gn; }
.mdh-tor {
  display: block; position: relative; overflow: hidden; text-align: right;
  min-width: 1.2ch; height: 1.75rem; line-height: 1.75rem;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.mdh-tor span { display: block; }
.mdh-tor.mdh-h { grid-area: th; }
.mdh-tor.mdh-g { grid-area: tg; }
.mdh-tor.mdh-leer { color: var(--mdh-leiser); font-weight: 600; }
.mdh-doppel { display: none; }
.mdh-ff { grid-area: fuss; display: flex; flex-direction: column; gap: .1rem; min-width: 0; margin: .35rem 0 0; font-size: .78rem; color: var(--mdh-leise); white-space: nowrap; }
.mdh-ff span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mdh-ff b { font-weight: 650; color: #c4c4cf; }
.mdh-tb[data-n="2"] .mdh-ff { display: none; }
@media (max-width: 719.98px) {
  .mdh-tb[data-n="1"] .mdh-team { font-size: 1.2rem; line-height: 2.3rem; }
  .mdh-tb[data-n="1"] .mdh-tor { font-size: 2rem; height: 2.3rem; line-height: 2.3rem; }
  .mdh-tb[data-n="1"] .mdh-ff { margin-top: .6rem; }
}
.mdh-uhr {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: .45rem;
  height: 1.6rem; padding: 0 .6rem; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  font-size: .78rem; font-weight: 650; color: var(--mdh-leise); white-space: nowrap;
}
.mdh-zeit { font-size: .95rem; font-weight: 800; color: var(--mdh-gelb); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mdh-uhr.mdh-steht .mdh-zeit { color: var(--fg); }
/* Ohne Verbindung: kein gelber Lauf unter der stehenden Uhr, Live-Kachel ruhig */
.mdh[data-alt] .mdh-lauf i { background: var(--mdh-leiser); }
.mdh[data-alt] .mdh-weg[data-weg="live"][data-n] .mdh-weg-ikon { color: var(--mdh-leise); }
.mdh-nw { white-space: nowrap; }
.mdh-laufpunkt { width: .4rem; height: .4rem; border-radius: 50%; background: #30d158; flex: none; }
.mdh-uhr.mdh-steht .mdh-laufpunkt { background: var(--mdh-leiser); }
.mdh-pause { display: inline-flex; gap: 2px; }
.mdh-pause::before, .mdh-pause::after { content: ""; width: 2.5px; height: .55rem; border-radius: 1px; background: currentColor; }
.mdh-lauf { position: absolute; left: .6rem; right: .6rem; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); border-radius: 1px; overflow: hidden; }
.mdh-lauf i { display: block; height: 100%; background: var(--mdh-gelb); transform-origin: 0 50%; transition: transform 1s linear; }
.mdh-uhr-text { color: var(--fg); }
.mdh-knapp { display: none; }
.mdh-schuss { color: var(--mdh-gelb); font-variant-numeric: tabular-nums; font-weight: 800; }
@container mdhfeld (max-width: 319.98px) { .mdh-voll { display: none; } .mdh-knapp { display: inline; } }
.mdh-blitz { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; }
.mdh-blitz.mdh-h { background: radial-gradient(55% 120% at 18% 55%, rgb(var(--mdh-heim) / .42), transparent 70%); }
.mdh-blitz.mdh-g { background: radial-gradient(55% 120% at 82% 55%, rgb(var(--mdh-gast) / .45), transparent 70%); }

/* Duell: Mannschaft – Stand – Mannschaft, wie über der Halle */
@container mdhfeld (min-width: 400px) {
  .mdh .mdh-linien { display: block; }
  .mdh .mdh-schein .mdh-sh { background: radial-gradient(62% 105% at 4% 58%, rgb(var(--mdh-heim) / .2), transparent 72%); }
  .mdh .mdh-schein .mdh-sg { background: radial-gradient(62% 105% at 96% 58%, rgb(var(--mdh-gast) / .22), transparent 72%); }
  .mdh .mdh-fi {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "kopf kopf kopf kopf kopf" "hn th dp tg gn" "fuss fuss fuss fuss fuss";
    align-content: stretch; align-items: center; column-gap: clamp(1rem, 3.5cqi, 2rem); row-gap: 0;
    padding: clamp(.75rem, 2cqi, 1.1rem) clamp(1rem, 3cqi, 1.75rem);
  }
  .mdh .mdh-fk { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin: 0; }
  .mdh .mdh-fk .mdh-uhr { grid-column: 2; }
  /* Deckend: Die Mittellinie schien durch die Uhr */
  .mdh .mdh-fk .mdh-uhr { background: #17171d; }
  .mdh .mdh-uhr { height: clamp(1.9rem, 6cqi, 2.4rem); padding: 0 clamp(.75rem, 2.4cqi, 1rem); gap: .55rem; font-size: clamp(.78rem, 1.9cqi, .9rem); }
  .mdh .mdh-zeit { font-size: clamp(1.05rem, 3.6cqi, 1.45rem); }
  .mdh .mdh-lauf { left: clamp(.75rem, 2.4cqi, 1rem); right: clamp(.75rem, 2.4cqi, 1rem); }
  .mdh .mdh-team {
    white-space: normal; text-wrap: balance; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    font-size: clamp(1.05rem, 3.5cqi, 1.9rem); font-weight: 750; letter-spacing: -.024em; line-height: 1.12;
  }
  .mdh .mdh-team.mdh-h { text-align: right; }
  .mdh .mdh-tor { height: auto; min-width: .62em; text-align: center; font-size: clamp(3rem, 15cqi, 7.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; padding-top: .02em; }
  .mdh .mdh-doppel { display: block; grid-area: dp; align-self: center; font-size: clamp(1.6rem, 6cqi, 3.6rem); font-weight: 700; color: rgba(255, 255, 255, .28); transform: translateY(-.06em); }
  .mdh .mdh-ff { flex-direction: row; justify-content: space-between; gap: .8rem; margin: 0; font-size: clamp(.76rem, 1.8cqi, .86rem); }
  .mdh .mdh-ff .mdh-danach { text-align: right; }
}

/* ── Als Nächstes ─────────────────────────────────────────────────── */
.mdh-nx { display: grid; align-content: center; gap: .8rem .95rem; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "kal info" "cd cd"; padding: .5rem .5rem .4rem; }
.mdh-kal {
  grid-area: kal; display: grid; justify-items: center; align-content: center;
  width: 4.25rem; height: 4.5rem; border-radius: 16px; line-height: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.mdh-kal small { font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mdh-kal b { margin: .2rem 0 .12rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mdh-kal span { font-size: .7rem; font-weight: 650; color: var(--mdh-leise); }
.mdh-ni { grid-area: info; min-width: 0; display: grid; align-content: center; gap: .3rem; }
.mdh-ni-wann { font-size: 1.05rem; font-weight: 750; letter-spacing: -.016em; margin: 0; }
.mdh-ni-ort { font-size: .86rem; color: var(--mdh-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.mdh-marken { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0 0; }
.mdh-marken span { display: inline-flex; align-items: center; gap: .3rem; height: 1.4rem; padding: 0 .5rem; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .72rem; font-weight: 700; color: #c9c9d3; white-space: nowrap; }
.mdh-marken span i { width: 0; height: 0; border-style: solid; border-width: .24rem 0 .24rem .4rem; border-color: transparent transparent transparent #ff6259; }
.mdh-marken span:nth-child(n+3) { display: none; }
.mdh-cd { grid-area: cd; min-width: 0; }
.mdh-cd-label { display: block; margin-bottom: .25rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mdh-leise); }
.mdh-cd-ziffern { display: flex; align-items: flex-start; gap: .2rem; }
/* Tage/Std. und Std./Min. ohne Doppelpunkt: etwas Luft zwischen den Teilen */
.mdh-cd-teil + .mdh-cd-teil { margin-left: .5em; }
.mdh-cd-teil { display: grid; justify-items: center; min-width: 2.2ch; }
.mdh-cd-teil b { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mdh-cd-teil small { margin-top: .3rem; font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--mdh-leise); }
.mdh-cd-trenner { font-size: 2rem; font-weight: 700; line-height: 1.12; color: rgba(255, 255, 255, .25); }
.mdh-cd-gleich { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--mdh-gelb); }
.mdh-cd-beginn { display: grid; }
.mdh-cd-beginn b { font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }

/* ── Zuletzt (nur Ergebnisse) ─────────────────────────────────────── */
.mdh-zl { display: grid; grid-template-rows: auto auto; align-content: center; gap: 1rem; padding: .6rem .6rem .5rem; }
.mdh-sieger small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mdh-gelb); }
.mdh-sieger b { display: block; margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.6rem; font-weight: 800; letter-spacing: -.026em; line-height: 1.15; }
.mdh-sieger span { display: block; margin-top: .15rem; font-size: .84rem; color: var(--mdh-leise); }
.mdh-endstand b span { display: block; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: inherit; color: inherit; }
.mdh-podest { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0; padding: .85rem 0 0; list-style: none; border-top: 1px solid var(--mdh-haar); }
.mdh-stufe { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .6rem; min-width: 0; }
.mdh-stufe[data-p="1"] { display: none; }
.mdh-stufe p { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdh-stufe div {
  flex: none; display: grid; place-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--fg);
}
.mdh-endstand b { font-size: 1.6rem; }

/* ── Beispiel-Panel ───────────────────────────────────────────────── */
.mdh-tb.mdh-bsp { grid-template-rows: minmax(0, 1fr); }

/* ── Beispiel: Tour durch die wichtigsten Funktionen (matchday-start.js tour) ──
   Sechs Szenen gleiten durch (je 4,5 s), unten Fortschritt wie bei Stories,
   antippbar, mit Pause. Ohne JS und bei „weniger Bewegung“: Szene 1 steht,
   die Teile schalten von Hand. Die Größe der Tafel ändert sich nie. */
/* contain: size — die Tour füllt die Fläche, die die Tafel ohnehin hat, und
   bestimmt ihre Größe nie mit (sonst wuchs sie, und echte Daten verschoben alles) */
.mdh-tour { overflow: hidden; contain: size; padding-inline: 0; }
.mdh-tour-spur { --k: 0; display: flex; height: 100%; min-height: 0; transform: translateX(calc(var(--k) * -100%)); transition: transform .8s cubic-bezier(.32, .72, 0, 1); }
.mdh-tour-spur.mdh-sprung { transition: none; }
.mdh-sz { flex: 0 0 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .55rem; padding: .2rem var(--mdh-tbp) 0; overflow: clip; }
/* bündig mit dem „Beispiel“-Chip darüber (Kopf: 1rem, ab 720 px 1.25rem Innenrand) */
.mdh-sz-text { margin: 0; display: grid; gap: .1rem; min-width: 0; padding-inline: calc(1rem - var(--mdh-tbp)); }
@media (min-width: 720px) { .mdh-sz-text { padding-inline: calc(1.25rem - var(--mdh-tbp)) 0; } }
.mdh-sz-text b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--fg); }
.mdh-sz-text span { font-size: .8rem; line-height: 1.35; color: var(--mdh-leise); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.mdh-sz-bild { position: relative; min-width: 0; min-height: 0; display: grid; }
.mdh-sz-bild > * { min-width: 0; min-height: 0; }
@container mdhtafel (min-width: 560px) {
  .mdh-sz { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); align-items: center; gap: 1.2rem; padding: 0 var(--mdh-tbp); }
  .mdh-sz-text { align-self: center; gap: .45rem; }
  .mdh-sz-text b { font-size: clamp(1.15rem, .9rem + 1cqi, 1.55rem); line-height: 1.12; }
  .mdh-sz-text span { font-size: .9rem; -webkit-line-clamp: 4; line-clamp: 4; }
  .mdh-sz-bild { height: 100%; }
}
.mdh-tour .mdh-feld { height: 100%; }
.mdh-tour .mdh-sz-bild > .mdh-feld .mdh-fi { align-content: center; }

/* Livetabelle */
.mdh-demo-seite {
  min-width: 0; min-height: 0; display: grid; align-content: center; gap: .5rem;
  padding: .8rem .95rem .85rem; overflow: hidden;
  border-radius: calc(var(--mdh-r) - 10px);
  background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}
.mdh-demo-titel { display: flex; align-items: center; gap: .45rem; margin: 0; min-width: 0; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mdh-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-demo-titel i { flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--mdh-live); }
.mdh-demo-tab { --zh: 1.42rem; min-width: 0; font-variant-numeric: tabular-nums; }
@container mdhtafel (max-width: 559.98px) { .mdh-demo-kopf { display: none; } .mdh-demo-seite { padding: .6rem .8rem; gap: .35rem; } .mdh-demo-reihe { font-size: .8rem; } }
.mdh-demo-kopf, .mdh-demo-reihe { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) 2.7rem 2rem; align-items: center; column-gap: .4rem; }
.mdh-demo-kopf { padding-bottom: .2rem; font-size: .62rem; font-weight: 750; color: var(--mdh-leiser); text-align: right; }
.mdh-demo-reihen { position: relative; height: calc(4 * var(--zh)); }
.mdh-demo-reihe {
  position: absolute; left: 0; right: 0; top: 0; height: var(--zh);
  border-top: 1px solid var(--mdh-haar); font-size: .84rem;
  transform: translateY(calc(var(--r, 0) * var(--zh)));
  transition: transform .8s cubic-bezier(.32, .72, 0, 1);
}
.mdh-demo-reihe b { font-weight: 700; color: var(--mdh-leiser); }
.mdh-demo-reihe span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--fg); }
.mdh-demo-reihe[data-live] span::after { content: ""; display: inline-block; width: .34rem; height: .34rem; margin-left: .4rem; border-radius: 50%; background: var(--mdh-live); vertical-align: .14em; }
.mdh-demo-reihe i { font-style: normal; text-align: right; color: var(--mdh-leise); }
.mdh-demo-reihe strong { justify-self: end; min-width: 1.7rem; padding: .1rem .35rem; border-radius: 7px; text-align: right; font-weight: 800; color: var(--fg); transition: background-color 1s ease; }
.mdh-demo-reihe strong.mdh-hell { background: color-mix(in srgb, var(--mdh-gelb) 30%, transparent); transition: none; }
.mdh-demo-reihe[data-r="0"] b { color: var(--mdh-gelb); }
@container mdhtafel (min-width: 560px) { .mdh-demo-tab { --zh: 1.95rem; } .mdh-demo-reihe { font-size: .92rem; } }

/* Ereignisse (Spielfeld, Handy) */
.mdh-demo-ev b { color: var(--fg); }
.mdh-demo-gelb { display: inline-block; flex: none; width: .5rem; height: .7rem; margin-right: .4rem; border-radius: 2px; background: #ffd60a; vertical-align: -.06em; }
.mdh-demo-ball { display: inline-block; flex: none; width: .46rem; height: .46rem; margin-right: .42rem; border-radius: 50%; background: var(--mdh-gelb); vertical-align: .06em; }

/* Hallenanzeige mit Einblendung für den Livestream */
.mdh-schirm { container-type: size; display: grid; place-items: center; height: 100%; min-height: 0; }
.mdh-schirm-bild {
  container: mdhschirm / inline-size;
  position: relative; overflow: hidden; width: 100%; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9;
  display: grid; align-content: start; justify-items: center; gap: 1.6cqi; padding-top: 7.5cqi;
  border-radius: 14px; background: radial-gradient(80% 90% at 25% 20%, rgba(255, 75, 31, .2), transparent 60%), radial-gradient(70% 80% at 85% 90%, rgba(10, 132, 255, .18), transparent 60%), #050507;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 5px #15151b, 0 0 0 6px rgba(255, 255, 255, .08), 0 18px 40px -18px rgba(0, 0, 0, .9);
}
.mdh-schirm-kopf { margin: 0; display: flex; align-items: center; gap: 3cqi; font-size: max(.6rem, 3.6cqi); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--mdh-leise); }
.mdh-schirm-uhr { padding: .3em .8em; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--mdh-gelb); font-size: 1.25em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mdh-schirm-stand { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 3cqi; width: 92%; }
.mdh-ss { display: grid; justify-items: center; gap: 1.2cqi; min-width: 0; }
.mdh-ss span { max-width: 100%; font-size: max(.62rem, 4cqi); font-weight: 800; line-height: 1.1; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-ss b { font-size: max(1.5rem, 14.5cqi); font-weight: 850; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.mdh-schirm-stand > i { font-style: normal; font-size: max(1rem, 10cqi); font-weight: 700; line-height: 1.3; color: rgba(255, 255, 255, .3); }
.mdh-bauchbinde {
  position: absolute; left: 4%; bottom: 4.5%; margin: 0; display: flex; align-items: center; gap: .55em; padding: .4em .75em .4em .55em;
  border-radius: 9px; background: rgba(12, 12, 16, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 18px -8px rgba(0, 0, 0, .8);
  font-size: max(.56rem, 3.1cqi); font-weight: 750; color: var(--fg); white-space: nowrap;
  opacity: 0; transform: translateY(35%); transition: opacity .45s ease, transform .6s cubic-bezier(.32, .72, 0, 1);
}
.mdh-bauchbinde i { width: .55em; height: .55em; border-radius: 50%; background: var(--mdh-live); }
.mdh-bauchbinde b { color: var(--mdh-live); letter-spacing: .06em; text-transform: uppercase; }
.mdh-bb-uhr { color: var(--mdh-gelb); font-variant-numeric: tabular-nums; }
.mdh-sz[data-an] .mdh-bauchbinde { opacity: 1; transform: none; }

/* Handy mit Ticker, daneben der QR-Code */
.mdh-sz-zwei { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: clamp(.75rem, 4cqi, 1.75rem); }
.mdh-qr { display: none; width: 5.4rem; padding: .45rem; border-radius: 12px; background: #fff; }
.mdh-qr svg { display: block; width: 100%; fill: #111; }
@container mdhtafel (min-width: 560px) { .mdh-qr { display: block; } }
.mdh-handy { height: 100%; min-height: 0; aspect-ratio: 10 / 16.5; max-height: 15rem; display: grid; place-items: center; }
.mdh-handy-bild {
  height: 100%; max-height: 15rem; width: auto; aspect-ratio: 10 / 16.5; overflow: hidden; display: grid; align-content: start; gap: .45rem;
  padding: .7rem .6rem; border-radius: 22px; background: #0d0d12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 4px #1b1b22, 0 16px 34px -16px rgba(0, 0, 0, .9);
  font-size: .66rem;
}
.mdh-handy-kopf { margin: 0; display: flex; align-items: center; gap: .35rem; font-weight: 800; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-handy-kopf i { flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--mdh-live); }
.mdh-handy-stand { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .45rem .5rem; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 800; }
.mdh-handy-stand b { font-size: 1.05rem; color: var(--mdh-gelb); font-variant-numeric: tabular-nums; }
.mdh-handy-ev { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; color: var(--mdh-leise); }
.mdh-handy-ev li { display: flex; align-items: center; min-width: 0; padding: .3rem .4rem; border-radius: 9px; background: rgba(255, 255, 255, .035); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-handy-ev li.mdh-frisch { color: var(--fg); background: rgba(255, 214, 10, .1); max-height: 2rem; transition: max-height .5s cubic-bezier(.32, .72, 0, 1), opacity .4s ease, padding .5s cubic-bezier(.32, .72, 0, 1); }
.mdh-sz[data-sz="ticker"]:not([data-an]) .mdh-handy-ev li.mdh-frisch { max-height: 0; opacity: 0; padding-block: 0; }

/* Spielplan */
.mdh-plan2 { display: grid; align-content: center; gap: .45rem; min-width: 0; padding: .7rem .9rem; border-radius: calc(var(--mdh-r) - 10px); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.mdh-plan2-kopf { margin: 0; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mdh-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-plan2 ol { margin: 0; padding: 0; list-style: none; display: grid; }
.mdh-plan2 li { display: grid; grid-template-columns: 2.6rem 3.4rem minmax(0, 1fr); align-items: center; gap: .6rem; min-height: 1.75rem; border-top: 1px solid var(--mdh-haar); font-size: .82rem;
  transition: opacity .4s ease calc(var(--i) * 180ms), transform .55s cubic-bezier(.32, .72, 0, 1) calc(var(--i) * 180ms); }
.mdh-plan2 li b { font-variant-numeric: tabular-nums; color: var(--fg); }
.mdh-plan2 li i { justify-self: start; font-style: normal; font-size: .68rem; font-weight: 750; padding: .1rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--mdh-leise); white-space: nowrap; }
.mdh-plan2 li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.mdh-sz[data-sz="plan"]:not([data-an]) .mdh-plan2 li { opacity: 0; transform: translateY(.6rem); transition: none; }
@container mdhtafel (min-width: 560px) { .mdh-plan2 li { min-height: 2.05rem; font-size: .9rem; } }
.mdh-plan2-kurz { display: none; }
@container mdhtafel (max-width: 559.98px) {
  .mdh-plan2-lang { display: none; }
  .mdh-plan2-kurz { display: inline; }
  .mdh-plan2 { padding: .6rem .8rem; }
  .mdh-plan2 li { grid-template-columns: 2.4rem 1.4rem minmax(0, 1fr); gap: .5rem; min-height: 1.6rem; font-size: .78rem; }
  .mdh-plan2 li i { justify-self: center; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; padding: 0; border-radius: 50%; }
  /* Ticker als breite Karte statt eines winzigen Handys */
  .mdh-sz-zwei { grid-template-columns: minmax(0, 1fr); }
  .mdh-handy { aspect-ratio: auto; max-height: none; height: 100%; width: 100%; place-items: stretch; }
  .mdh-handy-bild { aspect-ratio: auto; max-height: none; width: 100%; height: 100%; padding: .65rem .8rem; gap: .4rem; border-radius: 16px; font-size: .76rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 3px #1b1b22; }
  .mdh-handy-ev li:nth-child(3) { display: none; }
}
/* Schmale Seitenansicht (Tafel 560–679 px, z. B. bei 1024 px): Feld als Zahl, Modus weg — die Paarungen bleiben ganz */
@container mdhtafel (min-width: 560px) and (max-width: 679.98px) {
  .mdh-plan2-lang { display: none; }
  .mdh-plan2-kurz { display: inline; }
  .mdh-plan2 li { grid-template-columns: 2.6rem 1.5rem minmax(0, 1fr); gap: .5rem; font-size: .86rem; }
  .mdh-plan2 li i { justify-self: center; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; padding: 0; border-radius: 50%; }
  /* Sehr knapp (Tafel unter ~580 px): lieber zweizeilig als gekürzt */
  .mdh-plan2 li span { white-space: normal; text-overflow: clip; text-wrap: balance; }
}

/* Spielberichtsbogen mit Unterschrift */
.mdh-blatt2 { align-self: center; justify-self: center; align-content: start; height: max-content; max-height: 100%; width: min(100%, 22rem); display: grid; gap: .3rem; padding: .75rem .95rem .7rem; border-radius: 12px;
  background: linear-gradient(180deg, #f7f6f2, #ecebe6); color: #1d1d22; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .9); transform: rotate(-2.5deg); }
.mdh-blatt2-kopf { margin: 0 0 .15rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .78rem; }
.mdh-pdf { padding: .12rem .45rem; border-radius: 6px; background: #e5382b; color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .04em; transform: scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease; }
.mdh-blatt2-zeile { margin: 0; display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; border-bottom: 1px solid rgba(0, 0, 0, .12); font-size: .82rem; font-weight: 650; }
.mdh-blatt2-zeile b { font-variant-numeric: tabular-nums; }
.mdh-unterschrift { width: 62%; height: auto; margin-top: .25rem; fill: none; stroke: #1b3a8c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mdh-unterschrift path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mdh-blatt2 small { font-size: .62rem; color: #6b6b74; border-top: 1px solid rgba(0, 0, 0, .2); padding-top: .2rem; width: 62%; }
.mdh-sz[data-sz="bogen"][data-an] .mdh-unterschrift path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.45, .05, .25, 1); }
.mdh-sz[data-sz="bogen"][data-fertig] .mdh-pdf { transform: none; opacity: 1; }
/* Spielbericht am Handy kompakt (nach den Grundregeln, sonst überschrieben) */
@container mdhtafel (max-width: 559.98px) {
  .mdh-blatt2 { width: 100%; padding: .45rem .8rem .5rem; gap: .1rem; transform: none; }
  .mdh-blatt2-kopf { font-size: .72rem; margin: 0; }
  .mdh-blatt2-zeile { padding: .08rem 0; font-size: .76rem; }
  .mdh-unterschrift { width: 40%; margin-top: 0; }
  .mdh-blatt2 small { display: none; }
}

/* Steuerung: Fortschritt wie bei Stories, Pause */
.mdh-tour-steuer { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .35rem; }
html:not(.mdh-js) .mdh-tour-steuer { visibility: hidden; }
.mdh-tour-pause { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: -.2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; }
.mdh-tour-pause svg { width: .8rem; height: .8rem; fill: currentColor; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.mdh-tour-pause .mdh-p-an { fill: none; }
.mdh-tour-pause .mdh-p-aus { display: none; stroke: none; }
.mdh-tour-pause[data-pause] .mdh-p-an { display: none; }
.mdh-tour-pause[data-pause] .mdh-p-aus { display: inline; }
.mdh-tour-segmente { flex: 1 1 auto; min-width: 0; max-width: 15rem; display: flex; gap: 0; }
.mdh-tour-seg { flex: 1 1 0; min-width: 0; height: 2.75rem; display: grid; align-items: center; padding: 0 2px; border: 0; background: transparent; cursor: pointer; }
.mdh-tour-seg i { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .36); }
.mdh-tour-seg i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .2s linear; }
.mdh-tour-segmente.mdh-sprung .mdh-tour-seg i::after { transition: none; }
.mdh-tour-seg[aria-current="true"] i { background: rgba(255, 255, 255, .5); }
.mdh-tour-seg:focus-visible { outline: none; }
.mdh-tour-seg:focus-visible i { outline: 2px solid var(--mdh-gelb); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .mdh-tour-spur, .mdh-demo-reihe, .mdh-demo-reihe strong, .mdh-bauchbinde, .mdh-plan2 li, .mdh-handy-ev li.mdh-frisch, .mdh-pdf, .mdh-unterschrift path { transition: none !important; }
}
/* Am Handy: die sechs Teile als eigene, volle Zeile über Pause und Link —
   lückenlose Trefferflächen, je ≥ 28 px hoch und ~50 px breit (WCAG 2.5.8) */
@container mdhtafel (max-width: 559.98px) {
  .mdh-blatt[data-art="statisch"] .mdh-tf { flex-wrap: wrap; row-gap: 0; padding-top: .15rem; }
  .mdh-tour-steuer { display: contents; }
  .mdh-tour-segmente { order: 0; flex: 1 1 100%; max-width: none; margin: 0 -.25rem; }
  .mdh-tour-seg { height: 1.85rem; }
  .mdh-tour-pause { order: 1; margin-left: -.7rem; }
  .mdh-blatt[data-art="statisch"] .mdh-tf > .mdh-mehr { order: 2; margin-left: auto; }
  .mdh-blatt[data-art="statisch"] .mdh-tf > .mdh-tf-fehler { order: 3; }
  /* Ohne JavaScript keine leere Zeile, wo die Teile stünden */
  html:not(.mdh-js) .mdh-tour-segmente { display: none; }
}
@media (max-width: 719.98px) { .mdh { --mdh-h: 23.6rem; } }
@media (forced-colors: active) { .mdh-tour-seg i, .mdh-tour-seg[aria-current="true"] i { background: GrayText; } .mdh-tour-seg i::after { background: Highlight; } }
.mdh-einl { display: none; align-content: center; gap: .35rem; min-height: 0; overflow: hidden; }
.mdh-einl small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mdh-leise); }
.mdh-einl strong { font-size: clamp(1.2rem, 1rem + .5vw, 1.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.mdh-einl p { margin: .2rem 0 0; max-width: 34ch; color: var(--mdh-leise); font-size: .86rem; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.mdh-einl a {
  justify-self: start; display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem;
  min-height: 2.75rem; padding: 0 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--mdh-rand-2);
  font-size: .9rem; font-weight: 750; color: var(--fg); text-decoration: none;
  transition: background-color .2s ease;
}
@media (hover: hover) { .mdh-einl a:hover { background: rgba(255, 255, 255, .13); } }
.mdh-einl a svg { width: .6rem; height: .6rem; stroke-width: 2.6; }
@container mdhtafel (max-width: 639.98px) { .mdh-einl p { display: none; } }
@media (min-width: 1000px) { .mdh-einl p { -webkit-line-clamp: 4; line-clamp: 4; } }

/* ── Quelle, Takte, Fuß ───────────────────────────────────────────── */
.mdh-quelle { grid-area: quelle; min-block-size: 1.2rem; margin: .5rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--mdh-leise); }
.mdh-q-lang { display: none; }
.mdh-quelle:not(.mdh-an) { visibility: hidden; }
.mdh-takte { grid-area: takte; display: grid; gap: 1rem; margin-top: 2.5rem; min-width: 0; }
.mdh-takt {
  display: grid; grid-template-rows: auto auto 1fr; min-width: 0; min-block-size: 18rem;
  padding: 1.4rem 1.4rem 0; border-radius: 24px; overflow: hidden;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--mdh-rand);
}
.mdh-takt h3 { margin: 0; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.mdh-takt > p { margin: .65rem 0 0; max-width: 34ch; font-size: .95rem; line-height: 1.5; color: var(--mdh-leise); }
.mdh-takt-bild { position: relative; align-self: end; height: 9rem; margin-top: 1.4rem; }
.mdh-takte-fuss { grid-area: fuss; margin: .75rem 0 0; font-size: .78rem; color: var(--mdh-leise); }
@media (max-width: 899.98px) {
  .mdh-takte {
    grid-auto-flow: column; grid-auto-columns: min(84%, 22rem); gap: .75rem;
    margin-inline: calc(-1 * var(--mdh-pad-l)) calc(-1 * var(--mdh-pad-r));
    padding: 0 var(--mdh-pad-r) .2rem var(--mdh-pad-l); scroll-padding-inline: var(--mdh-pad-l);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .mdh-takte::-webkit-scrollbar { display: none; }
  .mdh-takte:focus-visible { outline-offset: -2px; border-radius: 0; }
  .mdh-takt { scroll-snap-align: start; }
  @supports (scroll-marker-group: after) {
    .mdh-takte { scroll-marker-group: after; }
    .mdh-takte::scroll-marker-group { display: flex; justify-content: center; margin-top: .5rem; }
    .mdh-takt::scroll-marker { content: ""; width: 44px; height: 44px; background: radial-gradient(circle, rgba(255, 255, 255, .3) 3.5px, transparent 4px); }
    .mdh-takt::scroll-marker:target-current { background: radial-gradient(circle, var(--fg) 3.5px, transparent 4px); }
  }
}
.mdh-modus { display: inline-grid; grid-auto-flow: column; gap: .15rem; margin: 0; padding: .2rem; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-soft); max-width: 100%; }
.mdh-modus span { padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 750; color: var(--mdh-leise); white-space: nowrap; }
.mdh-modus .mdh-wahl { background: rgba(255, 255, 255, .12); color: var(--fg); }
.mdh-plan ol { margin: .75rem 0 0; padding: 0; list-style: none; display: grid; }
.mdh-plan li { display: grid; grid-template-columns: 2.9rem 3.6rem minmax(0, 1fr); align-items: baseline; padding: .48rem 0; border-top: 1px solid var(--line-soft); font-size: .84rem; }
.mdh-plan li b { font-weight: 800; font-variant-numeric: tabular-nums; }
.mdh-plan li i { font-style: normal; color: var(--mdh-leise); font-size: .78rem; }
.mdh-plan li span { font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mdh-plan { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.mdh-tisch { display: grid; align-content: end; justify-items: center; gap: .9rem; padding-bottom: 1.2rem; }
.mdh-uhrkasten { display: grid; justify-items: center; padding: .5rem 1.6rem .7rem; border-radius: 20px; background: #090a0e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .45); }
.mdh-uhrkasten b { font-size: 3.4rem; font-weight: 900; letter-spacing: -.045em; line-height: 1.02; font-variant-numeric: tabular-nums; }
.mdh-uhrkasten span { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 650; color: var(--mdh-leise); }
.mdh-uhrkasten span i { width: .48rem; height: .48rem; border-radius: 50%; background: #30d158; transition: background-color .4s ease; }
.mdh-uhrkasten.mdh-steht span i { background: var(--mdh-leiser); }
.mdh-tasten { display: flex; gap: 1.1rem; margin: 0; font-size: .76rem; color: var(--mdh-leise); }
.mdh-tasten span { display: inline-flex; align-items: center; gap: .35rem; }
.mdh-tasten kbd { font: 700 .7rem/1 var(--font); color: var(--fg); padding: .32rem .45rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); box-shadow: 0 2px 0 rgba(255, 255, 255, .06); }
.mdh-ueberall { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .85rem; padding-bottom: 1.2rem; }
.mdh-anzeige {
  position: relative; isolation: isolate; display: grid; align-content: center; justify-items: center; gap: .1rem;
  min-height: 0; padding: .6rem .9rem; border-radius: 14px; overflow: hidden;
  background: radial-gradient(70% 90% at 22% 60%, rgb(var(--mdh-heim) / .2), transparent 70%), radial-gradient(70% 90% at 78% 60%, rgb(var(--mdh-gast) / .22), transparent 70%), #0b0c10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 36px rgba(0, 0, 0, .45);
}
.mdh-anzeige::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 255, 255, .1); }
.mdh-a-namen { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; width: 100%; margin: 0; font-size: .74rem; font-weight: 800; }
.mdh-a-namen span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mdh-a-namen span:last-child { text-align: right; }
.mdh-a-stand { position: relative; display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 2.5rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mdh-a-stand b { position: relative; overflow: hidden; display: block; height: 1em; }
.mdh-a-stand b span { display: block; }
.mdh-a-stand i { font-style: normal; font-size: .6em; color: var(--mdh-leise); transform: translateY(-.08em); }
.mdh-a-uhr { position: relative; margin: 0; font-size: .7rem; font-weight: 700; color: var(--mdh-leise); }
.mdh-a-uhr em { font-style: normal; color: #30d158; font-variant-numeric: tabular-nums; }
.mdh-anzeige .mdh-blitz { z-index: 0; border-radius: inherit; }
.mdh-ausgaben { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; margin: 0; font-size: .76rem; font-weight: 650; color: var(--mdh-leise); }
.mdh-ausgaben span { display: inline-flex; align-items: center; gap: .32rem; white-space: nowrap; }
.mdh-ausgaben svg { width: .95rem; height: .95rem; fill: none; stroke: #d6d6de; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.mdh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Breiten ──────────────────────────────────────────────────────── */
@media (max-width: 719.98px) and (max-height: 600px) {
  .mdh { padding-top: .75rem; }
  .mdh-eyebrow { margin-bottom: .5rem; }
  @supports (width: 1cqi) and (height: 1svh) { .mdh-titel { font-size: min(clamp(2.6rem, 1.45rem + 4.9vw, 5.6rem), 100cqi / var(--b, 5.15), 11.5svh, 9svh); } }
}
@media (min-width: 720px) {
  .mdh { --mdh-h: 23.5rem; --mdh-r: 28px; grid-template-areas: "kopf" "text" "wege" "tafel" "quelle" "takte" "fuss"; }
  .mdh-text { margin-top: 1rem; }
  .mdh-wege { gap: .75rem; margin-top: 1.75rem; }
  .mdh-weg {
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ikon name pfeil" "ikon zahl pfeil";
    justify-items: start; align-items: center; column-gap: .85rem; row-gap: .15rem;
    min-block-size: 5.25rem; padding: .8rem 1.1rem .8rem 1rem; border-radius: 20px; text-align: left;
  }
  .mdh-weg-kopf { display: contents; }
  .mdh-weg-ikon { grid-area: ikon; width: 1.5rem; height: 1.5rem; }
  .mdh-weg-name { grid-area: name; font-size: 1.04rem; }
  .mdh-pfeil { display: block; grid-area: pfeil; }
  .mdh-weg-unten { grid-area: zahl; display: flex; align-items: baseline; white-space: nowrap; overflow: hidden; }
  .mdh-weg-zahl { flex: none; max-width: 100%; font-size: .84rem; }
  .mdh-weg-zweck { display: inline; }
  .mdh-weg-kurz { display: none; }
  .mdh-weg[data-n] .mdh-weg-zweck { display: none; }
  .mdh-weg[data-n] .mdh-weg-info:not(:empty) { display: block; flex: 1 1 auto; }
  .mdh-weg[data-n] .mdh-weg-info:not(:empty)::before { content: "\00a0· "; }
  .mdh-tk { min-height: 4rem; padding-inline: 1.25rem 1rem; gap: .85rem; }
  .mdh-tk-text { flex-direction: row; align-items: baseline; gap: .75rem; }
  .mdh-name { flex: 0 0 auto; max-width: 100%; font-size: 1.06rem; }
  .mdh-meta { flex: 0 1 auto; min-width: 0; font-size: .88rem; }
  .mdh-tb { --mdh-tbp: .75rem; gap: .75rem; }
  .mdh-tb[data-n="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mdh-tb[data-n="2"] .mdh-ff { display: flex; }
  .mdh-tb[data-n="2"] .mdh-fi { align-content: start; }
  .mdh-tf { min-height: 3.4rem; padding-inline: 1.25rem; font-size: .86rem; }
  .mdh-balken { width: 4.5rem; }
  .mdh-fort-lang { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .mdh-fort-kurz { display: none; }
  .mdh-nur-breit { display: flex !important; }
  .mdh-nur-schmal { display: none !important; }
  .mdh-blaettern { height: 3.4rem; }
  .mdh-team { font-size: 1.15rem; line-height: 2.1rem; }
  .mdh-tor { font-size: 1.85rem; height: 2.1rem; line-height: 2.1rem; }
  .mdh-fk { margin-bottom: .6rem; }
  .mdh-ff { margin-top: .75rem; }

  .mdh-nx { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "kal info cd"; gap: 1.5rem 2rem; padding: 1rem clamp(1.25rem, 3vw, 2.5rem); }
  .mdh-kal { width: 6.5rem; height: 7rem; border-radius: 22px; }
  .mdh-kal small { font-size: .72rem; }
  .mdh-kal b { font-size: 3.1rem; }
  .mdh-kal span { font-size: .82rem; }
  .mdh-ni-wann { font-size: clamp(1.15rem, .9rem + .75vw, 1.5rem); letter-spacing: -.026em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mdh-ni-ort { font-size: .95rem; white-space: normal; }
  .mdh-marken span:nth-child(n+3) { display: inline-flex; }
  .mdh-marken span { height: 1.6rem; font-size: .78rem; padding: 0 .65rem; }
  .mdh-cd { text-align: right; }
  .mdh-cd-label { padding-right: .2rem; }
  .mdh-cd-ziffern { justify-content: flex-end; }
  .mdh-cd-teil b { font-size: clamp(2.8rem, 1.3rem + 3.6vw, 4.9rem); }
  .mdh-cd-trenner { font-size: clamp(2.2rem, 1rem + 2.8vw, 3.8rem); }
  .mdh-cd-beginn { justify-items: end; }
  .mdh-cd-beginn b { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); }
  .mdh-zl { grid-template-rows: none; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: end; gap: 2.5rem; padding: 1rem clamp(1.25rem, 3vw, 2.5rem) 0; }
  .mdh-sieger { align-self: center; padding-bottom: .5rem; }
  .mdh-sieger small { font-size: .72rem; }
  .mdh-zl.mdh-zl-solo { grid-template-columns: minmax(0, 1fr); }
  .mdh-sieger b { margin-top: .45rem; white-space: normal; font-size: clamp(1.6rem, .9rem + 1.6vw, 2.2rem); letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
  .mdh-sieger span { margin-top: .55rem; font-size: .95rem; }
  .mdh-podest { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .75rem; max-width: 34rem; width: 100%; justify-self: end; padding: 0; border: 0; }
  .mdh-stufe, .mdh-stufe[data-p="1"] { display: grid; grid-template-rows: auto auto; align-content: end; gap: .35rem; height: 100%; }
  .mdh-stufe p { text-align: center; white-space: normal; overflow-wrap: break-word; font-size: .84rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
  .mdh-stufe div { width: auto; height: auto; place-content: start center; padding-top: .7rem; border-radius: 16px 16px 0 0; font-size: 1.6rem; color: var(--mdh-leise); }
  .mdh-stufe[data-p="1"] { grid-column: 2; grid-row: 1; }
  .mdh-stufe[data-p="2"] { grid-column: 1; grid-row: 1; }
  .mdh-stufe[data-p="3"] { grid-column: 3; grid-row: 1; }
  .mdh-stufe[data-p="1"] div { height: 8.5rem; color: #1a1300; background: linear-gradient(180deg, #ffd84d, rgba(255, 195, 0, .5) 62%, rgba(255, 195, 0, .2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
  .mdh-stufe[data-p="2"] div { height: 6rem; }
  .mdh-stufe[data-p="3"] div { height: 4.25rem; }
  .mdh-q-lang { display: inline; }
  .mdh-q-kurz { display: none; }
  .mdh-takte { margin-top: 3.5rem; }
}
/* Tablet: Die Kacheln sind zu schmal für Untertitel und Turniernamen —
   die kurzen Wörter, keine abgeschnittenen Reste („Spielstände in Ech…“) */
@media (min-width: 720px) and (max-width: 999.98px) {
  .mdh-weg-zweck { display: none; }
  .mdh-weg-kurz { display: inline; }
  .mdh-weg[data-n] .mdh-weg-info { display: none !important; }
}
@media (min-width: 900px) {
  .mdh-takte { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3.5rem, 6vw, 5rem); }
  .mdh-takt h3 { min-height: 2.2em; }
  .mdh-takte-fuss { text-align: right; }
}
@media (min-width: 1000px) {
  .mdh {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 1.5rem;
    grid-template-areas: "kopf text" "tafel wege" "quelle ." "takte takte" "fuss fuss";
    align-items: end;
  }
  .mdh-text { margin: 0; padding-bottom: .2rem; }
  .mdh-tat { margin-top: 1rem; }
  .mdh-buehne, .mdh-wege { align-self: stretch; margin-top: 2.25rem; }
  /* Die Tafel bestimmt die Höhe der Zeile, die Wege teilen sie sich — sonst
     änderte sich die Zeile mit dem Inhalt der Kacheln (Verschiebung). */
  .mdh-wege { grid-template-columns: none; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: .75rem; contain: size; }
  .mdh-weg {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start; align-items: start; justify-items: stretch; row-gap: .4rem;
    padding: .9rem 1.1rem; border-radius: 22px; min-block-size: 0;
  }
  .mdh-weg-kopf { display: flex; justify-content: flex-start; gap: .55rem; }
  .mdh-weg-ikon { width: 1.25rem; height: 1.25rem; }
  .mdh-weg-name { font-size: 1.05rem; }
  .mdh-pfeil { margin-left: auto; }
  .mdh-weg-unten { display: contents; }
  .mdh-weg-zahl { white-space: normal; font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .mdh-weg[data-n] .mdh-weg-zahl { display: flex; align-items: baseline; }
  .mdh-weg-n { font-size: 2.1rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
  .mdh-weg-wort { margin-left: .4rem; font-size: .95rem; font-weight: 650; color: var(--mdh-leise); }
  .mdh-weg[data-n] .mdh-weg-info:not(:empty) { display: block; }
  .mdh-weg[data-n] .mdh-weg-info:not(:empty)::before { content: none; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .mdh { --mdh-h: 23.5rem; padding-top: min(clamp(1.25rem, 4.4vw, 3.4rem), 5svh); }
  .mdh-buehne, .mdh-wege { margin-top: 2rem; }
  @supports (width: 1cqi) and (height: 1svh) { .mdh-titel { font-size: min(clamp(2.6rem, 1.45rem + 4.9vw, 5.6rem), 100cqi / var(--b, 5.15), 11.5svh, 11svh); } }
}
@media (min-width: 1000px) and (max-height: 740px) { .mdh-fein { display: none; } }
@media (min-width: 1200px) and (min-height: 820.02px) { .mdh { --mdh-h: 24.75rem; --mdh-r: 30px; } }

/* Japanisch: Umbruch nach Sinnabschnitten, keine negative Laufweite */
html[lang="ja"] .mdh-titel { letter-spacing: -.02em; line-height: 1.14; }
/* Tschechisch: Háčeks (Ž, ě) stießen an die Zeile darüber */
html[lang="cs"] .mdh-titel { line-height: 1.03; }
html[lang="ja"] .mdh :is(.mdh-titel, .mdh-lede, .mdh-einl strong, .mdh-sieger b, .mdh-takt h3, .mdh-takt > p, .mdh-sz-text b, .mdh-sz-text span) { word-break: keep-all; line-break: strict; overflow-wrap: anywhere; }
@supports (word-break: auto-phrase) { html[lang="ja"] .mdh :is(.mdh-titel, .mdh-lede, .mdh-einl strong, .mdh-sieger b, .mdh-takt h3, .mdh-takt > p, .mdh-sz-text b, .mdh-sz-text span) { word-break: auto-phrase; } }
html[lang="ja"] .mdh :is(.mdh-chip, .mdh-fname, .mdh-cd-label, .mdh-einl small, .mdh-sieger small, .mdh-neu) { letter-spacing: .02em; }

/* ── Bewegung ─────────────────────────────────────────────────────── */
/* Mit Skript warten Tafel, Wege und Quelle auf die erste Antwort (≤ 450 ms).
   Kommt das Skript nicht, zeigt sie die Notfall-Animation nach 3 s. */
.mdh-js .mdh:not(.mdh-da) :is(.mdh-tafel, .mdh-weg, .mdh-quelle) { opacity: 0; animation: mdh-notfall 0s 3s forwards; }
@keyframes mdh-notfall { to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .mdh-js .mdh-text .mdh-auf { animation: mdh-auf .9s var(--mdh-feder) both; animation-delay: calc(60ms + var(--i, 0) * 70ms); }
  .mdh-da .mdh-tafel { animation: mdh-tafel-auf 1.1s var(--mdh-feder) both; transform-origin: 50% 30%; }
  .mdh-da .mdh-weg { animation: mdh-auf .9s var(--mdh-feder) both; animation-delay: calc(120ms + var(--j, 0) * 60ms); }
  .mdh-da .mdh-quelle { animation: mdh-blende .6s ease-out .4s both; }
  @supports (transition-behavior: allow-discrete) {
    .mdh-blatt, .mdh-stream { transition: opacity .4s var(--mdh-feder), translate .4s var(--mdh-feder); }
    @starting-style { .mdh-da .mdh-blatt[data-id], .mdh-da .mdh-stream { opacity: 0; translate: 0 6px; } }
  }
}
@keyframes mdh-auf { from { opacity: 0; transform: translateY(16px); } }
@keyframes mdh-tafel-auf { from { opacity: 0; transform: translateY(36px) scale(.965); } }
@keyframes mdh-blende { from { opacity: 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mdh-buehne { animation: mdh-zurueck linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
    @keyframes mdh-zurueck { to { transform: scale(.96); opacity: .5; } }
    @media (min-width: 900px) {
      .mdh-takt { animation: mdh-takt linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
      .mdh-takt:nth-child(2) { animation-range: entry 6% entry 76%; }
      .mdh-takt:nth-child(3) { animation-range: entry 12% entry 82%; }
    }
    @media (max-width: 899.98px) { .mdh-takte { animation: mdh-takt linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; } }
    @keyframes mdh-takt { from { opacity: 0; transform: translateY(48px) scale(.97); } }
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mdh-js .mdh-takt { transition: opacity .9s var(--mdh-feder), transform .9s var(--mdh-feder); }
    .mdh-js .mdh-takte:not(.mdh-an) .mdh-takt { opacity: 0; transform: translateY(40px); }
    .mdh-js .mdh-takt:nth-child(2) { transition-delay: .08s; }
    .mdh-js .mdh-takt:nth-child(3) { transition-delay: .16s; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mdh *, .mdh *::before, .mdh *::after { transition: none !important; }
}

/* Windows-Kontrast */
@media (forced-colors: active) {
  .mdh-tafel, .mdh-weg, .mdh-takt { border: 1px solid CanvasText; }
  .mdh-chip { border: 1px solid CanvasText; }
  .mdh-schein, .mdh-blitz, .mdh-licht, .mdh-linien { display: none; }
  .mdh :focus-visible { outline-color: Highlight; }
  .mdh-strecke:focus-visible::after { box-shadow: none; outline: 2px solid Highlight; outline-offset: -2px; }
  .mdh-dot[aria-current="true"] i { background: Highlight; }
}

/* ==========================================================================
   Band ganz oben (2.11.2026): „Neu“ — Matchday-Turniere in Google und Bing.
   An der Stelle des früheren WM-Banners, allein (nicht in der Tour). Rechts
   eine kleine Schleife, 8 s: Der Schalter „In Suchmaschinen finden“ springt
   grün an, dann steht das Turnier als Treffer in der Suche. Nur CSS; bei
   „weniger Bewegung“ steht gleich der Treffer da.
   ========================================================================== */
.mdh-band {
  --rand: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1rem);
  margin: clamp(.5rem, 1.2vw, .6rem) var(--rand) 0;
  padding: clamp(.45rem, 1vw, .5rem) clamp(.95rem, 2.6vw, 1.3rem);
  border-radius: 20px; border: 1px solid rgba(48, 209, 88, .38);
  background: radial-gradient(120% 170% at 0% 0%, rgba(48, 209, 88, .17), transparent 55%), radial-gradient(110% 170% at 100% 100%, rgba(10, 132, 255, .16), transparent 58%), #0e1311;
  box-shadow: 0 18px 50px -32px rgba(48, 209, 88, .7);
  color: var(--fg); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
/* Schmal halten: Tafel und Wege sollen am Rechner weiter ganz zu sehen sein */
.mdh-band + .mdh { padding-top: clamp(.6rem, 1.2vw, .65rem); }
@media (max-width: 719.98px) { .mdh-band + .mdh { padding-top: 1.1rem; } }
.mdh-band:hover { border-color: rgba(48, 209, 88, .65); transform: translateY(-1px); }
.mdh-band:focus-visible { outline: 2px solid #30d158; outline-offset: 3px; }
.mdh-band-text { flex: 1; min-width: 0; font-size: clamp(.95rem, .88rem + .35vw, 1.08rem); line-height: 1.25; text-wrap: balance; }
.mdh-band-neu { display: inline-flex; align-items: center; height: 1.3rem; margin-right: .5rem; padding: 0 .55rem; border-radius: 999px; vertical-align: .12em;
  background: #30d158; color: #06240f; font-size: .64rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.mdh-band-text strong { font-weight: 850; letter-spacing: -.02em; }
.mdh-band-zusatz { color: var(--muted, #9898a6); font-weight: 600; white-space: nowrap; }
:lang(ja) .mdh-band-text { line-break: strict; word-break: keep-all; }

/* Die Schleife: Schalter, dann Treffer — beide in derselben Fläche */
.mdh-band-demo { flex: none; position: relative; width: 20rem; height: 2.35rem; border-radius: 12px; overflow: hidden;
  background: rgba(0, 0, 0, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.mdh-band-schalter, .mdh-band-treffer { position: absolute; inset: 0; display: flex; padding: 0 .75rem; min-width: 0;
  animation: 8s cubic-bezier(.32, .72, 0, 1) .6s infinite both; }
.mdh-band-schalter { align-items: center; gap: .6rem; animation-name: mdh-band-a; }
.mdh-band-schalter b { min-width: 0; font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdh-band-sw { flex: none; position: relative; width: 2.2rem; height: 1.25rem; border-radius: 999px; background: rgba(255, 255, 255, .16);
  animation: mdh-band-bahn 8s ease .6s infinite both; }
.mdh-band-sw i { position: absolute; top: .15rem; left: .15rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45); animation: mdh-band-knopf 8s cubic-bezier(.32, .72, 0, 1) .6s infinite both; }
.mdh-band-treffer { flex-direction: column; justify-content: center; gap: .05rem; animation-name: mdh-band-b; }
.mdh-band-treffer small { display: flex; align-items: center; gap: .35rem; min-width: 0; font-size: .64rem; color: var(--muted, #9898a6); white-space: nowrap; overflow: hidden; }
.mdh-band-treffer small svg { flex: none; width: .7rem; height: .7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mdh-band-treffer b { min-width: 0; font-size: .82rem; font-weight: 700; line-height: 1.2; color: #8ab4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mdh-band-a { 0%, 46% { opacity: 1; transform: none; } 52%, 94% { opacity: 0; transform: translateY(-40%); } 100% { opacity: 1; transform: none; } }
@keyframes mdh-band-b { 0%, 48% { opacity: 0; transform: translateY(40%); } 55%, 91% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(40%); } }
@keyframes mdh-band-bahn { 0%, 13% { background: rgba(255, 255, 255, .16); } 19%, 94% { background: #30d158; } 100% { background: rgba(255, 255, 255, .16); } }
@keyframes mdh-band-knopf { 0%, 13% { transform: none; } 19%, 94% { transform: translateX(.95rem); } 100% { transform: none; } }

.mdh-band-pfeil { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s ease, background .2s ease; }
.mdh-band-pfeil svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mdh-band:hover .mdh-band-pfeil { transform: translateX(3px); background: rgba(255, 255, 255, .14); }

/* Schmaler: Text oben, die Schleife darunter über die ganze Breite */
@media (max-width: 899.98px) {
  .mdh-band { flex-wrap: wrap; row-gap: .5rem; }
  .mdh-band-text { flex-basis: calc(100% - 3rem); }
  .mdh-band-demo { order: 3; width: 100%; }
}
@media (max-width: 420px) { .mdh-band-pfeil { display: none; } .mdh-band-text { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .mdh-band, .mdh-band-pfeil { transition: none; }
  .mdh-band:hover { transform: none; }
  .mdh-band-schalter, .mdh-band-treffer, .mdh-band-sw, .mdh-band-sw i { animation: none; }
  .mdh-band-schalter { opacity: 0; }
}

/* ==========================================================================
   Band ganz oben seit 04.11.2026: das neue Browserspiel Ball Bandit (vorher
   Matchday in Google und Bing). Oranger Akzent wie im Spiel; rechts blenden
   vier Szenen aus den neuen Welten ineinander, 12 s. Bei „weniger Bewegung“
   steht nur die erste.
   ========================================================================== */
.mdh-band.mdh-band-spiel { border-color: rgba(255, 90, 54, .45);
  background: radial-gradient(120% 170% at 0% 0%, rgba(255, 90, 54, .2), transparent 55%), radial-gradient(110% 170% at 100% 100%, rgba(255, 200, 61, .13), transparent 58%), #15110f;
  box-shadow: 0 18px 50px -32px rgba(255, 90, 54, .7); }
.mdh-band.mdh-band-spiel:hover { border-color: rgba(255, 90, 54, .75); }
.mdh-band.mdh-band-spiel:focus-visible { outline-color: #ff5a36; }
.mdh-band-spiel .mdh-band-neu { background: #ff5a36; color: #fff; }
.mdh-band-bilder { flex: none; position: relative; width: 11rem; height: 3.1rem; border-radius: 12px; overflow: hidden; background: #2a2f3b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mdh-band-bilder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: mdh-band-bild 12s linear infinite; }
.mdh-band-bilder img:nth-child(1) { opacity: 1; animation-delay: -.6s; }
.mdh-band-bilder img:nth-child(2) { animation-delay: 2.4s; }
.mdh-band-bilder img:nth-child(3) { animation-delay: 5.4s; }
.mdh-band-bilder img:nth-child(4) { animation-delay: 8.4s; }
@keyframes mdh-band-bild { 0% { opacity: 0; } 5%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@media (max-width: 899.98px) { .mdh-band-bilder { order: 3; width: 100%; height: 4.6rem; } }
@media (prefers-reduced-motion: reduce) { .mdh-band-bilder img { animation: none; } }
