:root {
  --bsv-blue: #002a5b;
  --bsv-blue-dark: #001d40;
  --bsv-sky: #80c2d9;
  --bsv-white: #ffffff;
  --bsv-paper: #f4f4f4;
  --bsv-line: #e3e7ec;
  --bsv-ink: #050505;
  --bsv-green: #82ea7b;
  --rail-width: 56px;
  --page-pad: clamp(1rem, 3vw, 3rem);
  --display-font: "Futura PT", Futura, "Arial Black", Arial, sans-serif;
  --body-font: "Elena Web Basic", Georgia, "Times New Roman", serif;
  --type-body: clamp(1rem, 0.92vw, 1.22rem);
  --type-small: clamp(0.88rem, 0.74vw, 1rem);
  --type-nav: clamp(1.1rem, 1.35vw, 1.8rem);
  --type-menu: clamp(1.7rem, 3vw, 3.25rem);
  --type-hero: clamp(2.2rem, 4.6vw, 5.4rem);
  --type-title: clamp(1.8rem, 2.45vw, 3.4rem);
  --type-score: clamp(3.2rem, 5vw, 6.6rem);
  --motion-fast: 160ms;
  --motion-medium: 360ms;
  --ease-bsv: cubic-bezier(0.2, 0.8, 0.2, 1);
  --focus-ring: 0 0 0 0.18rem rgba(128, 194, 217, 0.55);
  --surface-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --surface-radius: 18px;
}

html {
  box-sizing: border-box;
  min-height: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(128, 194, 217, 0.12), transparent 28%),
    linear-gradient(180deg, #0d376f 0%, var(--bsv-blue) 28%, var(--bsv-blue-dark) 100%);
  color: var(--bsv-ink);
  font-family: var(--body-font);
  font-size: var(--type-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-bsv), background-color var(--motion-fast) var(--ease-bsv), transform var(--motion-fast) var(--ease-bsv);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

h1,
h2,
h3,
p,
li,
td,
th,
a,
button,
span {
  overflow-wrap: anywhere;
}

strong {
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.btn,
.form-control,
.form-select {
  border-radius: 0;
}

.btn-primary,
.bsv-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 2px solid var(--bsv-blue);
  background: var(--bsv-blue);
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: var(--type-small);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus,
.bsv-link-button:hover,
.bsv-link-button:focus {
  background: var(--bsv-ink);
  border-color: var(--bsv-ink);
  color: var(--bsv-white);
  transform: translateY(-1px);
}

.btn-primary {
  box-shadow: 0 10px 22px rgba(0, 42, 91, 0.16);
  letter-spacing: 0.04em;
}

.btn-primary:active {
  transform: translateY(0);
}

.bsv-rail {
  position: fixed;
  z-index: 1040;
  top: 0;
  right: 0;
  width: var(--rail-width);
  height: 100vh;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(0, 42, 91, 0.96);
  backdrop-filter: blur(12px);
  color: var(--bsv-white);
}

.bsv-rail__logo {
  position: absolute;
  top: 1rem;
  left: 0;
  display: grid;
  width: 100%;
  place-items: center;
}

.bsv-rail__logo img {
  width: 44px;
  height: 44px;
}

.bsv-rail__toggle {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 0 18px;
  transform: translateY(-50%);
}

.bsv-rail__toggle span {
  display: block;
  height: 2px;
  background: var(--bsv-white);
}

.bsv-rail__toggle:hover span,
.bsv-rail__toggle:focus span {
  background: var(--bsv-sky);
}

.bsv-rail__account {
  position: absolute;
  bottom: 1rem;
  left: 0;
  display: grid;
  width: 100%;
  gap: 0.65rem;
  justify-items: center;
  font-family: var(--display-font);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bsv-rail__account a,
.bsv-rail__account button,
.bsv-rail__user {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--bsv-white);
}

.bsv-rail__account a:hover,
.bsv-rail__account button:hover,
.bsv-rail__account a:focus,
.bsv-rail__account button:focus,
.bsv-rail__user:hover {
  border-color: var(--bsv-sky);
  color: var(--bsv-sky);
}

.bsv-menu {
  --bs-offcanvas-width: min(100vw, 1280px);
  background: rgba(0, 42, 91, 0.98);
  color: var(--bsv-white);
}

.bsv-menu__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(12rem, 0.32fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  min-height: 100%;
  align-content: start;
  padding: clamp(1.25rem, 4vw, 4rem) calc(var(--rail-width) + clamp(1rem, 2vw, 2rem)) clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3vw, 3rem);
  overflow-x: hidden;
}

.bsv-menu__close,
.bsv-menu__brand {
  grid-column: 1 / -1;
}

.bsv-menu__close {
  width: fit-content;
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: var(--type-small);
  font-weight: 800;
  text-transform: uppercase;
}

.bsv-menu__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: -1rem;
  font-family: var(--display-font);
  font-size: clamp(1.1rem, 1.45vw, 1.55rem);
  font-weight: 800;
  line-height: 1;
}

