/* ═══════════════════════════════════════════════════
   EHC ZERMATT — Shared Stylesheet
   Palette: Logo-Rot #cc0000 · Grau #888 · Schwarz #0a0a0a
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --card:      rgba(255,255,255,0.025);
  --red:       #cc0000;
  --red-hi:    #e60000;
  --red-dim:   rgba(204,0,0,0.08);
  --red-glow:  rgba(204,0,0,0.22);
  --gray:      #888888;
  --gray-dim:  rgba(136,136,136,0.08);
  --text:      #eeeeee;
  --text2:     #555555;
  --border:    rgba(204,0,0,0.10);
  --border-hi: rgba(204,0,0,0.35);
  --ff-d:      'Bebas Neue', sans-serif;
  --ff-b:      'Space Grotesk', sans-serif;
  --ff-m:      'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-b);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scanlines */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.022) 3px, rgba(0,0,0,.022) 4px
  );
  pointer-events: none; z-index: 9000;
}


/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,10,10,.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .3;
}

.nav-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 34px; width: auto;
  filter: drop-shadow(0 0 6px rgba(204,0,0,.4));
}
.nav-logo-text {
  font-family: var(--ff-d);
  font-size: 1.2rem; letter-spacing: .1em;
  color: var(--text); line-height: 1;
}
.nav-logo-text em { font-style: normal; color: var(--red); }

.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-m); font-size: .56rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text2); text-decoration: none;
  padding: .45rem .75rem; transition: color .2s;
  position: relative; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -1px; left: .75rem; right: .75rem; height: 1px;
  background: var(--red); box-shadow: 0 0 8px var(--red);
}

.nav-right { display: flex; align-items: center; gap: .7rem; }

.nav-badge {
  font-family: var(--ff-m); font-size: .5rem;
  letter-spacing: .1em; color: var(--red);
  border: 1px solid var(--red);
  padding: .17rem .5rem; background: var(--red-dim);
  white-space: nowrap;
}

.nav-social { display: flex; gap: .5rem; }
.nav-social a {
  font-family: var(--ff-m); font-size: .58rem;
  color: var(--text2); text-decoration: none; transition: color .2s;
}
.nav-social a:hover { color: var(--red); }

.mobile-toggle {
  display: none; background: none;
  border: 1px solid var(--border);
  width: 34px; height: 34px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 17px; height: 1.5px;
  background: var(--text); transition: all .3s;
}

/* ── LAYOUT ── */
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 2rem; width: 100%; }

.sect { padding: 6rem 0; position: relative; }
.sect-alt { background: var(--bg2); }
.sect-border { border-top: 1px solid var(--border); }

.sect-lbl {
  font-family: var(--ff-m); font-size: .56rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .65rem;
}
.sect-lbl::before { content: '//'; opacity: .4; }

.sect-title {
  font-family: var(--ff-d);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  letter-spacing: .02em; line-height: .9;
  margin-bottom: 3rem;
}

/* ── HERO (Home) ── */
.hero-main {
  min-height: 100vh; padding-top: 62px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

.hero-mountain-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 90%;
  pointer-events: none; opacity: .85;
}

.hero-glow-red {
  position: absolute; pointer-events: none; border-radius: 50%;
}
.hero-glow-1 {
  width: 600px; height: 600px; top: 5%; right: 2%;
  background: radial-gradient(circle, rgba(204,0,0,.07) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 450px; height: 450px; bottom: 5%; left: 5%;
  background: radial-gradient(circle, rgba(136,136,136,.05) 0%, transparent 70%);
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}

.hero-logo-col { display: flex; justify-content: flex-end; }

.hero-logo-img {
  width: 100%; max-width: 320px;
  filter: drop-shadow(0 0 40px rgba(204,0,0,.3)) drop-shadow(0 0 90px rgba(204,0,0,.12));
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0);
    filter: drop-shadow(0 0 40px rgba(204,0,0,.3)) drop-shadow(0 0 90px rgba(204,0,0,.12)); }
  50% { transform: translateY(-10px);
    filter: drop-shadow(0 0 55px rgba(204,0,0,.45)) drop-shadow(0 0 110px rgba(204,0,0,.18)); }
}

