/* =========================
   RESET / BASIS
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Rajdhani', Arial, sans-serif;
  color: white;
  background: url("images/bg-body.jpg") no-repeat center center fixed;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 20px;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid #d4af37;
  z-index: 1000;
}

.navbar a {
  color: #d4af37;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.navbar a:hover {
  color: #ffd700;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px; /* ?? WICHTIG */
  margin: 120px auto 50px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 10px;
}

/* =========================
   BOX
========================= */
.box {
  background: rgba(0,0,0,0.6);
  border: 1px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
}

/* =========================
   TEAM GRID (FINAL STABIL)
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
/* =========================
KARTE
========================= */

.player-card {
background: rgba(0, 0, 0, 0.35); /* ?? Glas Basis */
backdrop-filter: blur(12px);     /* ?? GLAS */
-webkit-backdrop-filter: blur(12px);

border: 1px solid rgba(212,175,55,0.5); /* ?? softer Gold Rand */
border-radius: 12px;

height: 260px;
perspective: 1000px;
cursor: pointer;
position: relative;
transition: all 0.35s ease;
overflow: hidden;

/* ?? METALLIC LOOK */
background-image: linear-gradient(
120deg,
rgba(255,215,0,0.08),
rgba(255,255,255,0.05),
rgba(212,175,55,0.08)
);

box-shadow:
inset 0 2px 8px rgba(255,255,255,0.15),
inset 0 -3px 10px rgba(0,0,0,0.6);
}

/* ?? SHINE (JETZT WIE TICKER   dauerhaft) */
.player-card::before {
content: "";
position: absolute;
top: -50%;
left: -100%;
width: 60%;
height: 200%;

background: linear-gradient(
120deg,
transparent,
rgba(255,255,255,0.5),
transparent
);

transform: skewX(-20deg);
animation: cardShine 5s infinite;
}

/* ?? zus tzlicher Licht-Reflex */
.player-card::after {
content: "";
position: absolute;
inset: 0;

background: linear-gradient(
145deg,
rgba(255,255,255,0.08),
transparent 40%,
transparent 60%,
rgba(255,215,0,0.15)
);

pointer-events: none;
}

/* Shine Animation */
@keyframes cardShine {
0% { left: -100%; }
50% { left: 120%; }
100% { left: 120%; }
}

/* andere Karten abdunkeln */
.grid.active .player-card {
opacity: 0.25;
}

/* ?? Hover Lift + Parallax Gef hl */
.player-card:hover {
transform: translateY(-8px) scale(1.03);
backdrop-filter: blur(16px);

box-shadow:
0 15px 40px rgba(0,0,0,0.7),
0 0 20px rgba(255,215,0,0.5);
}

/* ?? aktive Karte (MEGA EFFECT) */
.player-card.active {
opacity: 1 !important;
transform: scale(1.1) translateY(-10px);
z-index: 10;

backdrop-filter: blur(18px);

box-shadow:
0 0 35px rgba(255,215,0,0.9),
0 20px 60px rgba(0,0,0,0.8);

animation: glowPulse 1.5s infinite alternate;
}

/* Glow Pulse */
@keyframes glowPulse {
0% {
box-shadow:
0 0 20px rgba(255,215,0,0.6),
0 15px 40px rgba(0,0,0,0.7);
}
100% {
box-shadow:
0 0 40px rgba(255,215,0,1),
0 25px 70px rgba(0,0,0,0.9);
}
}

/* =========================
INNER
========================= */

.card-inner {
width: 100%;
height: 100%;
position: relative;
}

/* =========================
FRONT / BACK
========================= */

.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

background: rgba(0,0,0,0.55); /* ?? halbtransparent */
backdrop-filter: blur(6px);   /* ?? extra Glas Layer */

transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================
FRONT
========================= */

.card-front {
z-index: 2;
opacity: 1;
transform: scale(1) translateX(0);
}

.card-front img {
width: 160px;
margin-bottom: 10px;
transition: transform 0.5s ease;
}

.player-name {
color: #ffd700;
font-size: 20px;
font-weight: bold;
}

/* =========================
BACK (STECKBRIEF)
========================= */