.bsv-menu__brand img {
  width: 38px;
  height: 38px;
}

.bsv-menu__primary {
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.bsv-menu__primary a {
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.bsv-menu__primary strong {
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: clamp(0.95rem, 1.35vw, 1.5rem);
  font-weight: 800;
  hyphens: none;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}

.bsv-menu__primary span {
  color: var(--bsv-white);
  display: block;
  max-width: 42rem;
  font-size: clamp(0.78rem, 0.8vw, 0.88rem);
  line-height: 1.22;
  overflow-wrap: break-word;
}

.bsv-menu__primary a:hover strong,
.bsv-menu__primary a:focus strong,
.bsv-menu__primary a:hover span,
.bsv-menu__primary a:focus span {
  color: var(--bsv-sky);
}

.bsv-menu__aside {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  border-left: 1px solid rgba(255, 255, 255, 0.48);
  padding-left: clamp(1rem, 1.8vw, 1.5rem);
  min-width: 0;
}

.bsv-menu__social {
  display: flex;
  gap: 1rem;
}

.bsv-menu__social span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  background: var(--bsv-white);
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 0.75rem;
}

.bsv-menu__aside a {
  color: var(--bsv-white);
  font-size: clamp(0.86rem, 0.9vw, 0.98rem);
  line-height: 1.25;
}

.bsv-menu__contact strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 1.45vw, 1.5rem);
  line-height: 1;
}

.bsv-menu__contact span {
  font-size: 0.9rem;
  line-height: 1.4;
}

.app-page {
  min-height: 100vh;
  margin-right: var(--rail-width);
  background: transparent;
}

.app-main {
  min-height: 100vh;
  padding: 2rem 15px 0;
  background: transparent;
}

.bsv-live-strip {
  position: fixed;
  z-index: 6;
  top: 18vh;
  left: 1.5rem;
  display: grid;
  gap: 1rem;
  width: 4.7rem;
}

.bsv-live-strip article {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  padding: 0.75rem 0.4rem;
  background: var(--bsv-white);
  color: var(--bsv-ink);
  font-family: var(--display-font);
  font-size: 0.68rem;
  line-height: 1.04;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bsv-live-strip b {
  color: var(--bsv-blue);
  font-size: 1.08rem;
}

.bsv-live-strip img {
  width: 2rem;
}

.bsv-frontpage {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.66fr) minmax(280px, 0.66fr);
  gap: 24px;
  min-height: 100vh;
  padding: 38px calc(var(--rail-width) + 38px) 56px 7rem;
  background:
    linear-gradient(90deg, transparent 0 calc(33.333% - 12px), var(--bsv-white) calc(33.333% - 12px) calc(33.333% + 12px), transparent calc(33.333% + 12px) calc(66.666% - 12px), var(--bsv-white) calc(66.666% - 12px) calc(66.666% + 12px), transparent calc(66.666% + 12px)),
    var(--bsv-blue);
}