.hero-pre {
  font-family: var(--ff-m); font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero-pre::before {
  content: ''; width: 36px; height: 1px;
  background: var(--red); box-shadow: 0 0 8px var(--red);
}

.hero-title {
  font-family: var(--ff-d);
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  line-height: .88; letter-spacing: .02em; margin-bottom: .5rem;
}

/* Glitch */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: inherit; font-size: inherit;
  line-height: inherit; letter-spacing: inherit;
}
.glitch::before { color: var(--red);  animation: gl1 8s infinite 0s;  opacity: 0; }
.glitch::after  { color: var(--gray); animation: gl2 8s infinite .5s; opacity: 0; }
@keyframes gl1 {
  0%,88%,100% { opacity:0; transform:translate(0); }
  89% { opacity:.75; transform:translate(-4px,2px); clip-path:polygon(0 25%,100% 25%,100% 55%,0 55%); }
  90% { opacity:.6;  transform:translate(4px,-2px); clip-path:polygon(0 45%,100% 45%,100% 70%,0 70%); }
  91% { opacity:.75; transform:translate(-2px,0); clip-path:polygon(0 10%,100% 10%,100% 40%,0 40%); }
  92% { opacity:0; }
}
@keyframes gl2 {
  0%,90%,100% { opacity:0; transform:translate(0); }
  91% { opacity:.7; transform:translate(3px,-2px); clip-path:polygon(0 55%,100% 55%,100% 80%,0 80%); }
  92% { opacity:.55; transform:translate(-3px,2px); clip-path:polygon(0 60%,100% 60%,100% 90%,0 90%); }
  93% { opacity:.7; transform:translate(1px,0); }
  94% { opacity:0; }
}

.hero-ehc { color: var(--text); display: block; }
.hero-zer {
  color: var(--red); display: block;
  text-shadow: 0 0 50px rgba(204,0,0,.38);
}

.hero-sub {
  font-family: var(--ff-m); font-size: .6rem;
  letter-spacing: .16em; color: var(--text2); text-transform: uppercase;
  margin: 1.5rem 0 2rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.hero-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 6px var(--red);
  display: inline-block;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  font-family: var(--ff-m); font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid;
  padding: .85rem 2rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .25s; cursor: pointer; background: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-red { border-color: var(--red); background: var(--red); color: #fff; }
.btn-red:hover { background: transparent; color: var(--red); box-shadow: 0 0 24px rgba(204,0,0,.3); }
.btn-ghost { border-color: var(--border-hi); color: var(--red); }
.btn-ghost:hover { border-color: var(--red); box-shadow: 0 0 18px rgba(204,0,0,.2); }

/* ── MEISTER BANNER ── */
.meister-banner {
  background: rgba(204,0,0,.055);
  border-top: 1px solid rgba(204,0,0,.3);
  border-bottom: 1px solid rgba(204,0,0,.3);
  padding: 3.5rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.meister-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(204,0,0,.13) 0%, transparent 68%);
  pointer-events: none;
}
.meister-stars {
  font-size: 1.05rem; color: var(--red); letter-spacing: .55rem;
  text-shadow: 0 0 18px rgba(204,0,0,.6); margin-bottom: .5rem;
}
.meister-pre {
  font-family: var(--ff-m); font-size: .56rem;
  letter-spacing: .2em; color: var(--text2);
  text-transform: uppercase; margin-bottom: .4rem;
  position: relative; z-index: 1;
}
.meister-word {
  font-family: var(--ff-d);
  font-size: clamp(5rem, 15vw, 13rem);
  color: var(--red); line-height: .85; letter-spacing: .05em;
  text-shadow: 0 0 80px rgba(204,0,0,.5), 0 0 160px rgba(204,0,0,.2);
  animation: mPulse 3s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes mPulse {
  0%,100% { text-shadow: 0 0 80px rgba(204,0,0,.5), 0 0 160px rgba(204,0,0,.2); }
  50% { text-shadow: 0 0 100px rgba(204,0,0,.7), 0 0 200px rgba(204,0,0,.3), 0 0 300px rgba(204,0,0,.1); }
}
.meister-aufstieg {
  font-family: var(--ff-m); font-size: .62rem;
  letter-spacing: .2em; color: var(--text2);
  text-transform: uppercase; margin-top: 1rem;
  position: relative; z-index: 1;
}
.meister-aufstieg strong { color: var(--red); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-cell {
  text-align: center; padding: 2rem 1rem;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--ff-d);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--red); line-height: 1; letter-spacing: .02em;
  text-shadow: 0 0 30px rgba(204,0,0,.4);
}
.stat-lbl {
  font-family: var(--ff-m); font-size: .5rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text2); margin-top: .5rem;
}