.card-back {
padding: 20px;
font-size: 14px;
text-align: left;

display: flex;
justify-content: center;
align-items: center;

opacity: 0;
transform: scale(0.85) translateX(60px);
pointer-events: none;
}

/* =========================
SWITCH (ULTRA ANIMATION)
========================= */

/* FRONT raus */
.player-card.active .card-front {
opacity: 0;
transform: scale(1.3) translateX(-60px);
pointer-events: none;
}

/* Bild zoomt extra */
.player-card.active .card-front img {
transform: scale(1.25) rotate(-2deg);
}

/* BACK rein */
.player-card.active .card-back {
opacity: 1;
transform: scale(1) translateX(0);
pointer-events: auto;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   NEW SCOREBOARD
========================= */

.scoreboard{

  display:flex;
  justify-content:center;
  align-items:stretch;

  gap:30px;

  margin-bottom:22px;
}

/* BOX */
.score-team{

  flex:1;

  min-width:0;

  background:
    linear-gradient(
      145deg,
      rgba(0,0,0,0.88),
      rgba(20,20,20,0.92)
    );

  border:1px solid rgba(255,215,0,0.4);

  border-radius:22px;

  padding:24px 20px;

  text-align:center;

  backdrop-filter:blur(8px);

  box-shadow:
    0 0 25px rgba(255,215,0,0.08),
    inset 0 0 12px rgba(255,215,0,0.05);
}

/* TEAMNAME */
.score-team-name{

  color:#ffe88a;

  font-size:30px;
  font-weight:700;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  margin-bottom:20px;

  text-shadow:
    0 0 10px rgba(255,215,0,0.3);
}

/* SCORE */
.score-main{

  font-size:82px;
  font-weight:700;

  color:white;

  line-height:1;

  text-shadow:
    0 0 14px rgba(255,255,255,0.35);
}

/* LEGS */
.score-legs{

  margin-top:12px;

  font-size:38px;
  font-weight:bold;

  color:#ffe88a;
}

/* BLOCK */
#block-bar{

  text-align:center;

  font-size:28px;
  font-weight:bold;

  color:#ffe88a;

  margin-bottom:22px;

  text-shadow:
    0 0 10px rgba(255,215,0,0.35);
}

/* LINIE */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #d4af37,
    transparent
  );
  margin: 15px 0;
  opacity: 0.7;
}

/* SPIELER */
.players {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 10px;

  position: relative;
  overflow: hidden;
}

/* =========================
   GOLD (METALLIC)
========================= */
.player-row:first-child {
  background: linear-gradient(
    120deg,
    #5c4415 0%,
    #d4af37 20%,
    #fff2a6 35%,
    #d4af37 50%,
    #b8962e 65%,
    #fff2a6 80%,
    #5c4415 100%
  );
  color: black;

  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.4),
    inset 0 -3px 6px rgba(0,0,0,0.6),
    0 0 12px rgba(255,215,0,0.4);
}

/* GOLD SHINE */
.player-row:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );

  transform: skewX(-20deg);
  animation: shineGold 3s infinite;
}

/* =========================
   SILBER (METALLIC)
========================= */
.player-row:last-child {
  background: linear-gradient(
    120deg,
    #444 0%,
    #cfcfcf 20%,
    #ffffff 35%,
    #cfcfcf 50%,
    #999 65%,
    #ffffff 80%,
    #444 100%
  );
  color: black;

  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.7),
    0 0 10px rgba(255,255,255,0.3);
}

/* SILBER SHINE */
.player-row:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.7),
    transparent
  );

  transform: skewX(-20deg);
  animation: shineSilver 3s infinite;
}

/* =========================
   ANIMATIONEN
========================= */
@keyframes shineGold {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

@keyframes shineSilver {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

/* LEGS BOX */
.leg-box {
  background: black;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  font-weight: bold;

  box-shadow: inset 0 0 6px rgba(255,255,255,0.2);
}

/* LIVE */
.live-wrap {
  text-align: center;
  margin-top: 15px;
}

#live-tag {
  display: none;
}

#live-img-big {
  width: 90px;
  height: auto;
  animation: blink 1s infinite;
  filter: drop-shadow(0 0 8px red);
}

