/* ============================================================
   Rink Editorial — Design-System (Clubweb)
   Scoreboard-Editorial: dunkles Eis, Rot-CTA, Banden-Ticker,
   angeschnittene Ecken, tabellarische Ziffern
   Display: Bricolage Grotesque (editorial)
   Body:    Plus Jakarta Sans
   ============================================================ */

:root {
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --red-line: #FFE303;
  --blue-line: #c0c8d4;
}

/* ---------- Typografie ---------- */

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.tabular { font-variant-numeric: tabular-nums; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.kicker-dark::before {
  background: #000;
}

.display-headline {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

/* ---------- Angeschnittene Ecken (Sport-Ecken) ---------- */

.cut {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.cut-sm {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.cut-lg {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.cut-card {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* ---------- Hintergründe: Eisfläche & Grain ---------- */

.rink-grid {
  background-image:
    linear-gradient(var(--color-base-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-base-200) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Banden-Ticker ---------- */

.ticker {
  overflow: hidden;
  position: relative;
  background: var(--color-base-200);
  border-block: 1px solid var(--color-base-300);
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 1;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--color-base-100), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--color-base-100), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  padding-block: 0.7rem;
  animation: ticker-scroll 42s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-base-content);
}
.ticker-item b { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
.ticker-item .tick-sep { width: 6px; height: 6px; background: var(--color-base-300); transform: rotate(45deg); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Lauftext-Leiste (unter Header) ---------- */

.lauftext-band {
  overflow: hidden;
  position: relative;
  background: var(--color-base-200);
  border-bottom: 2px solid var(--color-primary);
}
.lauftext-band::before,
.lauftext-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 1;
  pointer-events: none;
}
.lauftext-band::before { left: 0; background: linear-gradient(90deg, var(--color-base-200), transparent); }
.lauftext-band::after { right: 0; background: linear-gradient(270deg, var(--color-base-200), transparent); }

.lauftext-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  padding-block: 0.55rem;
  animation: lauftext-scroll 28s linear infinite;
  will-change: transform;
}
.lauftext-band:hover .lauftext-track { animation-play-state: paused; }

.lauftext-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-base-content);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lauftext-item .lauftext-dot {
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes lauftext-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .lauftext-track { animation: none; }
}

/* ---------- Hero-Overlay-Animation ---------- */

@keyframes hero-overlay-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [style*="hero-overlay-in"] { animation: none; clip-path: none; }
}

/* ---------- Scoreboard-Bausteine ---------- */

.score-card {
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.score-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px dashed var(--color-base-300);
  transition: background-color 0.15s ease;
}
.score-line:last-child { border-bottom: 0; }
.score-line:hover { background: var(--color-base-300); }

.score-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary);
  min-width: 1.75rem;
}

.score-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.score-result {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: 0.2rem 0.55rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.scoreboard-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--color-base-300);
  border-bottom: 2px solid var(--color-base-300);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-base-content);
}

/* ---------- Buttons ---------- */

.btn-cta {
  position: relative;
  overflow: hidden;
}
.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-cta:hover::after { left: 160%; }

/* ---------- Reveal-Animationen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .live-pill::before { animation: none; }
}

/* ---------- Hero ---------- */

.hero-rink {
  position: relative;
  overflow: hidden;
}
.hero-rink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(192, 200, 212, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(255, 227, 3, 0.07), transparent 60%);
  pointer-events: none;
}

.hero-faceoff {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px dashed rgba(192, 200, 212, 0.12);
  border-radius: 999px;
  pointer-events: none;
}
.hero-faceoff::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(192, 200, 212, 0.08);
  border-radius: 999px;
}

/* ---------- Feature-Zeilen (Editorial) ---------- */

.feature-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--color-base-300);
  transition: padding-left 0.25s ease;
}
.feature-line:first-child { border-top: 1px solid var(--color-base-300); }
.feature-line:hover { padding-left: 0.75rem; }
.feature-line .f-arrow {
  opacity: 0;
  transform: translateX(-10px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--color-primary);
}
.feature-line:hover .f-arrow { opacity: 1; transform: translateX(0) scale(1); }
.feature-line.fl-yellow { transition: padding-left 0.25s ease, background-color 0.25s ease; }
.feature-line.fl-yellow:hover { background: rgba(0, 0, 0, 0.06); padding-left: 0; }

/* ---------- Telegram-Mockup ---------- */

.wa-bubble {
  position: relative;
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  padding: 0.8rem 1rem;
  max-width: 85%;
}
.wa-bubble::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  background: var(--color-base-200);
  border-left: 1px solid var(--color-base-300);
  border-bottom: 1px solid var(--color-base-300);
  transform: rotate(45deg);
}
.wa-sent {
  margin-left: auto;
  background: var(--color-primary);
  border: 0;
}
.wa-sent::after {
  left: auto;
  right: -5px;
  background: var(--color-primary);
  border: 0;
  transform: rotate(225deg);
}

/* ---------- Preiszeile (Scoreboard-Stil) ---------- */

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-200);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.price-row:hover { border-color: var(--color-primary); }
.price-hero {
  background: linear-gradient(180deg, rgba(255, 227, 3, 0.08), transparent 70%), var(--color-base-200);
  border-color: rgba(255, 227, 3, 0.55);
}

/* ---------- Footer-Band ---------- */

.footer-band {
  background: var(--color-base-200);
  border-top: 1px solid var(--color-base-300);
}

