/* =========================================================
   Tiroler Ringsportverband – Redesign 2026
   Farben aus dem Verbandslogo: Rot (oben) / Blau (unten)
   ========================================================= */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }

:root {
  --red: #d0202e;
  --red-600: #b01824;
  --blue: #2c3590;
  --blue-700: #1e2570;
  --navy: #0c1033;
  --navy-800: #121848;
  --ink: #12142a;
  --text: #3b3f58;
  --muted: #6b7091;
  --line: #e4e6f0;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --gold: #e8b43a;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 16, 51, .06), 0 2px 8px rgba(12, 16, 51, .05);
  --shadow: 0 10px 30px -10px rgba(12, 16, 51, .25);
  --shadow-lg: 0 30px 60px -20px rgba(12, 16, 51, .35);
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; font-family: var(--font-display); color: var(--ink); line-height: 1.02; margin: 0; letter-spacing: .005em; text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(208, 32, 46, .8); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before {
  content: ""; width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(var(--red) 50%, var(--blue) 50%);
}
.on-dark .eyebrow { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 16, 51, .5); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--red); transform: translateX(-50%);
}
.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-cta .btn { padding: .7rem 1.15rem; font-size: .88rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    padding: 1.5rem 1.25rem 2rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; padding: .5rem .75rem; border-radius: 12px; }
  .main-nav a[aria-current="page"]::after { left: auto; right: 1rem; top: 50%; bottom: auto; width: 10px; height: 10px; transform: translateY(-50%); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: #fff;
  min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; transform: scale(1.04); animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 16, 51, .96) 0%, rgba(12, 16, 51, .82) 38%, rgba(12, 16, 51, .25) 75%, rgba(12, 16, 51, .1) 100%),
    linear-gradient(0deg, rgba(12, 16, 51, .95) 0%, rgba(12, 16, 51, 0) 45%);
}
.hero::after { /* rot/blau Diagonale wie im Logo */
  content: ""; position: absolute; right: -8%; top: -20%; width: 46%; height: 140%; z-index: -1;
  background: linear-gradient(var(--red) 0 50%, var(--blue) 50% 100%);
  opacity: .16; transform: skewX(-14deg); mix-blend-mode: screen;
}
.hero-inner { padding: 7rem 0 4.5rem; }
.hero-content { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.5vw, 5.6rem); font-weight: 800; margin: 1.1rem 0 1.25rem; }
.hero h1 .accent { color: var(--red); -webkit-text-stroke: 0; }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, .82); max-width: 580px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.chip .medal { width: 10px; height: 10px; border-radius: 50%; }
.medal.gold { background: var(--gold); }
.medal.silver { background: #c9ccd6; }
.medal.bronze { background: #c47a3c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.scroll-hint {
  position: absolute; right: 2rem; bottom: 2rem; display: flex; align-items: center; gap: .6rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
  writing-mode: vertical-rl;
}
.scroll-hint::after { content: ""; width: 1px; height: 48px; background: linear-gradient(rgba(255, 255, 255, .6), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Kennzahlen ---------- */
.stats { position: relative; z-index: 2; margin-top: -3rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 1.8rem 1.6rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); }
.stat-value small { font-size: .55em; color: var(--red); margin-left: .1em; }
.stat-label { margin-top: .4rem; font-size: .88rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 800; margin-top: .6rem; }
.section-head p { max-width: 520px; margin: .8rem 0 0; color: var(--muted); }
.section-dark .section-head p { color: rgba(255, 255, 255, .65); }

/* ---------- News ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--ink); transition: all .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.news-card {
  grid-column: span 4; display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card.is-hidden { display: none; }
.news-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-media.contain { background: #fff; }
.news-media.contain img { object-fit: contain; padding: 1.4rem; }
.news-card:hover .news-media img { transform: scale(1.05); }
/* Generierte Kampftag-Grafik statt immer gleichem Liga-Logo */
.news-media.matchday {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem 1.5rem; color: #fff;
  background:
    linear-gradient(135deg, transparent 55%, rgba(208, 32, 46, .9) 55% 72%, rgba(44, 53, 144, .95) 72%),
    radial-gradient(circle at 20% 20%, #1c2366, var(--navy) 70%);
}
.news-media.matchday .md-num { font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; line-height: .8; letter-spacing: -.02em; transition: transform .6s var(--ease); transform-origin: left bottom; }
.news-card:hover .news-media.matchday .md-num { transform: scale(1.06); }
.news-media.matchday .md-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; margin-top: .4rem; }
.news-media.matchday .md-score { position: absolute; right: 1.3rem; bottom: 1.1rem; font-family: var(--font-display); font-weight: 800; font-size: 2rem; text-align: right; line-height: 1; }
.news-media.matchday .md-score small { display: block; font-size: .8rem; letter-spacing: .1em; opacity: .85; font-weight: 600; margin-top: .3rem; }
.news-media .tag { position: absolute; left: 1rem; top: 1rem; }
.tag {
  display: inline-block; padding: .3rem .7rem; border-radius: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff;
}
.tag.liga { background: var(--blue); }
.tag.meister { background: var(--red); }
.tag.nachwuchs { background: #0f8a6a; }
.news-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.news-body h3 { font-size: 1.55rem; font-weight: 700; margin: .45rem 0 .7rem; }
.news-body h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.news-card:hover h3 a { background-size: 100% 2px; }
.news-body p { font-size: .94rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--red); }
.read-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.news-card:hover .read-more svg { transform: translateX(4px); }

/* Featured: großer Teaser über zwei Spalten */
.news-card.featured { grid-column: span 8; flex-direction: row; }
.news-card.featured .news-media { aspect-ratio: auto; flex: 1.25; min-height: 360px; }
.news-card.featured .news-body { flex: 1; padding: 2rem; justify-content: center; }
.news-card.featured h3 { font-size: 2.1rem; }
.news-card.featured p { -webkit-line-clamp: 5; }
.news-more { text-align: center; margin-top: 2.5rem; }

@media (max-width: 1080px) {
  .news-card, .news-card.featured { grid-column: span 6; }
  .news-card.featured { grid-column: span 12; }
}
@media (max-width: 680px) {
  .news-card, .news-card.featured { grid-column: span 12; }
  .news-card.featured { flex-direction: column; }
  .news-card.featured .news-media { min-height: 0; aspect-ratio: 16 / 10; }
  .news-card.featured .news-body { padding: 1.4rem 1.5rem 1.6rem; }
  .news-card.featured h3 { font-size: 1.7rem; }
}

/* ---------- Bundesliga-Tracker ---------- */
.section-dark::before {
  content: ""; position: absolute; left: -10%; bottom: -40%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(44, 53, 144, .55), transparent 70%);
}
.section-dark::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 50%; height: 110%;
  background: radial-gradient(closest-side, rgba(208, 32, 46, .28), transparent 70%);
}
.section-dark > .container { position: relative; z-index: 1; }
.league-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.team-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s;
}
.team-card { position: relative; }
.team-card:hover, .team-card:focus-within { z-index: 2; }
.team-card:hover { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.team-card.highlight { border-color: rgba(232, 180, 58, .5); background: linear-gradient(160deg, rgba(232, 180, 58, .14), rgba(255, 255, 255, .04)); }
.team-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.team-league { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.team-card h3 { font-size: 1.9rem; margin-top: .25rem; }
.team-badge { padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--gold); color: var(--navy); white-space: nowrap; }
.team-record { display: flex; gap: 1.6rem; margin: 1.3rem 0 1.1rem; }
.team-record div { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.team-record span { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-top: .35rem; }
.form-row { display: flex; gap: .4rem; }
.form-dot {
  position: relative; flex: 1; height: 38px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff; cursor: default;
}
.form-dot.w { background: #17a673; }
.form-dot.l { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.form-dot[data-tip]:hover::after, .form-dot[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .75rem;
  padding: .45rem .65rem; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow); z-index: 5;
}
.form-dot:nth-child(-n+2)[data-tip]:hover::after, .form-dot:nth-child(-n+2)[data-tip]:focus::after { left: 0; transform: none; }
.form-dot:nth-last-child(-n+2)[data-tip]:hover::after, .form-dot:nth-last-child(-n+2)[data-tip]:focus::after { left: auto; right: 0; transform: none; }
.form-legend { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .7rem; color: rgba(255, 255, 255, .45); }
.league-note { margin-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 980px) { .league-grid { grid-template-columns: 1fr; } }

/* ---------- Vereine ---------- */
.club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.club-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.club-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.club-logo { height: 170px; display: grid; place-items: center; padding: 1.5rem 2rem; background: #fff; border-bottom: 1px solid var(--line); }
.club-logo img { max-height: 120px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .3s, transform .4s var(--ease); }
.club-card:hover .club-logo img { filter: none; transform: scale(1.05); }
.club-info { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.club-info h3 { font-size: 1.7rem; }
.club-info .role { font-size: .88rem; color: var(--muted); }
.club-info .link { margin-top: .8rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--blue); word-break: break-all; }
.club-info .link svg { width: 16px; height: 16px; flex-shrink: 0; }
.club-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.club-strip a {
  position: relative; min-width: 0; aspect-ratio: 1; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 1.1rem; transition: transform .35s var(--ease), box-shadow .35s;
}
.club-strip a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.club-strip img { position: absolute; inset: 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 2.2rem); object-fit: contain; }
@media (max-width: 980px) { .club-grid { grid-template-columns: repeat(2, 1fr); } .club-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .club-grid { grid-template-columns: 1fr; } }

/* ---------- Split / Info-Kacheln ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 2rem; }
.panel h3 { font-size: 1.9rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.file-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.file-item:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.file-icon {
  flex-shrink: 0; width: 46px; height: 52px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: #fff; background: var(--red);
}
.file-icon.xls { background: #1d7a46; }
.file-meta { flex: 1; min-width: 0; }
.file-title { display: block; font-weight: 600; color: var(--ink); line-height: 1.35; }
.file-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.file-dl { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); transition: background .2s, color .2s; }
.file-item:hover .file-dl { background: var(--ink); color: #fff; }
.file-dl svg { width: 18px; height: 18px; }

/* ---------- Unterseiten-Header ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; right: -5%; top: -30%; width: 40%; height: 160%; z-index: -1;
  background: linear-gradient(var(--red) 0 50%, var(--blue) 50% 100%); opacity: .22; transform: skewX(-14deg);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; margin-top: .8rem; }
.page-hero p { max-width: 620px; margin: 1rem 0 0; color: rgba(255, 255, 255, .72); font-size: 1.08rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Vorstand ---------- */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%);
  margin-bottom: 1.1rem;
}
.person.deputy .avatar { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.person .role { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.person h3 { font-size: 1.6rem; margin: .3rem 0 1rem; }
.person a.mail { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--blue); display: inline-flex; gap: .45rem; align-items: center; word-break: break-all; }
.person a.mail svg { width: 16px; height: 16px; flex-shrink: 0; }
.person a.mail:hover { text-decoration: underline; }
.group-title { font-size: 1.1rem; letter-spacing: .14em; color: var(--muted); margin: 0 0 1.2rem; font-weight: 700; }
.group-title + .board-grid { margin-bottom: 3rem; }
@media (max-width: 1080px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .board-grid { grid-template-columns: 1fr; } }

/* ---------- Nationalteam ---------- */
.squad { margin-bottom: 3rem; }
.squad-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.squad-head h2 { font-size: 2.2rem; font-weight: 800; }
.squad-head .count { font-size: .8rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.athlete-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.athlete {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem; transition: transform .3s var(--ease), box-shadow .3s;
}
.athlete:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.athlete::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--red) 50%, var(--blue) 50%); }
.athlete h3 { font-size: 1.5rem; }
.athlete .club { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.athlete .facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.pill { font-size: .75rem; font-weight: 600; padding: .3rem .6rem; border-radius: 6px; background: var(--bg-soft); color: var(--ink); }
.pill.weight { background: var(--ink); color: #fff; }
.pill.style-fs { background: #e8ecff; color: var(--blue); }
.pill.style-gr { background: #ffe7e9; color: var(--red-600); }
.pill.style-w { background: #e2f6ef; color: #0b6e54; }

/* ---------- Ergebnisse ---------- */
.results-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.results-group { margin-bottom: 2.5rem; }
.results-group h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.timeline-item .file-icon { width: auto; min-width: 64px; height: 64px; padding: 0 .6rem; flex-direction: column; line-height: 1; background: var(--navy); }
.timeline-item .file-icon b { font-size: 1.6rem; }
.timeline-item .file-icon span { font-size: .72rem; letter-spacing: .1em; opacity: .7; margin-top: .2rem; }
.side-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--bg-soft); border-radius: var(--radius); padding: 1.6rem; }
.side-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.year-grid a {
  text-align: center; padding: .65rem 0; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); transition: all .2s;
}
.year-grid a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 900px) { .results-layout { grid-template-columns: 1fr; } .side-card { position: static; } }

/* ---------- Termine ---------- */
.event-list { display: grid; gap: 1rem; max-width: 880px; margin: 0 auto; }
.event {
  display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.4rem 1.6rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.event-date {
  flex: none; width: 72px; padding: .7rem 0; border-radius: var(--radius-sm); background: var(--navy); color: #fff;
  text-align: center; font-family: var(--font-display); text-transform: uppercase; line-height: 1;
}
.event-day { display: block; font-size: 2rem; font-weight: 800; }
.event-mon { display: block; margin-top: .25rem; font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.event-body { min-width: 0; }
.event-body h3 { font-size: 1.6rem; margin: .6rem 0 .3rem; }
.event-meta { font-weight: 600; color: var(--ink); margin: 0 0 .35rem; }
.event-body p:last-child { color: var(--muted); margin: 0; }
.event-source { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
@media (max-width: 560px) { .event { gap: 1rem; padding: 1.2rem; } .event-date { width: 58px; } .event-day { font-size: 1.6rem; } }

/* ---------- Leere Zustände / CTA ---------- */
.empty-state {
  text-align: center; padding: 4rem 2rem; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.empty-state .icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 20px; display: grid; place-items: center; background: var(--bg-soft); color: var(--red); }
.empty-state .icon svg { width: 34px; height: 34px; }
.empty-state h2 { font-size: 2rem; margin-bottom: .6rem; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 1.5rem; }

.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, var(--red) 0%, #a5162a 45%, var(--blue) 100%);
  color: #fff; padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.cta-band p { margin: .5rem 0 0; color: rgba(255, 255, 255, .85); max-width: 540px; }
.cta-band .btn-white { background: #fff; color: var(--ink); }
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }

/* ---------- Partner ---------- */
.partners { padding: 3rem 0; border-top: 1px solid var(--line); }
.partners-inner { display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.partners-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partners a img { height: 64px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.partners a:hover img { filter: none; opacity: 1; }

/* ---------- Kontakt / Impressum ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--red); flex-shrink: 0; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { color: var(--blue); font-weight: 600; }
.prose h2 { font-size: 1.8rem; margin: 2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); padding: 4.5rem 0 2rem; font-size: .92rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.footer-logo img { height: 52px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1.15rem; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .hero { min-height: 640px; }
  .hero::before { background: linear-gradient(0deg, rgba(12, 16, 51, .98) 10%, rgba(12, 16, 51, .55) 70%, rgba(12, 16, 51, .35) 100%); }
  .scroll-hint { display: none; }
  .stat { padding: 1.3rem 1.1rem; }
}

/* ---------- Beiträge, Archiv & übernommene Inhalte ---------- */
.tag.verband { background: var(--navy); }
.page-hero h1.h1-long { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 22ch; line-height: 1.02; }
.article { max-width: 780px; margin-inline: auto; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.results-group .article { max-width: none; margin: 0; }
.article > :first-child { margin-top: 0; }
.article p { margin: 0 0 1.1em; }
.article h2 { font-size: 1.9rem; margin: 2.2rem 0 .8rem; }
.article h3 { font-size: 1.45rem; margin: 1.8rem 0 .6rem; }
.article a:not(.btn):not(.file-item) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article a:not(.btn):not(.file-item):hover { color: var(--red); }
.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.article figure { margin: 1.8rem 0; }
.article figure img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.article .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 1.8rem 0; }
.article .gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.article .gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.article .gallery a:hover img { transform: scale(1.05); }
.article .file-list { margin: 1.4rem 0; }
.article .table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article td, .article th { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article .embed { position: relative; margin: 1.6rem 0; }
.article .embed iframe { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-nav { max-width: 780px; margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.article-nav-link { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .25s; }
.article-nav-link:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.article-nav-link span { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.article-nav-link span svg { width: 15px; height: 15px; }
.article-nav-link strong { color: var(--ink); font-weight: 600; line-height: 1.35; }
.article-nav-link.next { text-align: right; align-items: flex-end; }
.article-back { max-width: 780px; margin: 2rem auto 0; }
.year-grid a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav-link.next { text-align: left; align-items: flex-start; } }