/* BLINK */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}
/* =========================
   SCORE ANIMATION (EXTREME)
========================= */

.score,
.leg-box {
  position: relative;
  display: inline-block;
}

/* HAUPTANIMATION */
.score.animate,
.leg-box.animate {
  animation: scoreUltra 0.8s cubic-bezier(0.15, 0.85, 0.25, 1);
}

/* FLASH RING */
.score.animate::before,
.leg-box.animate::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 12px;

  border: 2px solid rgba(255,215,0,0.8);
  opacity: 0;

  animation: ringBlast 0.8s ease;
}

/* GLOW EXPLOSION */
.score.animate::after,
.leg-box.animate::after {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 15px;

  background: radial-gradient(
    circle,
    rgba(255,215,0,0.9),
    rgba(255,215,0,0.3),
    transparent 70%
  );

  opacity: 0;
  animation: glowBlast 0.8s ease;
}

/* =========================
   KEYFRAMES
========================= */

/* ULTRA POP + SHAKE */
@keyframes scoreUltra {

  0% {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
    filter: blur(6px);
  }

  20% {
    transform: scale(1.6) rotate(5deg);
    opacity: 1;
    filter: blur(0);
  }

  35% {
    transform: scale(1.2) rotate(-3deg);
  }

  50% {
    transform: scale(1.05) rotate(2deg);
  }

  65% {
    transform: scale(1.02) rotate(-1deg);
  }

  80% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

/* RING WAVE */
@keyframes ringBlast {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* GLOW BURST */
@keyframes glowBlast {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}
/* =========================
   KEYFRAMES
========================= */

/* POP + SLIDE */
@keyframes scorePop {
  0% {
    transform: scale(0.6) translateY(10px);
    opacity: 0;
    filter: blur(4px);
  }

  40% {
    transform: scale(1.4) translateY(-5px);
    opacity: 1;
    filter: blur(0);
  }

  70% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* GLOW BURST */
@keyframes scoreGlow {
  0% {
    opacity: 0.8;
    transform: scale(0.6);
  }

  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
/* =========================
   MINI LIVETICKER CLEAN
========================= */

#ticker-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* HEADER */
.ticker-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* LIVE oben mittig */
#live-tag {
  display: none;
}

#live-img {
  width: 60px;
  height: auto;
  animation: blink 1s infinite;
  filter: drop-shadow(0 0 6px red);
}

/* TEAMNAME */
.ticker-team {
  font-size: 16px;
  font-weight: bold;
  color: #ccc;
  text-align: center;
}

/* SPIELER */
.mini-player {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  box-sizing: border-box;

  padding: 18px 20px;
  border-radius: 12px;
  font-weight: bold;

  position: relative;
  overflow: hidden;
}

/* NAME mittig */
.player-name {
  flex: 1;
  text-align: center;
  font-size: 18px;
  color: black;
}

/* SCORE rechts (KASTEN) */
.player-score {
  width: 45px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;

  background: black;
  color: white;
  padding: 5px 0;
  border-radius: 6px;

  box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

/* =========================
   GOLD (METALLIC)
========================= */

.mini-player.home {
  background: linear-gradient(
    120deg,
    #5c4415 0%,
    #d4af37 20%,
    #fff2a6 35%,
    #d4af37 50%,
    #b8962e 65%,
    #fff2a6 80%,
    #5c4415 100%
  );

  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.4),
    inset 0 -3px 6px rgba(0,0,0,0.6),
    0 0 10px rgba(255,215,0,0.4);
}

/* Glanz-Effekt */
.mini-player.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );

  transform: skewX(-20deg);
  animation: shineGold 3s infinite;
}

/* =========================
   SILBER (METALLIC)
========================= */

.mini-player.away {
  background: linear-gradient(
    120deg,
    #444 0%,
    #cfcfcf 20%,
    #ffffff 35%,
    #cfcfcf 50%,
    #999 65%,
    #ffffff 80%,
    #444 100%
  );

  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.7),
    0 0 8px rgba(255,255,255,0.3);
}

/* Glanz-Effekt */
.mini-player.away::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.7),
    transparent
  );

  transform: skewX(-20deg);
  animation: shineSilver 3s infinite;
}

