/* ============================================================
   WINGS – Gameday-Startseite (Heimspiele DBBL / Pokal)
   Wird nur auf der Startseite am Spieltag geladen.
   ============================================================ */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --gd-data-font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --gd-muted-on-dark: #9fb2d3;
  /* Akzent-Ton mit ausreichend Kontrast für weiße Schrift (4.5:1) */
  --gd-accent-bg: #d4431a;
  --gd-accent-bg-hover: #b93a14;
  --gd-live: #ff6b6b;
  --gd-ok: #5fd38a;
  --gd-warn: #f59e0b;
  --gd-radius: 14px;
}

/* Zahlen: Spielstand, Uhrzeit, Countdown */
.gd-time,
.gd-score,
.gd-cd-num,
.gd-scorer-pts,
.gd-quarters {
  font-family: var(--gd-data-font);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Vorschau-Leiste (nur Redakteure) ---------- */
.gd-preview-bar {
  background: #fef3c7;
  color: #78350f;
  font-size: .85rem;
  border-bottom: 1px solid #f59e0b;
}
.gd-preview-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.gd-preview-label { font-weight: 800; }
.gd-preview-off { font-weight: 800; color: #b91c1c; }
.gd-preview-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
.gd-preview-links a {
  padding: .2rem .65rem;
  border-radius: 99px;
  border: 1px solid #d97706;
  color: #78350f;
  text-decoration: none;
  font-weight: 700;
}
.gd-preview-links a[aria-current="page"] { background: #78350f; border-color: #78350f; color: #fff; }

/* ---------- Leiste oben ---------- */
.gd-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding: .6rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gd-bar:hover { color: #fff; }
.gd-bar--home { background: var(--gd-accent-bg); }
a.gd-bar--home:hover { background: var(--gd-accent-bg-hover); }
.gd-bar--live {
  background: var(--wings-dark);
  border-top: 1px solid var(--wings-medium);
  justify-content: space-between;
}
.gd-bar-cta { font-weight: 700; text-transform: none; letter-spacing: 0; }
.gd-bar--live .gd-bar-cta { color: var(--gd-muted-on-dark); }
.gd-bar-text { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Status-Punkte ---------- */
.gd-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gd-muted-on-dark);
}
.gd-dot--live { background: var(--gd-live); animation: gdPulse 1.4s ease-in-out infinite; }
.gd-dot--ok   { background: var(--gd-ok); }
.gd-dot--warn { background: var(--gd-warn); }
@keyframes gdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gd-dot--live { animation: none; } }

/* ---------- Hero ---------- */
.gd-hero {
  background: var(--wings-primary);
  color: #fff;
  padding: 1.75rem 0 2rem;
}
.gd-hero-grid,
.gd-live-grid {
  display: grid;
  gap: 1.5rem;
}
.gd-matchup-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.gd-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gd-muted-on-dark);
}
.gd-matchup,
.gd-score-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
}
.gd-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  min-width: 0;
}
.gd-team-name {
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.gd-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.gd-logo img { width: 76%; height: 76%; object-fit: contain; }
.gd-logo--text {
  background: var(--wings-light);
  color: var(--wings-primary);
  font-weight: 800;
  font-size: 1.1rem;
}
.gd-logo--sm { width: 60px; height: 60px; }
.gd-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: 0 .25rem;
}
.gd-time { font-size: 3rem; line-height: 1; }
.gd-date { font-size: .8rem; color: var(--gd-muted-on-dark); white-space: nowrap; }