/* ── PAGE TILES (Home navigation) ── */
.page-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px,1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.page-tile {
  background: var(--bg2); padding: 2rem 1.5rem;
  text-decoration: none; color: var(--text);
  transition: background .25s; display: block;
  position: relative; overflow: hidden;
}
.page-tile::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red); transform: scaleY(0);
  transition: transform .25s; transform-origin: top;
}
.page-tile:hover { background: rgba(204,0,0,.05); }
.page-tile:hover::before { transform: scaleY(1); }
.page-tile-num {
  font-family: var(--ff-m); font-size: .48rem;
  color: var(--red); letter-spacing: .15em; margin-bottom: .75rem;
}
.page-tile-name {
  font-family: var(--ff-d); font-size: 1.75rem;
  letter-spacing: .04em; margin-bottom: .3rem;
}
.page-tile-sub { font-size: .75rem; color: var(--text2); }
.page-tile-arrow {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  color: var(--red); font-size: 1.1rem;
  opacity: 0; transform: translateX(-6px);
  transition: all .25s;
}
.page-tile:hover .page-tile-arrow { opacity: 1; transform: none; }

/* ── SUB-PAGE HERO ── */
.page-hero {
  padding: 80px 0 3rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .3;
}
.page-hero-title {
  font-family: var(--ff-d);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .88; letter-spacing: .02em; color: var(--text);
}
.page-hero-title em { font-style: normal; color: var(--red); }
.page-hero-ghost {
  position: absolute; right: -1rem; bottom: -1.5rem;
  font-family: var(--ff-d);
  font-size: clamp(8rem, 18vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(204,0,0,.05);
  pointer-events: none; user-select: none;
  letter-spacing: -.02em; line-height: 1;
}

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px,1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.player {
  background: var(--card); padding: 1.5rem 1.2rem;
  position: relative; overflow: hidden; transition: background .25s;
}
.player:hover { background: rgba(204,0,0,.045); }
.player-num {
  position: absolute; top: -.4rem; right: -.3rem;
  font-family: var(--ff-d); font-size: 5rem;
  color: var(--red); opacity: .06; pointer-events: none;
  line-height: 1; letter-spacing: -.02em;
  transition: opacity .3s, transform .3s;
}
.player:hover .player-num { opacity: .2; transform: scale(1.1); }
.player-pos {
  font-family: var(--ff-m); font-size: .47rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: .4rem;
}
.player-name { font-size: .92rem; font-weight: 700; line-height: 1.2; }
.player-jersey { font-family: var(--ff-m); font-size: .5rem; color: var(--text2); margin-top: .25rem; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 74px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-hi) 8%, var(--border-hi) 92%, transparent);
}
.tl-item {
  display: grid; grid-template-columns: 74px 1px 1fr;
  gap: 0 2rem; padding: 2rem 0; align-items: start;
}
.tl-year {
  font-family: var(--ff-d); font-size: 1.3rem;
  color: var(--text2); line-height: 1;
  text-align: right; padding-top: .2rem;
}
.tl-item.hi .tl-year { color: var(--red); }
.tl-dot-col { display: flex; justify-content: center; }
.tl-dot {
  width: 8px; height: 8px; margin-top: .4rem; flex-shrink: 0;
  background: var(--red); box-shadow: 0 0 10px var(--red);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.tl-item.hi .tl-dot { width: 12px; height: 12px; margin-top: .15rem; }
.tl-event { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.tl-desc { font-size: .82rem; color: var(--text2); line-height: 1.75; font-weight: 300; margin-bottom: .5rem; }
.tl-badge {
  display: inline-block; font-family: var(--ff-m); font-size: .44rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .15rem .5rem; margin-right: .3rem;
  border: 1px solid rgba(204,0,0,.22);
  background: rgba(204,0,0,.07); color: var(--red);
}
.tl-badge.g { background: rgba(136,136,136,.07); color: var(--gray); border-color: rgba(136,136,136,.22); }

/* ── SCHEDULE ── */
.schedule {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.match {
  display: grid;
  grid-template-columns: 110px 1fr auto 80px auto;
  align-items: center; gap: 1.5rem;
  padding: 1.1rem 1.5rem; background: var(--card);
  position: relative; transition: background .2s;
}
.match:hover { background: rgba(204,0,0,.04); }
.match.home::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); box-shadow: 0 0 12px rgba(204,0,0,.4);
}
.match.away::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--text2);
}
.match-date { font-family: var(--ff-m); font-size: .6rem; color: var(--text2); line-height: 1.7; }
.match-day  { font-size: .52rem; text-transform: uppercase; letter-spacing: .1em; }
.match-teams {
  display: flex; align-items: center; gap: .85rem;
  font-weight: 600; font-size: .88rem;
}
.match-vs { font-family: var(--ff-m); font-size: .5rem; color: var(--text2); letter-spacing: .1em; }
.match-self { color: var(--red); }
.match-loc { font-family: var(--ff-m); font-size: .52rem; color: var(--text2); letter-spacing: .07em; text-transform: uppercase; }
.match-time { font-family: var(--ff-d); font-size: 1.5rem; color: var(--red); letter-spacing: .05em; }
.match-tag  { font-family: var(--ff-m); font-size: .44rem; letter-spacing: .1em; text-transform: uppercase; padding: .18rem .5rem; border: 1px solid; }
.match-tag.home { color: var(--red); border-color: rgba(204,0,0,.28); background: rgba(204,0,0,.05); }
.match-tag.away { color: var(--text2); border-color: var(--border); }

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split-text p { font-size: .9rem; color: var(--text2); line-height: 1.85; font-weight: 300; margin-bottom: .9rem; }
.split-text p:last-child { margin-bottom: 0; }
.split-text strong { color: var(--text); font-weight: 600; }