/* =========================
   ANIMATIONEN
========================= */

@keyframes shineGold {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

@keyframes shineSilver {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

/* GEGNER */
.mini-opponent {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #ccc;
}

/* BLINK */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
/* =========================
   KONTAKT (FIX)
========================= */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #d4af37;
  background: #111;
  color: white;
}

.contact-form textarea {
  min-height: 160px;
}

.contact-consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form button {
  margin-top: 15px;
  padding: 12px 20px;
  background: #d4af37;
  border: none;
  color: black;
  font-weight: bold;
}

.video-box {
  position: relative;
  width: 100%;
  max-height: 300px;   /* ? HIER stellst du die H he ein */
  overflow: hidden;
  border-radius: 10px;
  margin-top: 20px;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* verhindert Verzerrung */
  display: block;
}

#playBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  background: rgba(0,0,0,0.6);
  padding: 15px 20px;
  border-radius: 50%;
  cursor: pointer;
}

/* =========================
   FOOTER (UPGRADE)
========================= */
.footer {
  text-align: center;
  padding: 20px;

  margin-top: 60px;

  background: rgba(0, 0, 0, 0.8);       /* ?? dunkler Hintergrund */
  backdrop-filter: blur(6px);           /* ?? Glass Effekt */

  border-top: 1px solid #d4af37;

  font-size: 14px;
  color: #ccc;

  text-shadow: 0 0 6px rgba(255,215,0,0.3); /* ?? leichter Glow */
}

/* Links im Footer */
.footer a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 5px;
  transition: 0.2s;
}

/* Hover Effekt */
.footer a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,215,0,0.8);
}

/* =========================
   MOBILE NAVBAR FIX
========================= */

@media (max-width: 600px) {

  .navbar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    justify-content: unset !important;
  }

  .navbar a {
    font-size: 13px;
    padding: 6px 0;
  }

}

/* =========================
   MOBILE MATCH CARD
========================= */

@media (max-width: 600px) {

  .match-card {
    padding: 15px;
  }

  .team.top {
    font-size: 18px;
  }

  .team.bottom {
    font-size: 16px;
  }

  .match-score {
    font-size: 30px;
  }

  .player-row {
    padding: 12px;
  }

  .leg-box {
    min-width: 35px;
    font-size: 16px;
  }

}
/* =========================
   EVENT BOX (ULTRA EFFECT + GLITCH)
========================= */

.home-player {
  position: relative;
}

.event-box {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}

/* EVENT IMAGE */
.event-box img {
  width: 90px;
  filter: drop-shadow(0 0 10px gold);
}

/* =========================
   HAUPTANIMATION
========================= */

.event-box.show {
  animation:
    boom 1.6s cubic-bezier(0.2, 1.2, 0.3, 1),
    glitch 0.6s steps(4) 0.4s;
}

/* IMAGE GLITCH COLOR */
.event-box.show img {
  animation: glitchImg 0.25s ease 0.4s;
}

/* =========================
   EFFECT LAYER
========================= */

/* GLOW RING */
.event-box.show::before {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 50%;

  border: 3px solid rgba(255,215,0,0.9);
  opacity: 0;

  animation: ring 1s ease;
}

/* FLASH BURST */
.event-box.show::after {
  content: "";
  position: absolute;
  inset: -40px;

  background: radial-gradient(
    circle,
    rgba(255,215,0,0.9),
    rgba(255,215,0,0.3),
    transparent 70%
  );

  opacity: 0;

  animation: flash 1s ease;
}

/* =========================
   KEYFRAMES
========================= */

/* ?? BOOM */
@keyframes boom {

  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    filter: blur(6px);
  }

  15% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
    filter: blur(0);
  }

  30% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  /* ?? bleibt sichtbar */
  70% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
}

