/* Gemeinsame Erweiterungen: Farben und Typografie stammen aus der Hauptseite. */
.h2h-panel {
  margin: 36px 0;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.h2h-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.h2h-field {
  min-width: 0;
}
.h2h-field label {
  display: block;
  margin-bottom: 8px;
}
.h2h-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}
.h2h-control input,
.h2h-toggle {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.h2h-control input {
  width: 100%;
  padding: 12px;
  border-radius: 8px 0 0 8px;
  font-size: max(16px, 1em);
}
.h2h-toggle {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.h2h-toggle[aria-expanded="true"] {
  background: #223b5b;
}
.h2h-mode {
  padding: 0;
  margin: 0;
  border: 0;
}
.h2h-mode legend {
  margin-bottom: 6px;
}
.h2h-mode label {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.h2h-mode input {
  position: absolute;
  opacity: 0;
}
.h2h-mode span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.h2h-mode input:checked + span,
.h2h-options [aria-selected="true"],
.h2h-options [role="option"]:hover {
  background: #223b5b;
  border-color: #89aeff;
}
.h2h-mode input:focus-visible + span {
  outline: 2px solid #9abaff;
  outline-offset: 2px;
}
.h2h-options {
  position: absolute;
  z-index: 4;
  inset: calc(100% + 4px) 0 auto;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  max-height: min(275px, 38dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101c2e;
  box-shadow: 0 8px 20px #0008;
}
.h2h-options[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .h2h-options {
    position: static;
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}
.h2h-options li {
  margin: 0;
  padding: 10px 12px;
}
.h2h-options [role="option"] {
  min-height: 44px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.h2h-options [role="presentation"] {
  color: var(--muted);
  font-size: .85em;
}
.h2h-results {
  min-width: 0;
}
.h2h-results .table-wrap {
  overflow: auto;
}
.h2h-results th,
.h2h-results td {
  white-space: normal;
  min-width: 115px;
}
.h2h-results caption {
  text-align: left;
  padding: 12px 0;
  color: var(--muted);
}
.advent-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.advent-gallery figure {
  margin: 0;
  min-width: 0;
}
.advent-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.advent-gallery figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 6px;
}
.advent-gallery.overlap {
  padding: 12px;
}
.advent-gallery.overlap figure:nth-child(odd) {
  transform: rotate(-4deg);
}
.advent-gallery.overlap figure:nth-child(even) {
  transform: rotate(4deg);
  margin-left: -24px;
  margin-top: 28px;
}
.advent-fact {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin: 18px 0;
}
.advent-fact strong {
  color: var(--gold);
  font-size: clamp(28px, 5vw, 42px);
}
.advent-quiz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.advent-quiz button {
  white-space: normal;
  min-height: 48px;
}
.advent-spoiler {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.advent-spoiler summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}
.advent-spoiler li {
  margin: 8px 0;
}
.advent-video {
  margin: 18px 0;
}
.advent-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.advent-pixel {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  image-rendering: pixelated;
}
.advent-reveal {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.advent-reveal span {
  display: block;
  padding: 10px;
}
.charity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.charity-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-weight: 700;
}
.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.calendar-actions[hidden] {
  display: none;
}
.league-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.league-grid article {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.league-grid h2 {
  font-size: 24px;
}
.league-hero {
  max-width: 800px;
}
.league-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.08;
}
.league-steps {
  padding-left: 24px;
}
.league-steps li {
  margin: 16px 0;
}
.league-back {
  display: inline-block;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .h2h-fields,
  .league-grid {
    grid-template-columns: 1fr;
  }
  .advent-gallery {
    gap: 8px;
  }
  .advent-gallery.overlap figure:nth-child(even) {
    margin-left: -12px;
  }
  .advent-quiz {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Zweite feste Zeile: Spaltennamen bleiben unter der Abschnittsüberschrift. */
.bpm-floating-table-head {
  position: fixed;
  z-index: 8;
  overflow: hidden;
  background: #17253b;
  box-shadow: 0 7px 16px #0005;
  pointer-events: none;
  border-bottom: 1px solid var(--line);
}
.bpm-floating-table-head[hidden] {
  display: none;
}
.bpm-floating-table-head table {
  table-layout: fixed;
  width: max-content;
  margin: 0;
  white-space: nowrap;
}
.bpm-floating-table-head th {
  background: #17253b;
}

/* Das Hauptmenü bleibt auch ohne Advent-Link auf schmalen Geräten bedienbar. */
@media (max-width: 700px) {
  body header .nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }
  body header .nav nav > a,
  body header .nav nav > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 9px 5px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }
  body header .nav nav > [hidden] {
    display: none;
  }
}

/* REDAKTION 2.1: Bilder nutzen das ganze Türchenfenster. */
.advent-content {
  width: min(96vw, 1000px);
  max-width: 1000px;
  max-height: calc(100dvh - 24px);
}
.advent-gallery {
  grid-template-columns: repeat(var(--photo-columns, 1), minmax(0, 1fr));
  gap: 0;
  margin: 24px 0;
  padding: 18px 10px 24px;
  align-items: center;
}
.advent-gallery.single {
  padding: 0;
}
.advent-gallery figure,
.advent-gallery.overlap figure:nth-child(n) {
  margin: var(--photo-offset, 0px) 0 0;
  transform: rotate(var(--photo-angle, 0deg));
  position: relative;
}
.advent-gallery.overlap figure + figure {
  margin-left: -14px;
}
.advent-gallery figure img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 0;
  border: 3px solid #f0f4fb;
  box-shadow: 0 8px 20px #0005;
}
.advent-gallery.single figure img {
  aspect-ratio: auto;
}
.advent-gallery figcaption {
  text-align: center;
  font-size: 12px;
}
.advent-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.advent-video-grid .advent-video {
  margin: 0;
}
.advent-video-grid .advent-video:first-child {
  grid-column: 1/-1;
}
.advent-rangliste li {
  padding: 7px 0 7px 5px;
}
.charity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.charity-list a.charity-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: #fff;
  color: #101b2c;
  text-align: center;
  border-radius: 14px;
}
.charity-list .charity-logo img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.charity-list a.charity-dark {
  background: #193979;
  color: white;
}
.charity-logo span {
  font-size: 12px;
}
.h2h-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.h2h-players article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.h2h-players h4 {
  margin: 0 0 8px;
}
.h2h-players p {
  margin: 0;
}
.social-media {
  display: flex;
  flex-wrap: wrap;
  width: min(100% - 36px, 1240px);
  margin: 22px auto 0;
  padding: 20px 0 0;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
}
.social-media > span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.social-media a {
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Alle drei Neujahrs-Karten gehören zum selben Farbsystem. */
#neujahrsturnier .steps .step {
  background: var(--panel);
  border-color: var(--line);
}
#neujahrsturnier .steps .step b {
  color: var(--gold);
}
#neujahrsturnier .steps .step h3 {
  color: var(--text);
}
#neujahrsturnier .steps .step p {
  color: var(--muted);
}
/* Klickbare Original- und mitlaufende Spaltenüberschriften. */
.table-sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 -10px;
}
.table-sort-controls .table-sort-reset {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 12px;
}
.table-sort-reset:disabled {
  opacity: 0.55;
  cursor: default;
}
.sort-status {
  color: var(--muted);
  font-size: 12px;
}
.table-sort-column {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 4px 0;
  text-align: left;
  white-space: nowrap;
}
th[aria-sort="ascending"],
th[aria-sort="descending"] {
  color: var(--gold);
}
.bpm-floating-table-head {
  pointer-events: auto;
}
/* Logo und 24 Türen teilen dieselbe runde Außenkante. */
.advent-board,
.advent-page .advent-board {
  display: block;
  width: min(100%, 520px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  overflow: hidden;
  margin: 18px auto;
}
.advent-board .advent-door {
  display: inline;
  position: static;
  cursor: pointer;
  transform: none !important;
}
.advent-board .advent-door path {
  fill: #07122470;
  stroke: #e0ebff8a;
  stroke-width: 1.4;
  transition: fill 0.15s;
}
.advent-board .advent-door text {
  fill: white;
  font:
    800 27px system-ui,
    sans-serif;
  pointer-events: none;
}
.advent-board .advent-number-bg {
  fill: #071224de;
  stroke: #cbd9f366;
  stroke-width: 1;
  pointer-events: none;
}
.advent-board .advent-door[aria-disabled="true"] {
  cursor: default;
}
.advent-board .advent-door[aria-disabled="true"] path {
  fill: #071224c2;
}
.advent-board .advent-door[aria-disabled="true"] text {
  fill: #8493a8;
}
.advent-board .advent-door[aria-disabled="false"]:hover path {
  fill: #ed254466;
}
.advent-board .advent-door.today path {
  fill: #ed254466;
  stroke: #ffd28d;
  stroke-width: 3;
}
.advent-board .advent-door.today .advent-number-bg {
  fill: #bf1634;
}
.advent-board .advent-door.opened path {
  stroke: #a9c9ff;
}
.advent-board .advent-door:focus-visible {
  outline: 0;
}
.advent-board .advent-door:focus-visible path {
  fill: #ed254477;
  stroke: #ffd28d;
  stroke-width: 5;
}
.advent-board .advent-door::after {
  content: none !important;
}
html:has(dialog[open]) {
  overflow: hidden;
}
.advent-modal[open] {
  top: 12px;
  bottom: auto;
  margin: 0 auto;
  max-height: calc(100dvh - 24px);
}
@media (max-width: 700px) {
  .advent-modal[open] {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    max-width: 600px;
    padding: 18px;
    max-height: calc(100dvh - 16px);
  }
  .advent-content {
    width: calc(100% - 16px);
    padding: 18px;
  }
  .advent-content .dialog-head {
    margin-bottom: 12px;
  }
  .advent-gallery {
    padding-inline: 5px;
  }
  .advent-gallery.overlap figure + figure {
    margin-left: -8px;
  }
  .advent-gallery figcaption {
    font-size: 10px;
  }
  .advent-video-grid {
    gap: 8px;
  }
  .charity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .charity-list a.charity-logo {
    padding: 12px;
  }
  .charity-list .charity-logo img {
    height: 64px;
  }
  body[data-seite="advent"] .advent-page {
    padding-top: 22px;
  }
  body[data-seite="advent"] .advent-page h1 {
    font-size: 32px;
    margin: 12px 0;
  }
}
.table-sort-mobile {
  display: none;
}
@media (max-width: 700px) {
  .table-sort-mobile {
    display: block;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    color: var(--text);
    background: var(--panel);
    font: inherit;
  }
}

/* Dezember-Freigabe: vor dem 9.12. auch ohne JavaScript unsichtbar. */
#liga-neu-hinweis[hidden] { display: none !important; }

/* Neujahrsturnier: dieselbe blaue Akzentfarbe wie die übrigen Ableger. */
#neujahrsturnier .steps .step b { color: var(--blue); }

/* Originalformat statt 4:3-Beschnitt. Fotos werden weder umgerechnet noch
   über ihre natürliche Breite hinaus aufgeblasen. */
.advent-content { overflow-x: hidden; overflow-y: auto; }
.advent-content-body { min-width: 0; overflow-wrap: anywhere; }
.advent-gallery.overlap { padding: 24px 20px 28px; }
.advent-photo-original { display: flex; justify-content: center; align-items: center; }
.advent-gallery figure img,
.advent-gallery.single figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70dvh, 760px);
  aspect-ratio: auto;
  object-fit: contain;
  image-rendering: auto;
}
.advent-photo-original:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