/* ── INFO PANEL ── */
.info-panel {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border-hi);
}
.info-row { background: var(--card); padding: 1.1rem 1.5rem; }
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-lbl { font-family: var(--ff-m); font-size: .47rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text2); margin-bottom: .25rem; }
.info-val { font-size: .92rem; font-weight: 600; }
.info-sub { font-family: var(--ff-m); font-size: .52rem; color: var(--text2); margin-top: .15rem; }

/* ── CATEGORY ROWS ── */
.cats {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border); border: 1px solid var(--border-hi);
}
.cat {
  background: var(--card); padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s;
}
.cat:hover { background: rgba(204,0,0,.045); }
.cat-name { font-family: var(--ff-d); font-size: 1.55rem; letter-spacing: .05em; }
.cat-detail { font-family: var(--ff-m); font-size: .52rem; color: var(--text2); letter-spacing: .1em; text-transform: uppercase; text-align: right; line-height: 1.6; }

/* ── SPONSORS ── */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.sponsor {
  background: var(--card); padding: 2rem 1.25rem;
  text-align: center; min-height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background .25s;
}
.sponsor:hover { background: rgba(204,0,0,.045); }
.sponsor-name { font-family: var(--ff-d); font-size: 1.15rem; letter-spacing: .08em; }
.sponsor-tier { font-family: var(--ff-m); font-size: .47rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); margin-top: .3rem; }
.sponsor.open {
  border: 1px dashed rgba(204,0,0,.2); background: transparent;
  cursor: pointer;
}
.sponsor.open .sponsor-name { color: var(--text2); font-family: var(--ff-b); font-size: .85rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; }
.contact-head {
  font-family: var(--ff-d);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  line-height: .9; letter-spacing: .02em; margin-bottom: 1.25rem;
}
.contact-head em { font-style: normal; color: var(--red); text-shadow: 0 0 40px rgba(204,0,0,.3); }
.contact-sub { font-size: .88rem; color: var(--text2); line-height: 1.85; font-weight: 300; margin-bottom: 2rem; max-width: 420px; }

