/* styles.css */

/* === Basis: Mobile-First Layout für Smartphones === */

@font-face {
  font-family: "Martius-Regular";
  src: url("/static/fonts/Martius-Regular.woff2") format("woff2"),
       url("/static/fonts/Martius-Regular.woff") format("woff"),
       url("/static/fonts/Martius-Regular.ttf") format("truetype"),
       url("/static/fonts/Martius-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


html {
  font-size: 14px;
}

body {
  min-height: 100vh;     /* Fallback */
  min-height: 100dvh;    /* moderne Browser, besser auf Mobile */
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 14);
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* Entfernt den blauen Tap-Highlight-Effekt auf mobilen Geräten */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Entfernt den blauen Outline-Rand bei Klick/Fokus */
a, button { outline: none; }
a:focus, button:focus { outline: none; }



/* === Update-/Wartungsseite === */

.update-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top, rgba(220, 200, 161, 0.09), transparent 34%),
    linear-gradient(180deg, rgb(14, 14, 14) 0%, rgb(18, 18, 18) 100%);
}

.update-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-sizing: border-box;
}

.update-card {
  position: relative;
  width: 100%;
  max-width: 700px;
  padding: 34px 26px 28px;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(38, 38, 38, 0.96), rgba(24, 24, 24, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.04);
  box-sizing: border-box;
}

.update-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.22;
}

.update-glow-1 {
  width: 180px;
  height: 180px;
  top: -50px;
  left: -30px;
  background: rgba(220, 200, 161, 0.18);
}

.update-glow-2 {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -90px;
  background: rgba(220, 200, 161, 0.10);
}

.update-logo-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.update-logo {
  width: auto;
  height: 86px;
  max-width: 260px;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.28));
}

.update-logo-text {
  margin-top: 6px;
  font-family: "Martius-Regular";
  font-size: 1.8rem;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(220, 200, 161, 0.10);
  border: 1px solid rgba(220, 200, 161, 0.22);
  color: #dcc8a1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.update-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dcc8a1;
  box-shadow: 0 0 10px rgba(220, 200, 161, 0.8);
  animation: updatePulseDot 1.5s ease-in-out infinite;
}

.update-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Martius-Regular";
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 500;
}

.update-text {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #c8c8c8;
}

.update-loader-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
}

.update-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.08);
  border-top-color: #dcc8a1;
  border-right-color: rgba(220, 200, 161, 0.55);
  animation: updateSpin 1.15s linear infinite;
}

.update-spinner-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(220, 200, 161, 0.28), rgba(220, 200, 161, 0.05));
  box-shadow:
    inset 0 0 18px rgba(220, 200, 161, 0.12),
    0 0 18px rgba(220, 200, 161, 0.05);
  animation: updateBreath 1.8s ease-in-out infinite;
}

.update-progress-block {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

.update-progress-topline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.update-progress-label {
  font-size: 0.78rem;
  color: #9f9f9f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.update-progress-state {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
}

.update-progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.update-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18%;
  border-radius: 999px;
  background: linear-gradient(90deg, #dcc8a1 0%, #f1dfbc 55%, #dcc8a1 100%);
  box-shadow: 0 0 16px rgba(220, 200, 161, 0.18);
  transition: width 0.45s ease;
}

.update-progress-fill.is-step-start {
  width: 18%;
}

.update-progress-fill.is-step-update {
  width: 42%;
}

.update-progress-fill.is-step-tips {
  width: 78%;
}

.update-progress-fill.is-step-done {
  width: 100%;
}

.update-progress-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: updateShine 2s linear infinite;
  pointer-events: none;
}

.update-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.update-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b8b8b;
  font-size: 0.88rem;
  font-weight: 600;
}

.update-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.update-step-item.is-active {
  color: #ffffff;
}

.update-step-item.is-active .update-step-dot {
  background: #dcc8a1;
  box-shadow: 0 0 10px rgba(220, 200, 161, 0.7);
}

.update-error {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(213, 0, 0, 0.08);
  border: 1px solid rgba(213, 0, 0, 0.18);
  color: #ff9d9d;
  font-size: 0.94rem;
  line-height: 1.55;
}

.update-footer-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
}

@keyframes updateSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes updateBreath {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes updateShine {
  0% {
    transform: translateX(-140px);
  }
  100% {
    transform: translateX(760px);
  }
}

@keyframes updatePulseDot {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .update-shell {
    padding: 16px;
  }

  .update-card {
    padding: 28px 18px 24px;
    border-radius: 18px;
  }

  .update-logo {
    height: 72px;
    max-width: 180px;
  }

  .update-title {
    font-size: 2.15rem;
    line-height: 1.08;
  }

  .update-text {
    font-size: 0.96rem;
    margin-bottom: 22px;
  }

  .update-loader-wrap {
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
  }

  .update-spinner-core {
    inset: 15px;
  }

  .update-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .update-step-item {
    font-size: 0.86rem;
  }
}

/* === Navigation === */

:root { --nav-h: 80px; } /* Höhe deiner Navbar */

.navbar {
  background: linear-gradient(rgb(26, 26, 26), rgb(14, 14, 14));
  position: relative;   /* wichtig, damit z-index wirkt */
  z-index: 1100;        /* höher als Overlay */
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 auto;
  margin-top: 15px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.nav-logo-img { height: 60px; }

/* === Burger Icon (2 Striche → X) === */
.burger {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger-lines {
  position: relative; width: 26px; height: 2px;
  background: transparent; /* mittlere Linie nicht nötig */
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 2px;
  background: #dcc8a1;
  transition: transform 300ms ease, top 300ms ease, opacity 250ms ease;
}

/* Ausgangszustand: zwei Striche */
.burger-lines::before { top: -6px; }
.burger-lines::after  { top:  6px; }

/* Offen: zu X drehen */
.burger.is-open .burger-lines::before { top: 0; transform: rotate(45deg); }
.burger.is-open .burger-lines::after  { top: 0; transform: rotate(-45deg); }

/* Touch etwas größer machen */
@media (pointer: coarse) {
  .burger { width: 52px; height: 52px; }
}

/* Barrierefreiheit: reduzierte Animation */
@media (prefers-reduced-motion: reduce) {
  .burger-lines::before,
  .burger-lines::after { transition: none; }
}

:root { --nav-h: 80px; } /* eine zentrale Höhe */

/* === Mobile Navigation als seitliches Panel (Burger) === */
#navLinks {
  position: fixed;
  top: 66px;
  right: 0;
  /* sinnvolle, dynamische Größe statt 200x80 */
  width: min(78vw, 150px);
  max-width: 92vw;
  height: auto;
  max-height: calc(100dvh - var(--nav-h));
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(rgba(32, 32, 32, 0.9), rgba(26, 26, 26, 0.9));
  border-radius: 14px 0 0 14px; /* links rund */
  padding: 22px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  z-index: 1001;
  transform: translateX(100%);      /* Start: draußen */
  transition: transform 300ms ease; /* Slide-In */
  will-change: transform;
  pointer-events: none;             /* unsichtbar = nicht klickbar */
}
body.nav-open #navLinks {
  transform: translateX(0);         /* reinfahren */
  pointer-events: auto;
}

/* Overlay fürs Abdunkeln */
.navbar { position: relative; z-index: 2000; }
#navOverlay {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 1000;
}
body.nav-open #navOverlay { opacity: 1; pointer-events: auto; }

