/* ==========================================================================
   VBC Rankweil – Stylesheet
   Farben aus dem Vereinslogo: Rot #AE2336, Blau #174F87
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Heros";
  src: url("../fonts/heros-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heros";
  src: url("../fonts/heros-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heros Cn";
  src: url("../fonts/heros-cn-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --red: #AE2336;
  --blue: #174F87;

  --bg: #FFFFFF;
  --surface: #F2F5FA;
  --text: #0E1A2B;
  --muted: #4A5568;
  --line: #DCE3EC;
  --hero-bg: #EEF3F9;
  --hero-title: #174F87;
  --hero-panel: #174F87;
  --ghost: #174F87;
  --brand-bg: #174F87;
  --foot-bg: #0B2A4C;
  --head-bg: rgba(255, 255, 255, .88);
  --accent-text: #174F87;
  --logo-plate: transparent;
  --logo-pad: 0;
  --shadow: 0 18px 40px rgba(14, 26, 43, .14);

  --font-body: "Heros", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Heros Cn", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1220;
  --surface: #121C2E;
  --text: #EEF2F8;
  --muted: #A9B4C6;
  --line: #26344D;
  --hero-bg: #0D1829;
  --hero-title: #FFFFFF;
  --hero-panel: #174F87;
  --ghost: #EEF2F8;
  --brand-bg: #0F2E52;
  --foot-bg: #060C17;
  --head-bg: rgba(10, 18, 32, .86);
  --accent-text: #8DB6E8;
  --logo-plate: #FFFFFF;
  --logo-pad: 6px 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1220;
    --surface: #121C2E;
    --text: #EEF2F8;
    --muted: #A9B4C6;
    --line: #26344D;
    --hero-bg: #0D1829;
    --hero-title: #FFFFFF;
    --hero-panel: #174F87;
    --ghost: #EEF2F8;
    --brand-bg: #0F2E52;
    --foot-bg: #060C17;
    --head-bg: rgba(10, 18, 32, .86);
    --accent-text: #8DB6E8;
    --logo-plate: #FFFFFF;
    --logo-pad: 6px 10px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, .25vw + 15px, 18px);
  line-height: 1.6;
  transition: background-color .4s, color .4s;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--surface { background: var(--surface); transition: background-color .4s; }

/* ---------- Typografie ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.005em;
}

.lead { color: var(--muted); }

/* Im Dunkelmodus wäre rote Schrift auf Dunkel schwer lesbar:
   dort erscheint die Zeile als rotes Etikett mit weißer Schrift. */
:root[data-theme="dark"] .eyebrow:not(.eyebrow--plain) {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--red);
  color: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow:not(.eyebrow--plain) {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--red);
    color: #FFFFFF;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s, background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: #FFFFFF; }
