/* =================================
   COMPONENT: BUTTONS
   ================================= */

/* Basis */
.button {
  font-family: "Lato", sans-serif;
  font-size: 0.725rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.75px;

  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  transition: all 0.5s ease;
}

/* =================================
   BUTTON: OUTLINE VARIANTE
   ================================= */

.button-outline {
  background: transparent;
  border: 2.5px solid;
}

/* =================================
   BUTTON: FARBVARIANTEN
   ================================= */

.button.green {
  color: #4CAF71;
  border-color: #4CAF71;
}

.button.red {
  color: #E66A6A;
  border-color: #E66A6A;
}

.button.blue {
  color: #4A90E2;
  border-color: #4A90E2;
}

.button.grey {
  color: #37434B;
  border-color: #37434B;
}

.button.white {
  color: #F2F4F7;
  border-color: # ;
}

/* =================================
   BUTTON: HOVER STATES (OUTLINE)
   ================================= */

.button-outline.green:hover {
  background: #4CAF71;
  color: #12181B;
}

.button-outline.red:hover {
  background: #E66A6A;
  color: #12181B;
}

.button-outline.blue:hover {
  background: #4A90E2;
  color: #12181B;
}

.button-outline.grey:hover {
  background: #37434B;
  color: #F2F4F7;
}

.button-outline.white:hover {
  background: #F2F4F7;
  color: #12181B;
}

/* =================================
   COMPONENT: BOX (BASIS)
   ================================= */

.box {
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =================================
   COMPONENT: BOX – PRIMARY
   ================================= */

.box--primary {
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}


/* =================================
   COMPONENT: BOX – SECONDARY
   ================================= */

.box--secondary {
  background: #121212;
  border: 3px solid #444;
}

/* =================================
   BOX – LEGACY BRIDGE (FINAL)
   ================================= */

/* SECONDARY BOX (Standard + Zusatzfrage) */
.spiel-box {
  position: relative; /* WICHTIG */

  background: rgba(240, 244, 248, 0.6);
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);

 box-shadow:
  0 14px 32px rgba(0,0,0,0.14),
  inset 0 1px 0 rgba(255,255,255,0.45);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;


  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* Hover → nur Lift, keine Helligkeitsänderung */
.spiel-box:hover {
  transform: translateY(-4px);
  box-shadow:
      0 16px 40px rgba(0,0,0,0.20),
      inset 0 1px 0 rgba(255,255,255,0.40),
      inset 0 -12px 18px rgba(0,0,0,0.05);
}


.spiel-box.disabled {
    position: relative; /* WICHTIG */

  background: rgba(240, 244, 248, 0.6);
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);

 box-shadow:
  0 14px 32px rgba(0,0,0,0.14),
  inset 0 1px 0 rgba(255,255,255,0.45);

  opacity: 0.875;
}

/* PRIMARY BOX (Dashboard) */
.primary-box {
  position: relative; /* WICHTIG */

  background: rgba(240, 244, 248, 0.6);
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);

 box-shadow:
  0 14px 32px rgba(0,0,0,0.14),
  inset 0 1px 0 rgba(255,255,255,0.45);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;


  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .primary-box {
    margin-bottom: 2rem;
  }
}

/* PRIMARY BOX (Profil) */
.primary-box-profil {
  position: relative; /* WICHTIG */

  background: rgba(240, 244, 248, 0.6);
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);

 box-shadow:
  0 14px 32px rgba(0,0,0,0.14),
  inset 0 1px 0 rgba(255,255,255,0.45);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;


  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 1rem;
}

/* Standard (Mobile First) ist bereits 1rem durch deine Klasse */

@media (min-width: 768px) {
  .primary-box-profil {
    margin-bottom: 2rem;
  }
}

/* PRIMARY BOX (Home) */
.primary-box-home{
  position: relative; /* WICHTIG */

  background: rgba(240, 244, 248, 0.6);
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);

 box-shadow:
  0 14px 32px rgba(0,0,0,0.14),
  inset 0 1px 0 rgba(255,255,255,0.45);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;


  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 0rem;
}

/* PRIMARY BOX (Home) */
.primary-box-turnier{
  position: relative; /* WICHTIG */

  background: rgba(240, 244, 248, 0.6);
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);

 box-shadow:
  0 14px 32px rgba(0,0,0,0.14),
  inset 0 1px 0 rgba(255,255,255,0.45);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;


  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 0rem;
}



/* =================================
   COMPONENT: TABLES
   ================================= */

/* =================================
   TABLE: RANKING (LIGHT)
   ================================= */

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;

  font-family: "Lato", sans-serif;
  background: rgba(242, 244, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: #37434B;
  border-radius: 12px;
  overflow: hidden;

  border: 1px solid;
  box-shadow:
  0 14px 32px rgba(0,0,0,0.1),
  inset 0 1px 0 rgba(255,255,255,0.45);
}

.ranking-table thead {
  background: rgba(55, 67, 75, 0.2);
  border-bottom: 0.1px solid rgba(55, 67, 75, 0.2);
}

/* Header-Styling korrigieren */
.ranking-table th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-family: "Lato", sans-serif;
  text-transform: none; /* Entfernt Uppercase */
  font-weight: 800;
  color: #37434B;
  font-size: 0.9rem;
}