/* === Links im Burger-Menü (mit vertikalem Indicator links) === */
#navLinks li { list-style: none; }

#navLinks li a {
  position: relative;
  display: block;
  color: #ffffff;
  font-family: "Martius-Regular";
  font-weight: 500;
  font-size: 1.5rem;
  text-decoration: none;

  /* Platz für den linken Strich schaffen */
  padding: 12px 10px 12px 20px;
  border-radius: 10px;

  transition: background 0.25s ease, color 0.25s ease;
}

/* Hover-Hintergrund (dezent) */
#navLinks li a:hover {
  color: #dcc8a1;
}

/* Vertikaler Strich links (Hover + Active animiert) */
#navLinks li a::before {
  content: "";
  position: absolute;
  left: 8px;                 /* sitzt innerhalb des Paddings */
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;                 /* animiert von 0 -> 70% */
  background: #dcc8a1;     
  border-radius: 999px;
  transition: height 0.3s ease;
}

#navLinks li a:hover::before { height: 70%; }
#navLinks li a.active::before { height: 70%; }

/* Tastatur-Zugänglichkeit */
#navLinks li a:focus-visible {
  outline: 2px solid #dcc8a1;
  outline-offset: 3px;
}

/* Barrierefreiheit: reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  #navLinks,
  #navOverlay,
  #navLinks li a::before { transition: none; }
}


/* === Layout Wrapper === */

.main-wrapper {
  padding: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

/* === Titel === */

.page-title, .tipp-title {
  font-size: 2.5rem;
  font-family: "Martius-Regular";
  text-align: center;
  color: white;
  margin-top: 30px;
  margin-bottom: 20px;
}

.no-games-msg {
  text-align: center;
  margin: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right,rgb(26, 26, 26), rgb(32, 32, 32));
  border-radius: 10px;
  font-size: 1.1rem;
  color: #ffffff;
}

/* Top-Scroll */
.top-scroll { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
.top-scroll::-webkit-scrollbar { display:none; }
.top-scroll .match-card { flex:0 0 70%; max-width: 440px; scroll-snap-align:center; }

/* === KPI-Leiste Startseite === */
.home-kpi-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;

  width: calc(100% - 20px);
  max-width: 1200px;
  margin: 8px auto 18px;
  padding: 10px 14px;
  box-sizing: border-box;

  background: linear-gradient(to right, rgb(26, 26, 26), rgb(32, 32, 32));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.home-kpi-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.home-kpi-block-left,
.home-kpi-block-right {
  align-items: center;
  text-align: center;
}

.home-kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9f9f9f;
  line-height: 1;
}

.home-kpi-value {
  font-family: "Martius-Regular";
  font-size: 1.2rem;
  line-height: 1;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
}

.home-kpi-value.is-positive {
  color: #39d353;
}

.home-kpi-value.is-negative {
  color: #ff5c5c;
}

.home-kpi-value.is-neutral {
  color: #ffffff;
}

.home-kpi-center {
  display: flex;
  flex-direction: column;   /* Mobile: 2-zeilig */
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  padding: 0 14px;
  position: relative;
}

.home-kpi-center::before,
.home-kpi-center::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.08);
}

.home-kpi-center::before {
  left: 0;
}

.home-kpi-center::after {
  right: 0;
}

.home-kpi-title-line {
  display: block;
  font-family: "Martius-Regular";
  color: #ffffff;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: 1.08rem;
}