.btn--blue { background: var(--blue); color: #FFFFFF; }
.btn--outline { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
.btn--ghost { border-color: var(--ghost); color: var(--ghost); background: transparent; }
.btn--white { background: #FFFFFF; color: #8E1A2B; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s, box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  transition: min-height .3s var(--ease);
}
.is-scrolled .header-inner { min-height: 64px; }

.brand {
  display: flex;
  align-items: center;
  background: var(--logo-plate);
  padding: var(--logo-pad);
  border-radius: 10px;
  transition: background-color .4s;
}
.brand img { height: 48px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 40px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-underline { position: relative; text-decoration: none; }
.main-nav a::after,
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.link-underline::after { bottom: -2px; height: 2px; }
.main-nav a:hover::after,
.main-nav a.is-active::after,
.link-underline:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .4s, border-color .4s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-8deg); }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.menu-toggle { display: none; }
.menu-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-insta-label { display: none; }
  .header-actions .btn--sm { width: 44px; padding: 0; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .main-nav a {
    padding: 14px 0;
    font-size: 24px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a::after { display: none; }
  .no-js .main-nav { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
}

@media (max-width: 420px) {
  .brand img { height: 38px; }
  .header-actions { gap: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
  color: var(--text);
  padding-block: clamp(48px, 7vw, 88px) clamp(96px, 11vw, 150px);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  transition: background-color .4s;
}
/* Blaue Fläche hinter dem Plakat */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
  background: var(--hero-panel);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
}
.hero h1 {
  color: var(--hero-title);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(50px, 7.4vw, 100px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--red); }
.hero .eyebrow { font-size: 16px; }
.hero-text { max-width: 520px; font-size: clamp(17px, 1.1vw + 12px, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: min(100%, 440px);
  justify-self: center;
  transform: rotate(1.5deg);
  box-shadow: 0 24px 60px rgba(8, 20, 38, .32);
  border: 6px solid #FFFFFF;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-photo--poster { display: block; aspect-ratio: 3 / 4; border: 0; }
@media (hover: hover) {
  .hero-photo:hover { transform: rotate(0deg); box-shadow: 0 32px 70px rgba(8, 20, 38, .4); }
  .hero-photo:hover img { transform: scale(1.04); }
}

/* Einstiegsanimation beim Laden */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-photo { animation: photoIn 1s .25s var(--ease) both; }
@keyframes photoIn { from { opacity: 0; transform: translateY(30px) rotate(0deg); } to { opacity: 1; transform: rotate(1.5deg); } }

/* ---------- Verein ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.stat {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 4vw, 56px);
  line-height: 1;
  color: var(--accent-text);
}
.stat-label { padding-top: 6px; color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 56px);
}
.stack { display: flex; flex-direction: column; gap: 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--bg);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 4px;
}
.card p { color: var(--muted); font-size: 15.5px; }

/* Anheben beim Darüberfahren */
.lift { transition: transform .35s var(--ease), box-shadow .35s, background-color .4s, border-color .4s; }
@media (hover: hover) {
  .lift:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
}

/* ---------- Training ---------- */
.days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.day {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg);
  border-top: 5px solid var(--blue);
}
.day:nth-child(even) { border-top-color: var(--red); }
.day h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1;
}
.day ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.slot-time { font-weight: 700; }
.slot-place { color: var(--muted); font-size: 15px; }

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--brand-bg);
  color: #FFFFFF;
  transition: background-color .4s;
}
.notice-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.notice h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  text-transform: uppercase;
  line-height: 1.1;
}
.notice p { color: #DCE6F3; }
.notice .btn { text-transform: none; letter-spacing: .01em; font-family: var(--font-body); font-size: 17px; }

/* ---------- Vorstand ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
}
.person { display: flex; flex-direction: column; gap: 12px; margin: 0; border-radius: var(--radius); }
.person-photo {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .person:hover .person-photo img { transform: scale(1.05); }
}
/* Platzhalter, solange keine Porträtfotos veröffentlicht werden */
.person-photo--placeholder {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #FFFFFF;
}
.person-photo--placeholder span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: .04em;
  line-height: 1;
}
.person-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.1;
  text-transform: uppercase;
}
.person-role { color: var(--red); font-weight: 700; }