/* Sieben Logos als zentrierte Vierer- und Dreierreihe. */
.charity-list {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.charity-list a.charity-logo { grid-column: span 2; min-width: 0; padding: 20px 14px; }
.charity-list a.charity-logo:nth-child(5) { grid-column: 2 / span 2; }
.charity-list a.charity-logo { box-shadow: 0 5px 18px #0002; border: 1px solid #dce4ef; }
.charity-list .charity-logo img { width: 100%; height: 86px; }
.charity-list a.charity-logo:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

/* Hall of Fame: Champion links, Titelbilanz und Spielverlauf rechts. */
.hof-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.hof-jumps .btn { padding: 9px 14px; }
.hof-list { display: grid; gap: 32px; }
.hof-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  scroll-margin-top: 160px;
}
.hof-champion, .hof-stats { min-width: 0; }
.hof-champion h2 { margin: 10px 0; font-size: clamp(24px, 3vw, 34px); overflow-wrap: anywhere; }
.hof-players { color: var(--muted); font-size: 14px; }
.hof-photo { margin: 24px 0 0; }
.hof-photo a { display: flex; justify-content: center; }
.hof-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; border-radius: 12px; }
.hof-photo figcaption { color: var(--muted); text-align: center; font-size: 12px; margin-top: 12px; }
.hof-photo-missing { padding: 32px; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; }
.hof-photo-missing img { max-width: 160px; opacity: 0.55; }
.hof-stats h3 { margin-top: 0; font-size: 22px; }
.hof-stats .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.hof-stats .metric { min-width: 0; padding: 14px 10px; }
.hof-stats .metric:last-child { grid-column: 1 / -1; }
.hof-stats .metric strong { font-size: 26px; }
.hof-stats .metric span { font-size: 12px; }
.hof-matches { padding: 16px 0; border-top: 1px solid var(--line); }
.hof-matches summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.hof-matches .table-wrap { margin: 14px 0; }
.hof-matches table { font-size: 13px; }
.hof-stats > .textlink { display: inline-block; margin-top: 12px; }
@media (max-width: 800px) {
  .hof-card { grid-template-columns: minmax(0, 1fr); }
  .hof-photo img { max-height: 450px; }
}
@media (max-width: 700px) {
  .advent-gallery.overlap { padding: 18px 10px 22px; }
  .charity-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .charity-list a.charity-logo { padding: 16px 12px; }
  .charity-list a.charity-logo:nth-child(5) { grid-column: auto / span 2; }
  .charity-list a.charity-logo:last-child { grid-column: 2 / span 2; }
  .charity-list .charity-logo img { height: 76px; }
  .hof-card { scroll-margin-top: 200px; }
}