.bsv-news-card {
  align-self: start;
  background: var(--bsv-white);
  color: var(--bsv-ink);
}

.bsv-news-card--lead {
  grid-row: span 2;
}

.bsv-poster,
.bsv-news-card .bsv-match {
  min-height: clamp(18rem, 28vw, 32rem);
  background: var(--bsv-blue);
}

.bsv-poster {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 12px solid var(--bsv-white);
}

.bsv-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 16%, #ffe060 0 10rem, transparent 10.2rem),
    radial-gradient(circle at 80% 24%, rgba(239, 107, 107, 0.85), transparent 16rem),
    linear-gradient(135deg, #80c2d9, #002a5b 58%, #001d40);
}

.bsv-poster--crest::before {
  background:
    radial-gradient(circle at 50% 45%, rgba(128, 194, 217, 0.45), transparent 13rem),
    linear-gradient(180deg, #002a5b, #001d40);
}

.bsv-poster--away::before {
  background:
    repeating-linear-gradient(-12deg, rgba(0, 42, 91, 0.14) 0 11px, transparent 11px 24px),
    linear-gradient(135deg, #d7c09d, #f4f4f4 48%, #80c2d9);
}

.bsv-poster--season::before {
  background:
    radial-gradient(circle at 70% 20%, #ffe060, transparent 9rem),
    linear-gradient(135deg, #ef6b6b, #80c2d9 54%, #002a5b);
}

.bsv-poster img {
  position: relative;
  z-index: 1;
  width: clamp(6rem, 12vw, 12rem);
}

.bsv-poster span {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 3.7vw, 5rem);
  font-weight: 800;
  line-height: 0.94;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
  text-transform: uppercase;
}

.bsv-news-card__body {
  padding: 0.75rem 1.1rem 1.25rem;
}

.bsv-news-card__body p {
  margin: 0 0 0.35rem;
  font-size: var(--type-small);
}

.bsv-news-card__body h1,
.bsv-news-card__body h2 {
  margin: 0;
  color: var(--bsv-ink);
  font-family: var(--display-font);
  font-size: var(--type-title);
  font-weight: 800;
  line-height: 1.04;
}

.bsv-news-card--lead .bsv-news-card__body h1 {
  font-size: clamp(2.2rem, 3.3vw, 4.6rem);
}

.bsv-news-card__body > span,
.bsv-news-card__body small {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--type-small);
}

.bsv-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
}

.bsv-news-card .bsv-link-button {
  width: fit-content;
}

.bsv-news-card .bsv-match {
  min-height: 21rem;
  padding: 1.2rem;
  color: var(--bsv-white);
}

.bsv-match__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--bsv-white);
  font-size: var(--type-small);
}

.bsv-match__header strong {
  font-family: var(--display-font);
  font-weight: 800;
  text-transform: uppercase;
}

.bsv-match__details {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 2.1rem 0;
}

.bsv-match__team {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.bsv-match__team img {
  width: clamp(3.8rem, 7vw, 7rem);
}

.bsv-match__team span,
.bsv-match__team strong {
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: clamp(1rem, 1.3vw, 1.8rem);
  line-height: 1;
}

.bsv-match__score {
  display: flex;
  align-items: center;
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: var(--type-score);
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
}

.bsv-standings {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bsv-white);
}

.bsv-standings h2 {
  margin: 0.1rem 0 0.8rem;
  color: var(--bsv-ink);
  font-family: var(--display-font);
  font-size: var(--type-title);
  font-weight: 800;
  line-height: 1;
}

.t-date {
  margin: 0;
  color: var(--bsv-blue);
  font-size: var(--type-small);
}

.bsv-standings table,
.table-surface table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.bsv-standings th,
.bsv-standings td,
.table-surface th,
.table-surface td {
  padding: 0.48rem;
  border-bottom: 1px solid var(--bsv-line);
  font-size: var(--type-small);
}

