@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(../assets/barlow-400.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(../assets/barlow-600.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(../assets/barlow-700.woff2) format("woff2"); }

:root {
  --nacht: #0b152c;
  --nacht-rgb: 11 21 44;
  --tinte: #0f1d3a;
  --court: #245fd4;
  --court-tief: #11338a;
  --blau: #245fd4;
  --blau-hell: #7daff9;
  --flut: #fef7e1;
  --weiss: #f6f8fc;
  --ball: #ffdc3a;
  --ball-rgb: 255 220 58;
  --gold: #fcaa2b;
  --text: #ecf1f7;
  --text2: #b7c6d8;
  --linie: rgb(255 255 255 / .16);
  --flaeche: rgb(255 255 255 / .07);
  --metall: linear-gradient(180deg, #306ce2, #2358cd 52%, #1b46b4);
  --rand: clamp(16px, 3.4vw, 56px);
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  --links: env(safe-area-inset-left, 0px);
  --rechts: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  min-height: calc(100% + env(safe-area-inset-top));
  font-size: clamp(12px, calc(.5vw + .9vh), 17px);
  background: var(--nacht);
  -webkit-text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font: 400 1rem/1.35 Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--nacht);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

#szene { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; display: block; }
.arena-laedt #szene { opacity: 0; }
#szene { transition: opacity .5s; }
#ui { position: fixed; inset: 0; height: 100dvh; pointer-events: none; }
.ohne-js { max-width: 36rem; padding: calc(var(--oben) + 2rem) 2rem 2rem calc(var(--links) + 2rem); font-size: 1.1rem; line-height: 1.5; user-select: text; -webkit-user-select: text; }
.ohne-js a { color: var(--weiss); }
.ohne-js p + p { margin-top: 1rem; }
.ios-browser { --unten: max(env(safe-area-inset-bottom, 0px), 14px); }
#ui > * { pointer-events: auto; }
#ui > .hud, #ui > .touch { pointer-events: none; }
[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, small { text-wrap: pretty; }
kbd { display: inline-block; padding: .08em .46em; color: var(--weiss); font: 600 .84em/1.4 Barlow, sans-serif; white-space: nowrap; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .26); border-bottom-width: 2px; border-radius: 5px; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }

.schirm { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; padding: calc(var(--oben) + 1.2rem) calc(var(--rechts) + var(--rand)) calc(var(--unten) + 1.2rem) calc(var(--links) + var(--rand)); }

.menue {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 2rem;
  row-gap: 1rem;
  padding-top: calc(var(--oben) + .6rem);
  background: linear-gradient(90deg, rgb(var(--nacht-rgb) / .94), rgb(var(--nacht-rgb) / .88) 42%, rgb(var(--nacht-rgb) / .46) 58%, rgb(var(--nacht-rgb) / 0) 76%);
}
.m-einst { display: contents; }
.m-kopf { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 1.1rem; }
.schild { width: 4.4rem; height: auto; clip-path: polygon(50% .7%, 26.7% 2.7%, 13.3% 5.3%, 4.1% 8%, .9% 10.6%, .9% 63.7%, 1.7% 69%, 3.5% 74.3%, 6.7% 79.6%, 11.5% 84.9%, 18.9% 90.2%, 32% 95.5%, 43.3% 98.1%, 50% 99.6%, 57.4% 98.1%, 68.3% 95.5%, 80.9% 90.2%, 88.5% 84.9%, 93.3% 79.6%, 96.3% 74.3%, 98.3% 69%, 98.9% 63.7%, 98.9% 10.6%, 95.7% 8%, 86.5% 5.3%, 73.5% 2.7%); filter: drop-shadow(0 .4rem 1rem rgb(0 0 0 / .5)); }
.ueber { color: var(--ball); font-weight: 600; font-size: .94rem; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: 3.1rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--weiss); }
.marke { display: block; width: auto; height: 1.205em; margin-top: .12em; }
.zeilen { grid-column: 1; grid-row: 3; display: grid; align-content: start; gap: clamp(.14rem, 1vh, .62rem); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .25) transparent; }