/* ? GLITCH */
@keyframes glitch {

  0% {
    transform: translate(-50%, -50%) scale(1) skew(0deg);
  }

  15% {
    transform: translate(-48%, -52%) scale(1.05) skew(6deg);
  }

  30% {
    transform: translate(-52%, -48%) scale(0.95) skew(-6deg);
  }

  45% {
    transform: translate(-49%, -51%) scale(1.03) skew(4deg);
  }

  60% {
    transform: translate(-51%, -49%) scale(0.97) skew(-4deg);
  }

  80% {
    transform: translate(-50%, -50%) scale(1.02);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ?? IMAGE COLOR GLITCH */
@keyframes glitchImg {
  0% { filter: hue-rotate(0deg); }
  30% { filter: hue-rotate(90deg); }
  60% { filter: hue-rotate(-90deg); }
  100% { filter: hue-rotate(0deg); }
}

/* ? RING */
@keyframes ring {
  0% {
    opacity: 1;
    transform: scale(0.3);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* ? FLASH */
@keyframes flash {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}
/* =========================
   MATCH LIST (DROPDOWN)
========================= */

.block {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.block-header {
  cursor: pointer;
  font-weight: bold;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
}

.block-content {
  display: none;
  padding: 10px 5px;
}

.block.active .block-content {
  display: block;
}

/* MATCH ROW */
.match-row {
  padding: 6px 0;
  color: white;
}

/* WINNER */
.match-row.win {
  color: #00ff88;
  font-weight: bold;
}

/* =========================
   MOBILE FIX (CONTAINER)
========================= */
@media (max-width: 800px) {

  .container {
    grid-template-columns: 1fr !important;
  }

  .box {
    width: 100%;
  }

}
/* =========================
   TABELLE GLOBAL (DESKTOP + MOBILE BASIS)
========================= */

#standings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* HEADER */
#standings-table th {
  color: black;

  background: linear-gradient(
    120deg,
    #5c4415 0%,
    #d4af37 20%,
    #fff2a6 35%,
    #d4af37 50%,
    #b8962e 65%,
    #fff2a6 80%,
    #5c4415 100%
  );

  padding: 12px 10px;
  font-size: 15px;

  border-right: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.4),
    inset 0 -3px 6px rgba(0,0,0,0.6);
}

/* ZELLEN */
#standings-table td {
  padding: 10px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* letzte Spalte */
#standings-table th:last-child,
#standings-table td:last-child {
  border-right: none;
}

/* Reihen */
#standings-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ? WICHTIG: KEIN gr ner Hintergrund mehr */
#standings-table tr:first-child {
  background: transparent !important;
}

/* Tabellenf hrer */
#standings-table tr:first-child td {
  color: #00ff88 !important;
  font-weight: bold;
}

/* Mannschaft links */
#standings-table td:nth-child(2),
#standings-table th:nth-child(2) {
  text-align: left;
  padding-left: 15px;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 600px) {

  #standings-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #standings-table th,
  #standings-table td {
    padding: 10px 8px;
    font-size: 14px;
  }

}

.result-box {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: gold;
  margin-top: 10px;
  margin-bottom: 10px;
}

.match-row.win {
  color: #00ff88;
  font-weight: bold;
}

.match-row.lose {
  opacity: 0.5;
}

.penalty-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.penalty-table th, .penalty-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.penalty-table tr.gold {
  color: gold;
}

.penalty-table tr.silver {
  color: silver;
}

.penalty-table tr.bronze {
  color: #cd7f32;
}

/* =========================
   SPIELERSUCHE EFFECT
========================= */

.search-box {
  padding: 10px;
  overflow: hidden;
}

/* Bild */
.search-img {
  width: 100%;
  border-radius: 10px;
  display: block;

  /* Start Animation */
  opacity: 0;
  transform: scale(0.95);

  transition: all 0.4s ease;
}

/* Hover Effekt */
.search-box:hover .search-img {
  transform: scale(1.05);

  /* Glow */
  box-shadow:
    0 0 20px rgba(255,215,0,0.6),
    0 0 40px rgba(255,215,0,0.4);
}

/* Fade-In Animation */
.search-img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   CLEAN WINNER (FINAL - MOBILE FIX)
========================= */

.winner-glow {
  position: relative;
  overflow: hidden;

  /* ?? leichter Zoom */
  transform: scale(1.05);
  transition: transform 0.25s ease;

  /* ?? WICHTIG f r Mobile */
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center;
}