.gd-countdown { display: flex; gap: .6rem; }
.gd-cd-box {
  width: 72px;
  padding: .6rem 0;
  border-radius: 10px;
  background: var(--wings-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gd-cd-num { font-size: 2.1rem; line-height: 1; }
.gd-cd-label { font-size: .75rem; color: var(--gd-muted-on-dark); }

/* Ticket-Karte */
.gd-cta-card {
  background: var(--wings-dark);
  border-radius: var(--gd-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.gd-cta-title { font-family: var(--font-headline); font-size: 1.4rem; color: #fff; margin: 0; text-transform: uppercase; }
.gd-cta-text { margin: 0; color: var(--wings-light); line-height: 1.5; }
.gd-cta-divider { height: 1px; background: var(--wings-medium); }
.gd-cta-stream { margin: 0; display: flex; align-items: center; gap: .6rem; color: var(--wings-light); font-size: .95rem; }
.gd-cta-link { color: #fff; font-weight: 700; font-size: .9rem; }
.gd-cta-link:hover { color: var(--wings-light); }

/* ---------- Buttons ---------- */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .6rem 1.2rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.gd-btn--lg { min-height: 54px; font-size: 1.1rem; }
.gd-btn--accent { background: var(--gd-accent-bg); color: #fff; }
.gd-btn--accent:hover { background: var(--gd-accent-bg-hover); color: #fff; }
.gd-btn--primary { background: var(--wings-primary); color: #fff; }
.gd-btn--primary:hover { background: var(--wings-medium); color: #fff; }
.gd-btn--outline { border-color: var(--wings-primary); color: var(--wings-primary); background: transparent; }
.gd-btn--outline:hover { background: var(--wings-primary); color: #fff; }
.gd-btn--light { background: #fff; color: var(--wings-primary); }
.gd-btn--light:hover { background: var(--wings-light); color: var(--wings-primary); }

/* ---------- Abschnitte & Karten ---------- */
.gd-section { padding: 1.5rem 0 0; }
.gd-section + .gd-section { padding-top: 1.25rem; }
.gd-grid { display: grid; gap: 1.25rem; }
.gd-card {
  border-radius: var(--gd-radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  color: var(--wings-dark);
  text-decoration: none;
}
.gd-card p { margin: 0; line-height: 1.55; color: #374151; }
.gd-card--light { background: var(--wings-light); }
.gd-card--border { border: 1px solid var(--wings-light); background: #fff; }
a.gd-card:hover { color: var(--wings-dark); }
a.gd-card--border:hover { border-color: var(--wings-medium); }
.gd-h2 { font-family: var(--font-headline); font-size: 1.4rem; color: var(--wings-primary); margin: 0; text-transform: uppercase; }
.gd-h3 { font-size: 1.1rem; font-weight: 800; color: var(--wings-dark); margin: 0; font-family: var(--font-body); }

.gd-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gd-facts li { display: flex; gap: .8rem; }
.gd-facts i { color: var(--wings-primary); font-size: 1.25rem; line-height: 1.2; }
.gd-facts div { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; color: #374151; }
.gd-facts strong { color: var(--wings-dark); }
.gd-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.gd-icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fbe3da;
  color: #b93a14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Vorbericht */
.gd-story { padding: 0; overflow: hidden; gap: 0; }
.gd-story-img { display: block; aspect-ratio: 16 / 9; background: var(--wings-medium) center / cover no-repeat; }
.gd-story-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.gd-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #b93a14; }
.gd-story-title { font-size: 1.1rem; font-weight: 800; line-height: 1.3; color: var(--wings-dark); }

/* Letztes Spiel */
.gd-stat { gap: .3rem; }
.gd-stat-label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4b5563; }
.gd-stat-value { font-size: 1.1rem; color: var(--wings-dark); }
.gd-stat-note { font-size: .85rem; font-weight: 700; }
.gd-stat-note.is-win { color: #166534; }
.gd-stat-note.is-loss { color: #4b5563; }

/* ---------- Live ---------- */
.gd-hero--live { padding-top: 1.25rem; }
.gd-stream { display: flex; flex-direction: column; gap: .5rem; }
.gd-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--gd-radius);
  overflow: hidden;
  background: var(--wings-dark);
}
.gd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gd-video-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1rem 1.5rem;
  text-align: center;
}
.gd-live-tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .2rem .55rem;
  border-radius: 4px;
  background: #b91c1c;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gd-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--gd-accent-bg);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gd-play:hover { background: var(--gd-accent-bg-hover); }
.gd-video-note { margin: 0; max-width: 440px; font-size: .78rem; line-height: 1.45; color: var(--gd-muted-on-dark); }
.gd-video-note a { color: #fff; }
.gd-stream-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--wings-light); }
.gd-stream-meta a { color: #fff; font-weight: 700; }

.gd-live-side { display: flex; flex-direction: column; gap: 1rem; }
.gd-score-card {
  background: var(--wings-dark);
  border-radius: var(--gd-radius);
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.gd-score-head {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gd-muted-on-dark);
}
.gd-sim-note { color: #fcd34d; }
.gd-score { font-size: 3.25rem; line-height: 1; white-space: nowrap; }
.gd-score-sep { padding: 0 .08em; }
.gd-period { font-size: .85rem; font-weight: 800; color: var(--gd-live); white-space: nowrap; }
.gd-score-card[data-gd-state="wait"] .gd-period,
.gd-score-card[data-gd-state="nodata"] .gd-period { color: var(--gd-muted-on-dark); }
.gd-score-card[data-gd-state="stale"] .gd-score,
.gd-score-card[data-gd-state="nodata"] .gd-score { color: var(--gd-muted-on-dark); }
.gd-score-card[data-gd-state="stale"] .gd-period { color: var(--gd-muted-on-dark); }
.gd-score-card[data-gd-state="final"] .gd-period { color: var(--gd-ok); }
.gd-score-msg { margin: 0; text-align: center; font-size: .85rem; color: var(--gd-muted-on-dark); }
.gd-score-msg:empty { display: none; }

.gd-quarters table { width: 100%; border-collapse: collapse; font-size: .95rem; text-align: center; }
.gd-quarters th { font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: var(--gd-muted-on-dark); padding: .15rem 0; }
.gd-quarters td { padding: .15rem 0; }
.gd-quarters th:first-child,
.gd-quarters td:first-child { text-align: left; font-family: var(--font-body); font-weight: 800; font-size: .8rem; }

.gd-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.gd-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 99px;
  background: var(--wings-primary);
  font-size: .75rem;
  font-weight: 700;
}

.gd-scorers { background: #fff; border-radius: var(--gd-radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.gd-scorers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gd-scorer {
  background: #f3f4f6;
  border-radius: 10px;
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  color: var(--wings-dark);
  min-width: 0;
}
.gd-scorer--home { background: var(--wings-light); }
.gd-scorer-team { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #4b5563; }
.gd-scorer strong { font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.gd-scorer-pts { font-size: 1.6rem; color: var(--wings-primary); }

.gd-hall { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.gd-hall-body { flex: 1 1 260px; display: flex; flex-direction: column; gap: .25rem; }

/* ---------- ab Tablet / Desktop ---------- */
@media (min-width: 768px) {
  .gd-logo { width: 110px; height: 110px; }
  .gd-logo--sm { width: 60px; height: 60px; }
  .gd-time { font-size: 4.5rem; }
  .gd-cd-box { width: 92px; }
  .gd-cd-num { font-size: 2.6rem; }
  .gd-team-name { font-size: 1.1rem; }
  .gd-story { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .gd-story-img { aspect-ratio: auto; min-height: 100%; }
}

@media (min-width: 992px) {
  .gd-hero { padding: 2.75rem 0; }
  .gd-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem; align-items: center; }
  .gd-cta-card { padding: 1.75rem; }
  .gd-live-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.75rem; align-items: start; }
  .gd-live-grid--nostream { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .gd-hero--live { padding: 2.25rem 0 2.5rem; }
  .gd-score { font-size: 3.75rem; }
  .gd-section { padding-top: 2.25rem; }
  .gd-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .gd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
}