.contact-links {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border); border: 1px solid var(--border-hi);
}
.c-link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.4rem; background: var(--card);
  text-decoration: none; color: var(--text); transition: background .2s;
}
.c-link:hover { background: rgba(204,0,0,.045); }
.c-link-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; flex-shrink: 0;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.c-link-title { font-size: .85rem; font-weight: 600; }
.c-link-val { font-family: var(--ff-m); font-size: .52rem; color: var(--text2); margin-top: .12rem; display: block; }
.c-link-arrow { color: var(--red); font-size: .75rem; transition: transform .2s; margin-left: auto; }
.c-link:hover .c-link-arrow { transform: translateX(4px); }

/* ── UTILITY ── */
.note { font-family: var(--ff-m); font-size: .52rem; color: var(--text2); letter-spacing: .1em; text-transform: uppercase; text-align: center; margin-top: 1.25rem; }

/* ── FOOTER ── */
footer { padding: 2rem 0; border-top: 1px solid var(--border); position: relative; }
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .25;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; }
.foot-logo { font-family: var(--ff-d); font-size: 1.1rem; letter-spacing: .1em; color: var(--text2); }
.foot-logo em { font-style: normal; color: var(--red); }
.foot-copy { font-family: var(--ff-m); font-size: .5rem; color: var(--text2); letter-spacing: .07em; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { font-family: var(--ff-m); font-size: .5rem; color: var(--text2); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--red); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-logo-col { justify-content: center; order: -1; }
  .hero-logo-img { max-width: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(10,10,10,.97);
    justify-content: center; align-items: center;
    gap: 1.2rem; z-index: 498;
  }
  .nav-links.open li { list-style: none; }
  .nav-links.open a { font-size: 1.1rem; letter-spacing: .15em; padding: .6rem 1rem; color: var(--text2); }
  .nav-links.open a:hover { color: var(--red); }
  .mobile-toggle { display: flex; }

  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3),
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); }

  .split { grid-template-columns: 1fr; gap: 2rem; }

  .timeline::before { left: 58px; }
  .tl-item { grid-template-columns: 58px 1px 1fr; gap: 0 1.5rem; }
  .tl-year { font-size: 1.05rem; }

  .match { grid-template-columns: 90px 1fr; }
  .match-loc, .match-time, .match-tag { display: none; }

  .foot-inner { flex-direction: column; gap: .9rem; text-align: center; }
  .foot-links { justify-content: center; }

  .page-hero { padding: 70px 0 2rem; }
  .page-hero-ghost { display: none; }
  .sect { padding: 4.5rem 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
  .nav { padding: 0 1rem; }
  .nav-badge { display: none; }
  .hero-title { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .page-tiles { grid-template-columns: repeat(2,1fr); }
  .sect { padding: 3.5rem 0; }
  .sect-title { margin-bottom: 2rem; }
  .meister-word { font-size: clamp(4.5rem, 20vw, 8rem); }
  .sponsors-grid { grid-template-columns: repeat(2,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .glitch::before, .glitch::after { display: none; }
  @keyframes floatLogo { 0%,100% { transform: none; } }
  @keyframes mPulse { 0%,100% { text-shadow: 0 0 80px rgba(204,0,0,.5); } }
}