/* Zell-Styling für bessere Abstände */
.ranking-table td {
  padding: 0rem 1rem;
  vertical-align: middle;
  height: 40px;
  
}

/* Rechte Spalte (Status/Punkte) immer rechtsbündig für bessere Optik */
.ranking-table th:last-child,
.ranking-table td:last-child {
  text-align: right;
}

/* Links in der Tabelle clean stylen */
.ranking-table td a {
  text-decoration: none;
  color: #37434B;
}

.ranking-table td a:hover {
  color: #4A90E2; /* Dein Website-Blau beim Hover */
}

/* Trennlinien */
.ranking-table tr {
  border-bottom: 0.1px solid rgba(55, 67, 75, 0.2);
}

.ranking-table tr:last-child {
  border-bottom: none;
}


/* Zebra-Pattern: Grundfarbe #37434B mit nur 3% Deckkraft */
.ranking-table tr:nth-child(even) {
  background: rgba(55, 67, 75, 0.05);
}

/* eigenen user in der rangliste hervorheben */
.ranking-table tr.ich {
  background-color: rgba(76, 175, 113, 0.5);
  font-weight: bold;
  color: #37434B; /* bleibt lesbar auf dunklem Hintergrund */
}

/* Logo + Teamname sauber ausrichten */
.ranking-table .team-cell {
  display: flex;
  align-items: center; /* sorgt dafür, dass alle Logos auf gleicher Höhe stehen */
  gap: 6px;
  margin-top: 1rem;
}

.ranking-table .team-cell img {
  height: 20px;
  width: 20px;
  object-fit: contain; /* verhindert gestreckte Logos */
}

/* --- 1. BASIS & MOBILE (Standard: Alles untereinander & zentriert) --- */
.ranglisten-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0rem;
}

.rangliste-suchfeld {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.rangliste-suchfeld input[type="text"] {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1.5px solid #37434B;
  background-color: transparent;
  color: #37434B;
  /* Feste Breite laut deinem Wunsch */
  width: 250px; 
  max-width: 100%; 
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.rangliste-suchfeld input[type="text"]:focus {
  outline: none;
  background-color: #F2F3F5;
}

/* Pagination Styling */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination img {
  width: 18px;
  height: 18px;
  display: block;
  cursor: pointer;
  /* Unsichtbare Klickflächen-Vergrößerung */
  padding: 6px;
  margin: -6px;
  transition: opacity 0.2s ease;
}

.pagination img.disabled {
  opacity: 0.0; /* Pfeil unsichtbar, wenn inaktiv */
  cursor: default;
}

.pagi-info {
  font-size: 1rem;
  color: #37434B;
  user-select: none;
  min-width: 3rem;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
}

/* --- 2. DESKTOP ANPASSUNGEN (Ab 768px: Alles nebeneinander) --- */
@media (min-width: 768px) {
  .ranglisten-tools {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0rem;
  }

  .rangliste-suchfeld {
    flex-direction: row;
    width: auto;
  }

  .pagination {
    justify-content: flex-end;
  }
}

/* =================================
   COMPONENT: Tipps-Spiele
   ================================= */

.eggstra-btn {
  /* nur FARBE ersetzen */
  background: linear-gradient(90deg, #F2F4F7, #F2F4F7);
  border: 2px solid #37434B;
  color: #37434B; /* hellgraue Schrift, gut lesbar */
  font-family: "Bebas Neue", sans-serif;
  font-style: italic;
  font-weight: bold;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  padding-left: 8px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
   text-shadow: 1px 1px 2px rgba(55, 67, 75, 0.25);
  margin-top: -0.75rem;
}

.eggstra-btn.active {
  background: linear-gradient(
    90deg,
    #F2D27A,  /* helles Gold */
    #D4AF37,  /* klassisches Gold */
    #B8962E   /* dunkles Gold */
  );
  color: #37434B;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.55);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.55);
}

.eggstra-btn.disabled,
.eggstra-btn:disabled {
  /* nur FARBE ersetzen */
  background: linear-gradient(90deg, #F2F4F7, #F2F4F7);
  border: 2px solid rgba(55, 67, 75, 0.25);
  color: rgba(55, 67, 75, 0.55);
}

.number-control{
  --btn: clamp(18px, 3.8vw, 22px);  /* kleiner */
  --pad-y: 2px;                     /* weniger hoch */
  --pad-x: 6px;                     /* weniger breit */


  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  width: 72px;         /* bleibt konstant -> Pill wird nicht breiter */
  justify-content: space-between;

  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 2px solid #37434B;
  overflow: visible;                   /* falls etwas “überlappt” */
}

.number-control .btn{
  width: var(--btn);
  height: var(--btn);
  padding: 0;
  border: 0;
  background: transparent;

  display: grid;
  place-items: center;
  
}

.number-control .btn img{
  width: 90%;
  height: 90%;
  display: block;
}

.number-control .btn:hover{
  filter: brightness(1.05);
}


.number-control .value{ flex: 1; text-align: center; }

.punkte-badge-inline {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-left: 6px;
}