.people-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ---------- Instagram ---------- */
.insta { background: var(--red); color: #FFFFFF; }
.insta .eyebrow { color: #FFFFFF; opacity: .9; }
:root[data-theme="dark"] .insta .eyebrow { background: rgba(0, 0, 0, .28); opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .insta .eyebrow { background: rgba(0, 0, 0, .28); opacity: 1; }
}
.insta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.insta-head > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 10px; }

.insta-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
  text-align: center;
}
.insta-consent p { max-width: 580px; }
.insta-consent a { color: #FFFFFF; }

.insta-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.insta-embed[hidden], .insta-consent[hidden], .insta-fallback[hidden] { display: none; }

/* Eigenes Instagram-Raster (Daten über Feed-Dienst, Darstellung im Vereinsdesign) */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.insta-post {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  text-decoration: none;
  animation: rise .6s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.insta-post .insta-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(8, 20, 38, .85), rgba(8, 20, 38, 0));
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insta-post .insta-type {
  position: absolute;
  top: 8px;
  right: 8px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}
@media (hover: hover) {
  .insta-post:hover img { transform: scale(1.06); }
  .insta-post:hover .insta-caption,
  .insta-post:focus-visible .insta-caption { opacity: 1; transform: none; }
}
.insta-skeleton {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .10) 30%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .10) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.insta-status { text-align: center; }
.insta-status a { color: #FFFFFF; }
.insta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
@media (max-width: 1000px) {
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  cursor: pointer;
}
.remember input { width: 20px; height: 20px; accent-color: #FFFFFF; }
.text-btn {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Halle ---------- */
.venue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.venue address { font-style: normal; font-weight: 700; }
.venue-photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.venue-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .venue-photo:hover img { transform: scale(1.04); }
}

.venue-figure { margin: 0; }
.photo-credit {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* ---------- Sponsoren ---------- */
.sponsors {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px);
}
.sponsors .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.sponsors .eyebrow { color: var(--muted); }
.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 116px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .35s, opacity .35s, transform .35s var(--ease), box-shadow .35s;
}
.sponsor img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor:hover, .sponsor:focus-visible { filter: none; opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow); }
@media (hover: none) {
  .sponsor { filter: none; opacity: 1; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--foot-bg);
  color: #DCE6F3;
  padding-block: clamp(48px, 6vw, 72px) 28px;
  transition: background-color .4s;
}
.site-footer a { color: #FFFFFF; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.footer-col address { font-style: normal; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col ul a { color: #DCE6F3; }
.footer-logo { background: #FFFFFF; border-radius: 10px; padding: 8px 12px; }
.footer-logo img { height: 44px; width: auto; }
.footer-asvoe img { height: 40px; width: auto; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 14px;
}
.footer-bottom ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { color: #DCE6F3; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page-hero {
  background: var(--hero-bg);
  color: var(--hero-title);
  padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 110px);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  transition: background-color .4s;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  text-transform: uppercase;
  animation: rise .7s var(--ease) both;
}
.page-hero .eyebrow { margin-bottom: 12px; animation: rise .7s var(--ease) both; }

.prose {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 2.2em 0 .6em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose dl { margin: 0 0 1em; color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.prose dt { font-weight: 700; color: var(--text); }
.prose dd { margin: 0; }
@media (max-width: 520px) {
  .prose dl { grid-template-columns: 1fr; gap: 0; }
  .prose dd { margin-bottom: 10px; }
}
.prose .btn { margin-top: 4px; }

/* ---------- Handy-Optimierung ---------- */
html { -webkit-tap-highlight-color: transparent; }

@media (max-width: 900px) {
  /* Hero: blaue Fläche wandert unter das Plakat */
  .hero::before {
    top: auto;
    width: 100%;
    height: 46%;
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 640px) {
  :root { --section: 56px; --radius: 14px; }
  html { scroll-padding-top: 76px; }

  .header-inner, .is-scrolled .header-inner { min-height: 64px; }
  .brand img, .is-scrolled .brand img { height: 38px; }

  .hero { padding-block: 32px 84px; clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .hero-grid { gap: 32px; }
  .hero-copy { gap: 16px; }
  .hero .eyebrow { font-size: 13px; letter-spacing: .14em; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { width: min(82%, 360px); border-width: 4px; transform: rotate(1deg); }

  .btn { min-height: 50px; font-size: 18px; }

  .h2 { font-size: clamp(30px, 9vw, 40px); }
  .eyebrow { font-size: 13px; }
  .section-head { margin-bottom: 24px; }

  /* Kennzahlen kompakt */
  .stats { gap: 10px; margin-bottom: 40px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 38px; }
  .stat-label { font-size: 15px; }

  /* Aktivitäten zweispaltig */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; line-height: 1.45; }

  /* Trainingstage als kompakte Zeilen: Tag links, Zeiten rechts */
  .days { gap: 10px; }
  .day {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px;
    border-top: 0;
    border-left: 5px solid var(--blue);
  }
  .day:nth-child(even) { border-left-color: var(--red); }
  .day h3 { font-size: 21px; padding-top: 2px; }
  .day ul { gap: 10px; }
  .slot-time { font-size: 15.5px; line-height: 1.35; }
  .slot-place { font-size: 14px; }
  .notice { margin-top: 16px; padding: 20px; }
  .notice h3 { font-size: 23px; }
  .notice .btn { width: 100%; }

  /* Vorstand zweispaltig */
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .person { gap: 8px; }
  .person-name { font-size: 19px; }
  .person-role { font-size: 14px; }
  .people-more { gap: 10px; margin-top: 16px; }

  /* Instagram */
  .insta-head { margin-bottom: 20px; }
  .insta-head .btn { width: 100%; }
  .insta-consent { padding: 28px 18px; }
  .insta-grid { gap: 6px; }
  .insta-post, .insta-skeleton { border-radius: 8px; }

  /* Halle */
  .venue { gap: 24px; }
  .venue .btn { width: 100%; }

  /* Sponsoren zweispaltig */
  .sponsor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .sponsor-list li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
  .sponsor { width: 100%; height: 92px; padding: 10px; }

  /* Footer kompakt */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-col { font-size: 15px; }
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Unterseiten */
  .page-hero { padding-block: 36px 64px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .prose { padding-top: 28px; }

  /* Einblend-Animation dezenter */
  .js .reveal { transform: translateY(16px); }
}

@media (max-width: 360px) {
  .cards, .people { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 8px; }
}

/* Offenes Menü: Seite dahinter abdunkeln */
.site-header:has(.main-nav.is-open) { background: var(--bg); }
@media (max-width: 900px) {
  .main-nav.is-open { max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(8, 20, 38, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }
}
@media (min-width: 901px) {
  .nav-backdrop { display: none; }
}

/* ---------- Scroll-Animationen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Bewegung reduzieren (Barrierefreiheit) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo { transform: rotate(1.5deg); }
}

/* ---------- Theme-Wechsel mit View Transition ---------- */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .insta, .hero-actions, .skip-link { display: none !important; }
  .hero, .page-hero { clip-path: none; background: none; color: #000; }
  body { background: #FFFFFF; color: #000; }
}

/* ---------- Mannschaften (Startseite) ---------- */
.teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  text-decoration: none;
  transition: border-color .25s, background-color .4s;
}
.team-card:hover { border-color: var(--blue); }
.team-photo {
  aspect-ratio: 3 / 2;
  background: var(--surface);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--empty {
  display: grid;
  place-items: center;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
}
.team-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.team-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}
.team-body p { color: var(--muted); font-size: 15.5px; }

/* ---------- Teamseite ---------- */
.team-group {
  margin-top: calc(var(--section) * -.35);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.team-group img { width: 100%; height: auto; }
.team-group--empty {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.team-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; color: var(--muted); }
.team-meta strong { color: var(--text); }

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 24px 20px;
}
.player { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.player-photo {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.player-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-photo .alt-photo { opacity: 0; transition: opacity .3s; }
@media (hover: hover) {
  .player:hover .alt-photo { opacity: 1; }
}
.player.is-alt .alt-photo { opacity: 1; }
.player-photo--empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}
.player-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  text-transform: uppercase;
}
.player-name .nr { color: var(--accent-text); margin-right: .3em; }
.player-role { color: var(--muted); font-size: 15px; }
.placeholder { color: var(--muted); font-weight: 400; font-style: italic; text-transform: none; font-family: var(--font-body); font-size: 15px; }

.draft-note {
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 2px dashed #C99A06;
  border-radius: 12px;
  background: #FFF8E1;
  color: #4A3A00;
  font-size: 15.5px;
}
:root[data-theme="dark"] .draft-note { background: #2A2410; color: #F3E3A8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .draft-note { background: #2A2410; color: #F3E3A8; }
}

.back-link { display: inline-block; margin-top: 32px; font-weight: 700; }

@media (max-width: 640px) {
  .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team-body { padding: 10px 12px 12px; }
  .team-body h3 { font-size: 19px; }
  .team-body p { font-size: 13.5px; line-height: 1.4; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .player-name { font-size: 18px; }
}