/* ---------- Mobile Overlow-Fix ---------- */
@media (max-width: 639px) {
  .price-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem; }
  .price-row .text-right { text-align: left; }
  .score-card { max-width: 100%; word-break: break-word; }
  select, input, textarea { max-width: 100%; }
  .scoreboard-title { flex-wrap: wrap; }
  .feature-line { gap: 0.75rem; padding: 1rem 0; }
  .feature-line .score-num { min-width: 1.25rem; }
  .feature-line.tight-b { padding-bottom: 0.35rem; }
}
/* ---------- Hero Mobile Stadium-BG ---------- */
.hero-mobile-stadium { position: relative; border-radius: 0.375rem; overflow: hidden; }
.hero-desktop-stadium { position: relative; }
@media (max-width: 1023px) {
  .hero-mobile-stadium {
    background-image: url('/assets/01a0144a-9d32-7c92-b68a-d80b8d652976/Clubweb%20stadio.png?v=1787046829');
    background-size: cover;
    background-position: center;
    padding: 3rem 1.25rem 1.25rem;
    margin: -1.25rem;
  }
  .hero-mobile-stadium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, oklch(9.5% 0.018 250 / 0.98) 0%, oklch(9.5% 0.018 250 / 0.55) 18%, oklch(9.5% 0.018 250 / 0.88) 55%, oklch(9.5% 0.018 250 / 0.94) 100%);
    pointer-events: none;
  }
  .hero-mobile-stadium > * { position: relative; z-index: 1; }
}
@media (min-width: 1024px) {
  .hero-desktop-stadium {
    background-image: url('/assets/01a014a0-9b6b-73a6-b775-16091e2b9b47/Clubweb%20stadio%20desktop.jpg');
    background-size: cover;
    background-position: center;
  }
  .hero-desktop-stadium::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, oklch(9.5% 0.018 250 / 0.97) 0%, oklch(9.5% 0.018 250 / 0.6) 22%, oklch(9.5% 0.018 250 / 0.86) 55%, oklch(9.5% 0.018 250 / 0.95) 100%);
    pointer-events: none;
  }
  .hero-desktop-stadium > * { position: relative; z-index: 1; }
  .feature-line.no-t-lg { border-top: 0; }
}

/* ---------- Horizontalen Überlauf global kappen ---------- */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* ---------- Gamecenter-Demo (Phone-Mockup, Auto-Loop) ---------- */

.gc-phone {
  position: relative;
  width: 100%;
  border-radius: 1.6rem;
  border: 2px solid rgba(0, 0, 0, 0.55);
  background: #070D17;
  padding: 1.6rem 0.65rem 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.gc-phone::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.gc-screen {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.gc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--color-base-300);
}
.gc-logo {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.gc-logo .gc-dot {
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.gc-stage {
  position: relative;
  min-height: 370px;
  overflow: hidden;
}

.gc-scene {
  position: absolute;
  inset: 0;
  padding: 0.9rem 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.gc-scene.gc-active {
  opacity: 1;
  transform: translateY(0);
}

.gc-kicker {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.7rem;
}

.gc-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px dashed var(--color-base-300);
}
.gc-team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.gc-team-name.gc-home { color: var(--color-primary); }
.gc-score {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  display: inline-block;
}
.gc-score.gc-flash { animation: gc-flash 0.6s ease; }
.gc-score.gc-flash .gc-home-score { color: var(--color-primary); }
@keyframes gc-flash {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.gc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.25rem 0.7rem;
  font-size: 0.68rem;
  color: var(--color-base-content);
}
.gc-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
}

.gc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.5rem;
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease;
}
.gc-pnum {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-secondary);
}
.gc-pname { flex: 1; font-weight: 600; font-size: 0.75rem; color: #fff; }
.gc-ppts {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-primary);
}
.gc-row.gc-targeting { border-color: var(--color-primary); }

.gc-player-card {
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  border-radius: 0.5rem;
  padding: 0.9rem;
}
.gc-pname-lg {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.05rem;
  color: #fff;
}
.gc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.8rem;
  text-align: center;
}
.gc-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.3rem;
  color: var(--color-primary);
}
.gc-stats span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-base-content);
}

.gc-table { display: flex; flex-direction: column; gap: 0.3rem; }
.gc-trow {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.gc-trow span:nth-child(1) {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
}
.gc-trow span:nth-child(3) {
  font-family: var(--font-display);
  font-weight: 700;
}
.gc-trow.gc-home-row {
  border-color: rgba(255, 227, 3, 0.5);
  background: rgba(255, 227, 3, 0.12);
}
.gc-trow.gc-home-row span { color: var(--color-primary); }

.gc-news-card {
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  border-radius: 0.5rem;
  padding: 0.9rem;
}
.gc-news-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.95rem;
  color: #fff;
}
.gc-news-text { margin-top: 0.35rem; font-size: 0.72rem; color: var(--color-base-content); }
.gc-news-time { margin-top: 0.6rem; font-size: 0.62rem; color: var(--color-base-content); }

.gc-cursor {
  position: absolute;
  z-index: 30;
  top: -20px;
  left: -20px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transition: top 0.7s cubic-bezier(0.5, 0, 0.3, 1), left 0.7s cubic-bezier(0.5, 0, 0.3, 1), opacity 0.3s ease;
}
.gc-phone.gc-running .gc-cursor { opacity: 1; }
.gc-cursor svg { display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.gc-cursor.gc-clicking svg { animation: gc-click 0.3s ease; }
@keyframes gc-click {
  50% { transform: scale(0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .gc-scene { transition: none; }
  .gc-cursor { display: none; }
  .gc-score.gc-flash { animation: none; }
}