/* Ab Tablet/Desktop: Titel EINZEILIG */
@media (min-width: 768px) {
  .home-kpi-strip {
    max-width: 920px;
    padding: 11px 18px;
  }

  .home-kpi-label {
    font-size: 0.78rem;
  }

  .home-kpi-value {
    font-size: 1.4rem;
  }

  .home-kpi-center {
    flex-direction: row;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .home-kpi-title-line {
    display: inline;
    font-size: 1.6rem;
  }
}

@media (min-width: 1024px) {
  .home-kpi-strip {
    max-width: 1200px;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 480px) {
  .home-kpi-strip {
    gap: 8px;
    padding: 10px 12px;
  }

  .home-kpi-label {
    font-size: 0.66rem;
  }

  .home-kpi-value {
    font-size: 1.4rem;
  }

  .home-kpi-center {
    padding: 0 10px;
  }

  .home-kpi-center::before,
  .home-kpi-center::after {
    height: 24px;
  }

  .home-kpi-title-line {
    font-size: 1.08rem;
  }
}

/***** LIGA-AKKORDEON *****/
.liga-accordion-wrapper { margin-bottom: 10px; }
.liga-accordion { margin: 0; margin-bottom: 20px; }

.liga-acc-header {
  display: flex;
  align-items: center;
  background: linear-gradient(to right,rgb(26, 26, 26), rgb(32, 32, 32));
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.liga-acc-badge {
  background: rgba(26, 26, 26);
  padding: 0px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.liga-acc-logo { width: 40px; height: 40px; object-fit: contain; display: block; }

.liga-acc-name {
  flex: 1;
  padding: 0 10px;
  color: white;
  font-weight: 600;
  font-size: 1.4rem;
  font-family: "Martius-Regular"
}

.liga-acc-count {
  margin-right: 8px;
  font-size: 0.8rem;
  color: #ccc;
  opacity: 0.9;
  white-space: nowrap;
}

.liga-acc-arrow {
  padding: 0 12px;
  color: #dcc8a1;
  font-size: 1rem;
  transition: transform 0.5s ease;
}
.liga-accordion.open .liga-acc-arrow { transform: rotate(180deg); }

.liga-acc-body { display: none; padding-top: 12px; }
.liga-accordion.open .liga-acc-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 12px 0;
}

/* Karten */
.match-card {
  background: linear-gradient(rgb(32, 32, 32), rgb(26, 26, 26));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 12px;
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

/*.card-head { display:flex; align-items:center; gap:6px; font-weight:500; color:#ccff00; font-size:.82rem; line-height:1.05; padding: 2px 0; }*/
.card-head {
  display: grid !important;
  grid-template-columns: auto auto auto 1fr auto; /* Datum | | Zeit | Spacer | Badge */
  align-items: center;
  column-gap: 6px;
  width: 100%;
  font-weight: 500; 
  color: #dcc8a1; 
  font-size: .78rem;      /* leicht kleiner */
  line-height: 1.1;       /* enger */
  padding: 1px 4px;       /* kompakter */
}

.head-spacer{ display:block; }
/* Standard-Badges rechts ausrichten */
.card-head .align-right {
  margin-left: auto; /* schiebt Badge nach rechts */
}
.card-sep { opacity:.7; }
.card-divider { margin: 4px 0; height: 1px; background: rgba(255,255,255,0.12); border-radius:1px; }
.card-matchup { font-family: "Martius-Regular"; font-size: 1.5rem; font-weight:500; line-height: 1.15; margin: 2px 0 0; }
.card-matchup span { color:#dcc8a1; }

.tip-list { list-style:none; padding:0; margin:4px 0 0; display:flex; flex-direction:column; gap:4px; }
.tip-item { display:flex; align-items:center; gap:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color: rgb(200,200,200); }
.tip-index { flex-shrink:0; color: white; font-size:.8rem; opacity:.85; }
.tip-text { flex:1; font-size:.8rem; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Risiko-Badges */
.risk-badge-card { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  width: 36px;           
  height: 15px;   
  border-radius: 6px; 
  font-size: 0.6rem;  
  margin-left: 6px; 
  line-height: 1;      
}

/* Temperatur-Badge neben Risiko auf den Karten */
.tip-temp{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 15px;                 /* gleich hoch wie risk-badge-card */
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}

/* Farben je nach Score */
.tip-temp.is-neutral{
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}

.tip-temp.is-hot{
  border-color: rgba(255, 59, 48, 0.95);
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.06);
}

.tip-temp.is-cold{
  border-color: rgba(120, 200, 255, 0.95);
  color: rgba(120, 200, 255, 0.95);
  background: rgba(120, 200, 255, 0.06);
}

/* Ligarandfarben */
.match-card.liga-bl  { border-color: #d2000c; }
.match-card.liga-bl2 { border-color: #d2000c; }
.match-card.liga-pl  { border-color: #3d195b; }
.match-card.liga-ch  { border-color: #0d0e5f; }
.match-card.liga-ll  { border-color: #ff4b44; }
.match-card.liga-ll2 { border-color: #00d5d7; }
.match-card.liga-sa  { border-color: #0b87fb; }
.match-card.liga-l1  { border-color: #085eff; }
.match-card.liga-sl  { border-color: #f60014; }
.match-card.liga-lp  { border-color: #00225a; }
.match-card.liga-jp  { border-color: #14042b; }
.match-card.liga-ed  { border-color: #152d5d; }

.match-card.liga-dfb  { border-color: #009f5f; }
.match-card.liga-fac  { border-color: #d71921; }
.match-card.liga-cdr  { border-color: #ff002e; }
.match-card.liga-cit  { border-color: #001b6b; }
.match-card.liga-cdf  { border-color: #1d2262; }

.match-card.liga-ucl  { border-color: #0016a0; }
.match-card.liga-uel  { border-color: #fd6803; }
.match-card.liga-uecl { border-color: #00be14; }
.match-card.liga-euro { border-color: #0b5394; } /* Farbe muss noch angepasst werden */
.match-card.liga-wc   { border-color: #d4af37; } /* Farbe muss noch angepasst werden */
.match-card.liga-eq   { border-color: #0b5394; } /* Farbe muss noch angepasst werden */
.match-card.liga-wcq  { border-color: #b99b63; }
.match-card.liga-unl  { border-color: #1b2234; }

/* =========================
   Kombi-Tipps Startseite
   ========================= */

.combo-section {
  max-width: 1200px;
  margin: 26px auto 0;
}

.combo-title {
  margin-top: 10px;
  margin-bottom: 18px;
}

.combo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.combo-card {
  background: linear-gradient(rgb(32, 32, 32), rgb(26, 26, 26));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px;
  color: white;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.combo-card.combo-sicher {
  border-color: rgba(220, 200, 161, 0.85);
}

.combo-card.combo-value {
  border-color: rgba(220, 200, 161, 0.85);
}

.combo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.combo-mode-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.combo-mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-mode-title {
  font-family: "Martius-Regular";
  font-size: 1.45rem;
  line-height: 1;
  color: #ffffff;
}

.combo-mode-subtitle {
  font-size: 0.82rem;
  color: #c8c8c8;
  line-height: 1.35;
}

.combo-quote-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.combo-quote-label {
  font-size: 0.78rem;
  color: #c8c8c8;
  margin-bottom: 4px;
}

.combo-quote {
  font-family: "Martius-Regular";
  font-size: 2.3rem;
  line-height: 1;
  color: #dcc8a1;
}

.combo-card-note {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.74rem;
  line-height: 1.4;
  color: #9f9f9f;
  margin-top: auto;
}

.combo-card.combo-value .combo-leg-list {
  padding-bottom: 14px;
}

.combo-leg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.combo-leg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.combo-leg:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.combo-leg-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.combo-leg-index {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.combo-leg-texts {
  min-width: 0;
  flex: 1;
}

.combo-leg-match {
  font-family: "Martius-Regular";
  font-size: 1.05rem;
  line-height: 1.15;
  color: #ffffff;
}

.combo-leg-match span {
  color: #dcc8a1;
}

.combo-leg-tip {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #c8c8c8;
  line-height: 1.35;
}

.combo-leg-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.combo-leg-odds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.combo-mode-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.combo-overall-result {
  display: inline-flex;
  align-items: center;
}

.combo-leg-result {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

@media (min-width: 768px) {
  .combo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .combo-mode-title {
    font-size: 1.55rem;
  }
}

@media (max-width: 600px) {
  .combo-head {
    flex-direction: column;
    gap: 14px;
  }

  .combo-quote-box {
    align-items: flex-start;
  }

  @media (max-width: 600px) {
  .combo-quote-note {
    text-align: left;
    max-width: 220px;
  }
}

  .combo-mode-title {
    font-size: 1.3rem;
  }

  .combo-leg {
    align-items: flex-start;
  }

  .combo-leg-side {
    margin-top: 2px;
  }
}

/* === Button === */
.toggle-btn {
  display: block;
  background: #dcc8a1;
  color: #000;
  border: 1px solid #dcc8a1;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 24px auto 0;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  min-height: 48px;
  min-width: 120px;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.2s ease-in-out;
}


/* === Scroll Top Button === */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  min-width: 40px;         
  height: 40px;           
  padding: 0 16px;
  border: none;
  border-radius: 11px;    
  background: #bdbdbd48;
  color: #dcc8a1;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1500;
}

/* sichtbar */
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hover / Active Effekte */
#scrollTopBtn:hover {
  background: #ffffff48;
}
#scrollTopBtn:active {
  transform: scale(0.97);
}

/* Feste Positionen, aber inhaltsbreite Spalten zentriert */
.day-switch.fixed {
  display: grid;
  grid-template-columns: max-content auto max-content;  /* nur so breit wie der Text */
  justify-content: center;                               /* gesamtes Grid zentrieren */
  align-items: baseline;
  column-gap: clamp(16px, 6vw, 56px);                    /* dynamischer Abstand */
  margin: 18px 0 8px;
  white-space: nowrap;
}


/* feste Ausrichtung je Spalte */
.btn-day.left   { justify-self: start;  }
.btn-day.center { justify-self: center; }
.btn-day.right  { justify-self: end;    }

/* Grundstil wie „Titel“ */
.btn-day {
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #c8c8c8;
  transition: transform .15s ease, opacity .15s ease;
}

/* aktive (große) Überschrift */
.btn-day.primary {
  font-family: "Martius-Regular";
  font-size: clamp(2.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #ffffff;
}

/* kleinere „Neben“-Überschriften */
.btn-day.secondary {
  font-family: "Martius-Regular";
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
  opacity: 0.75;
}
.btn-day.secondary:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-day.active {
  pointer-events: none;
  cursor: default;
}

.disabled-card { pointer-events: none; cursor: default; }

/* Vorschau-Badge (optional angleichen) */
.preview-badge {
  margin-left: 8px; padding: 2px 8px; font-size: 0.8rem; border-radius: 999px;
  border: 1px solid #dcc8a175; color: #dcc8a1; background: rgba(255,255,255,0.05);
}

/* Endstand-Badge */
.score-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;  /* "Endstand:" in weiß */
}

.score-badge .score-val {
  font-size: 1.1rem;
  color: #dcc8a1;  /* Ergebnis in Neon-Grün */
  font-weight: 700;
}

.day-nav { display:flex; gap:10px; justify-content:center; margin: 16px 0 8px; }
.day-nav a {
  padding: 6px 12px; border-radius: 10px; text-decoration:none;
  color:#e8ffe8; border:1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
}
.day-nav a.active { border-color: #dcc8a175; color:#dcc8a1; }

/* PNG-Result-Icons */
.tip-result-icon{
  width: 15px; height: 15px;
  margin-left: 2px;
  display: inline-block;
  vertical-align: -2px;
  object-fit: contain;
}


/* === Tipp-Seite === */

.tipp-title { font-size: 2rem; text-align:center; margin-bottom:30px; color:#ffffff; }
.vs-text { color: #dcc8a1; }

.section-info-stat-title { text-align: center; font-family: "Martius-Regular"; font-size: 2rem; margin: 5px;}

.spielinfo-box,
.statistik-box {
  background: linear-gradient(rgb(32, 32, 32), rgb(26, 26, 26));
  border-radius: 18px;
  padding: 20px;
  margin: 30px 5px;
  color: white;
}

.spiel-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.info-row {
  display: block;              /* jedes Paar untereinander */
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-row:last-child { border-bottom: none; }

.info-key {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-right: 6px;
}

.info-val {
  color: #ccc;
  font-size: 0.92rem;
}

/* Statistik-Zeilen & Form */
.section-title-center { text-align: center; font-family: "Martius-Regular"; font-size: 2rem; margin: 5px;}

.statistik-zeile {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-variant-numeric: tabular-nums;
}

.highlight { color: #dcc8a1; font-weight: bold; }
.statistik-zeile:last-child { border-bottom: none; }
.statistik-header { font-weight: bold; font-size: 1rem; color: #ffffff; border-bottom: 2px solid rgba(255,255,255,0.1); }
.statistik-label { text-align: center; width: 33%; color: #ffffff; font-variant-numeric: tabular-nums; }
.statistik-team { width: 33%; text-align: center; font-weight: bold; font-variant-numeric: tabular-nums;}
.statistik-zeile > div { width: 33%; text-align: center; }

.form-box {
  display: inline-flex;              /* zentriert den Text */
  align-items: center;
  justify-content: center;
  width: 15px;                       /* feste Breite */
  height: 15px;                      /* gleiche Höhe → Quadrat */
  margin: 0 1px;
  border-radius: 2px;                /* leicht abgerundet */
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  line-height: 1;                    /* verhindert Vertikal-Shift */
}

.form-win { background-color: #28a745; }
.form-draw { background-color: #ffc107; color: #000; }
.form-loss { background-color: #dc3545; }



.h2h-accordion {
  margin-top: 20px;
}

.h2h-toggle-btn {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.h2h-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
}

.h2h-toggle-btn.is-active {
  border-color: #fff;
}

.h2h-toggle-text {
  line-height: 1;
}

.h2h-toggle-arrow {
  font-size: 0.9rem;
  color: #dcc8a1;
  line-height: 1;
  transition: transform 0.5s ease;
}

.h2h-toggle-btn.is-active .h2h-toggle-arrow {
  transform: rotate(180deg);
}

.h2h-panel {
  display: none;
  margin-top: 14px;
  width: 100%;
}

.h2h-panel.is-open {
  display: block;
}



.recent-toggle-row {
  align-items: center;
}

.recent-toggle-btn {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.recent-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
}

.recent-toggle-btn.is-active {
  border-color: #fff;
}

.recent-toggle-text {
  line-height: 1;
}

.recent-toggle-arrow {
  font-size: 0.9rem;
  color: #dcc8a1;
  line-height: 1;
  transition: transform 0.5s ease;
}

.recent-toggle-btn.is-active .recent-toggle-arrow { transform: rotate(180deg); }

.recent-matches-panel {
  display: none;
  margin-top: 14px;
  width: 100%;
}

.recent-matches-panel.is-open {
  display: block;
}

.recent-match-line {
  display: grid;
  grid-template-columns: auto minmax(120px, 190px) auto minmax(120px, 190px) auto;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  margin-top: 6px;
}

.recent-match-form,
.recent-form-spacer {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.recent-form-spacer {
  visibility: hidden;
}

.recent-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.recent-team-left {
  text-align: right;
}

.recent-team-right {
  text-align: left;
}

.recent-score {
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.recent-team.is-winner {
  color: #dcc8a1;
  font-weight: 700;
}


.league-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.league-table {
  width: 100%;
  min-width: 250px;
  border-collapse: collapse;
  table-layout: auto;
}

.league-table th,
.league-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}

.league-table th {
  font-weight: 700;
  color: #ccc;
}

.league-table tr:last-child td {
  border-bottom: none;
}

/* # */
.league-table th:nth-child(1),
.league-table td:nth-child(1) {
  width: 30px;
  min-width: 30px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

/* Team bekommt maximal Platz */
.league-table th:nth-child(2),
.league-table td:nth-child(2) {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sp, TD, Pkt sehr kompakt */
.league-table th:nth-child(3),
.league-table td:nth-child(3),
.league-table th:nth-child(4),
.league-table td:nth-child(4),
.league-table th:nth-child(5),
.league-table td:nth-child(5) {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  padding-left: 4px;
  padding-right: 10px;
}

.league-table td.team-name {
  max-width: 140px;        /* anpassen je nach Layout */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ZONEN */
/* EUROPA – wie bei den Match-Cards */
.table-zone-ucl td {
  background: rgba(0, 22, 160, 0.18);
}

.table-zone-uel td {
  background: rgba(253, 104, 3, 0.16);
}

.table-zone-uecl td {
  background: rgba(0, 190, 20, 0.14);
}

/* AUFSTIEG */
.table-zone-promotion-direct td {
  background: rgba(0, 190, 20, 0.18);
}

.table-zone-promotion-playoff td {
  background: rgba(0, 190, 20, 0.09);
}

/* ABSTIEG */
.table-zone-releg-direct td {
  background: rgba(255, 70, 70, 0.16);
}

.table-zone-releg-playoff td {
  background: rgba(255, 70, 70, 0.08);
}

/* AKTUELLE TEAMS */
.table-home-team td,
.table-away-team td {
  font-weight: 700;
}

.table-home-team td:first-child {
  box-shadow: inset 4px 0 0 #dcc8a1;
}

.table-away-team td:first-child {
  box-shadow: inset 4px 0 0 #dcc8a1;
}

.table-home-team.table-away-team td:first-child {
  box-shadow: inset 4px 0 0 #ffffff;
}

.league-table-gap td {
  text-align: center;
  color: #999;
  font-weight: 700;
  letter-spacing: 2px;
}

.league-table-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.league-table-toggle-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.league-table-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
}


/* Tipps & Analyse */

.tipp-content {
  width: 100%; max-width: 100%;
  box-sizing: border-box;
  display: flex; flex-direction: column;
  gap: 30px;
  color: rgb(200, 200, 200);
}

.tip-box{
  background: linear-gradient(rgb(32, 32, 32), rgb(26, 26, 26));
  border-radius: 18px;
  padding: 20px;
  position: relative;
}

.tip-box .label { color: #fff; }

.tip-box h3{
  color: #dcc8a1;
  font-size: 1rem;
  margin-bottom: 10px;
  padding-top: 40px;
  margin-top: 0;
}

.tip-box p { font-size: 0.9rem; line-height: 1.5; }

.tipp-label { color: #fff; }
.tipp-headline { color: #dcc8a1; }

.risk-badge { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  width: 50px;           
  height: 19px;   
  border-radius: 6px; 
  font-size: 0.8rem; 
  font-weight: bold; 
  margin-left: 6px; 
  line-height: 1;      
}

.risk-low { background-color: #00c853; color: #fff; }
.risk-medium { background-color: #ffeb3b; color: #000; }
.risk-high { background-color: #d50000; color: #fff; }

.risk-left{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Voting oben LINKS */
.tip-vote-top{
  position: absolute;
  top: 14px;
  left: 20px; 
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.vote-btn{
  width:32px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:10px;
  cursor:pointer;
  color:#fff;
  font-size:1rem;
  line-height:1;
  padding:0;
}

.vote-btn:hover{
  border-color: #dcc8a175;
}

/* Hot/Cold Varianten */
.vote-btn.vote-hot.is-selected{
  border-color:#ff3b30;   /* passt zu deinem Neon */
  box-shadow: 0 0 0 0px rgba(204,255,0,0.15);
}

.vote-btn.vote-cold.is-selected{
  border-color: rgba(120, 200, 255, 0.95);
  box-shadow: 0 0 0 0px rgba(120,200,255,0.15);
}

.vote-btn.vote-hot:hover{
  border-color: rgba(255, 59, 48, 0.85);
}

.vote-btn.vote-cold:hover{
  border-color: rgba(120,200,255,0.8);
}

.vote-btn.is-disabled{
  opacity:0.55;
  pointer-events:none;
}

.vote-temp{
  font-family: "Martius-Regular";
  font-weight: 400;
  font-size: 1rem;

  height: 26px;                 /* gleiche Höhe wie .tip-vote-inline .vote-btn */
  min-width: 54px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;          /* vertikal zentriert */
  justify-content: center;      /* horizontal zentriert */

  line-height: 1;               /* verhindert „Text sitzt oben“ */
  vertical-align: middle;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
}

.vote-temp.is-neutral{
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}

.vote-temp.is-hot{
  border-color: rgba(255, 59, 48, 0.95);
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.06);
}

.vote-temp.is-cold{
  border-color: rgba(120, 200, 255, 0.95);
  color: rgba(120, 200, 255, 0.95);
  background: rgba(120, 200, 255, 0.06);
}

/* Abschnitt: Fazit */
.section-title { font-size: 1.1rem; color: #ffffff; margin-bottom: 10px; }
.section-title.underlined::after {
  content:""; display:block; height:2px; width:100%;
  background: linear-gradient(to right, #dcc8a1, #dcc8a100);
  margin-top:4px;
}

.btn-back {
  background: #dcc8a1;
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;              /* großzügige Touch-Fläche */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 40px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  user-select: none;
  touch-action: manipulation;
  min-width: 180px;                /* nicht zu schmal */
}

/* Hover (Desktop) */
.btn-back:hover {
  background: #dcc8a1;
  transform: scale(1.03);
}

/* Active (Touch-Feedback) */
.btn-back:active {
  background: #a79779;
  transform: scale(0.97);
}


/* Überschrift für H2H innerhalb der Statistik-Box */
.h2h-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 18px 0 8px;            /* → mehr Abstand nach oben */
  text-align: center;
}

/* H2H: Datum über der Zeile "Team1 1:0 Team2" */
.h2h-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

.h2h-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.h2h-item:last-child { border-bottom: none; }

.h2h-date {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 2px;
  text-align: center;
}

/* === H2H: Score fest mittig via 3-Spalten-Grid === */
.h2h-line{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); /* links | SCORE | rechts */
  align-items: center;
  justify-items: center; /* Score wirklich zentriert */
  gap: 10px;
  width: 100%;
}

/* Teams links/rechts ausrichten, mit Ellipsis bei langen Namen */
.h2h-team{
  min-width: 0;
  max-width: 100%;
  color: #ddd;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;   /* … */
  white-space: nowrap;
}
.h2h-team:first-child{
  grid-column: 1;
  justify-self: end;
  text-align: right;
}
.h2h-team:last-child{
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

/* Score immer mittig & weiß */
.h2h-score{
  grid-column: 2;
  text-align: center;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Nur Gewinner-Team neon-grün */
.h2h-item.win-home .h2h-team:first-child{ color:#dcc8a1; }
.h2h-item.win-away .h2h-team:last-child { color:#dcc8a1; }

/* H2H: "Keine direkten Duelle gefunden" mittig ausrichten */
.h2h-item.h2h-empty { text-align: center; }

.h2h-item.h2h-empty .h2h-date {
  text-align: center;
  margin-bottom: 6px;
}

.h2h-item.h2h-empty .h2h-line {
  display: flex !important;         /* Grid überschreiben */
  justify-content: center;           /* Text wirklich zentrieren */
  align-items: center;
  text-align: center;
  color: #bbbbbb;                    /* dezenter Ton */
}


/* === Statistik-Seite === */

.chart-title {
  text-align: center;
  font-size: 1.2rem;
  color: #ffffff;
  margin: 2px auto 12px;
  font-family: "Martius-Regular"; 
  font-size: 2rem;
}

.chart-large {
  background: linear-gradient(rgb(32, 32, 32), rgb(26, 26, 26));
  border-radius: 18px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 30px;
  max-width: 600px;
  overflow-x: hidden;
}

/* Canvas: volle Breite, Höhe von JS/Container steuern lassen */
.chart-large canvas {
  width: 100% !important;
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* Gauge begrenzen */
#gaugeChart { max-height: 220px; }

/* Scrollfenster für ~5 Balken (Liga) */
.chart-scroll {
  height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Innerer Container: Höhe kommt dynamisch via JS */
#ligaChartInner { min-height: 220px; }

/* ===== Filter ===== */
.filter-section { margin: 4px 0 8px; margin-bottom:20px }
.filter-label { font-weight:600; color:#ffffff; margin-bottom:4px; display:block; font-size:1rem; padding-left:0.25rem; }

.filter-group {
  display:flex; gap:10px; margin:6px 0 8px;
  flex-wrap:nowrap; overflow-x:auto;
  padding-bottom:0;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.filter-group::-webkit-scrollbar { display:none; }

.filter-btn {
  flex:0 0 auto; padding:6px 12px; font-size:12px;
  background-color: rgba(83, 83, 83, 0.6);
  border:none; border-radius:999px; color:white; white-space:nowrap; cursor:pointer;
  transition: background-color 0.2s ease;
}
.filter-btn.active { background-color:#dcc8a1; color:#000; }

/* Utility */
.scroll-x { overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* ROI */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.roi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 14px 16px;
  backdrop-filter: blur(10px);
  min-width: 0;
}

.roi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  word-break: break-word;
}

.roi-label {
  display: block;
  font-size: 0.92rem;
  opacity: 0.78;
  line-height: 1.25;
}

.roi-card-wide {
  grid-column: 1 / -1;
}

.roi-positive {
  color: #39d353;
}

.roi-negative {
  color: #ff5c5c;
}

/* Tablet */
@media (max-width: 900px) {
  .roi-card strong {
    font-size: 1.35rem;
  }

  .roi-label {
    font-size: 0.88rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .roi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .roi-card {
    padding: 12px 10px 14px;
    border-radius: 16px;
  }

  .roi-card strong {
    font-size: 1.18rem;
  }

  .roi-label {
    font-size: 0.82rem;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 420px) {
  .roi-card {
    padding: 11px 8px 13px;
  }

  .roi-card strong {
    font-size: 1.08rem;
  }

  .roi-label {
    font-size: 0.78rem;
  }
}

/* === Footer === */
.footer {
  background: rgb(26, 26, 26);
  color: #e0ffe0;
  padding: 10px 16px 0 16px;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  margin-top: auto;
  position: relative;
}
.footer-inner {
  max-width: 1200px; margin:0 auto;
  display:flex; flex-direction:column; align-items:center; gap:22px;
}
.footer-col { width:100%; display:flex; flex-direction:column; align-items:center; }
.footer-title { color:#ffffff; font-family: "Martius-Regular"; font-size:1.5rem; margin-bottom:4px; text-align:center; font-weight:bold; }
.footer-desc { text-align:center; margin-bottom:10px; color:#ffffff; font-size:1.05rem; max-width:430px; }
.footer-note { margin-top: 10px; color:#c4c4c4; font-size: 0.95rem; opacity: 0.85; }
.footer-link.impressum-link {
  display:inline-block; padding:4px 0; color:#dcc8a1; text-decoration:none; font-weight:600;
  transition: color 0.2s, background 0.2s; border-radius:4px; margin-bottom:0; margin-top:12px;
}
.footer-link.impressum-link:hover { color:#fff; }

.footer-link.datenschutz-link {
  display:inline-block; padding:4px 0; color:#dcc8a1; text-decoration:none; font-weight:600;
  transition: color 0.2s, background 0.2s; border-radius:4px; margin-bottom:0;
}
.footer-link.datenschutz-link:hover { color:#fff; }

.footer-social { gap:10px; font-family: "Martius-Regular"; font-size:1.5rem; font-weight:bold; color:#dcc8a1; margin-top:16px; }
.footer-social-link img {
  width:28px; height:28px;
  transition: filter 0.2s, transform 0.2s; vertical-align:middle;
}
.footer-social-link:hover img {transform:scale(1.08); }
.footer-copy {
  text-align:center; color:#bbbbbb; font-size:0.85rem; margin:18px auto 0 auto;
  padding-bottom:14px; width:100%; letter-spacing:0.1em;
}

/* =========================================================
   Media Queries: Tablet (≥768px)
   ========================================================= */
@media (min-width: 768px) {

  /*----Globale Scrollbar – Tablet/Desktop---- */

  /* Firefox */
  * {
    scrollbar-width: thin; /* auto | thin | none */
    scrollbar-color: rgba(83,83,83,0.8) rgba(255,255,255,0.06);
  }

  /* Chrome/Edge/Safari */
  *::-webkit-scrollbar {
    width: 6px;   /* vertikal */
    height: 6px;  /* horizontal */
  }
  *::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
  }
  *::-webkit-scrollbar-thumb {
    background: rgba(83,83,83,0.8);        /* wie deine Filter-Buttons, minimal dichter */
    border-radius: 999px;
    border: 2px solid rgba(26,26,26,0.9);  /* „eingelassen“-Look, passt zu deinem Dark-UI */
  }
  *::-webkit-scrollbar-thumb:hover {
    background: rgba(120,120,120,0.9);     /* dezenter Hover */
  }

  /* Bonus: bei horizontalen Leisten (z.B. Top-Spiele) etwas komfortabler */
  .top-scroll::-webkit-scrollbar {
    height: 8px; /* horizontal sichtbar & minimal höher */
  }

/* Ausnahmen: bestimmte Bereiche weiterhin scrollbar verstecken */
.filter-group {
  scrollbar-width: none; /* Firefox */
}
.filter-group::-webkit-scrollbar {
  display: none; /* WebKit */
}


/* Burger ausblenden */
.burger { display: none; }
#navOverlay { display: none; }

#navLinks {
  position: static;
  height: auto;
  width: auto;
  box-shadow: none;
  transform: none;
  transition: none;
  pointer-events: auto;
  flex-direction: row;
  gap: 20px;
  padding: 5px;
  background: transparent;
  align-items: center;     /* vertikal zentriert */
}

/* Container */
.nav-inner {
  justify-content: flex-start;
  gap: 28px;
  padding-left: 16px;
  padding-right: 16px;
}

.nav-logo-img { height: 72px; }

/* === Navigation Links (Desktop) === */
#navLinks li a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;       /* etwas mehr vertikal */
  padding-bottom: 14px;    /* Platz für Unterstrich */
  color: #ffffff;
  font-family: "Martius-Regular";
  font-weight: 500;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.2;
}

/* Mobile-Indikator am Desktop ausschalten */
#navLinks li a::before { content: none !important; }

/* Unterstrich unten – OHNE translate (bleibt in der Box) */
#navLinks li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;              /* in der Box, nicht darunter */
  /* KEIN transform hier */
  width: 0;
  height: 2px;
  background: #dcc8a1;
  transition: width 0.3s ease, left 0.3s ease;
}

/* Hover-Effekt: von Mitte nach außen */
#navLinks li a:hover::after {
  width: 100%;
  left: 0;
}

/* Aktive Seite: bleibt sichtbar */
#navLinks li a.active::after {
  width: 100%;
  left: 0;
}

/* Fokus (Tastatur) – Unterstrich aktivieren, ohne Outline zu erzwingen */
#navLinks li a:focus-visible::after {
  width: 100%;
  left: 0;
}

  /* Layout */
  .main-wrapper { display: block; } /* nicht flex */

    /* Container mittig und volle Zeile */
  .top-section { max-width: 920px; margin: 0 auto; }

  .top-scroll{
    display: flex;
    gap: 18px;
    overflow-x: auto;           /* ← scroll auch auf Tablet */
    flex-wrap: nowrap;          /* ← keine Zeilenumbrüche */
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px;
  }

  .no-games-msg {
  max-width: 920px;
  margin: auto;
  }

  /* Karte: fixe, aber responsive Breite -> sauber scrollen */
  .top-scroll .match-card{
    flex: 0 0 clamp(360px, 55vw, 390px);
    max-width: clamp(360px, 55vw, 390px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Top-Spiele: horizontales Scrolling ohne sichtbare Scrollbar (ab Tablet) */
  .top-section .top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;   /* IE/Edge */
    scrollbar-width: none;      /* Firefox */
    padding-bottom: 6px;        /* verhindert abgeschnittene Karten-Schatten */
  }
  .top-section .top-scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari */

  /* Spezialfall: nur 1 Karte -> exakt zentrieren */
  .top-scroll .match-card:first-child:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .liga-accordion-wrapper,
  .liga-accordion {
    width: 100%;
    max-width: 920px;        /* Tablet-Zielbreite */
    margin-left: auto;
    margin-right: auto;
    align-self: stretch;     /* in Flex-Parents */
    grid-column: 1 / -1;     /* in Grid-Parents */
  }

  .liga-acc-name {
  font-size: 1.6rem;
}

  /* Liga-Akkordeon: 2 Spalten */
  .liga-accordion.open .liga-acc-body {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .match-card { padding: 12px 14px; gap: 8px; }
  .card-matchup { font-size: 1.6rem; }

  /* Tipp-Seite */
  .tipp-content {
    max-width: 860px;
    padding: 0 24px;
    margin: 0 auto;
    font-size: 1rem;
  }
  .spielinfo-box, .statistik-box {
    margin: 36px auto;
    max-width: 550px;
  }

  .spiel-info-grid {
    grid-template-columns: 1fr 1fr;   /* zwei Spalten */
    column-gap: 16px;
  }
  /* hübsche Spaltentrennung */
  .spiel-info-grid .info-row {
    padding: 4px 6px;
  }

  .tip-box { padding: 22px; }

  .form-box {
  width: 16px;                       /* feste Breite */
  height: 16px;                      /* gleiche Höhe → Quadrat */
  margin: 0 2px;
  font-size: 0.8rem;
  }


  /* Statistik-Seite */
  .chart-title { font-size: 2rem; }
  .chart-large {
    padding: 24px;
    max-width: 720px;
  }
  /* wichtig: keine feste Canvas-Höhe auf größeren Screens */
  .chart-large canvas { height: auto !important; }

  .chart-scroll { height: 260px; } /* etwas mehr Sicht */


  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 0;
  }
  .footer-col.footer-about {
    align-items: flex-start;
    text-align: left;
    width: 50%;
    min-width: 320px;
    max-width: 640px;
  }
  .footer-col.footer-social {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    width: 25%;
    min-width: 200px;
  }
  .footer-title, .footer-desc { text-align: left; }
  .footer-link.impressum-link { margin-top: 12px; margin-bottom: 12px; }
  .footer-copy {
    position: static;        /* statt absolute */
    transform: none;
    margin: 0;
    padding-bottom: 12px;
    text-align: center;
    width: 100%;
  }
}

/* =========================================================
   Media Queries: Desktop (≥1024px)
   ========================================================= */
@media (min-width: 1024px) {

  /* Navigation */
  .nav-inner {
    max-width: 1200px;
    gap: 40px;
  }
  .nav-logo-img { height: 80px; }
  .nav-links { gap: 16px; }
  .nav-links li a { padding: 8px 16px; font-size: 1rem; }

  /* Layout */
  .main-wrapper { display: block; } /* nicht flex */

  .top-section { max-width: 1200px; }

  .top-scroll{
    overflow-x: auto;           /* bleibt scrollbar */
    flex-wrap: nowrap;
  }

  .no-games-msg {
    max-width: 1200px;
    margin: auto;
  }

  .top-scroll .match-card{
    flex-basis: clamp(380px, 40vw, 390px);
    max-width: clamp(380px, 40vw, 390px);
  }

  /* Akkordeon-Kind strecken, falls Parent doch Flex/Grid ist */
  .liga-accordion-wrapper,
  .liga-accordion {
    width: 100%;
    max-width: 1200px;        /* Desktop-Zielbreite */
    margin-left: auto;
    margin-right: auto;
    align-self: stretch;     /* in Flex-Parents */
    grid-column: 1 / -1;     /* in Grid-Parents */
  }

  .page-title, .tipp-title { font-size: 2.5rem; }

  /* Liga-Akkordeon: 3 Spalten */
  .liga-accordion.open .liga-acc-body {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 20px;
  }
  .match-card { padding: 14px 16px; }
  .card-matchup { font-size: 1.6rem; }

  /* Tipp-Seite */
  .tipp-content {
    max-width: 1100px;
    padding: 0 60px;
    margin: 0 auto;
    font-size: 1.05rem;
  }
  .spielinfo-box, .statistik-box { max-width: 650px; }
  .tipp-title { font-size: 2rem; }
  .tip-box p { font-size: 1rem; }

  /* Statistik-Seite */
  .chart-title { font-size: 2rem; }
  .chart-large {
    max-width: 900px;
    padding: 28px;
  }
  .chart-scroll { height: 300px; }

  /* Footer */
  .footer-inner { max-width: 1200px; }
  .footer-col.footer-about { width: 52%; }
  .footer-col.footer-social { width: 24%; }
}