.bsv-standings th,
.table-surface th {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-weight: 800;
  text-transform: uppercase;
}

.bsv-standings td:not(:nth-child(2)),
.bsv-standings th:not(:nth-child(2)) {
  text-align: center;
}

.bsv-standings .is-bsv-row td:first-child {
  background: var(--bsv-green);
}

.bsv-office {
  padding: 4rem calc(var(--rail-width) + 2rem) 4rem 7rem;
  background: var(--bsv-paper);
}

.bsv-office article {
  display: grid;
  grid-template-columns: 13rem 13rem;
  gap: 1.5rem;
  justify-content: center;
}

.bsv-office__map {
  display: grid;
  min-height: 15rem;
  align-content: end;
  padding: 0.9rem;
  background: var(--bsv-white);
}

.bsv-office__map::before {
  content: "";
  display: block;
  min-height: 10rem;
  margin-bottom: -3rem;
  background: #b9b9b9;
  border: 1px solid var(--bsv-ink);
}

.bsv-office__map img {
  width: 4.4rem;
  background: var(--bsv-ink);
  border-radius: 50%;
}

.bsv-office__map strong {
  margin-top: -1.55rem;
  margin-left: 4.75rem;
  font-family: var(--display-font);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.bsv-office p {
  align-self: end;
  margin: 0;
  padding: 1rem;
  background: var(--bsv-white);
  font-size: 0.9rem;
  line-height: 1.12;
}

.bsv-sponsors {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  overflow-x: auto;
  padding: 2.5rem calc(var(--rail-width) + 2rem) 2.5rem 2rem;
  background: var(--bsv-blue);
  color: var(--bsv-white);
  white-space: nowrap;
}

.bsv-sponsors span,
.bsv-sponsors strong {
  flex: 0 0 auto;
  font-family: var(--display-font);
  font-size: clamp(0.95rem, 1.2vw, 1.5rem);
  text-transform: uppercase;
}

.bsv-sponsors strong {
  display: inline-grid;
  min-width: 11rem;
  min-height: 4rem;
  place-items: center;
  border: 2px solid var(--bsv-white);
}

.site-footer {
  min-height: auto;
  margin-right: var(--rail-width);
  background: transparent;
  color: var(--bsv-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(30rem, 1.3fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: 3rem calc(var(--rail-width) + 2.5rem) 2.5rem 5.5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-claim {
  text-align: left;
}

.footer-claim .footer-logo {
  width: clamp(4rem, 6vw, 6rem);
  margin: 0 0 2rem;
}

.footer-claim p {
  margin: 0;
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
}

.footer-claim small {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-top: 1rem;
}

.footer-nav section {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-nav h2 {
  margin: 0.8rem 0 0.2rem;
  color: var(--bsv-white);
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 1.2vw, 1.45rem);
  font-weight: 800;
}

.footer-nav a {
  color: var(--bsv-white);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.35;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--bsv-sky);
}

.footer-badges {
  grid-column: 1 / -1;
  padding-top: 1.75rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.footer-badges__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.footer-badges__track {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0;
  animation: bsv-marquee 28s linear infinite;
  will-change: transform;
}

.footer-badges__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.footer-badges__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-badges__logo-shell,
.footer-badges__sponsor-shell,
.footer-badges__logo,
.footer-badges__sponsor {
  flex: 0 0 auto;
}

.footer-badges__logo-shell {
  width: 5rem;
  height: 5rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
}

.footer-badges__logo {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.footer-badges__sponsor-shell {
  display: grid;
  place-items: center;
  width: 14rem;
  height: 5.2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.footer-badges__sponsor {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
}

.footer-badges__sponsor-shell--engebe {
  width: 11rem;
  height: 5.6rem;
}

.footer-badges__sponsor--engebe {
  width: 84%;
  height: 84%;
}

.footer-badges__sponsor-shell--koetter {
  width: 14.75rem;
  height: 5.6rem;
}

.footer-badges__sponsor--koetter {
  width: 88%;
  height: 88%;
}

.footer-badges__sponsor-shell--sameday {
  width: 15.25rem;
  height: 5.4rem;
}

.footer-badges__sponsor--sameday {
  width: 88%;
  height: 88%;
}

.footer-badges__sponsor-shell--gerdes {
  width: 14.5rem;
  height: 5.5rem;
}

.footer-badges__sponsor--gerdes {
  width: 87%;
  height: 87%;
}

.status-chip,
.role-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.4rem;
  background: var(--bsv-paper);
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: var(--type-small);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.auth-layout,
.page-heading {
  display: grid;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  padding: 2rem 15px;
  background: var(--bsv-white);
}

.auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  min-height: 58vh;
  align-items: center;
}

.auth-intro h1,
.page-heading h1 {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: var(--type-hero);
  font-weight: 800;
  line-height: 0.98;
}

.auth-card,
.card-surface,
.table-surface {
  border: 1px solid var(--bsv-line);
  background: var(--bsv-white);
  border-radius: var(--surface-radius);
}

.auth-card {
  padding: 1.5rem;
  box-shadow: var(--surface-shadow);
}

.card-surface {
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  box-shadow: var(--surface-shadow);
}

.bsv-dashboard-grid > .card-surface,
.bsv-dashboard-columns > .card-surface,
.bsv-dashboard-columns > .table-surface {
  max-width: none;
  width: 100%;
  margin: 0;
}

.form-label {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: var(--bsv-line);
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 42, 91, 0.34);
  background: var(--bsv-white);
}

.page-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: var(--surface-radius);
  box-shadow: var(--surface-shadow);
}

.page-heading p {
  max-width: 72rem;
  margin: 0;
  color: rgba(5, 5, 5, 0.78);
}

.page-heading > div:first-child {
  min-width: 0;
}

.dashboard-hero h1 {
  max-width: 16ch;
}

.dashboard-hero p {
  max-width: 72rem;
}

.surface-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.surface-title {
  margin: 0.4rem 0 0;
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.02;
}

.surface-accent {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,244,244,0.95));
}

.surface-stack {
  display: grid;
  gap: 1rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.checklist-grid article {
  padding: 1.1rem;
  border: 1px solid var(--bsv-line);
  background: rgba(0, 42, 91, 0.03);
}

.checklist-grid strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 1rem;
  text-transform: uppercase;
}

.checklist-grid p {
  margin: 0;
  color: rgba(5, 5, 5, 0.82);
}

.auth-note {
  display: grid;
  gap: 0.45rem;
  max-width: 32rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--bsv-blue);
  background: rgba(0, 42, 91, 0.06);
}

