@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --black: #080808;
  --panel: #141414;
  --panel-2: #1d1d1d;
  --line: #2c2c2c;
  --yellow: #ffdd00;
  --white: #ffffff;
  --muted: #b9b9b9;
  --header-h: 72px;
  --gutter: 16px;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.55 "Rubik", system-ui, sans-serif;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: fixed; left: 8px; top: -60px; z-index: 100;
  background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  background: var(--yellow); color: #000;
  border: 0; border-radius: var(--radius);
  font: 700 14px/1.1 "Rubik", sans-serif; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .15s, transform .15s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--header-h); background: #000;
}
.site-header .wrap {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.header-left, .header-right { display: flex; align-items: center; min-width: 0; }
.header-right { justify-content: flex-end; gap: 16px; }
.burger {
  width: 44px; height: 44px; margin-left: -8px; padding: 10px 8px;
  background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 3px; background: #fff; border-radius: 2px; }
.burger span:nth-child(2) { width: 75%; }
.direct { display: none; list-style: none; margin: 0 0 0 16px; padding: 0; gap: 20px; }
.direct a { font-size: 14px; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.direct a:hover { color: var(--yellow); }
.logo {
  position: relative; display: block; width: 84px; height: 84px; margin-top: 18px;
  border-radius: 50%; background: #000; padding: 6px;
}
.logo img { width: 100%; height: 100%; border-radius: 50%; }
.social { display: none; align-items: center; gap: 12px; }
.social a { display: flex; color: var(--yellow); padding: 4px; }
.social a:hover { color: #fff; }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.cta-long { display: none; }
.header-right .btn { padding: 10px 12px; font-size: 12px; }

/* Slide-out */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: min(100%, 460px); background: #0e0e0e; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px var(--gutter) 28px;
  transform: translateX(-100%); visibility: hidden; transition: transform .28s ease, visibility .28s;
}
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .scrim { opacity: 1; visibility: visible; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); font-size: 15px; text-decoration: none; }
.drawer-brand img { width: 36px; height: 36px; }
.drawer-close {
  width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; color: #aaa; cursor: pointer;
  display: grid; place-items: center;
}
.drawer-close:hover { color: #fff; }
.drawer-close svg { width: 22px; height: 22px; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; text-transform: uppercase;
  font: 400 17px/1.2 "Rubik", sans-serif; letter-spacing: .01em; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; padding: 6px 0;
}
.nav a:hover { color: var(--yellow); }
.chev { flex: none; width: 10px; height: 10px; margin-right: 6px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.nav a .chev { margin-left: auto; }
.drawer-social { display: flex; gap: 12px; margin: 16px 0 0; }
.drawer-social a { color: var(--yellow); padding: 4px; display: flex; }
.drawer-social svg { width: 24px; height: 24px; fill: currentColor; }
.promo {
  position: relative; display: block; margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: #000; isolation: isolate;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; z-index: -1; }
.promo-body { padding: 24px; }
.promo h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 16px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; background: #000;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,.6) 0%, rgba(8,8,8,.62) 40%, rgba(8,8,8,.95) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 72px; }
.hero p { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 {
  color: var(--yellow); font-size: clamp(34px, 11.2vw, 96px); letter-spacing: -.01em; margin-bottom: 24px; max-width: 12ch;
}

/* Sections */
section.block { padding-block: 56px; }
.block h2 { font-size: clamp(30px, 7vw, 48px); text-transform: uppercase; margin-bottom: 24px; }
.note {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--panel); text-decoration: none; min-height: 100%;
  transition: background-color .15s;
}
.note:hover { background: var(--panel-2); }
.note b { font-weight: 800; font-size: 13px; letter-spacing: .06em; color: var(--yellow); }
.note span { font-size: 18px; font-weight: 500; line-height: 1.3; }
.note--new { background: var(--yellow); color: #000; }
.note--new:hover { background: #fff; }
.note--new b { color: #000; }
.notes { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }

.contact {
  margin-top: 12px; background: var(--panel); border-radius: var(--radius); border-left: 6px solid var(--yellow);
  padding: 20px; display: grid; gap: 4px;
}
.contact h3, .contact h2 { font-size: 20px; margin-bottom: 6px; text-transform: none; }
.contact a { color: var(--yellow); overflow-wrap: anywhere; }
.contact p { margin: 0; }

.news { list-style: none; margin: 0; padding: 0; display: grid; }
.news li { border-top: 1px solid var(--line); }
.news a { display: block; padding: 16px 0; text-decoration: none; }
.news a:hover h3 { color: var(--yellow); }
.news h3 { font-size: 18px; font-weight: 500; line-height: 1.3; transition: color .15s; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.meta strong { color: var(--yellow); font-weight: 500; }
.block-foot { margin-top: 24px; }
.hint { color: var(--muted); margin: -12px 0 20px; }

.team-group + .team-group { margin-top: 28px; }
.team-group h2 { font-size: 15px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.teams a {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 68px; padding: 10px;
  background: var(--panel); border-radius: var(--radius); font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.teams a:hover { background: var(--yellow); color: #000; }

/* Footer */
.site-footer { background: #000; padding-block: 40px; margin-top: 24px; font-size: 14px; }
.foot-nav { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-nav a { display: inline-block; padding: 8px 0; }
.site-footer p { margin: 0; color: var(--muted); }

/* Inhaltsseiten */
.page { padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px; min-height: 70vh; }
.page h1 { color: var(--yellow); font-size: clamp(30px, 7.5vw, 52px); margin-bottom: 16px; overflow-wrap: break-word; hyphens: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.btn--ghost:hover { background: var(--yellow); color: #000; }
.prose { max-width: 860px; }
.prose > p, .prose li { overflow-wrap: anywhere; }
.prose p { margin: 0 0 14px; }
.prose h2 { font-size: clamp(22px, 5vw, 30px); margin: 32px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 24px 0 10px; }
.prose ul:not(.galerie):not(.link-cards):not(.doc-list) { margin: 0 0 16px; padding-left: 20px; }
.prose a:not(.btn):not(.link-card), .team-link a, .people a, .rangliste a, .meta-line a, .back a { color: var(--yellow); text-underline-offset: 2px; }
.prose a[href$=".pdf"]::before {
  content: "PDF"; display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 6px;
  background: var(--yellow); color: #000; font-size: 11px; font-weight: 700; line-height: 1.3; vertical-align: 1px;
}
.meta-line { color: var(--muted); font-size: 14px; margin: 0 0 20px !important; }
.back { margin: 0 0 12px !important; font-size: 14px; }
.back a::before { content: "‹ "; }
.bild { margin: 16px 0; }
.bild img { border-radius: var(--radius); height: auto; }
.bild figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); margin: 16px 0; }
.galerie { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.galerie a { display: block; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: opacity .15s; }
.galerie a:hover img { opacity: .8; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 700; color: var(--yellow); }
th, td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.logo-chip { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 10px 14px; }
.logo-chip img { max-height: 44px; width: auto; }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 16px; }
.prose .logo-link { margin: 0; }
.logo-link a { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 14px; background: #fff; border-radius: var(--radius); }
.logo-link img { max-height: 76px; width: auto; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--panel); border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.link-card:hover { background: var(--panel-2); color: var(--yellow); }
.link-card .logo-chip { flex: none; width: 96px; height: 60px; padding: 6px; }
.link-card .logo-chip img { max-height: 48px; max-width: 100%; }
mark.todo { background: #ff9d9d; color: #000; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-size: 14px; }

/* News-Liste */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 8px 0 24px; }
.filter label { font-weight: 700; }
.filter select {
  min-height: 44px; min-width: 200px; padding: 8px 12px; background: var(--panel); color: #fff; border: 1px solid #666; border-radius: 10px; font: inherit;
}
.filter-count { margin: 0; color: var(--muted); font-size: 14px; }

/* Teamseite */
.team-link { margin: 0 0 20px; }
.team-layout { display: grid; gap: 24px; }
.team-main > h2, .team-side h2, .team-news h2 { font-size: clamp(22px, 5vw, 28px); margin: 28px 0 12px; }
.team-side h2 { margin-top: 0; font-size: 18px; }
.team-side .sponsor-name { font-weight: 700; margin: 12px 0 0; }
.people { display: grid; gap: 12px; margin-top: 20px; }
.person { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.person h2 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin: 0 0 6px; line-height: 1.3; }
.person p { margin: 0; overflow-wrap: anywhere; }
.person p:first-of-type { font-weight: 700; font-size: 17px; }
.rangliste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rangliste img { background: #fff; padding: 4px; border-radius: 8px; max-height: 44px; width: auto; }
.team-news { margin-top: 40px; }

/* Resultate */
.results .res { font-weight: 700; white-space: nowrap; }
.results .typ { color: var(--muted); font-size: 13px; }
@media (max-width: 767px) {
  .results thead { display: none; }
  .results, .results tbody, .results tr, .results td { display: block; }
  .results tr { background: var(--panel); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
  .results td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 8px; }
  .results td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .results td:empty { display: none; }
  .table-wrap--res { overflow: visible; }
}

/* Footer-Ergänzungen */
.footer-sponsor { margin-bottom: 20px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.foot-social a { color: var(--yellow); display: flex; padding: 6px; }
.foot-social a:hover { color: #fff; }
.foot-social svg { width: 24px; height: 24px; fill: currentColor; }
.site-footer p + p { margin-top: 4px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 80px); object-fit: contain; }
.lightbox button {
  position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--yellow); color: #000; font: 700 28px/1 "Rubik", sans-serif; display: grid; place-items: center;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 14px; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

@media (min-width: 480px) {
  .cta-long { display: inline; }
  .cta-short { display: none; }
  .header-right .btn { padding: 10px 18px; font-size: 13px; }
  .logo { width: 92px; height: 92px; margin-top: 22px; }
}
@media (min-width: 600px) {
  .notes { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .teams { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .direct { display: flex; }
  .social { display: flex; }
  .drawer-social { display: none; }
  .team-side .logo-chip img { max-height: 56px; }
  .header-right .btn { padding: 10px 14px; font-size: 12px; }
}
@media (min-width: 1000px) {
  .direct { margin-left: 24px; }
  .header-right { gap: 28px; }
  .header-right .btn { padding: 12px 22px; font-size: 14px; }
  .logo { width: 104px; height: 104px; margin-top: 30px; }
  .notes { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .teams { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .hero .wrap { padding-bottom: 96px; }
  .news-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 48px; }
}
@media (min-width: 600px) {
  .galerie { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1000px) {
  .team-layout { grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 48px; }
  .galerie { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nav a[aria-current="page"] { color: var(--yellow); font-weight: 700; }

/* Zusammengefasste Seiten */
.page-nav { list-style: none; margin: 8px 0 12px; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .page-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; background: var(--panel); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.prose .page-nav a:hover { background: var(--yellow); color: #000; }
.page-section { margin-top: 20px; padding: 20px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.page-section p, .page-section li { overflow-wrap: anywhere; }
.prose .page-section > :last-child { margin-bottom: 0; }
.prose .page-section > h2:first-child { margin: 0 0 18px; color: var(--yellow); }
.page-section > h2:first-child::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 12px; background: var(--yellow); border-radius: 2px; }
.prose .page-section > h2:not(:first-child), .prose .page-section > h3 { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 700; line-height: 1.25; }
.prose .page-section > h2:first-child + h3, .prose .page-section > h2:first-child + .meta-line + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h4 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; }
.prose .page-section .strich { list-style: "– "; }
.prose .strich li { margin-bottom: 4px; }
.prose .doc { margin: 0 0 8px; }
.prose .doc-list { list-style: none; margin: 0 0 8px; padding: 0; }
.prose .doc-list li { margin-bottom: 8px; }
.prose .doc-list br { display: none; }
.prose .doc a, .prose .doc-list a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; background: var(--panel-2); border-radius: 12px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.prose .doc a::before, .prose .doc-list a::before { flex: none; }
.prose .doc a:hover, .prose .doc-list a:hover { background: var(--yellow); color: #000; }
.prose .doc a:hover::before, .prose .doc-list a:hover::before { background: #000; color: var(--yellow); }
.page-section .link-card { background: var(--panel-2); }
.page-section .link-card:hover { background: var(--line); }
@media (min-width: 768px) {
  .page-section { margin-top: 24px; padding: 32px; }
}
#teamtitel:focus { outline: none; }