/* ?? NUR REFLEKTION (KEIN FILL!) */
.winner-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    110deg,
    transparent,
    rgba(0,255,120,0.25),
    rgba(0,255,120,0.45),
    rgba(0,255,120,0.25),
    transparent
  );

  transform: skewX(-20deg);

  animation: greenSweep 2.5s linear infinite;

  /* ?? Mobile Stabilit t */
  will-change: transform;
}

/* Bewegung */
@keyframes greenSweep {
  0% { left: -120%; }
  100% { left: 140%; }
}

/* =========================
   LOSER (KURZ KLEINER - MOBILE FIX)
========================= */

.loser-fade {
  animation: loserScale 0.35s ease forwards;

  /* ?? Mobile Fix */
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes loserScale {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* =========================
   SOUNDCLOUD PLAYER
========================= */

.soundcloud-player{
border:2px solid #d4af37;
border-radius:20px;
overflow:hidden;

box-shadow:
0 0 20px rgba(212,175,55,0.4),
0 0 40px rgba(212,175,55,0.2);

background:rgba(0,0,0,0.7);

backdrop-filter: blur(6px);
}

/* =========================
   LIVE + VIEWER
========================= */

.live-wrap{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:12px;

  margin-top:20px;
}

/* VIEWER BOX */
.viewer-box{

  display:flex;
  align-items:center;
  gap:8px;

  padding:6px 14px;

  border-radius:12px;

  background:rgba(255,255,255,0.05);

  border:1px solid rgba(255,255,255,0.15);

  color:white;
  font-weight:bold;

  backdrop-filter:blur(6px);
}

/* EYE ICON */
.eye-icon{
  font-size:18px;
  line-height:1;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width:600px){

  .match-card{
    padding:18px 14px;
  }

  .player-row{
    padding:12px;
  }

  .live-wrap{
    gap:10px;
  }

  .viewer-box{
    padding:5px 12px;
  }

}

/* =========================
   TICKER TOPBAR
========================= */

.ticker-topbar{

  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:20px;
}

/* VIEWER BOX */
.viewer-box{

  display:flex;
  align-items:center;
  gap:8px;

  padding:6px 14px;

  border-radius:14px;

  background:rgba(255,255,255,0.05);

  border:1px solid rgba(255,255,255,0.12);

  color:white;

  font-weight:bold;

  backdrop-filter:blur(8px);

  box-shadow:
    0 0 12px rgba(0,0,0,0.35);
}

/* EYE */
.eye-icon{
  font-size:18px;
  line-height:1;
}

/* MOBILE */
@media (max-width:600px){

  .ticker-topbar h2{
    font-size:18px;
  }

  .viewer-box{
    padding:5px 11px;
    font-size:14px;
  }

}

/* =========================
   SCOREBOARD BOXEN
========================= */

.scoreboard{
  display:flex;
  justify-content:center;
  gap:30px;

  margin-bottom:20px;
}

.score-team{

  width:230px;

  background:rgba(0,0,0,0.75);

  border:1px solid rgba(255,215,0,0.45);

  border-radius:18px;

  padding:22px 18px;

  text-align:center;

  backdrop-filter:blur(8px);

  box-shadow:
    0 0 18px rgba(255,215,0,0.12),
    inset 0 0 12px rgba(255,215,0,0.05);
}

/* TEAMNAME */
.score-team-name{

  color:#ffe88a;

  font-size:30px;
  font-weight:700;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  margin-bottom:15px;
}

/* SCORE */
.score-main{

  font-size:72px;
  font-weight:700;

  color:white;

  line-height:1;

  text-shadow:
    0 0 12px rgba(255,255,255,0.4);
}

/* LEGS */
.score-legs{

  margin-top:10px;

  font-size:38px;
  font-weight:bold;

  color:#ffe88a;
}

/* BLOCK */
#block-bar{

  text-align:center;

  font-size:28px;
  font-weight:bold;

  color:#ffe88a;

  margin-bottom:20px;

  text-shadow:
    0 0 10px rgba(255,215,0,0.4);
}

/* MOBILE */
@media (max-width:700px){

  .scoreboard{
    gap:12px;
  }

  .score-team{
    width:48%;
    padding:16px 10px;
  }

  .score-team-name{
    font-size:18px;
  }

  .score-main{
    font-size:54px;
  }

  .score-legs{
    font-size:28px;
  }

  #block-bar{
    font-size:22px;
  }
}