.auth-note strong {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.auth-note span {
  color: rgba(5, 5, 5, 0.82);
}

.table-surface {
  max-width: 1180px;
  margin: 0 auto 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.table-surface table {
  min-width: 44rem;
}

.table-surface .table-responsive {
  padding-bottom: 0.25rem;
}

.table-surface thead {
  background: linear-gradient(180deg, rgba(0, 42, 91, 0.03), rgba(0, 42, 91, 0.01));
}

.table-surface th {
  letter-spacing: 0.04em;
}

.table-surface td {
  vertical-align: middle;
}

.table-surface tbody tr:hover {
  background: rgba(0, 42, 91, 0.035);
}

.table-surface a:not(.btn),
.card-surface a:not(.btn) {
  color: var(--bsv-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 42, 91, 0.25);
  text-underline-offset: 0.18em;
}

.table-surface a:not(.btn):hover,
.card-surface a:not(.btn):hover,
.table-surface a:not(.btn):focus,
.card-surface a:not(.btn):focus {
  color: var(--bsv-blue-dark);
  text-decoration-color: currentColor;
}

.dashboard-news-item {
  color: var(--bsv-ink);
}

.chat-shell {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.4fr) minmax(15rem, 0.78fr);
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto 2rem;
}

.chat-sidebar,
.chat-main,
.chat-actions {
  max-width: none;
  margin: 0;
  min-width: 0;
}

.chat-sidebar-section {
  display: grid;
  gap: 0.75rem;
}

.chat-sidebar-section h3 {
  margin: 0;
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-summary {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bsv-line);
  background: #f8fbff;
}

.chat-summary strong {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 1rem;
}

.chat-summary span {
  color: rgba(5, 5, 5, 0.72);
  font-size: 0.95rem;
  line-height: 1.3;
}

.chat-summary.is-active {
  border-color: rgba(0, 42, 91, 0.24);
  background: linear-gradient(180deg, rgba(128, 194, 217, 0.16), rgba(0, 42, 91, 0.04));
}

.chat-thread {
  display: grid;
  gap: 0.75rem;
  min-height: 26rem;
  max-height: 34rem;
  overflow-y: auto;
  padding: 0.5rem 0.25rem 0.25rem;
}

.chat-bubble {
  display: grid;
  gap: 0.35rem;
  max-width: 82%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  box-shadow: var(--surface-shadow-soft);
}

.chat-bubble.is-incoming {
  justify-self: start;
  background: #f4f8fc;
}

.chat-bubble.is-outgoing {
  justify-self: end;
  background: linear-gradient(180deg, rgba(0, 42, 91, 0.96), rgba(0, 29, 64, 0.96));
  color: var(--bsv-white);
}

.chat-bubble__author {
  font-family: var(--display-font);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-bubble p,
.chat-bubble small {
  margin: 0;
}

.chat-bubble small {
  opacity: 0.72;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bsv-line);
}

.chat-compose__input {
  min-width: 0;
}

.chat-empty {
  min-height: 18rem;
  align-content: center;
}

.team-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.team-selection-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--bsv-line);
  background: #f8fbff;
  cursor: pointer;
}