/* Kompakte Champions: Foto und sechs Werte links, Matchverlauf rechts. */
.hof-card { align-items: start; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.hof-photo { margin-top: 18px; }
.hof-photo img { max-height: 310px; }
.hof-photo-missing { padding: 22px; }
.hof-photo-missing img { max-width: 125px; }
.hof-stats { margin-top: 22px; max-width: 440px; }
.hof-stats h3 { font-size: 17px; margin: 0 0 10px; }
.hof-stats .stats-grid { margin: 0; gap: 8px; }
.hof-stats .metric { padding: 10px 9px; border-radius: 9px; }
.hof-stats .metric:last-child { grid-column: auto; }
.hof-stats .metric strong { font-size: 23px; }
.hof-stats .metric span { font-size: 11px; }
.hof-results { min-width: 0; }
.hof-results .hof-matches:first-child { border-top: 0; padding-top: 0; }
.hof-results .hof-matches th, .hof-results .hof-matches td { padding: 10px 12px; }
.hof-results > .textlink { display: inline-block; margin-top: 10px; }
.hof-history { padding: 24px; border-left: 3px solid var(--blue); font-size: 24px; line-height: 1.5; }
.hof-history span { display: inline-block; color: var(--muted); font-size: 15px; margin-top: 12px; }
.hof-jumps {
  position: sticky;
  top: 130px;
  z-index: 9;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 9px 15px #0003;
}
.hof-jumps .btn { padding: 7px 11px; font-size: 12px; flex: 0 0 auto; }
.hof-card { scroll-margin-top: var(--hof-scroll-offset, 240px); }
/* Das Ableger-Logo steht für sich, ohne dekorative Ringe oder Orbittext. */
.hero-art::before, .hero-art::after { display: none; content: none; }
.hero-art img { filter: none; }
.hero-art .orbit-label { display: none; }
.social-media a { gap: 8px; }
.social-media .social-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.legal-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 24px 18px; font-size: 13px; }
.legal-page { max-width: 880px; }
.legal-page h2 { margin-top: 32px; font-size: 23px; }
.legal-page p, .legal-page li { color: #d9e4f5; }
.legal-page address { font-style: normal; line-height: 1.8; }
.legal-pending { padding: 16px; background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; }
.advent-pixel { height: auto; }
@media (max-width: 800px) {
  .hof-card { grid-template-columns: minmax(0, 1fr); }
  .hof-stats { max-width: none; }
  .hof-jumps { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding: 10px 0; }
  .hof-photo img { max-height: 350px; }
}
.advent-video-pending { aspect-ratio: auto; min-height: 230px; display: grid; align-items: center; border: 1px solid var(--line); }
.video-consent { padding: 22px; text-align: center; }
.video-consent p { font-size: 13px; line-height: 1.6; }
.video-consent > a { display: block; font-size: 12px; margin-top: 10px; color: var(--blue); }
.advent-video-grid .advent-video-pending:first-child { min-height: 290px; }
/* Einheitlicher Abschluss aller Seiten. */
.site-version { color: var(--muted); font-size: 12px; text-align: center; margin: 20px 0 0; }
.hof-players:empty { display: none; }
.legal-page { overflow-wrap: anywhere; hyphens: auto; }
.legal-page h1 { font-size: clamp(30px, 5vw, 64px); }
/* Drei Statistiklisten bleiben im eingeklappten Zustand kompakt. */
#rank-table tr[hidden], #hit-table tr[hidden], #team-table tr[hidden],
#rank-mobile > article[hidden], #hit-mobile > article[hidden], #team-mobile > article[hidden],
.list-toggle[hidden] { display: none !important; }
.list-toggle { margin: 18px 0 10px; }
.card-head .tournament-date { margin: 10px 0 8px; }
.card-head h3 { margin-top: 0; }
.card-head .tournament-date, .card-head > small { display: block; }

.league-site-nav,
.mobile-banner-links {
  display: none;
}

/* Kompakte öffentliche Seiten bei schmalem Bildschirm. */
@media screen and (max-width: 700px) {
  html {
    scroll-padding-top: 96px;
  }

  body > header > :is(.nav, .header-inner) {
    min-height: 0;
    padding: 5px 12px;
    gap: 2px 8px;
    justify-content: space-between;
  }

  body > header > :is(.nav, .header-inner):has(> nav) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body > header .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    min-height: 42px;
    gap: 8px;
    font-size: 15px;
    line-height: 1.25;
  }

  body > header .brand img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  body > header .brand small {
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  body > header [data-mobile-registration] {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  body > header [data-mobile-registration][hidden],
  body > header .league-header-back {
    display: none;
  }

  body > header > :is(.nav, .header-inner) > nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    gap: 4px;
  }

  body > header > :is(.nav, .header-inner) > nav[data-mobile-tabs-ready] > :not([data-mobile-tab]) {
    display: none;
  }

  body > header > :is(.nav, .header-inner) > nav > [data-mobile-tab] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 4px 2px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel2);
    color: var(--text);
    font-size: clamp(10px, 3.2vw, 12px);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  body:has(#advent-nav:not([hidden])) .mobile-banner-links,
  .mobile-banner-links:has(.mobile-live-link) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 4px 12px;
    background: var(--panel);
    font-size: 12px;
  }

  .mobile-banner-link {
    padding: 4px;
  }

  body:not(:has(#advent-nav:not([hidden]))) .mobile-advent-link {
    display: none;
  }

  body > header nav :is(a, button):focus-visible,
  .hof-jumps a:focus-visible {
    outline-offset: -3px;
  }

  .wrap {
    padding-inline: 12px;
  }

  .page-title {
    font-size: clamp(29px, 8vw, 38px);
    margin: 10px 0 14px;
  }

  .grid, .hof-list {
    gap: 12px;
  }

  .card-head, .placements {
    padding: 12px;
  }

  .card-head h3 {
    font-size: 18px;
  }

  .event-details {
    gap: 5px;
    margin: 12px 0;
  }

  .event-details span {
    padding: 4px 7px;
    font-size: 12px;
  }

  .registration-info {
    padding: 10px;
    margin: 12px 0;
    gap: 8px;
  }

  .formgrid input:not([type="checkbox"]) {
    font-size: 16px;
  }

  .h2h-panel {
    margin: 20px 0;
    padding: 10px;
    border-radius: 12px;
  }

  .h2h-panel > .stats-heading {
    margin: 4px 0 8px;
    font-size: 24px;
  }

  .h2h-panel > p {
    margin-block: 8px;
  }

  .h2h-fields {
    gap: 8px;
    margin: 12px 0;
  }

  .h2h-field label {
    margin-bottom: 3px;
  }

  .h2h-players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .h2h-players article {
    padding: 8px;
  }

  .h2h-results > h3 {
    margin: 14px 0 8px;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .h2h-results > .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    margin: 8px 0 12px;
  }

  .h2h-results .metric {
    min-width: 0;
    padding: 7px 4px;
    border-radius: 8px;
    text-align: center;
  }

  .h2h-results .metric strong {
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .h2h-results .metric span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .h2h-results .table-wrap {
    margin: 8px 0 12px;
  }

  .h2h-results table {
    table-layout: fixed;
    font-size: 12px;
    line-height: 1.35;
  }

  .h2h-results th, .h2h-results td {
    min-width: 0;
    padding: 6px 5px;
    overflow-wrap: anywhere;
  }

  .h2h-results th:first-child {
    width: 36%;
  }

  .h2h-results th:first-child:has(~ th:nth-child(4)) {
    width: 28%;
  }

  .h2h-results th:nth-child(2):has(~ th:nth-child(4)) {
    width: 24%;
  }

  .h2h-results .table-sort-column {
    max-width: 100%;
    min-height: 36px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .table-sort-controls {
    gap: 6px;
    margin: 8px 0 0;
  }

  .table-sort-controls:has(> .table-sort-reset:disabled):not(:has(> select)) {
    margin: 0;
  }

  .table-sort-controls .table-sort-reset:disabled,
  .table-sort-controls:has(> select) .table-sort-reset {
    display: none;
  }

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

  .bpm-stats-overview .stats-grid.bpm-stats-summary {
    gap: 6px;
    margin: 16px 0;
  }

  .bpm-stats-overview .bpm-stats-summary > .metric {
    padding: 9px;
  }

  .bpm-stats-overview .bpm-stats-summary strong {
    line-height: 1.2;
    font-size: 24px;
  }

  .hof-jumps {
    position: static;
    margin: 12px 0 18px;
    padding: 4px 0;
    box-shadow: none;
  }

  .hof-card {
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    scroll-margin-top: 0;
  }

  .hof-photo, .hof-stats {
    margin-top: 10px;
  }

  .hof-photo img {
    max-height: 250px;
  }

  .hof-stats .metric span {
    overflow-wrap: anywhere;
  }

  .hof-matches {
    padding-block: 9px;
  }

  .hero, .community {
    padding-block: 24px;
  }

  .overview {
    padding-block: 12px 20px;
  }

  .overview-grid, .section-layout {
    gap: 8px;
  }

  .format-link, .league-grid article {
    padding: 12px;
  }

  .format-link .number {
    margin-bottom: 4px;
  }

  .league-hero {
    margin-bottom: 16px;
  }

  .advent-page .advent-board {
    margin-block: 10px;
  }

  .legal-links {
    padding: 12px;
    gap: 12px;
  }
}

/* FAQ, Regelwerk und gemeinsamer Seitenabschluss. */
body > footer { border-top: 0; }
.bpm-info-page { max-width: 940px; }
.bpm-faq-list { margin-top: 30px; display: grid; gap: 12px; }
.bpm-faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bpm-faq-list summary { padding: 20px 24px; cursor: pointer; font-weight: 750; }
.bpm-faq-list details[open] summary { color: var(--gold); }
.bpm-faq-list details > div { padding: 0 24px 16px; }
.bpm-faq-list details p { margin-top: 0; }
.bpm-faq-list summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.bpm-info-contact { margin-top: 40px; }
.bpm-rules-pending { padding: 28px; margin: 28px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.bpm-rules-pending h2 { font-size: clamp(22px,4vw,32px); }
body > .banner.bpm-live-banner { padding: 10px 16px; font-size: 13px; font-weight: 750; background: #193754; }
.bpm-live-banner a { display: block; color: inherit; text-decoration: none; padding: 0; }
.bpm-live-banner a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media(max-width:700px) {
  .bpm-faq-list summary { padding: 17px 18px; }
  .bpm-faq-list details > div { padding: 0 18px 12px; }
  .bpm-rules-pending { padding: 20px; }
}
body > footer .social-media { border-top: 0; margin-top: 0; padding-top: 0; }
body > .banner.bpm-live-banner { min-height: 56px; display: grid; align-items: center; }

/* Echte Turnierfotos: ruhige Bildstrecken zwischen Text und Tabellen. */
.bpm-photo-strip { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin: 30px 0 38px; }
.bpm-photo-strip figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.bpm-photo-strip img { display: block; width: 100%; height: 280px; object-fit: cover; object-position: center 38%; }
.hall-of-fame > .bpm-photo-strip img { height: 220px; object-fit: contain; }
.bpm-community-photo { margin: 32px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.bpm-community-photo img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.community-inner .bpm-community-photo { grid-column: 1 / -1; }
@media(max-width:700px) {
  .bpm-photo-strip { gap: 10px; margin: 24px 0; grid-template-columns: 1fr 1fr; }
  .bpm-photo-strip img { height: 180px; }
  .hall-of-fame > .bpm-photo-strip img { height: 160px; }
}
@media(max-width:420px) { .bpm-photo-strip img { height: 145px; } }

/* Vollständiges Regelwerk, erreichbar über FAQ und Turniere. */
.bpm-regelwerk { max-width: 1040px; }
.bpm-regelwerk h1 { margin-bottom: 16px; }
.rules-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 28px 0; }
.rules-facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.rules-facts strong,.rules-facts span { display: block; }
.rules-facts strong { font-size: clamp(17px,2.3vw,23px); color: var(--gold); }
.rules-facts span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.rules-contents { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 28px 0 38px; }
.rules-contents summary { cursor: pointer; font-weight: 700; }
.rules-contents nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 18px; }
.rules-contents a { min-height: 36px; display: flex; align-items: center; color: var(--blue); }
.rules-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px; }
.rules-section h2 { font-size: clamp(25px,4vw,35px); line-height: 1.25; }
.rules-section h3 { font-size: clamp(19px,3vw,23px); margin: 30px 0 12px; line-height: 1.35; }
.rules-section p,.rules-section li { color: #d9e4f5; overflow-wrap: break-word; }
.rules-section strong { color: var(--text); }
.rules-section li { margin-bottom: 9px; }
.rules-section,.rules-subsection { scroll-margin-top: 140px; }
.rules-formations { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 24px 0; }
.rules-formations figure { margin: 0; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.rules-formations svg { width: 100%; height: auto; display: block; }
.rules-formations figcaption { text-align: center; color: var(--muted); font-size: 13px; padding-bottom: 5px; }
.rules-callout { border-left: 3px solid var(--red); background: var(--panel); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 24px 0; }
.rules-callout h4 { font-size: 19px; margin: 0 0 12px; }
.rules-callout p:last-child { margin-bottom: 0; }
.rules-table { margin: 18px 0; }
.rules-table caption { text-align: left; color: var(--muted); font-size: 13px; padding: 8px 0 12px; }
.rules-table th,.rules-table td { white-space: normal; vertical-align: top; overflow-wrap: break-word; }
.rules-table table { min-width: 0; width: 100%; table-layout: fixed; }
.rules-table th:nth-child(2),.rules-table td:nth-child(2) { width: 21%; }
.rules-end { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 24px; }
.rules-end .btn { margin: 8px 10px 8px 0; }
@media(max-width:700px) {
  .rules-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rules-facts > div { padding: 14px; }
  .rules-contents nav { grid-template-columns: 1fr; gap: 4px; }
  .rules-formations { grid-template-columns: 1fr 1fr; }
  .rules-callout { padding: 16px; }
  .rules-table th,.rules-table td { padding: 10px 8px; font-size: 12px; }
  .rules-section,.rules-subsection { scroll-margin-top: 115px; }
}
@media print {
  body:has(.bpm-regelwerk) { background: white; color: black; }
  body:has(.bpm-regelwerk) > :is(header,footer,.banner),.bpm-regelwerk .rules-contents,.bpm-regelwerk .rules-end { display: none; }
  .bpm-regelwerk { width: 100%; max-width: none; padding: 0; }
  .bpm-regelwerk :is(p,li,h1,h2,h3,h4,strong,span,figcaption,caption) { color: black; }
  .rules-facts > div,.rules-formations figure,.rules-callout { background: white; border-color: #bbb; }
  .rules-section h2,.rules-section h3 { break-after: avoid; }
  .rules-callout,.rules-formations { break-inside: avoid; }
}

@media (max-width: 700px) {
  body[data-seite="advent"] > footer .social-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100% - 32px), 310px);
    margin-inline: auto;
    gap: 4px 16px;
  }
  body[data-seite="advent"] > footer .social-media > span {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 4px;
  }
  body[data-seite="advent"] > footer .social-media a {
    justify-self: stretch;
    min-width: 0;
    justify-content: flex-start;
  }
  body[data-seite="advent"] > footer .legal-links {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
  }
}