@media (max-width:700px){

  .scoreboard{
    gap:14px;
  }

  .score-team{
    padding:18px 12px;
  }

  .score-team-name{
    font-size:18px;
  }

  .score-main{
    font-size:56px;
  }

  .score-legs{
    font-size:28px;
  }

  #block-bar{
    font-size:22px;
  }

}

.match-card{

  background:rgba(0,0,0,0.55);

  border:2px solid #d4af37;

  border-radius:24px;

  padding:22px;

  backdrop-filter:blur(8px);

  box-shadow:
    0 0 30px rgba(255,215,0,0.12),
    inset 0 0 20px rgba(255,215,0,0.04);
}

/* =========================
   FINAL MOBILE + LAYOUT FIX
========================= */

/* WICHTIG */
body{
  overflow-x:hidden;
}

/* CONTAINER */
.container{

  width:100%;
  max-width:1200px;

  margin:120px auto 50px;

  display:grid;
  grid-template-columns:2fr 1fr;

  gap:30px;

  padding:10px;
}

/* SPALTEN */
.left-column,
.right-column{
  min-width:0;
}

/* BOX */
.box{
  width:100%;
}

/* MATCH CARD */
.match-card{

  width:100%;

  background:rgba(0,0,0,0.55);

  border:2px solid #d4af37;

  border-radius:24px;

  padding:22px;

  backdrop-filter:blur(8px);

  overflow:hidden;

  box-shadow:
    0 0 30px rgba(255,215,0,0.12),
    inset 0 0 20px rgba(255,215,0,0.04);
}

/* FOOTER FIX */
.footer{
  width:100%;
  clear:both;
}

/* =========================
   MOBILE
========================= */

@media (max-width:800px){

  .container{

    grid-template-columns:1fr;

    gap:20px;

    padding:10px;

    margin-top:110px;
  }

  .left-column,
  .right-column{
    width:100%;
  }

  .match-card{
    padding:14px;
  }

  /* SCOREBOARD */
  .scoreboard{

    display:flex;

    gap:10px;

    width:100%;
  }

  .score-team{

    flex:1;

    width:auto;

    min-width:0;

    padding:14px 10px;
  }

  .score-team-name{

    font-size:16px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .score-main{
    font-size:52px;
  }

  .score-legs{
    font-size:24px;
  }

  /* SPIELER */
  .player-row{
    padding:12px;
  }

  /* LEGS */
  .leg-box{
    min-width:36px;
    font-size:15px;
  }

  /* BLOCK */
  #block-bar{
    font-size:22px;
  }

  /* LIVE */
  #live-img-big{
    width:80px;
  }

}

/* =========================
   SCORE ULTRA ANIMATION
========================= */

.score-main,
.score-legs,
.leg-box{
  position:relative;
  overflow:visible;
}

/* AKTIVE ANIMATION */
.score-animate{

  animation:
    impactPop 0.65s cubic-bezier(0.15,0.9,0.2,1);

  z-index:5;
}

/* =========================
   METALLIC SWEEP
========================= */

.score-animate::before{
  content:"";

  position:absolute;

  top:-20%;
  left:-120%;

  width:45%;
  height:140%;

  background:linear-gradient(
    115deg,
    transparent,
    rgba(255,255,255,0.95),
    transparent
  );

  transform:skewX(-20deg);

  animation:sweep 0.7s ease;
}

/* =========================
   RING EXPLOSION
========================= */

.score-animate::after{
  content:"";

  position:absolute;

  inset:-16px;

  border-radius:18px;

  border:2px solid rgba(255,215,0,0.9);

  opacity:0;

  animation:ringBlast 0.7s ease;
}

/* =========================
   IMPACT POP
========================= */

@keyframes impactPop{

  0%{
    transform:scale(0.55);
    opacity:0.2;
    filter:blur(4px);
  }

  25%{
    transform:scale(1.45);
    opacity:1;

    text-shadow:
      0 0 15px rgba(255,255,255,0.9),
      0 0 30px rgba(255,215,0,0.9);
  }

  45%{
    transform:scale(1.12);
  }

  70%{
    transform:scale(0.96);
  }

  100%{
    transform:scale(1);
  }
}