.team-selection-card__title {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 1.05rem;
  font-weight: 800;
}

.team-selection-card__meta {
  color: rgba(5, 5, 5, 0.74);
  font-size: 0.92rem;
  line-height: 1.35;
}

.team-selection-card input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.form-shell {
  max-width: 980px;
}

.form-shell__body {
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.form-shell__footer {
  display: flex;
  justify-content: flex-end;
}

.admin-action-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.page-heading h1,
.auth-intro h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.platzbelegung-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.platzbelegung-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--bsv-line);
  background: #f8fbff;
}

.platzbelegung-card h3 {
  margin: 0;
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.platzbelegung-list {
  display: grid;
  gap: 0.75rem;
}

.platzbelegung-list article {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 42, 91, 0.08);
}

.platzbelegung-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.platzbelegung-list strong {
  color: var(--bsv-blue);
}

.platzbelegung-list span,
.platzbelegung-list small {
  color: rgba(5, 5, 5, 0.78);
}

.bsv-dashboard-grid,
.bsv-dashboard-columns {
  display: grid;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto 2rem;
}

.bsv-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bsv-dashboard-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.bsv-dashboard-columns > * {
  min-width: 0;
}

.bsv-kpi-card {
  display: grid;
  gap: 0.5rem;
  min-height: 7.25rem;
  align-content: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,251,0.98));
}

.bsv-kpi-card span {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: var(--type-small);
  font-weight: 800;
  text-transform: uppercase;
}

.bsv-kpi-card strong {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 0.95;
}

.bsv-kpi-card small {
  color: rgba(5, 5, 5, 0.76);
  font-size: 0.88rem;
}

.empty-state {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(128, 194, 217, 0.18), rgba(0, 42, 91, 0.08));
  border: 1px dashed rgba(0, 42, 91, 0.22);
  border-radius: 14px;
}

.empty-state strong {
  color: var(--bsv-blue);
  font-family: var(--display-font);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.empty-state p {
  margin: 0;
  color: rgba(5, 5, 5, 0.82);
}

.empty-state--compact {
  width: 100%;
  margin: 0;
  padding: 1rem;
}

@keyframes bsv-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bsv-badge-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes bsv-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-33.3333% - 0.666rem));
  }
}

