/* =========================================================
   BandenCheck - Styles (bereinigt)
   Grundlage: deine style.css (Duplicates entfernt)
   ========================================================= */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background + Overlay */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: url('images/ice-arena-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.80);
  z-index: 0;
  pointer-events: none;
}

main, .admin-content, .container, .form-container, header, footer {
  position: relative;
  z-index: 1;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Navigation (modernisiert)
   ========================================================= */
header {
  background: rgba(26,26,26,0.98);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border-radius: 0;
  margin-bottom: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}


.nav-brand {
  flex: 0 0 auto;
  margin-right: 32px;
}

.nav-brand a {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.nav-logo {
  height: 56px;
  width: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}



.nav-menu {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;

  padding: 6px 10px;
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  border-left: 4px solid #4CAF50;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9);

  margin-left: auto;
}


.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover {
  background: #4CAF50;
  color: #fff;
}

.nav-menu a.active {
  background: transparent;
  box-shadow: none;
  color: #4CAF50;
  font-weight: 700;
}

.nav-menu .logout-link {
  font-weight: 600;
  margin-left: 8px;
}

.nav-menu .user-avatar {
  background: #2196F3;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 4px;
  box-shadow: 0 2px 6px rgba(33,150,243,0.15);
}

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 12px;
}

.nav-login-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.nav-action-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-action-link:hover {
  background: #4CAF50;
  color: #fff;
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  color: #fff;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.theme-toggle--panel {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

.theme-toggle:hover {
  background: #4CAF50;
  color: #fff;
}

html[data-theme="dark"] .theme-toggle--panel {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #e6e6e6;
}

/* =========================================================
   Main Content
   ========================================================= */
main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

/* =========================================================
   Forms
   ========================================================= */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group .checkbox-row input[type="checkbox"],
.form-group .checkbox-row input[type="radio"] {
  width: auto;
  margin: 0;
}

.form-group .checkbox-row label {
  display: inline;
  margin: 0;
  font-weight: 500;
}

.playoff-fields {
  padding: 12px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

html[data-theme="dark"] .playoff-fields {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
  font-weight: 500;
}

.btn-primary { background-color: #4CAF50; color: #fff; }
.btn-primary:hover { background-color: #45a049; }

.btn-soft {
  background: #e9ecef;
  color: #212529;
  border: 1px solid #ced4da;
}

.btn-soft:hover {
  background: #dee2e6;
  color: #212529;
}

.btn-outline-primary {
  background: transparent;
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

/* Ensure outline buttons don't turn purple (visited links) */
a.btn-outline-primary,
a.btn-outline-primary:visited {
  color: #4CAF50;
}

.btn-outline-primary:hover {
  background-color: #4CAF50;
  color: #fff;
}

a.btn-primary,
a.btn-primary:visited {
  color: #fff;
}

a.btn-soft,
a.btn-soft:visited {
  color: #212529;
}

.btn-secondary { background-color: #2196F3; color: #fff; }
.btn-secondary:hover { background-color: #0b7dda; }

.btn-danger { background-color: #f44336; color: #fff; }
.btn-danger:hover { background-color: #da190b; }

.btn-success { background-color: #4CAF50; color: #fff; }

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
}

/* (Behalte die spätere Bedeutung von btn-sm, entferne die doppelte frühe) */
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 8px;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Small neutral buttons (e.g. points +/-) */
.points-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  margin-left: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: transparent;
  color: #333;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.points-step-btn:hover {
  filter: brightness(0.98);
}

/* =========================================================
   Alerts
   ========================================================= */
.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Dismissible info box */
.info-box {
  position: relative;
}

.info-box__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.info-box__dismiss {
  /* keeps existing .btn styling, but avoids looking too "primary" in alerts */
  opacity: 0.9;
}

.info-box__dismiss:hover {
  opacity: 1;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* =========================================================
   Cookie Notice
   ========================================================= */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  z-index: 50;
}

.cookie-notice__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-notice__text {
  font-size: 12px;
  color: #444;
}

.cookie-notice__text a {
  color: #4CAF50;
  text-decoration: underline;
}

/* =========================================================
   Tables
   ========================================================= */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th {
  background-color: #f5f5f5;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.table tr:hover {
  background-color: #f9f9f9;
}

/* Leaderboard: highlight users with public profiles */
.leaderboard-user-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.85);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.leaderboard-user-link:hover {
  border-bottom-color: rgba(76, 175, 80, 1);
  color: #1b5e20;
}

html[data-theme="dark"] .leaderboard-user-link {
  border-bottom-color: rgba(76, 175, 80, 0.85);
  color: inherit;
}

html[data-theme="dark"] .leaderboard-user-link:hover {
  border-bottom-color: rgba(120, 220, 130, 1);
  color: #c9f7d1;
}

/* Profile edit: keep public settings on the right (desktop) */
.profile-edit-grid {
  display: block;
}

@media (min-width: 900px) {
  .profile-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
  }
}

/* =========================================================
   Admin
   ========================================================= */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.admin-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.admin-card.is-disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.admin-card.is-disabled:hover {
  transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.admin-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.admin-card p {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.admin-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 40px;
}

.admin-form {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
}

/* Glass / blur panel (nice on image backgrounds) */
.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
}

html[data-theme="dark"] .glass-panel {
  background: rgba(15, 15, 15, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

/* Soft grey backdrop for lists/tables on image backgrounds */
.soft-panel {
  background: rgba(245, 245, 245, 0.80);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px;
}

html[data-theme="dark"] .soft-panel {
  background: rgba(25, 25, 25, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.soft-panel .admin-table {
  width: 100%;
}

.soft-panel .admin-table thead th {
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .soft-panel .admin-table thead th {
  background: rgba(255, 255, 255, 0.06);
}

.soft-panel .admin-table tbody tr {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .soft-panel .admin-table tbody tr {
  background: rgba(0, 0, 0, 0.20);
}

.soft-panel .admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.70);
}

html[data-theme="dark"] .soft-panel .admin-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.32);
}

/* =========================================================
   Dashboard Layout + Hero
   ========================================================= */
.home-content {
  text-align: left;
}

.home-hero {
  text-align: center;
  padding-top: 18px;
}

.home-hub {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr) minmax(260px, 360px);
  grid-template-areas: "left center right";
  gap: 20px;
  align-items: start;
  margin-top: 26px;
}

.home-hub__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-hub__side--left {
  grid-area: left;
}

.home-hub__center {
  grid-area: center;
}

.home-hub__side--right {
  grid-area: right;
}

.home-sidecard__list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.home-sidecard__list li {
  margin: 8px 0;
}

.home-sidecard__kpis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
}

.home-sidecard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .home-hub {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left"
      "right";
  }

  .home-sidecard__actions {
    justify-content: flex-start;
  }
}

.home-banner {
  width: 100%;
  margin: 0 0 24px 0;
  height: 260px;
  overflow: hidden;
}

.home-banner img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}


.dashboard-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 24px;
}

/* =========================================================
   Profile Layout
   ========================================================= */
.profile-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.profile-layout--single {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-user-area {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.welcome-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.welcome h2 {
  margin-bottom: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 260px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-hero {
  margin-bottom: 40px;
}


/* (Behalte die spätere welcome-banner Variante, entferne die frühe doppelte) */
.welcome-banner {
  background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-top: -20px;
  position: relative;
  z-index: 5;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.welcome-banner h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

.welcome-banner p {
  font-size: 16px;
  opacity: 0.95;
}

.dashboard-sidebar .dashboard-card {
  margin-bottom: 0;
}

.dashboard-card--compact {
  padding: 16px;
}

.results-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-mini-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 10px;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
}

.result-mini-item:hover {
  background-color: #f0f0f0;
}

.result-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-abbr {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

.result-mini-score {
  color: #4CAF50;
  font-weight: 800;
  white-space: nowrap;
}

.result-mini-status {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Only lift cards on hover inside admin UI */
.admin-dashboard .dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dashboard-card h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #1a1a1a;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 10px;
}

.text-muted {
  color: #999;
  font-style: italic;
}

/* Matches List */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.match-item,
.match-result {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 10px;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
}

.match-item.match-item-split {
  border: 0;
  padding: 0;
  background: transparent;
}

.match-item:hover {
  background-color: #f0f0f0;
}

.match-item.match-item-split:hover .match-box {
  background-color: #f0f0f0;
}

.match-item.match-item-split:hover .match-box-mid {
  background-color: #f0f0f0;
  background-image: linear-gradient(rgba(76, 175, 80, 0.09), rgba(76, 175, 80, 0.09));
}

.match-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 0;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}

.match-teams strong {
  font-size: 18px;
}

.match-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.match-split {
  display: grid;
  grid-template-columns: 1fr max-content max-content;
  gap: 8px;
  align-items: stretch;
}

.match-box {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 10px;
  background-color: #f9f9f9;
}

.match-box-mid {
  background-image: linear-gradient(rgba(76, 175, 80, 0.06), rgba(76, 175, 80, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-box-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.match-tip-empty {
  font-size: 12px;
}

.match-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.match-tip-inline {
  justify-self: center;
}

.match-header-spacer {
  min-width: 180px;
}

.match-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  min-width: 180px;
}

.match-tip-preview {
  font-size: 13px;
  color: #666;
}

.match-tip-preview--inline {
  text-align: center;
}

.match-tip-preview--inline .match-tip-type-row {
  text-align: center;
}

.match-tip-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 8px;
  row-gap: 2px;
  align-items: baseline;
}

.match-tip-team {
  font-size: 12px;
  color: #777;
  line-height: 1.2;
}

.match-tip-home {
  text-align: left;
}

.match-tip-away {
  text-align: right;
}

.match-tip-mid {
  text-align: center;
  color: #4CAF50;
  font-weight: 800;
}

.match-tip-scorecell {
  font-size: 13px;
}

.match-tip-scorecell strong {
  font-size: 15px;
}

.match-tip-type-row {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 12px;
}

.match-tip-teams {
  font-size: 12px;
  color: #777;
  line-height: 1.2;
}

.match-tip-vs {
  color: #4CAF50;
  font-weight: 800;
  padding: 0 4px;
}

.match-tip-score {
  margin-top: 2px;
  font-size: 13px;
}

.match-tip-preview strong {
  font-size: 15px;
}

.match-tip-type {
  opacity: 0.9;
}

@media (max-width: 700px) {
  .match-split {
    grid-template-columns: 1fr;
  }

  .match-box-mid {
    justify-content: flex-start;
  }

  .match-box-right {
    justify-content: flex-start;
  }

  .match-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .match-tip-inline {
    justify-self: start;
  }

  .match-header-spacer {
    display: none;
  }

  .match-actions {
    width: 100%;
    align-items: flex-start;
    min-width: 0;
  }

  .match-tip-type-row {
    text-align: left;
  }

  .match-teams {
    width: 100%;
  }
}

.vs,
.score {
  color: #4CAF50;
  font-weight: bold;
  padding: 0 5px;
}

.score {
  font-size: 16px;
}

.match-league {
  font-size: 11px;
  color: #666;
  margin-bottom: 0;
}

.match-time {
  font-size: 11px;
  color: #4CAF50;
  margin-bottom: 0;
}

/* Leagues Grid */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.league-badge {
  background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
  color: #fff;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  transition: transform 0.2s;
}

.league-badge:hover {
  transform: scale(1.05);
}

.league-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.league-season {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 8px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-box {
  background: #f9f9f9;
  color: #1a1a1a;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.stat-box span {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: #4CAF50;
}

.dashboard-hint {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 15px 0 0;
  color: #666;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex;
  gap: 5px;
  margin: 20px 0;
  justify-content: center;
}

.pagination a {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.pagination a:hover,
.pagination a.active {
  background-color: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-group {
  white-space: nowrap;
}

.footer-label {
  font-weight: 600;
  margin-right: 6px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 4px;
}

.footer-disclaimer {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .dashboard-sidebar {
    min-width: 0;
    margin-bottom: 24px;
  }

  .dashboard-main {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    justify-content: center;
  }

  .nav-brand {
    width: 100%;
    margin-right: 0;
    display: flex;
    justify-content: center;
  }

  .nav-logo {
    width: min(280px, 88vw);
    height: 70px;
    object-fit: contain;
  }

  .nav-menu {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .form-container {
    padding: 20px;
  }

  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 8px 10px;
  }

  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll .table {
    min-width: 640px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 16px;
  }

  .home-banner {
    height: 200px;
  }

  .welcome-banner {
    padding: 20px;
  }

  .welcome-banner h1 {
    font-size: 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .leagues-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-group {
    white-space: normal;
  }
}

/* =========================================================
   Theme: Dark Mode
   ========================================================= */
html[data-theme="dark"] body,
body[data-theme="dark"] {
  color: #e6e6e6;
}

html[data-theme="dark"] body::before,
body[data-theme="dark"]::before {
  background: rgba(0,0,0,0.72);
}

html[data-theme="dark"] .form-container,
html[data-theme="dark"] .admin-content,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .dashboard-user-area,
body[data-theme="dark"] .form-container,
body[data-theme="dark"] .admin-content,
body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .dashboard-user-area {
  background: rgba(26,26,26,0.92);
  color: #e6e6e6;
}

html[data-theme="dark"] .admin-form {
  background: rgba(255,255,255,0.05);
}

html[data-theme="dark"] .admin-card p {
  color: rgba(255,255,255,0.75);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .form-group select {
  background: rgba(0,0,0,0.45);
  color: #e6e6e6;
  border-color: rgba(255,255,255,0.22);
}

html[data-theme="dark"] select,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"] {
  background: rgba(0,0,0,0.45);
  color: #e6e6e6;
  border-color: rgba(255,255,255,0.22);
}

html[data-theme="dark"] select option {
  background: rgba(26,26,26,0.98);
  color: #e6e6e6;
}

html[data-theme="dark"] .text-muted {
  color: rgba(255,255,255,0.70);
}

html[data-theme="dark"] .dashboard-card h2 {
  color: #e6e6e6;
}

html[data-theme="dark"] .dashboard-card {
  background: rgba(26,26,26,0.92);
  color: #e6e6e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

html[data-theme="dark"] .admin-dashboard .dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
}


html[data-theme="dark"] .stat-box {
  background: rgba(255,255,255,0.05);
  color: #e6e6e6;
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .result-mini-item,
html[data-theme="dark"] .match-item,
html[data-theme="dark"] .match-result,
html[data-theme="dark"] .dashboard-hint {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .match-box {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

body[data-theme="dark"] .match-box {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .match-box-mid,
body[data-theme="dark"] .match-box-mid {
  background-image: linear-gradient(rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.12));
}

html[data-theme="dark"] .match-box-mid .match-tip-preview,
html[data-theme="dark"] .match-box-mid .match-tip-scorecell {
  color: #ffffff;
}

html[data-theme="dark"] .match-box-mid .match-tip-team {
  color: rgba(255,255,255,0.85);
}

html[data-theme="dark"] .match-box-mid .match-tip-type {
  color: rgba(255,255,255,0.70);
  opacity: 1;
}

html[data-theme="dark"] .result-mini-item:hover,
html[data-theme="dark"] .match-item:hover {
  background-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .match-item.match-item-split:hover .match-box {
  background-color: rgba(255,255,255,0.08);
}

body[data-theme="dark"] .match-item.match-item-split:hover .match-box {
  background-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .match-item.match-item-split:hover .match-box-mid,
body[data-theme="dark"] .match-item.match-item-split:hover .match-box-mid {
  background-image: linear-gradient(rgba(76, 175, 80, 0.16), rgba(76, 175, 80, 0.16));
}

html[data-theme="dark"] .team-abbr {
  color: #e6e6e6;
}

html[data-theme="dark"] .result-mini-status,
html[data-theme="dark"] .match-date {
  color: rgba(255,255,255,0.55);
}

html[data-theme="dark"] .match-league {
  color: rgba(255,255,255,0.75);
}

html[data-theme="dark"] .table {
  background: rgba(26,26,26,0.92);
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .table th {
  background-color: rgba(255,255,255,0.06);
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

html[data-theme="dark"] .table td {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

html[data-theme="dark"] .table tr:hover {
  background-color: rgba(255,255,255,0.04);
}

html[data-theme="dark"] .cookie-notice {
  background: rgba(26,26,26,0.98);
  border-top-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .cookie-notice__text {
  color: rgba(255,255,255,0.85);
}

html[data-theme="dark"] .pagination a {
  background: rgba(0,0,0,0.15);
  color: #e6e6e6;
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .points-step-btn {
  border-color: rgba(255,255,255,0.12);
  color: #e6e6e6;
}
/* =========================================================
   Ende der style.css
   ========================================================= */