/* =========================
   SWEEP
========================= */

@keyframes sweep{

  0%{
    left:-120%;
    opacity:0;
  }

  20%{
    opacity:1;
  }

  100%{
    left:140%;
    opacity:0;
  }
}

/* =========================
   RING
========================= */

@keyframes ringBlast{

  0%{
    opacity:1;
    transform:scale(0.4);
  }

  100%{
    opacity:0;
    transform:scale(1.6);
  }
}

/* =========================
   DK Masters
========================= */

.spieltag-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.arrow-btn {
    background:#d4af37;
    border:none;
    color:#000;
    font-size:22px;
    font-weight:bold;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
}

.arrow-btn:hover {
    transform:scale(1.1);
}

.match-card {
    background:#1a1a1a;
    border:1px solid #333;
    border-left:4px solid #d4af37;
    padding:15px;
    margin-bottom:15px;
    border-radius:8px;
}

.match-card h4 {
    color:#d4af37;
    margin-top:0;
    margin-bottom:10px;
}

/* =========================
   DK MASTERS TABELLE
========================= */

#dk-table{

    width:100%;

    border-collapse:collapse;

    table-layout:fixed;
}

#dk-table th{

    color:#d4af37;

    font-size:18px;

    font-weight:bold;

    padding:14px 4px;

    text-align:center;

    border-bottom:2px solid rgba(212,175,55,0.3);
}

#dk-table td{

    padding:16px 4px;

    text-align:center;

    font-size:18px;

    border-top:1px solid rgba(255,255,255,0.08);
}

/* Platz */

#dk-table th:nth-child(1),
#dk-table td:nth-child(1){

    width:8%;
}

/* Spieler */

#dk-table th:nth-child(2),
#dk-table td:nth-child(2){

    width:40%;

    text-align:left;
}

/* Punkte */

#dk-table th:nth-child(3),
#dk-table td:nth-child(3){

    width:13%;
}

/* Legs + */

#dk-table th:nth-child(4),
#dk-table td:nth-child(4){

    width:13%;
}

/* Legs - */

#dk-table th:nth-child(5),
#dk-table td:nth-child(5){

    width:13%;
}

/* Diff */

#dk-table th:nth-child(6),
#dk-table td:nth-child(6){

    width:13%;
}

/* Hover */

#dk-table tbody tr:hover{

    background:
    rgba(212,175,55,0.08);
}

/* =========================
   TABELLENFÜHRER
========================= */

#dk-table tr.leader{

    background:
    linear-gradient(
        90deg,
        rgba(0,120,0,0.55),
        rgba(0,80,0,0.25)
    );

    border-left:5px solid #ffd700;

    box-shadow:
        inset 0 0 20px rgba(255,215,0,0.08);
}

#dk-table tr.leader td{

    font-weight:700;

    color:#ffffff;
}

#dk-table tr.leader td:nth-child(1){

    color:#ffd700;

    font-size:22px;
}

/* =========================
   HANDY
========================= */

@media(max-width:900px){

    #dk-table th{

        font-size:12px;

        padding:10px 2px;
    }

    #dk-table td{

        font-size:13px;

        padding:12px 2px;
    }

    #dk-table th:nth-child(1),
    #dk-table td:nth-child(1){

        width:8%;
    }

    #dk-table th:nth-child(2),
    #dk-table td:nth-child(2){

        width:40%;

        text-align:left;
    }

    #dk-table th:nth-child(3),
    #dk-table td:nth-child(3),

    #dk-table th:nth-child(4),
    #dk-table td:nth-child(4),

    #dk-table th:nth-child(5),
    #dk-table td:nth-child(5),

    #dk-table th:nth-child(6),
    #dk-table td:nth-child(6){

        width:13%;
    }
}

.slideshow-container{

    width:100%;

    max-width:700px;

    margin:auto;

    overflow:hidden;

    border-radius:12px;
}

.slideshow-img{

    width:100%;

    max-height:500px;

    object-fit:contain;

    display:block;

    margin:auto;
}