.bsv-news-card,
.bsv-office,
.bsv-sponsors,
.site-footer {
  animation: bsv-enter var(--motion-medium) var(--ease-bsv) both;
}

@media (max-width: 1180px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .bsv-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsv-dashboard-columns {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .platzbelegung-grid {
    grid-template-columns: 1fr;
  }

  .bsv-frontpage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsv-news-card--lead {
    grid-row: span 1;
  }

  .bsv-menu__inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .auth-layout,
  .card-surface,
  .table-surface {
    border-radius: 14px;
  }

  .bsv-menu__aside {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.48);
    padding-top: 2rem;
    padding-left: 0;
  }

  .bsv-menu__primary a {
    grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 1fr);
  }

  .footer-nav {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --rail-width: 56px;
  }

  .app-page,
  .site-footer {
    margin-right: 0;
  }

  .bsv-rail {
    right: auto;
    left: 0;
    width: 100%;
    height: 60px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  }

  .bsv-rail__logo {
    top: 0;
    right: 0.7rem;
    left: auto;
    width: 60px;
    height: 60px;
  }

  .bsv-rail__logo img {
    width: 42px;
    height: 42px;
  }

  .bsv-rail__toggle {
    left: 0;
    width: 72px;
  }

  .bsv-rail__account {
    display: none;
  }

  .bsv-live-strip {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    padding: 75px 15px 0;
    background: var(--bsv-blue);
  }

  .app-main {
    padding-top: 75px;
  }

  .bsv-frontpage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 15px 36px;
    background: var(--bsv-blue);
  }

  .bsv-poster,
  .bsv-news-card .bsv-match {
    min-height: 19rem;
  }

  .bsv-match__details {
    grid-template-columns: 1fr;
  }

  .bsv-match__score {
    justify-content: center;
  }

  .bsv-office {
    padding: 3rem 15px;
  }

  .bsv-office article {
    grid-template-columns: minmax(0, 13rem);
  }

  .bsv-sponsors {
    padding: 2rem 15px;
  }

  .bsv-menu__inner {
    display: block;
    padding: 1rem 1rem 2rem;
  }

  .bsv-menu__brand {
    margin: 1rem 0 1.5rem;
  }

  .surface-header {
    align-items: start;
  }

  .bsv-menu__primary a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem 0;
  }

  .bsv-menu__primary strong {
    font-size: clamp(1.05rem, 5.5vw, 1.35rem);
  }

  .bsv-menu__primary span {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .bsv-menu__aside {
    margin-top: 2rem;
  }

  .footer-grid {
    padding: 3rem 15px;
  }

  .footer-claim .footer-logo {
    margin: 0 0 1.5rem;
  }

  .footer-claim p {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-badges {
    padding-top: 1.2rem;
    mask-image: none;
  }

  .auth-layout,
  .page-heading {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .page-heading {
    gap: 1rem;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .table-surface table {
    min-width: 36rem;
  }

  .card-surface,
  .table-surface,
  .bsv-dashboard-grid,
  .bsv-dashboard-columns {
    margin-bottom: 1rem;
  }

  .bsv-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .bsv-news-card__body h1,
  .bsv-news-card__body h2 {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
  }

  .bsv-poster span {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .footer-badges__logo-shell,
  .footer-badges__sponsor-shell {
    height: 4.2rem;
  }

  .footer-badges__item {
    gap: 0.85rem;
  }

  .footer-badges__logo-shell {
    width: 4.1rem;
  }

  .footer-badges__sponsor-shell {
    width: 12rem;
  }

  .footer-badges__sponsor-shell--engebe {
    width: 9.75rem;
  }

  .footer-badges__sponsor-shell--koetter,
  .footer-badges__sponsor-shell--sameday,
  .footer-badges__sponsor-shell--gerdes {
    width: 12.75rem;
  }

  .auth-card,
  .card-surface,
  .page-heading {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