.zeile { position: relative; display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); align-items: center; column-gap: .9rem; padding: .34rem .7rem; border-radius: 10px; outline: 0; transition: background .12s ease-out; }
.zeile::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 2px; background: var(--flut); opacity: 0; transform: scaleY(.4); transition: opacity .12s ease-out, transform .12s ease-out; }
.zeile:focus { background: rgb(255 255 255 / .09); }
.zeile:focus::before { opacity: 1; transform: none; }
.zeile[aria-disabled="true"] { opacity: .42; }
.z-name { color: var(--text2); font-weight: 600; }
.zeile:focus .z-name { color: var(--flut); }
.z-wert { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .9rem; min-width: 0; }
.z-info { color: var(--text2); font-size: .94rem; line-height: 1.15; }
.z-info:empty { display: none; }
.zeile[data-k="modus"] .z-wert { grid-template-columns: minmax(0, 1fr); row-gap: .12rem; }
.m-mehr { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; margin-top: .3rem; padding: 0 .8rem 0 1rem; color: var(--weiss); font: inherit; font-weight: 600; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .22); border-radius: 10px; outline: 0; cursor: pointer; transition: color .12s ease-out, background .12s ease-out, border-color .12s ease-out; }
.m-mehr small { padding: .1rem .5rem; color: var(--tinte); font-size: .8rem; font-weight: 700; background: var(--flut); border-radius: 99px; }
.m-mehr small:empty { display: none; }
.m-mehr svg { width: 1.15rem; height: 1.15rem; transition: transform .2s ease-out; }
.m-mehr[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-mehr:hover { background: rgb(255 255 255 / .15); }
.m-mehr:focus-visible { border-color: var(--flut); box-shadow: 0 0 0 2px var(--flut); }
.m-mehr[aria-expanded="true"] { border-color: var(--flut); }
.m-mehr-feld { display: grid; gap: inherit; padding-top: .4rem; border-top: 1px solid var(--linie); }

.seg { display: inline-flex; gap: .24rem; padding: .18rem; background: rgb(0 0 0 / .32); border: 1px solid var(--linie); border-radius: 10px; }
.opt { min-height: 2.2rem; padding: .2rem .78rem; color: var(--text2); font-weight: 600; white-space: nowrap; background: transparent; border: 0; border-radius: 7px; transition: background .1s ease-out, color .1s ease-out; }
.opt:hover { color: var(--weiss); background: var(--flaeche); }
.opt[aria-checked="true"] { color: var(--tinte); background: var(--flut); box-shadow: 0 1px 8px rgb(255 246 214 / .22); }

.z-stufe .z-wert { display: block; }
.st-oben { display: flex; align-items: center; gap: .8rem; min-height: 2.6rem; }
.st-zahl { min-width: 2.2ch; color: var(--flut); font-size: 2.3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.st-text { display: grid; min-width: 0; line-height: 1.15; }
.st-text b { color: var(--weiss); }
.st-text small { color: var(--text2); font-size: .94rem; }
.st-regler { margin-top: .18rem; }
.st-regler input { --anteil: 25%; display: block; width: 100%; height: 1.5rem; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.st-regler input::-webkit-slider-runnable-track { height: .42rem; border-radius: 99px; background: linear-gradient(90deg, var(--blau-hell), var(--flut)) 0 0 / var(--anteil) 100% no-repeat, rgb(255 255 255 / .16); }
.st-regler input::-moz-range-track { height: .42rem; border-radius: 99px; background: rgb(255 255 255 / .16); }
.st-regler input::-moz-range-progress { height: .42rem; border-radius: 99px; background: linear-gradient(90deg, var(--blau-hell), var(--flut)); }
.st-regler input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.3rem; height: 1.3rem; margin-top: -.44rem; background: var(--ball); border: 0; border-radius: 50%; box-shadow: 0 0 0 3px rgb(var(--ball-rgb) / .22), 0 2px 8px rgb(0 0 0 / .5); }
.st-regler input::-moz-range-thumb { width: 1.3rem; height: 1.3rem; background: var(--ball); border: 0; border-radius: 50%; }
.st-marken { position: relative; height: 1.2em; margin: 0 .55rem; color: var(--text2); font-size: .86rem; font-variant-numeric: tabular-nums; }
.st-marken span { position: absolute; transform: translateX(-50%); }

.m-karten { display: flex; gap: .8rem; min-width: 0; padding-top: .3rem; }
.karte { --trikot: var(--court); flex: 1; max-width: 19.5rem; min-width: 0; padding: .7rem .4rem .5rem; background: rgb(var(--nacht-rgb) / .78); background: linear-gradient(180deg, color-mix(in srgb, var(--trikot) 16%, transparent), transparent 4.5rem), rgb(var(--nacht-rgb) / .78); border: 1px solid var(--linie); border-color: color-mix(in srgb, var(--trikot) 42%, var(--linie)); border-radius: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.k-kopf { display: grid; gap: .3rem; padding: 0 .55rem .35rem; }
.k-kopf > b { color: var(--weiss); font-size: 1.28rem; line-height: 1.1; }
.k-tasten { display: flex; flex-wrap: wrap; align-items: center; column-gap: .55rem; row-gap: .2rem; color: var(--text2); font-size: .9rem; }
.k-tasten span { display: inline-flex; align-items: center; gap: .24rem; white-space: nowrap; }
.k-tasten small { flex-basis: 100%; font-size: .84rem; line-height: 1.15; }
.k-zeile { display: block; padding: .3rem .5rem; }
.k-name { display: block; width: calc(100% - 1rem); min-height: 2.6rem; margin: .1rem .5rem .3rem; padding: 0 .75rem; color: var(--weiss); font: inherit; font-size: max(16px, 1rem); font-weight: 600; background: rgb(0 0 0 / .32); border: 1px solid var(--linie); border-radius: 10px; outline: 0; }
.k-name::placeholder { color: var(--text2); font-weight: 500; }
.k-name:focus { border-color: var(--flut); }
.k-zeile .seg { display: flex; }
.k-zeile .opt { flex: 1; }
.farben { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; padding: .22rem .1rem; }
.farbe { width: 1.8rem; height: 1.8rem; padding: 0; background: var(--f); border: 2px solid rgb(255 255 255 / .28); border-radius: 50%; transition: transform .1s ease-out; }
.farbe:hover { transform: scale(1.08); }
.farbe[aria-checked="true"] { border-color: var(--flut); box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px var(--flut); }

.m-info { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; position: relative; z-index: 2; display: flex; gap: 1.2rem; padding-top: .3rem; }
.m-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .2rem; color: var(--text2); font: inherit; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.m-ton { display: grid; place-items: center; min-width: 2.75rem; }
.m-ton svg { width: 1.6rem; height: 1.6rem; }
.m-link:hover, .m-link:focus-visible { color: var(--flut); outline: 0; text-decoration: underline; text-underline-offset: .28em; }
.bereich { display: inline-flex; flex: none; gap: 3px; padding: 3px; font-size: 15px; line-height: 1; background: rgb(0 0 0 / .3); border: 1px solid var(--linie); border-radius: 12px; }
nav.bereich button { min-height: 36px; padding: 0 14px; color: var(--weiss); font: inherit; font-weight: 700; white-space: nowrap; background: none; border: 0; border-radius: 9px; outline: 0; transition: background .1s ease-out, color .1s ease-out; }
.bereich button:hover { background: rgb(255 255 255 / .12); }
.bereich button:focus-visible { box-shadow: inset 0 0 0 2px var(--flut); }
.bereich [aria-current="page"], .bereich [aria-current="page"]:hover { color: var(--tinte); background: var(--flut); cursor: default; }
.m-bereich { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; position: relative; z-index: 2; }
.m-aktionen { grid-column: 1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; padding-top: .3rem; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .1em; min-height: 2.9rem; padding: .3rem 1rem; color: var(--weiss); font-weight: 600; white-space: nowrap; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .22); border-radius: 10px; outline: 0; transition: background .12s ease-out, border-color .12s ease-out, transform .08s ease-out; }
.knopf:hover { background: rgb(255 255 255 / .15); }
.knopf:focus { background: rgb(255 255 255 / .17); border-color: var(--flut); box-shadow: 0 0 0 2px var(--flut); }
.knopf:active { transform: translateY(1px); }
.knopf.gross { flex-direction: column; min-width: 10.5rem; color: var(--tinte); background: var(--ball); border-color: transparent; box-shadow: 0 .3rem 1.6rem rgb(var(--ball-rgb) / .28); }
.knopf.gross b { font-size: 1.5rem; line-height: 1; }
.knopf.gross span { font-size: .86rem; font-weight: 600; line-height: 1; opacity: .78; }
.knopf.gross:hover { background: #ffec76; }
.knopf.gross:focus { background: #ffec76; box-shadow: 0 0 0 3px var(--nacht), 0 0 0 5px var(--ball), 0 .3rem 2rem rgb(var(--ball-rgb) / .4); }

.unter { display: grid; place-items: start center; background: rgb(var(--nacht-rgb) / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.u-rahmen { width: min(100%, 76rem); min-width: 0; }
.u-rahmen.schmal { width: min(100%, 52rem); }
.u-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--linie); }
h2 { color: var(--weiss); font-size: 2.2rem; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
h3 { color: var(--flut); font-size: 1.1rem; font-weight: 700; line-height: 1.15; }
h3 small { color: var(--text2); font-weight: 400; font-size: .9rem; margin-left: .4em; }

.st-oben-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.tasten { width: 100%; border-collapse: collapse; }
.tasten th, .tasten td { padding: .4rem .5rem; text-align: left; border-bottom: 1px solid rgb(255 255 255 / .1); }
.tasten thead th { color: var(--text2); font-weight: 600; font-size: .94rem; }
.tasten tbody th { color: var(--flut); font-weight: 600; }
.regeln { display: grid; gap: .5rem; color: var(--text2); }
.regeln b { color: var(--weiss); }
.schlaege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); column-gap: 1.2rem; margin-top: 1.4rem; }
.s-gruppe { --akzent: var(--blau-hell); grid-row: span 5; display: grid; grid-template-rows: subgrid; padding: .8rem .9rem .3rem; background: rgb(255 255 255 / .05); background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 11%, transparent), transparent 4.5rem), rgb(255 255 255 / .05); border: 1px solid var(--linie); border-radius: 10px; }
.s-gruppe:nth-child(2) { --akzent: var(--flut); }
.s-gruppe:nth-child(3) { --akzent: var(--ball); }
.s-gruppe h3 { margin-bottom: .4rem; color: var(--akzent); }
.s-gruppe dl { grid-row: span 4; display: grid; grid-template-rows: subgrid; margin: 0; }
.s-gruppe dl > div { padding: .36rem 0; border-top: 1px solid rgb(255 255 255 / .09); }
.s-gruppe dt { color: var(--weiss); font-weight: 700; }
.s-gruppe dd { margin: 0; color: var(--text2); line-height: 1.25; }

.p-text { max-width: 38em; margin-bottom: 1.2rem; color: var(--text2); font-size: 1.14rem; }
.p-text a { color: var(--ball); font-weight: 600; text-underline-offset: .18em; white-space: nowrap; }
.p-recht { display: flex; gap: 1.4rem; margin-top: 1.6rem; font-size: .95rem; }
.p-recht a { color: var(--text2); text-underline-offset: .2em; }
.p-recht a:hover, .p-recht a:focus-visible { color: var(--flut); }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.logo { height: 10.5rem; padding: .8rem; background: #fff; border-radius: 10px; }
.logo img, .logo canvas { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
a.logo { display: block; outline: 0; transition: box-shadow .12s ease-out; }
a.logo:hover { box-shadow: 0 0 0 2px var(--blau-hell); }
a.logo:focus { box-shadow: 0 0 0 3px var(--flut); }
.logos.liste { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); grid-auto-rows: 7.2rem; }
.logos.liste .logo { height: auto; min-height: 0; overflow: hidden; }
.logo-text { display: grid; place-items: center; height: 100%; color: var(--tinte); font-size: 1.1rem; font-weight: 700; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }

.v-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 2rem; row-gap: .5rem; align-items: start; }
.leiter { display: grid; gap: .28rem; margin: 0; padding: 0; list-style: none; }
.stufe-z { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto 1.4rem; align-items: center; gap: .7rem; width: 100%; min-height: 3.1rem; padding: .28rem .7rem; color: var(--weiss); text-align: left; background: var(--flaeche); border: 1px solid transparent; border-radius: 10px; outline: 0; transition: background .1s ease-out; }
.stufe-z:hover { background: rgb(255 255 255 / .13); }
.stufe-z:focus { border-color: var(--flut); box-shadow: 0 0 0 1px var(--flut); background: rgb(255 255 255 / .13); }
.stufe-z.jetzt { background: rgb(36 95 212 / .62); }
.stufe-z.jetzt:focus { background: rgb(36 95 212 / .82); }
.stufe-z.zu { color: rgb(236 241 247 / .46); background: rgb(255 255 255 / .03); cursor: default; }
.l-stufe { color: var(--flut); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stufe-z.zu .l-stufe { color: inherit; }
.l-name { display: grid; min-width: 0; line-height: 1.15; }
.l-name small, .l-format { color: var(--text2); font-size: .9rem; }
.stufe-z.zu .l-name small, .stufe-z.zu .l-format { color: inherit; }
.l-status { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.stufe-z.durch .l-status { fill: var(--ball); }
.lek-liste { grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--zeilen), auto); column-gap: .7rem; }
.lek-stand { flex: 1; color: var(--text2); font-size: 1rem; }
.lek-liste .l-name b { font-size: max(1.1rem, 16px); }
.lek-liste .l-name small { font-size: max(.95rem, 14px); }
.v-rechts { display: grid; gap: .55rem; }
.v-rechts h3 { margin-top: .5rem; }
.pokale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.pokal { display: grid; justify-items: center; gap: .1rem; padding: .5rem .3rem; color: rgb(255 255 255 / .2); background: var(--flaeche); border-radius: 10px; }
.pokal svg { width: 3rem; height: 3rem; fill: currentColor; }
.pokal small { color: var(--text2); text-align: center; line-height: 1.1; }
.pokal.da { color: var(--p); }
.pokal.da svg { filter: drop-shadow(0 0 .5rem color-mix(in srgb, var(--p) 55%, transparent)); }
.kacheln { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.kacheln.dreier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kachel { display: grid; align-content: start; gap: .1rem; padding: .44rem .55rem; background: var(--flaeche); border-radius: 8px; }
.kachel b { color: var(--weiss); font-size: 1.5rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kachel small { color: var(--text2); font-size: .84rem; line-height: 1.12; }
.erfolge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .34rem; }
.erfolg { display: grid; align-content: start; gap: .05rem; padding: .34rem .5rem; background: rgb(255 255 255 / .03); border: 1px solid rgb(255 255 255 / .1); border-radius: 6px; }
.erfolg b { color: rgb(255 255 255 / .56); font-size: .96rem; line-height: 1.15; }
.erfolg small { color: rgb(183 198 216 / .62); font-size: .82rem; line-height: 1.12; }
.erfolg.da { background: rgb(var(--ball-rgb) / .08); border-color: rgb(var(--ball-rgb) / .4); }
.erfolg.da b { color: var(--weiss); }
.erfolg.da small { color: var(--text2); }

.pausenbild { display: grid; place-items: center; background: rgb(var(--nacht-rgb) / .62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.p-kasten { display: grid; gap: .55rem; width: min(100%, 28rem); padding: 1.2rem; background: rgb(var(--nacht-rgb) / .9); border: 1px solid var(--linie); border-radius: 18px; }
.p-kasten h2 { text-align: center; }
.p-kopf { position: relative; display: grid; place-items: center; min-height: 2.9rem; margin-bottom: .1rem; }
.p-kopf .pause-knopf { position: absolute; right: 0; top: 50%; transform: translateY(-50%); outline: 0; }
.p-kopf .pause-knopf:focus { border-color: var(--flut); box-shadow: 0 0 0 2px var(--flut); }
.p-kasten .zeile { grid-template-columns: auto minmax(0, 1fr); justify-items: end; padding-inline: .5rem; }
.p-kasten .opt { padding-inline: .54rem; }
@media (max-height: 480px) {
  .p-kasten { grid-template-columns: 1fr 1fr; width: min(100%, 39rem); padding: .8rem 1rem; }
  .p-kopf, .p-kasten > h2, .p-kasten .knopf.gross, .p-kasten .ganz, .p-kasten [data-k="hilfen"], .p-kasten [data-k="buehne"]:not(:has(+ [data-k="licht"])) { grid-column: 1 / -1; }
  .p-kopf { margin: 0; }
  .p-kasten .opt { padding-inline: .42rem; }
}

.endbild { display: grid; place-items: center; background: rgb(var(--nacht-rgb) / .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.e-kasten { display: grid; gap: .75rem; width: min(100%, 44rem); padding: 1.5rem; background: rgb(var(--nacht-rgb) / .92); border: 1px solid var(--linie); border-radius: 18px; box-shadow: inset 0 1px 0 rgb(255 246 214 / .3), 0 1.2rem 3.2rem rgb(0 0 0 / .5); }
.e-kopf { text-align: center; }
.e-kopf h2 { font-size: 3rem; }
.e-kopf p { color: var(--ball); font-size: 1.2rem; font-weight: 600; }
.e-saetze { display: flex; justify-content: center; gap: .9rem; margin-top: .3rem; color: var(--weiss); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.e-namen { display: flex; justify-content: space-between; gap: 1rem; color: var(--weiss); }
.e-namen b:first-child { border-bottom: 3px solid var(--a); }
.e-namen b:last-child { border-bottom: 3px solid var(--b); text-align: right; }
.e-tabelle { width: 100%; border-collapse: collapse; }
.e-tabelle th { width: 7rem; padding: .16rem .5rem; color: var(--text2); font-weight: 600; text-align: center; }
.e-z { width: 2.2rem; color: var(--weiss); font-weight: 700; font-variant-numeric: tabular-nums; }
.e-tabelle tr .e-z:last-child { text-align: right; }
.e-b { height: .55rem; }
.e-b i { display: block; height: .55rem; background: var(--a); border-radius: 99px; }
.e-b.re i { background: var(--b); }
.e-b.li i { margin-left: auto; }
.e-notizen { display: flex; flex-wrap: wrap; gap: .4rem; }
.note { flex: 1 1 12rem; display: grid; padding: .36rem .6rem; background: rgb(var(--ball-rgb) / .1); border: 1px solid rgb(var(--ball-rgb) / .24); border-radius: 6px; }
.note.gold { background: rgb(252 170 43 / .14); border-color: rgb(252 170 43 / .38); }
.note b { color: var(--weiss); line-height: 1.15; }
.note small { color: var(--text2); line-height: 1.15; }
.e-knoepfe { display: flex; justify-content: center; gap: .6rem; }

.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { pointer-events: none; }

.tafel { position: absolute; top: calc(var(--oben) + .55rem); left: 0; right: 0; width: fit-content; margin-inline: auto; display: grid; grid-template-columns: minmax(8.5rem, auto) auto minmax(8.5rem, auto); align-items: stretch; max-width: calc(100vw - 16rem - var(--links) - var(--rechts)); color: #fff; background: var(--metall); border: 1px solid rgb(255 255 255 / .22); border-radius: 12px; box-shadow: 0 .3rem 1.1rem rgb(0 0 0 / .42), inset 0 1px 0 rgb(255 255 255 / .22); overflow: hidden; }
.tafel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 18%, rgb(255 255 255 / .08) 28%, transparent 38%, transparent 62%, rgb(255 255 255 / .06) 68%, transparent 76%); pointer-events: none; }
.t-team { --team: #fff; position: relative; display: flex; align-items: center; gap: .44rem; min-width: 0; padding: .28rem .7rem; }
.t-r { justify-content: flex-end; }
.t-streifen { position: absolute; top: 0; bottom: 0; width: .36rem; background: var(--team); }
.t-l .t-streifen { left: 0; }
.t-r .t-streifen { right: 0; }
.t-name { min-width: 0; overflow: hidden; font-size: 1.14rem; font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.t-dienst { flex: none; width: .66rem; height: .66rem; background: var(--ball); border-radius: 50%; box-shadow: 0 0 .5rem rgb(var(--ball-rgb) / .9); opacity: 0; transform: scale(.4); transition: opacity .2s ease-out, transform .2s ease-out; }
.t-team.dienst .t-dienst { opacity: 1; transform: none; }
.t-saetze { display: flex; gap: .2rem; }
.t-saetze:empty { display: none; }
.t-saetze i { width: .5rem; height: .5rem; border: 1.5px solid rgb(255 255 255 / .6); border-radius: 50%; }
.t-saetze i.voll { background: var(--flut); border-color: var(--flut); }
.t-mitte { display: flex; align-items: stretch; background: rgb(var(--nacht-rgb) / .62); }
.t-spiele { position: relative; display: grid; justify-items: center; align-content: center; min-width: 2.9rem; padding: .1rem .35rem .2rem; }
.t-spiele small { color: rgb(255 255 255 / .74); font-size: .68rem; line-height: 1.1; letter-spacing: .02em; }
.t-spiele b { font-size: 1.42rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tafel.nur-tb .t-spiele, .band.nur-tb .b-spiele { display: none; }
.t-punkte { display: flex; align-items: center; gap: .24rem; min-width: 7.2rem; padding: .2rem .55rem; justify-content: center; color: var(--tinte); background: var(--flut); }
.t-punkte b { min-width: 2ch; font-size: 2rem; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.t-punkte i { font-style: normal; font-weight: 700; font-size: 1.5rem; line-height: 1; opacity: .5; }
.neu { animation: neu .3s cubic-bezier(.22, 1, .36, 1); }
@keyframes neu { from { transform: translateY(.3em) scale(1.3); opacity: .3; } }

.chip { position: absolute; top: calc(var(--oben) + 4.3rem); left: 50%; transform: translateX(-50%); padding: .1rem .75rem .14rem; font-weight: 700; font-size: 1rem; white-space: nowrap; border-radius: 99px; box-shadow: 0 .2rem .7rem rgb(0 0 0 / .4); animation: chip .3s ease-out; }
.chip.gold { color: #3a2400; background: linear-gradient(180deg, #ffd27a, var(--gold)); box-shadow: 0 0 1.1rem rgb(252 170 43 / .55); }
.chip.hell { color: var(--tinte); background: var(--flut); }
@keyframes chip { from { opacity: 0; transform: translate(-50%, -.5rem); } }

.hud-knoepfe { position: absolute; top: calc(var(--oben) + .6rem); right: calc(var(--rechts) + .9rem); display: flex; gap: .5rem; }
.pause-knopf { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; min-width: 40px; min-height: 40px; color: var(--weiss); background: rgb(var(--nacht-rgb) / .5); border: 1px solid rgb(255 255 255 / .22); border-radius: 10px; pointer-events: auto !important; }
.pause-knopf:hover { background: rgb(var(--nacht-rgb) / .8); }
.pause-knopf svg { width: 62%; height: 62%; fill: currentColor; }
[data-ton] svg { display: block; fill: currentColor; }
[data-ton][aria-pressed="false"] { color: var(--text2); }

.ansage { position: absolute; left: 0; right: 0; top: 30%; display: grid; place-items: center; overflow: hidden; animation: aweg var(--dauer, 1500ms) both; }
.a-band { position: relative; display: grid; justify-items: center; gap: .1rem; width: min(100%, 50rem); padding: .55rem 5rem .68rem; background: linear-gradient(90deg, transparent, rgb(var(--nacht-rgb) / .94) 26%, rgb(27 70 180 / .96) 50%, rgb(var(--nacht-rgb) / .94) 74%, transparent); animation: arein .42s cubic-bezier(.16, 1, .3, 1) both; }
.a-band b { color: #fff; font-size: 2.9rem; font-weight: 700; line-height: 1.02; letter-spacing: -.01em; text-align: center; text-shadow: 0 .1rem .5rem rgb(0 0 0 / .4); }
.a-band small { color: var(--flut); font-size: 1.14rem; font-weight: 600; text-align: center; }
.ansage.gold .a-band { background: linear-gradient(90deg, transparent, rgb(150 104 14 / .94) 30%, rgb(214 158 30 / .97) 50%, rgb(150 104 14 / .94) 70%, transparent); }
.ansage.gross .a-band { padding-block: .9rem 1.05rem; background: linear-gradient(90deg, transparent, rgb(var(--nacht-rgb) / .95) 24%, rgb(35 88 205 / .98) 50%, rgb(var(--nacht-rgb) / .95) 76%, transparent); }
.ansage.gross .a-band b { font-size: 4.2rem; }
@keyframes arein { from { opacity: 0; transform: scaleX(.3) translateY(.6rem); } }
@keyframes aweg { 0%, 84% { opacity: 1; } 100% { opacity: 0; } }

.rufe { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ruf { position: absolute; left: 0; top: 0; }
.ruf b { position: relative; display: block; padding: .04rem .5rem .08rem; color: var(--tinte); font-size: .98rem; font-weight: 700; line-height: 1.25; white-space: nowrap; background: var(--weiss); border-radius: 8px; transform: translate(-50%, -100%); animation: ruf .9s ease-out both; }
.ruf b::after { content: ""; position: absolute; left: 50%; top: 100%; width: .6rem; height: .34rem; margin-left: -.3rem; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ruf.kommando b { background: var(--flut); }
@keyframes ruf { 0% { opacity: 0; transform: translate(-50%, -70%) scale(.8); } 12% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; } }
.tags { position: absolute; inset: 0; overflow: hidden; }
.tag { position: absolute; padding: .04rem .5rem .08rem; color: #fff; font-size: .98rem; font-weight: 700; line-height: 1.25; white-space: nowrap; background: rgb(var(--nacht-rgb) / .82); border-radius: 6px; transform: translate(-50%, -100%); animation: tag .95s ease-out both; }
.tag.perfekt { color: #2c2300; font-size: 1.1rem; background: linear-gradient(180deg, #fff0a8, var(--ball)); box-shadow: 0 0 1rem rgb(var(--ball-rgb) / .7); animation-duration: 1.2s; }
@keyframes tag { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.7); } 14% { opacity: 1; transform: translate(-50%, -115%) scale(1.08); } 26% { transform: translate(-50%, -115%) scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -230%); } }
.tag.urteil { padding: .02rem .42rem .06rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: rgb(255 255 255 / .88); background: rgb(var(--nacht-rgb) / .6); animation: urteil .85s ease-out both; }
.tag.urteil.gut { color: #e6ffb4; }
.tag.urteil.spaet { color: #ffd2c4; }
@keyframes urteil { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.85); } 18% { opacity: 1; transform: translate(-50%, -50%); } 68% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -85%); } }

.timing { position: absolute; bottom: calc(var(--unten) + 4rem); left: 50%; width: 15rem; height: .56rem; transform: translateX(-50%); background: rgb(var(--nacht-rgb) / .72); border: 1px solid rgb(255 255 255 / .34); border-radius: 99px; }
.ti-zone { position: absolute; left: 42%; right: 42%; top: -1px; bottom: -1px; background: var(--ball); border-radius: 4px; box-shadow: 0 0 .6rem rgb(var(--ball-rgb) / .7); }
.ti-marke { position: absolute; top: -.32rem; bottom: -.32rem; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 .3rem #000; }

.ohne-spieler .karte { display: none; }
.vollbild-hinweis { z-index: 30; display: grid; place-items: center; background: rgb(var(--nacht-rgb) / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vb-karte { display: grid; gap: .8rem; width: min(100%, 44rem); padding: 1.1rem 1.2rem; background: rgb(var(--nacht-rgb) / .94); border: 1px solid var(--linie); border-radius: 14px; }
.vb-karte h2 { font-size: 1.55rem; line-height: 1.12; }
.vb-kurz { color: var(--text2); }
.vb-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: .9rem; margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.vb-schritte li { grid-row: span 3; display: grid; grid-template-rows: subgrid; justify-items: start; row-gap: .28rem; }
.vb-bild { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; overflow: hidden; color: var(--flut); background: rgb(255 255 255 / .07); border: 1px solid var(--linie); border-radius: 12px; }
.vb-bild svg { width: 1.9rem; height: 1.9rem; }
.vb-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-schritte b { line-height: 1.15; color: var(--weiss); }
.vb-schritte small { color: var(--text2); font-size: .94rem; line-height: 1.22; }
.vb-knoepfe { display: flex; flex-wrap: wrap; gap: .55rem; }
.vb-knoepfe .knopf { flex: 1 1 11rem; }
.hud.uebung .tafel { display: none; }
.hud.uebung .hilfe { border-radius: 14px; padding: .5rem 1rem; }
.hilfe { position: absolute; bottom: calc(var(--unten) + 1.1rem); left: 0; right: 0; width: fit-content; max-width: min(90vw, 40rem); margin-inline: auto; padding: .24rem .9rem .3rem; color: var(--weiss); font-size: 1.06rem; font-weight: 600; text-align: center; background: rgb(var(--nacht-rgb) / .76); border-radius: 99px; }

.rand { display: contents; }
.band { display: none; }
body.pro .tafel { display: none; }
body.pro .rand { position: absolute; top: calc(var(--oben) + .55rem); left: calc(var(--links) + .7rem); display: flex; flex-direction: column; gap: .35rem; width: clamp(14rem, 21vw, 16.5rem); }
body.pro .band { display: grid; grid-template-columns: .3rem minmax(0, 1fr) auto auto auto auto; color: var(--weiss); background: rgb(var(--nacht-rgb) / .74); border: 1px solid rgb(255 255 255 / .16); border-radius: 8px; box-shadow: 0 .2rem .8rem rgb(0 0 0 / .3); overflow: hidden; }
.hud.uebung .band { display: none; }
.b-titel { grid-column: 1 / -1; padding: .2rem .5rem .16rem .6rem; color: var(--ball); font-size: .74rem; font-weight: 600; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.b-reihe { --team: #fff; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 1.72rem; border-top: 1px solid rgb(255 255 255 / .1); }
.b-farbe { align-self: stretch; background: var(--team); }
.b-name { min-width: 0; padding-inline: .42rem .2rem; overflow: hidden; font-size: .94rem; font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.b-dienst { width: .52rem; height: .52rem; margin-right: .28rem; background: var(--ball); border-radius: 50%; box-shadow: 0 0 .4rem rgb(var(--ball-rgb) / .8); opacity: 0; }
.b-reihe.dienst .b-dienst { opacity: 1; }
.b-saetze, .b-spiele { min-width: 1.3rem; color: var(--text2); font-size: .98rem; font-variant-numeric: tabular-nums; text-align: center; }
.b-saetze { color: var(--flut); }
.b-saetze:empty { min-width: 0; }
.b-punkte { align-self: stretch; display: grid; place-items: center; min-width: 2.4rem; color: var(--tinte); font-size: 1.08rem; line-height: 1; font-variant-numeric: tabular-nums; background: var(--flut); }
body.pro .chip { position: static; order: 1; align-self: flex-start; font-size: .9rem; transform: none; animation: none; }
body.pro .hilfe { position: static; order: 2; width: auto; max-width: none; margin: 0; padding: .3rem .6rem .36rem; font-size: .98rem; line-height: 1.22; text-align: left; border-radius: 8px; }
body.pro .timing { position: relative; order: 3; left: auto; top: auto; bottom: auto; width: 100%; margin-block: .35rem; transform: none; }
body.pro .ansage { position: static; order: 4; display: block; align-self: flex-start; max-width: 100%; overflow: visible; }
body.pro .a-band { justify-items: start; width: auto; padding: .32rem .6rem .4rem; background: rgb(var(--nacht-rgb) / .82); border-left: .3rem solid var(--ball); border-radius: 8px; animation: rand-rein .24s ease-out both; }
body.pro .a-band b { font-size: 1.34rem; line-height: 1.08; letter-spacing: 0; text-align: left; text-wrap: balance; text-shadow: none; }
body.pro .a-band small { font-size: .94rem; line-height: 1.15; text-align: left; }
body.pro .ansage.gross .a-band { padding-block: .36rem .44rem; background: rgb(var(--nacht-rgb) / .86); border-left-color: var(--flut); }
body.pro .ansage.gross .a-band b { font-size: 1.62rem; }
body.pro .ansage.gold .a-band { background: rgb(var(--nacht-rgb) / .86); border-left-color: var(--gold); }
body.pro .tags { position: static; order: 5; display: flex; flex-direction: column; align-items: flex-start; gap: .22rem; overflow: visible; }
body.pro .tag { position: static; transform: none; animation: rand-tag 1.1s ease-out both; }
body.pro .tag.urteil { animation: rand-tag .85s ease-out both; }
body.pro .tag:nth-last-child(n+3) { display: none; }
@keyframes rand-rein { from { opacity: 0; transform: translateX(-.7rem); } }
@keyframes rand-tag { 0% { opacity: 0; transform: translateX(-.5rem); } 12% { opacity: 1; transform: none; } 76% { opacity: 1; } 100% { opacity: 0; } }

.dreh { display: none; position: absolute; inset: 0; z-index: 30; place-content: center; place-content: safe center; justify-items: center; padding: max(24px, var(--oben)) 16px max(24px, var(--unten)); overflow-y: auto; color: var(--weiss); text-align: center; background: rgb(var(--nacht-rgb) / .95); }
body.hochkant .dreh { display: grid; }
.dreh-kern { display: grid; justify-items: center; gap: 12px; }
.dreh-kern svg { width: 96px; height: 96px; margin-bottom: 8px; fill: none; stroke: var(--flut); stroke-width: 3; stroke-linecap: round; animation: drehen 2.6s ease-in-out infinite; }
.dreh-kern b { font-size: 24px; line-height: 1.15; }
.dreh-kern small { color: var(--text2); font-size: 16px; }
.dreh-menue { margin-top: 1rem; }
.dreh-app { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .85rem; row-gap: .45rem; align-items: center; width: min(100%, 21rem); margin-top: 1.6rem; padding: .8rem .95rem; color: var(--weiss); text-align: left; background: rgb(var(--ball-rgb) / .08); border: 1px solid rgb(var(--ball-rgb) / .55); border-radius: 14px; }
.dreh-app img { grid-row: 1 / span 2; width: 3.4rem; height: 3.4rem; border-radius: 22%; box-shadow: 0 .3rem .9rem rgb(0 0 0 / .45); }
.dreh-text { display: grid; gap: .1rem; }
.dreh-text b { font-size: 1.08rem; line-height: 1.2; }
.dreh-text small { color: var(--text2); font-size: .92rem; line-height: 1.25; }
.dreh-wie { justify-self: start; padding: .3rem .8rem; color: var(--tinte); font-weight: 700; font-size: .92rem; background: var(--ball); border-radius: 99px; }
.dreh-app:active { background: rgb(var(--ball-rgb) / .16); }
.dreh-anleitung { display: grid; gap: 1rem; width: min(100%, 22rem); text-align: left; }
.dreh-anleitung[hidden], .dreh.anleitung .dreh-kern, .dreh.anleitung .dreh-app { display: none; }
.dreh-anleitung h2 { font-size: 1.5rem; line-height: 1.15; text-align: center; }
.dreh-anleitung .vb-schritte { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: .8rem; }
.dreh-anleitung .vb-schritte li { grid-row: auto; grid-template-columns: 3.1rem minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: .75rem; row-gap: .05rem; }
.dreh-anleitung .vb-bild { grid-row: 1 / span 2; }
.dreh-anleitung .knopf { width: 100%; }
@keyframes drehen { 0%, 22% { transform: none; } 58%, 100% { transform: rotate(-90deg); } }

.touch { position: absolute; inset: 0; pointer-events: none; touch-action: none; }
.t-haelfte { position: absolute; top: calc(var(--oben) + 3.9rem); bottom: 0; width: 50%; pointer-events: none; }
.t-s0 { left: 0; }
.t-s1 { right: 0; }
.t-zone { position: absolute; top: 0; bottom: 0; left: 0; width: 56%; pointer-events: auto; touch-action: none; }
.t-s1 .t-zone { left: auto; right: 0; }
.t-stick { position: absolute; left: calc(var(--links) + 84px); bottom: calc(var(--unten) + 78px); display: grid; place-items: center; width: 124px; height: 124px; pointer-events: none; background: rgb(var(--nacht-rgb) / .26); border: 2px solid rgb(255 255 255 / .28); border-radius: 50%; opacity: .55; transform: translate(-50%, 50%); }
.t-s1 .t-stick { left: auto; right: calc(var(--rechts) + 22px); transform: translateY(50%); }
.t-zone.aktiv .t-stick { right: auto; bottom: auto; opacity: 1; transform: translate(-50%, -50%); }
.t-griff { width: 44%; height: 44%; background: rgb(255 246 214 / .62); border-radius: 50%; box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.t-zone.aktiv .t-griff { background: var(--flut); }
.t-knoepfe { position: absolute; bottom: calc(var(--unten) + 14px); display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
.t-knopf { display: grid; place-items: center; color: var(--weiss); font-size: 15px; font-weight: 700; pointer-events: auto; touch-action: none; background: rgb(var(--nacht-rgb) / .36); border: 2px solid rgb(255 255 255 / .34); border-radius: 50%; }
.t-schlag { width: 96px; height: 96px; color: var(--tinte); background: rgb(var(--ball-rgb) / .72); border-color: transparent; }
.t-lob { width: 72px; height: 72px; margin-bottom: 36px; }
.t-knopf { position: relative; }
.t-knopf.aktiv { transform: scale(.94); filter: brightness(1.25); }
.t-knopf, .t-stick { transition: opacity .1s linear; }
.t-knopf.blass, .t-zone .t-stick.blass, .t-zone.aktiv .t-stick.blass { opacity: .2; }
.t-ziel { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; background: rgb(255 246 214 / .92); border: 4px solid var(--tinte); border-radius: 50%; box-shadow: 0 0 0 2px var(--flut), 0 3px 10px rgb(0 0 0 / .5); opacity: 0; }
.t-knopf.zielt .t-ziel { opacity: 1; }
.t-s0 .t-knoepfe { right: 10px; }
.t-s1 .t-knoepfe { left: 10px; flex-direction: row-reverse; }
.t-partner { position: absolute; right: 0; bottom: calc(100% + 12px); min-width: 88px; height: 42px; padding-inline: 12px; color: var(--weiss); font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: auto; touch-action: none; background: rgb(var(--nacht-rgb) / .42); border: 2px solid rgb(255 255 255 / .34); border-radius: 99px; }
.t-partner[hidden] { display: none; }
.t-partner { transition: opacity .1s linear; }
.t-partner.blass { opacity: .2; }
.t-partner.an { color: var(--tinte); background: rgb(255 246 214 / .84); border-color: transparent; }
.t-s1 .t-partner { right: auto; left: 0; }
.touch.solo .t-s1 { display: none; }
.touch.solo .t-s0 { width: 100%; }
.touch.solo .t-zone { width: 50%; }
.touch.solo .t-s0 .t-knoepfe { right: calc(var(--rechts) + 14px); }
body.pro .t-knoepfe { flex-direction: column; align-items: flex-end; }
body.pro .t-lob { margin-bottom: 0; }
body.pro .t-s0 .t-stick { left: calc(var(--links) * .5 + 70px); }
body.pro .touch.solo .t-s0 .t-knoepfe { right: calc(var(--rechts) * .5 + 8px); }
body.pro .touch.solo .t-partner { right: 84px; bottom: auto; top: 15px; }
body.pro .touch:not(.solo) .t-s0 .t-knoepfe { left: calc(var(--links) + 14px); right: auto; bottom: calc(var(--unten) + 170px); align-items: flex-start; }
body.pro .touch:not(.solo) .t-s1 .t-knoepfe { left: auto; right: calc(var(--rechts) + 14px); bottom: calc(var(--unten) + 170px); }

body.spielt, body.spielt #szene { touch-action: none; -webkit-touch-callout: none; }

@media (pointer: coarse) {
  .hilfe { top: calc(var(--oben) + 3.6rem); bottom: auto; max-width: min(62vw, 34rem); font-size: 14px; line-height: 1.2; }
  .hud.uebung .hilfe { top: calc(var(--oben) + .4rem); max-width: min(68vw, 36rem); }
  .timing { top: calc(var(--oben) + 3rem); bottom: auto; }
  .chip:has(~ .hilfe:not([hidden])) { top: calc(var(--oben) + 5.9rem); }
}

@media (max-height: 820px) {
  .menue { row-gap: .5rem; padding-block: calc(var(--oben) + .6rem) calc(var(--unten) + .7rem); }
  .schild { width: 3.6rem; }
  h1 { font-size: 2.6rem; }
  .zeilen { gap: .08rem; }
  .zeile { padding-block: .16rem; }
  .opt { min-height: 2rem; }
  .st-oben { min-height: 2.2rem; }
  .st-zahl { font-size: 2rem; }
}

@media (max-width: 1080px), (max-height: 640px) {
  .menue { grid-template-columns: 13.6rem minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; column-gap: 1rem; row-gap: .5rem; overflow: hidden; padding-block: calc(var(--oben) + .6rem) calc(var(--unten) + .6rem); background: rgb(var(--nacht-rgb) / .84); }
  .m-kopf { flex-direction: column; align-items: flex-start; gap: .4rem; grid-column: 1; grid-row: 2; }
  .schild { width: 3.5rem; }
  h1 { font-size: 1.9rem; }
  .ueber { font-size: .8rem; }
  .m-aktionen { grid-column: 1; grid-row: 4; align-content: flex-end; padding-top: 0; }
  .m-info { grid-column: 1; grid-row: 5; justify-self: start; align-self: start; flex-wrap: wrap; gap: 0 .9rem; padding-top: 0; }
  .m-aktionen .knopf { flex: 1 1 42%; min-height: 2.7rem; padding-inline: .4rem; font-size: .96rem; }
  .m-aktionen .knopf.gross { flex-basis: 100%; }
  .m-einst { grid-column: 2; grid-row: 1 / -1; display: block; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-right: .2rem; -webkit-overflow-scrolling: touch; }
  .zeilen { display: grid; }
  .zeile { grid-template-columns: 7rem minmax(0, 1fr); padding-block: .2rem; }
  .karte { max-width: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .opt { min-height: 2.4rem; padding-inline: .6rem; }
  .st-regler input { height: 2.1rem; }
}

@media (max-width: 760px) {
  .z-wert { grid-template-columns: minmax(0, 1fr); row-gap: .08rem; }
  .st-oben-raster, .v-raster { grid-template-columns: minmax(0, 1fr); }
  .v-raster > h3:nth-of-type(2) { order: 3; margin-top: .8rem; }
  .leiter { order: 2; }
  .lek-liste { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .v-rechts { order: 4; }
  .schlaege { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: .7rem; }
  .s-gruppe, .s-gruppe dl { grid-row: auto; grid-template-rows: none; display: block; }
  .kacheln, .erfolge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kacheln.dreier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (orientation: portrait) and (max-width: 1080px) {
  .menue { display: flex; flex-direction: column; gap: 1rem; overflow: auto; }
  .menue > * { flex-shrink: 0; }
  .m-bereich { order: 1; align-self: flex-start; }
  .m-kopf { order: 2; flex-direction: row; align-items: center; gap: .8rem; }
  .m-einst { order: 3; overflow: visible; padding-right: 0; }
  .m-aktionen { order: 4; margin-top: auto; }
  .m-info { order: 5; position: static; align-self: stretch; justify-content: center; }
  .m-ton { position: absolute; top: calc(var(--oben) + .6rem); right: calc(var(--rechts) + var(--rand)); }
  .zeilen { gap: .8rem; }
  .zeile { grid-template-columns: minmax(0, 1fr); row-gap: .3rem; padding-inline: .5rem; }
  .m-karten { flex-direction: column; }
  .zeile .seg { display: flex; }
  .zeile .opt { flex: 1 1 auto; }
  .farben { display: grid; grid-template-columns: repeat(4, 44px); justify-content: space-around; row-gap: .6rem; }
}

@media (orientation: portrait) and (min-width: 761px) and (max-width: 1080px) {
  .menue > :not(.m-ton) { width: min(100%, 36rem); align-self: center; }
}

@media (max-height: 640px) {
  .u-rahmen { width: 100%; }
  h2 { font-size: 1.7rem; }
  .u-kopf { margin-bottom: .5rem; padding-bottom: .3rem; }
  .schirm:not(.menue) { padding-block: calc(var(--oben) + .5rem) calc(var(--unten) + .5rem); }
  .logo { height: 6.5rem; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .e-kasten { width: min(100%, 52rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; gap: .35rem 1rem; padding: .7rem 1rem; }
  .e-kopf { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
  .e-kopf h2 { font-size: 2.1rem; }
  .e-namen, .e-tabelle { grid-column: 2; }
  .kacheln.dreier { grid-column: 1 / -1; }
  .e-notizen { grid-column: 1 / -1; }
  .e-knoepfe { grid-column: 1 / -1; }
  .kachel { padding: .2rem .5rem; }
  .kachel b { font-size: 1.2rem; }
  .ansage { top: 20%; }
  .a-band b { font-size: 2.2rem; }
  .ansage.gross .a-band b { font-size: 2.8rem; }
  .chip { top: calc(var(--oben) + 3.5rem); }
  .tafel { top: calc(var(--oben) + .3rem); }
  .timing { bottom: calc(var(--unten) + 7rem); }
}

@media (max-width: 560px) {
  .vb-schritte { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: .7rem; }
  .vb-schritte li { grid-row: auto; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: .7rem; row-gap: .05rem; }
  .vb-bild { grid-row: 1 / span 2; }
}

@media (max-height: 380px) {
  .schild { width: 2.4rem; }
  .ueber { display: none; }
}

@media (max-height: 360px) {
  .m-kopf { flex-direction: row; align-items: center; gap: .6rem; }
  h1 { font-size: 1.5rem; }
  .p-kasten .p-kopf { grid-column: 1; }
  .p-kasten .p-kopf + .knopf.gross { grid-column: 2; }
}

@media (max-height: 460px) {
  body.pro .chip, body.pro .hilfe, body.pro .timing, body.pro .ansage, body.pro .tags { max-width: 11.5rem; }
  body.pro .hilfe { font-size: .9rem; }
  body.pro .a-band b { font-size: 1.14rem; }
  body.pro .ansage.gross .a-band b { font-size: 1.3rem; }
  .vollbild-hinweis { padding-block: calc(var(--oben) + .4rem) calc(var(--unten) + .4rem); }
  .vb-karte { gap: .5rem; width: min(100%, 50rem); padding: .7rem 1rem; }
  .vb-karte h2 { font-size: 1.3rem; }
  .vb-bild { width: 2.5rem; height: 2.5rem; }
  .vb-bild svg { width: 1.5rem; height: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .neu, .chip, .a-band, body.pro .a-band { animation: none; }
  .ansage { animation: none; }
  .dreh-kern svg { animation: none; transform: rotate(-90deg); }
}

@media (pointer: coarse) {
  html { font-size: clamp(14px, calc(.5vw + .9vh), 17px); }
  .pause-knopf { min-width: 44px; min-height: 44px; }
  .opt, .knopf, .m-link, .m-aktionen .knopf { min-height: 44px; }
  .p-kopf { min-height: 44px; }
  .opt { min-width: 44px; }
  .farbe { width: 44px; height: 44px; }
  .st-regler input { height: 44px; }
  .m-link { min-width: 44px; }
}

.wdh { position: absolute; inset: 0; overflow: hidden; cursor: pointer; }
.wdh[hidden] { display: none; }
.wdh-kino { position: absolute; left: 0; right: 0; background: rgb(3 7 16 / .9); transform: scaleY(0); }
.wdh-kino.oben { top: 0; height: calc(6.5vh + var(--oben)); transform-origin: top; }
.wdh-kino.unten { bottom: 0; height: calc(6.5vh + var(--unten)); transform-origin: bottom; }
.wdh.an .wdh-kino { transform: scaleY(1); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.wdh-schild { position: absolute; left: calc(var(--links) + var(--rand)); bottom: calc(6.5vh + var(--unten) + .9rem); display: grid; gap: .05rem; min-width: 11rem; max-width: min(70vw, 26rem); padding: .42rem 1rem .62rem .85rem; color: var(--flut); background: rgb(var(--nacht-rgb) / .9); border-left: .25rem solid var(--ball); border-radius: 6px; overflow: hidden; opacity: 0; transform: translateX(-.8rem); }
.wdh.an .wdh-schild { opacity: 1; transform: none; transition: opacity .3s .15s, transform .4s .15s cubic-bezier(.16, 1, .3, 1); }
.wdh-schild small { color: rgb(254 247 225 / .66); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.wdh-schild b { font-size: 1.6rem; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.wdh-schild span { color: rgb(254 247 225 / .78); font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wdh-schild span:empty { display: none; }
.wdh-zeit { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(254 247 225 / .1); }
.wdh-zeit i { position: absolute; inset: 0; background: var(--ball); transform-origin: left; transform: scaleX(0); }
.wdh-weiter { position: absolute; right: calc(var(--rechts) + var(--rand)); bottom: calc(6.5vh + var(--unten) + .9rem); display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; color: var(--flut); background: rgb(var(--nacht-rgb) / .7); border: 1px solid rgb(254 247 225 / .18); border-radius: 50%; opacity: 0; cursor: pointer; }
.wdh.an .wdh-weiter { opacity: .85; transition: opacity .3s .3s; }
.wdh-weiter svg { width: 1.25rem; height: 1.25rem; }
.wdh-wisch { position: absolute; top: -2px; bottom: -2px; left: 0; width: 150vw; display: grid; place-items: center; background: var(--nacht); border-inline: 3px solid var(--flut); will-change: transform; transform: translateX(-200vw); }
.wdh-ball { width: 2.6rem; height: 2.6rem; border-radius: 50%; transform: skewX(14deg); background: var(--ball); box-shadow: inset -.3rem -.3rem 0 rgb(0 0 0 / .12); }
