/* --- index --- */
:root {
      --primary: #c0392b;
      --primary-dark: #962d22;
      --bg-light: #f3f4f6;
      --text-main: #1f2933;
      --text-muted: #6b7b8a;
      --card-radius: 0.9rem;
      --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    body {
      /* Platz für fixed Navbar – skaliert je nach Gerät */
      padding-top: clamp(5.25rem, 9vw, 7rem);
      background-color: var(--bg-light);
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
      line-height: 1.5;
    }

    /* NAVBAR – zentrierter Header (Titel, Menü, Suche übereinander) */
    .navbar {
      background: linear-gradient(90deg, var(--primary), #e74c3c);
      box-shadow: 0 4px 14px rgba(148, 27, 12, 0.35);
    }

    .navbar .container-fluid {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff !important;
      text-align: center;
      margin-bottom: 0.4rem;
    }

    /* Logo vor MrFussball.de */
    .navbar-brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
      text-transform: uppercase;
    }

    .navbar-brand-text {
      display: inline-block;
    }

    .navbar-toggler {
      border: none;
      margin-bottom: 0.4rem;
    }

    .navbar-toggler:focus {
      box-shadow: none;
    }

    .navbar-collapse {
      flex-direction: column;
      align-items: center;
    }

    .navbar .nav-link {
      color: #ffecec !important;
      opacity: 0.9;
      border-bottom: 2px solid transparent;
      font-size: 0.92rem;
      font-weight: 500;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      opacity: 1;
      border-bottom-color: #ffffff;
    }

    .navbar .dropdown-menu {
      border-radius: 0.6rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      text-align: center;
    }

    .navbar .dropdown-item:hover {
      background-color: rgba(192, 57, 43, 0.08);
    }

    .navbar-nav {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.4rem;
    }

    @media (max-width: 991.98px) {
      .navbar-nav {
        flex-direction: column;
        align-items: center;
      }
    }

    /* Suchfeld direkt im Header zentriert unter dem Menü */
    .navbar-search {
      max-width: 260px;
      border-radius: 999px;
      font-size: 0.9rem;
      border-color: #e2e8f0;
    }

    .navbar-search:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
    }

    /* Hauptcontainer */
    .container {
      max-width: 1200px;
    }

    /* HERO – bleibt hell, nur als Card gestylt */
    .hero-wrapper {
      margin-top: 0.5rem;
      margin-bottom: 2rem;
    }

    .hero-card {
      position: relative;
      overflow: hidden;
      border-radius: 1.1rem;
      box-shadow: var(--shadow-soft);
      background-color: #ffffff;
      /* verhindert "überlappende" Inhalte wenn das Bild auf kleinen Screens noch nicht geladen ist */
      min-height: 240px;
    }

    .hero-image {
      background: url("../img/Titelbild.png") center 35% / cover no-repeat;
    }

    @media (min-width: 768px) {
      .hero-image {
        height: 380px;
      }
    }

    .hero-overlay-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
      color: white;
      padding: 1rem 1.25rem 1.25rem;
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 0.75rem;
      z-index: 2;
    }

    .hero-title {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.15rem;
    }

    .hero-subtitle {
      font-size: 0.9rem;
      opacity: 0.9;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background-color: rgba(0, 0, 0, 0.42);
      padding: 0.3rem 0.7rem;
      border-radius: 999px;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .hero-pill i {
      font-size: 0.9rem;
    }

    /* Sektionstitel */
    .section-title {
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    /* Karten für Blöcke */
    .section-card {
      background-color: #ffffff;
      border-radius: var(--card-radius);
      padding: 1.25rem 1.4rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid #e5e7eb;
      margin-bottom: 2rem;
    }

    /* Tabs NÄCHSTE SPIELE */
    .tabs {
      gap: 0.35rem;
      flex-wrap: wrap;
    }

    .tabs .btn {
      border-radius: 999px;
      font-size: 0.83rem;
      padding: 0.3rem 0.9rem;
      border: 1px solid #e5e7eb;
      background-color: #ffffff;
      color: var(--text-muted);
      text-transform: none;
    }

    .tabs .btn.active {
      background-color: var(--primary);
      color: #ffffff;
      border-color: var(--primary-dark);
      box-shadow: 0 4px 10px rgba(192, 57, 43, 0.35);
    }

    .tab-content {
      display: none;
      margin-top: 1rem;
    }

    .tab-content.active {
      display: block;
    }

    .game-info-line {
      background-color: #f8fafc;
      border-radius: 999px;
      padding: 0.6rem 1.1rem;
      border: 1px solid #e5e7eb;
      font-size: 0.9rem;
      margin-bottom: 0.45rem;
      min-width: min(460px, 100%);
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      align-items: center;
    }

    .game-info-line:hover {
      background-color: #f1f5f9;
    }

    /* TABELLE – nah am Original, etwas moderner */
    .table thead th {
      background-color: var(--primary);
      color: white;
      text-align: center;
      font-size: 0.8rem;
      vertical-align: middle;
    }

    .table tbody tr {
      background-color: #ffffff;
      transition: background-color 0.15s ease, transform 0.1s ease;
    }

    .table tbody tr:nth-child(even) {
      background-color: #f9fafb;
    }

    .table tbody tr:hover {
      background-color: #f1f5f9;
      transform: translateY(-1px);
    }

    /* Klick-Auswahl (statt nur Gridlines zu entfernen) */
    .table tbody tr.is-selected {
      background-color: rgba(192, 57, 43, 0.12) !important;
    }
    .table tbody tr.is-selected:hover {
      transform: none;
    }

    .table td {
      font-size: 0.85rem;
      vertical-align: middle;
    }

    .table-container {
      margin-top: 2.5rem;
    }

    .table-header {
      margin-bottom: 0.9rem;
    }

    #competition {
      font-size: 0.86rem;
      padding: 0.3rem 0.9rem;
    }

    .result-square {
      display: inline-block;
      width: 11px;
      height: 11px;
      margin: 0 1px;
      border-radius: 2px;
    }

    .result-square.green {
      background-color: #28a745;
    }

    .result-square.orange {
      background-color: #ffc107;
    }

    .result-square.red {
      background-color: #dc3545;
    }

    .matchday-title h2 {
      font-size: 1rem;
      margin-bottom: 0.4rem;
    }

    #last-matchday .list-group-item {
      font-size: 0.85rem;
    }

    /* RSS-Feed Bereich – Behält rot, aber etwas „cardiger“ */
    .big-div-box-rss {
      margin-top: 2.5rem;
    }

    #rss-carousel {
      border-radius: var(--card-radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      border: 1px solid #e5e7eb;
    }

    .carousel-item {
      background-color: var(--primary);
      color: white;
      padding: 1.25rem;
    }

    .feed-header h2 {
      color: white;
      font-size: 1rem;
      margin-bottom: 0.8rem;
    }

    .rss-container ul {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }

    .rss-container ul li {
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      padding: 0.45rem 0;
    }

    .rss-container ul li:last-child {
      border-bottom: none;
    }

    .rss-container ul li h5 {
      font-size: 0.95rem;
      margin-bottom: 0.2rem;
    }

    .rss-container ul li h5 a {
      color: white;
      text-decoration: none;
    }

    .rss-container ul li h5 a:hover {
      text-decoration: underline;
    }

    .rss-container ul li p {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 0;
    }

    .pagination-dots {
      text-align: center;
      margin-top: 0.8rem;
      background-color: #b33426;
      padding: 0.4rem 0.6rem 0.6rem;
    }

    .pagination-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      margin: 0 5px;
      background-color: rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      cursor: pointer;
      opacity: 0.5;
    }

    .pagination-dot.active {
      opacity: 1;
      background-color: #ffffff;
    }

    .carousel-control-prev,
    .carousel-control-next {
      display: none;
    }

    /* Footer – nah am Original */
    footer {
      background-color: #111827;
    }

    footer h5 {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }

    footer ul li {
      font-size: 0.86rem;
      color: #cbd5f5;
      margin-bottom: 0.2rem;
    }

    footer .form-control {
      font-size: 0.86rem;
    }

    footer .small {
      color: #9ca3af;
    }

    footer a.text-white {
      opacity: 0.85;
    }

    footer a.text-white:hover {
      opacity: 1;
    }

    @media (max-width: 767.98px) {
      body {
        padding-top: 5.5rem;
      }

      .hero-image {
        height: 260px;
      }

      .game-info-line {
        min-width: 100%;
      }
    }

/* =========================================================
   Responsive-Optimierungen (global für alle Unterseiten)
   ========================================================= */

/* Grundlayout: saubere Typografie + Medien skalieren */
body {
  padding-top: clamp(5.25rem, 9vw, 7rem) !important; /* überschreibt ggf. ältere body-Definitionen */
  line-height: 1.5;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Navbar: auf großen Screens nicht künstlich 100% Breite für die Links erzwingen */
@media (min-width: 992px) {
  .navbar-nav {
    width: auto;
  }
}

/* Hero: Höhe fluid, damit es auf Mobile nicht „zu hoch“ wird */
.hero-image {
  height: clamp(240px, 42vw, 380px);
}

/* Hero-Overlay: auf sehr kleinen Geräten untereinander statt gequetscht */
@media (max-width: 575.98px) {
  .hero-overlay-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-search {
    width: min(340px, 92vw);
  }
}

/* Tabellen: auf Mobile horizontal scrollen statt Layout zu sprengen */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Falls irgendwo eine Tabelle OHNE Wrapper gerendert wird: trotzdem nicht aus der Card laufen */
.section-card > table.table,
.section-card table.table:not(.table-responsive table) {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Matchday-/Spieltag-Leiste sauber zentrieren */
.matchday-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.matchday-controls h2 {
  text-align: center;
  margin: 0;
}

.matchday-controls .btn {
  width: max-content;
}

@media (max-width: 575.98px) {
  .matchday-controls {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .matchday-controls h2 {
    text-align: left;
  }
}

/* Klick-Markierung für Tabellenzeilen */
.table tbody tr.is-selected {
  background-color: rgba(192, 57, 43, 0.12) !important;
}

.table tbody tr.is-selected td {
  border-color: rgba(192, 57, 43, 0.35) !important;
}

@media (max-width: 767.98px) {
  .table {
    min-width: 720px;
  }

  .table thead th,
  .table td {
    padding: 0.45rem 0.55rem;
  }
}

/* Karten-Padding leicht fluid */
.section-card {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

/* Überschriften fluid */
.hero-title {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
}

.section-title {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}


/* --- begegnungen --- */
:root {
      --primary: #c0392b;
      --primary-dark: #962d22;

      --bg-light: #f3f4f6;
      --text-main: #1f2933;
      --text-muted: #6b7b8a;

      --card-radius: 0.95rem;
      --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.12);
      --border: #e5e7eb;

      --green-bg: #d4edda;
      --green-border: #c3e6cb;

      --red-bg: #f8d7da;
      --red-border: #f5c6cb;

      --amber-bg:#fff3cd;
      --amber-border:#ffeeba;

      --blue-bg:#e0f2fe;
      --blue-border:#bae6fd;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      padding-top: 6.8rem;
      background-color: var(--bg-light);
      font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
      color: var(--text-main);
    }
    .container { max-width: 1300px; }

    /* NAVBAR – wie dein Beispiel */
    .navbar {
      background: linear-gradient(90deg, var(--primary), #e74c3c);
      box-shadow: 0 4px 14px rgba(148, 27, 12, 0.35);
    }
    .navbar .container-fluid {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.55rem;
      padding-bottom: 0.55rem;
    }
    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff !important;
      text-align: center;
      margin-bottom: 0.35rem;
    }
    .navbar-brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }
    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
    }
    .navbar-toggler { border: none; margin-bottom: 0.35rem; }
    .navbar-toggler:focus { box-shadow: none; }
    .navbar-collapse { flex-direction: column; align-items: center; }
    .navbar-nav {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.35rem;
    }
    @media (max-width: 991.98px) {
      .navbar-nav { flex-direction: column; align-items: center; }
    }
    .navbar .nav-link {
      color: #ffecec !important;
      opacity: 0.9;
      border-bottom: 2px solid transparent;
      font-size: 0.92rem;
      font-weight: 500;
      padding-bottom: 2px;
      display:flex;
      align-items:center;
      gap:.45rem;
    }
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      opacity: 1;
      border-bottom-color: #ffffff;
    }
    .navbar-search {
      max-width: 260px;
      border-radius: 999px;
      font-size: 0.9rem;
      border-color: #e2e8f0;
    }
    .navbar-search:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
    }

    /* Page header like your example */
    .league-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #fee2e2;
      color: #b91c1c;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      border: 1px solid #fecaca;
    }
    .league-badge i { font-size: 1rem; }

    .section-title {
      font-size: 1.55rem;
      font-weight: 700;
      margin-bottom: 0.15rem;
      letter-spacing: -0.01em;
    }
    .section-subtitle {
      font-size: 0.88rem;
      color: var(--text-muted);
      font-weight: 500;
      max-width: 920px;
      margin: 0 auto;
    }

    /* 3-column layout */
    .app {
      display: grid;
      grid-template-columns: 280px 1fr 340px;
      gap: 14px;
      align-items: start;
    }
    @media (max-width: 1200px){
      .app { grid-template-columns: 260px 1fr; }
      .right { display: none; }
    }
    @media (max-width: 900px){
      .app { grid-template-columns: 1fr; }
      .left { display: none; }
    }

    /* Cards like your example */
    .section-card {
      background-color: #ffffff;
      border-radius: var(--card-radius);
      padding: 1.25rem 1.35rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border);
      margin-bottom: 14px;
    }
    .card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 0.9rem;
    }
    .card-head h3 {
      margin: 0;
      font-size: 1.06rem;
      font-weight: 700;
      display:flex;
      align-items:center;
      gap:.55rem;
      letter-spacing: -0.01em;
    }
    .muted { color: var(--text-muted); }
    .mini { font-size: 0.86rem; color: var(--text-muted); font-weight: 500; }

    .badge-mini{
      display:inline-flex;
      align-items:center;
      gap:.35rem;
      padding:.25rem .55rem;
      border-radius:999px;
      border:1px solid var(--border);
      background:#f9fafb;
      font-weight:700;
      font-size:.78rem;
      color: var(--text-muted);
      white-space:nowrap;
    }
    .badge-live{
      background: var(--green-bg);
      border-color: var(--green-border);
      color: #1f6b3a;
    }

    /* chips like your subnav */
    .chiprow{
      display:flex;
      flex-wrap:wrap;
      justify-content:flex-start;
      gap:.55rem;
    }
    .chip{
      border-radius:999px;
      padding:.35rem 1.05rem;
      font-size:.86rem;
      border:1px solid var(--border);
      background:#fff;
      color: var(--text-muted);
      text-decoration:none;
      transition: all .15s ease;
      cursor:pointer;
      user-select:none;
      display:inline-flex;
      align-items:center;
      gap:.45rem;
      font-weight:600;
    }
    .chip.active,
    .chip:hover{
      background-color: var(--primary);
      color:#ffffff;
      border-color: var(--primary-dark);
      box-shadow: 0 4px 10px rgba(192, 57, 43, 0.35);
    }

    .searchbar{
      display:flex;
      align-items:center;
      gap:.6rem;
      border:1px solid var(--border);
      background:#fff;
      border-radius: 999px;
      padding: .6rem .85rem;
    }
    .searchbar input{
      border:0; outline:0;
      width:100%;
      background:transparent;
      font-size:.95rem;
      font-weight:500;
    }

    /* Left nav items */
    .navitem{
      padding: .7rem .75rem;
      border: 1px solid var(--border);
      border-radius: .8rem;
      background: #fff;
      cursor:pointer;
      user-select:none;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      transition: all .15s ease;
      margin-bottom: .55rem;
    }
    .navitem:hover{
      background-color: rgba(192, 57, 43, 0.06);
      border-color: rgba(192, 57, 43, 0.28);
    }
    .navitem.active{
      background-color: rgba(192, 57, 43, 0.10);
      border-color: rgba(192, 57, 43, 0.35);
      box-shadow: 0 8px 18px rgba(192, 57, 43, 0.15);
    }
    .navitem .lbl{
      font-weight:700;
      display:flex;
      align-items:center;
      gap:.55rem;
    }

    /* Match list grouping */
    .group{
      border:1px solid var(--border);
      border-radius: var(--card-radius);
      overflow:hidden;
      background:#fff;
      margin-top: .9rem;
    }
    .ghead{
      padding: .9rem 1rem;
      background:#f9fafb;
      border-bottom:1px solid var(--border);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      font-weight:700;
      cursor:pointer;
      user-select:none;
    }
    .ghead .lhs{
      display:flex;
      align-items:center;
      gap:.55rem;
      min-width:0;
    }
    .ghead .lhs span{
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .gbody{ display:none; }
    .group.open .gbody{ display:block; }

    .datehead{
      padding: .7rem 1rem;
      border-bottom:1px solid var(--border);
      background:#fff;
      display:grid;
      grid-template-columns: 1fr 270px;
      gap:12px;
      align-items:center;
      color: var(--text-muted);
      font-weight:700;
      font-size:.9rem;
    }
    .colheads{
      display:grid;
      grid-template-columns: repeat(3,1fr);
      gap:.55rem;
      text-align:center;
      color:#374151;
      font-weight:700;
      font-size:.85rem;
    }

    /* Match row */
    .matchrow{
      padding: .85rem 1rem;
      border-bottom: 1px solid var(--border);
      display:grid;
      grid-template-columns: 1fr 270px 44px;
      gap:12px;
      align-items:center;
      cursor:pointer;
      background:#fff;
      transition: background .12s ease;
    }
    .matchrow:hover{ background:#f9fafb; }
    .matchrow.opening{
      background: rgba(192,57,43,.06);
      outline: 2px solid rgba(192,57,43,.18);
      outline-offset: -2px;
    }

    .teams{
      display:flex;
      flex-direction:column;
      gap:.35rem;
      font-weight:700;
      min-width:0;
    }
    .teamline{
      display:flex;
      align-items:center;
      gap:.6rem;
      min-width:0;
    }
    .club{
      width:28px;height:28px;border-radius:8px;
      border:1px solid var(--border);
      background:#f3f4f6;
      display:grid; place-items:center;
      font-weight:800;
      color:#374151;
      font-size:.75rem;
      flex:0 0 auto;
    }
    .teamline span{
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .meta2{
      display:flex;
      align-items:center;
      gap:.55rem;
      flex-wrap:wrap;
      margin-top:.45rem;
      color: var(--text-muted);
      font-weight:600;
      font-size:.86rem;
    }
    .pill{
      border:1px solid var(--border);
      background:#f9fafb;
      padding:.18rem .55rem;
      border-radius:999px;
      font-size:.83rem;
      display:inline-flex;
      align-items:center;
      gap:.4rem;
      font-weight:700;
      color:#374151;
    }
    .pill.live{
      background: var(--green-bg);
      border-color: var(--green-border);
      color:#1f6b3a;
    }

    /* probabilities tiles */
    .probs{
      width:270px;
      display:grid;
      grid-template-columns: repeat(3,1fr);
      gap:.55rem;
    }
    .prob{
      border-radius: .8rem;
      border:1px solid #e5e7eb;
      background:#f3f4f6;
      text-align:center;
      padding:.55rem .25rem;
      font-weight:800;
      color:#1f2933;
    }
    .prob small{
      display:block;
      font-size:.75rem;
      font-weight:700;
      color: var(--text-muted);
      margin-top:2px;
    }
    .prob.primary{
      border-color: rgba(192,57,43,.28);
      background: rgba(192,57,43,.08);
      color: var(--primary-dark);
    }
    .prob.ghost{
      background:#fff;
      color:#cbd5e1;
      border-style:dashed;
    }

    /* fav */
    .favbtn{
      width:44px;height:44px;
      border-radius: .8rem;
      border:1px solid var(--border);
      background:#fff;
      display:grid; place-items:center;
      cursor:pointer;
      user-select:none;
      transition: all .12s ease;
    }
    .favbtn:hover{ background:#f9fafb; }
    .favbtn.active{
      background: var(--amber-bg);
      border-color: var(--amber-border);
    }

    /* INLINE DETAIL PANEL (opens under row) – NO RED BACKGROUND */
    .detail-inline{
      grid-column: 1 / -1;
      border-top: 1px solid var(--border);
      background: #f3f4f6; /* neutral grey */
      padding: 1rem;
      animation: fadeInUp .18s ease;
    }
    .detail-inline .wrap{
      border: 1px solid var(--border);
      border-radius: var(--card-radius);
      background: rgba(255,255,255,.96);
      box-shadow: 0 10px 22px rgba(15,23,42,.10);
      overflow:hidden;
    }
    .detail-inline .dh{
      padding: .85rem 1rem;
      background: linear-gradient(90deg, #f9fafb, #ffffff); /* neutral header */
      border-bottom: 1px solid var(--border);
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }
    .detail-inline .dt{
      font-weight:700;
      font-size: 1rem;
      margin:0;
      display:flex;
      align-items:center;
      gap:.55rem;
      flex-wrap:wrap;
    }
    .detail-inline .ds{
      margin-top:.2rem;
      font-size:.88rem;
      color: var(--text-muted);
      font-weight:600;
    }
    .detail-inline .db{
      padding: 1rem;
      background: rgba(255,255,255,.92);
    }
    .detail-grid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:12px;
    }

    @media (max-width: 720px){
      .datehead, .matchrow{ grid-template-columns: 1fr; }
      .probs{ width:100%; }
      .detail-grid{ grid-template-columns: 1fr; }
    }

    /* stats boxes (exact concept from your example) */
    .stats-box{
      border-radius: 0.8rem;
      padding: 1rem;
      text-align: center;
      background-color: #f3f4f6;
      border: 1px solid var(--border);
    }
    .stats-box.green { background-color: var(--green-bg); border-color: var(--green-border); }
    .stats-box.red   { background-color: var(--red-bg); border-color: var(--red-border); }
    .stats-box.blue  { background-color: var(--blue-bg); border-color: var(--blue-border); }
    .stats-box.amber { background-color: var(--amber-bg); border-color: var(--amber-border); }

    .stats-box h4{
      font-size: 0.92rem;
      color: #374151;
      margin-bottom: 0.25rem;
      font-weight: 600;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:.45rem;
    }
    .stats-box .number{
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 0.12rem;
      line-height: 1.1;
    }
    .stats-box p{
      margin: 0;
      font-size: 0.82rem;
      color: var(--text-muted);
      font-weight: 600;
    }

    /* Probability bars */
    .barwrap{
      margin-top:12px;
      border:1px solid var(--border);
      border-radius: var(--card-radius);
      background:#fff;
      padding: .9rem 1rem;
    }
    .barwrap h5{
      font-size: .95rem;
      font-weight:700;
      margin-bottom:.75rem;
      display:flex;
      align-items:center;
      gap:.55rem;
    }
    .barrow{
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom:.7rem;
      font-weight:600;
      color:#374151;
      font-size:.9rem;
    }
    .bar{
      flex:1;
      height:10px;
      border-radius:999px;
      background:#eef2f7;
      border:1px solid #e5e7eb;
      overflow:hidden;
    }
    .fill{
      height:100%;
      width:0%;
      background: linear-gradient(90deg, rgba(192,57,43,.30), rgba(192,57,43,.72));
    }
    .pct{
      width:54px;
      text-align:right;
      font-weight:700;
      color:#111827;
    }

    .btn-soft{ border-radius:999px; font-weight:700; }

    /* Right saved */
    .saveitem{
      border:1px solid var(--border);
      border-radius: var(--card-radius);
      padding: .9rem 1rem;
      background:#fff;
      margin-bottom: .7rem;
    }
    .saveitem .t{
      font-weight:700;
      display:flex;
      align-items:center;
      gap:.55rem;
    }
    .saveitem .s{
      margin-top:.25rem;
      color: var(--text-muted);
      font-size:.88rem;
      font-weight:600;
    }

    /* Footer like your example */
    footer{ background-color:#111827; }
    footer h5{ font-size:.95rem; margin-bottom:.75rem; }
    footer ul li{ font-size:.86rem; color:#cbd5f5; margin-bottom:.2rem; }
    footer .small{ color:#9ca3af; }
    footer a.text-white{ opacity:.85; }
    footer a.text-white:hover{ opacity:1; }


/* --- bundesliga --- */
:root {
      --primary: #c0392b;
      --primary-dark: #962d22;
      --bg-light: #f3f4f6;
      --text-main: #1f2933;
      --text-muted: #6b7b8a;
      --card-radius: 0.9rem;
      --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      padding-top: 7rem;
      background: var(--bg-light);
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
    }

    .container {
      max-width: 1200px;
    }

    /* NAVBAR wie Startseite (Logo + zentriertes Menü + Suche) */
    .navbar {
      background: linear-gradient(90deg, var(--primary), #e74c3c);
      box-shadow: 0 4px 14px rgba(148, 27, 12, 0.35);
    }

    .navbar .container-fluid {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff !important;
      text-align: center;
      margin-bottom: 0.4rem;
    }

    .navbar-brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
    }

    .navbar-brand-text {
      display: inline-block;
    }

    .navbar-toggler {
      border: none;
      margin-bottom: 0.4rem;
    }

    .navbar-toggler:focus {
      box-shadow: none;
    }

    .navbar-collapse {
      flex-direction: column;
      align-items: center;
    }

    .navbar-nav {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.4rem;
    }

    @media (max-width: 991.98px) {
      .navbar-nav {
        flex-direction: column;
        align-items: center;
      }
    }

    .navbar .nav-link {
      color: #ffecec !important;
      opacity: 0.9;
      border-bottom: 2px solid transparent;
      font-size: 0.92rem;
      font-weight: 500;
      padding-bottom: 2px;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      opacity: 1;
      border-bottom-color: #ffffff;
    }

    .navbar .dropdown-menu {
      border-radius: 0.6rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      text-align: center;
    }

    .navbar .dropdown-item:hover {
      background-color: rgba(192, 57, 43, 0.08);
    }

    .navbar-search {
      max-width: 260px;
      border-radius: 999px;
      font-size: 0.9rem;
      border-color: #e2e8f0;
    }

    .navbar-search:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
    }

    /* Sektionstitel / Cards */
    .section-title {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .section-card {
      background-color: #ffffff;
      border-radius: var(--card-radius);
      padding: 1.25rem 1.4rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid #e5e7eb;
      margin-bottom: 2rem;
    }

    /* Liga-Header / Badge */
    .league-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #fee2e2;
      color: #b91c1c;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .league-badge i {
      font-size: 1rem;
    }

    /* Unterseiten-Menü (Übersicht / Spiele / Tabelle / Statistiken) */
    .subnav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .subnav .subnav-link {
      border-radius: 999px;
      padding: 0.35rem 1.1rem;
      font-size: 0.85rem;
      border: 1px solid #e5e7eb;
      background-color: #ffffff;
      color: var(--text-muted);
      text-decoration: none;
      transition: all 0.15s ease;
    }

    .subnav .subnav-link.active,
    .subnav .subnav-link:hover {
      background-color: var(--primary);
      color: #ffffff;
      border-color: var(--primary-dark);
      box-shadow: 0 4px 10px rgba(192, 57, 43, 0.35);
    }

    /* Stats-Boxen */
    .stats-box {
      background: #f9fafb;
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
      margin-bottom: 1rem;
      border: 1px solid #e5e7eb;
    }

    .stats-box h4 {
      font-size: 0.95rem;
      color: #4b5563;
      margin-bottom: 0.2rem;
    }

    .stats-box .number {
      font-size: 1.7rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.1rem;
    }

    .stats-box p {
      margin-bottom: 0;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .nav-tabs .nav-link {
      color: #4b5563;
      font-size: 0.9rem;
    }

    .nav-tabs .nav-link.active {
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
    }

    /* Tabelle */
    .table thead th {
      background-color: var(--primary);
      color: white;
      text-align: center;
      font-size: 0.8rem;
      vertical-align: middle;
    }

    .table td, .table th {
      text-align: center;
      vertical-align: middle;
      font-size: 0.86rem;
    }

    .table tbody tr:nth-child(even) {
      background-color: #f9fafb;
    }

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

    .btn-toggle {
      background: none;
      border: none;
      color: var(--primary);
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: underline;
      cursor: pointer;
    }

    /* Form-Indikatoren */
    .result-square {
      display: inline-block;
      width: 11px;
      height: 11px;
      margin: 0 1px;
      border-radius: 3px;
    }
    .green { background-color: #28a745; }
    .orange { background-color: #fd7e14; }
    .red { background-color: #dc3545; }

    /* Schlagzeilen / Listen */
    .list-group-item {
      background: #f9fafb;
      border: none;
      color: #374151;
      font-size: 0.9rem;
      padding: 0.55rem 0.75rem;
      border-radius: 0.4rem;
      margin-bottom: 0.35rem;
    }

    .list-group-item:last-child {
      margin-bottom: 0;
    }

    /* Footer wie auf Startseite */
    footer {
      background-color: #111827;
    }

    footer h5 {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }

    footer ul li {
      font-size: 0.86rem;
      color: #cbd5f5;
      margin-bottom: 0.2rem;
    }

    footer .form-control {
      font-size: 0.86rem;
    }

    footer .small {
      color: #9ca3af;
    }

    footer a.text-white {
      opacity: 0.85;
    }

    footer a.text-white:hover {
      opacity: 1;
    }

    @media (max-width: 767.98px) {
      body {
        padding-top: 5.5rem;
      }
    }

/* =========================================================
   Global responsive & consistency overrides
   (damit alle Seiten wirklich sauber responsiv bleiben)
   ========================================================= */

/* Einheitliche Basis auf ALLEN Seiten (mehrere body-Regeln im File
   werden damit konsistent überschrieben). */
/*
  WICHTIG (fixed-top Navbar):
  Einige Seiten haben im Header mehr Zeilen (Brand + Menü + Suche).
  Dadurch kann die Navbar höher als 7rem werden. Wir geben daher
  mehr „Luft“ nach oben, damit Cards nie unter der Navbar starten.
*/
body {
  padding-top: clamp(7.25rem, 12vw, 9.75rem) !important;
  background-color: var(--bg-light) !important;
  color: var(--text-main) !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.5;
}

/* Kleine, konsistente Top-Lücke für den Hauptinhalt */
main.container,
.container.mt-4 {
  margin-top: 0.75rem;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Navbar: auf großen Screens weniger "Zwang"-Breite, auf kleinen bessere Innenabstände */
@media (min-width: 992px) {
  .navbar-nav {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-brand-text {
    font-size: 1.05rem;
  }

  .navbar-search {
    width: min(320px, 92vw);
    max-width: none;
  }

  .hero-overlay-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tabellen: auf kleinen Geräten horizontal scrollen statt Layout zu sprengen */
@media (max-width: 767.98px) {
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 700px;
  }

  .table td, .table th {
    padding: 0.45rem 0.55rem;
  }
}

/* Cards: Padding skaliert automatisch */
.section-card {
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

/* Typo: Überschriften skaliert leicht mit */
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}
.hero-subtitle {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
}


/* --- bundesliga_spiele --- */
:root {
      --primary: #c0392b;
      --primary-dark: #962d22;
      --bg-light: #f3f4f6;
      --text-main: #1f2933;
      --text-muted: #6b7b8a;
      --card-radius: 0.9rem;
      --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      padding-top: 7rem;
      background: var(--bg-light);
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
    }

    .container {
      max-width: 1200px;
    }

    /* NAVBAR wie auf der Startseite/Übersicht */
    .navbar {
      background: linear-gradient(90deg, var(--primary), #e74c3c);
      box-shadow: 0 4px 14px rgba(148, 27, 12, 0.35);
    }

    .navbar .container-fluid {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff !important;
      text-align: center;
      margin-bottom: 0.4rem;
    }

    .navbar-brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
    }

    .navbar-brand-text {
      display: inline-block;
    }

    .navbar-toggler {
      border: none;
      margin-bottom: 0.4rem;
    }

    .navbar-toggler:focus {
      box-shadow: none;
    }

    .navbar-collapse {
      flex-direction: column;
      align-items: center;
    }

    .navbar-nav {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.4rem;
    }

    @media (max-width: 991.98px) {
      .navbar-nav {
        flex-direction: column;
        align-items: center;
      }
    }

    .navbar .nav-link {
      color: #ffecec !important;
      opacity: 0.9;
      border-bottom: 2px solid transparent;
      font-size: 0.92rem;
      font-weight: 500;
      padding-bottom: 2px;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      opacity: 1;
      border-bottom-color: #ffffff;
    }

    .navbar .dropdown-menu {
      border-radius: 0.6rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      text-align: center;
    }

    .navbar .dropdown-item:hover {
      background-color: rgba(192, 57, 43, 0.08);
    }

    .navbar-search {
      max-width: 260px;
      border-radius: 999px;
      font-size: 0.9rem;
      border-color: #e2e8f0;
    }

    .navbar-search:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
    }

    /* Sektionstitel / Cards */
    .section-title {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .section-card {
      background-color: #ffffff;
      border-radius: var(--card-radius);
      padding: 1.25rem 1.4rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid #e5e7eb;
      margin-bottom: 2rem;
    }

    /* Liga-Header / Badge */
    .league-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #fee2e2;
      color: #b91c1c;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .league-badge i {
      font-size: 1rem;
    }

    /* Unterseiten-Menü */
    .subnav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .subnav .subnav-link {
      border-radius: 999px;
      padding: 0.35rem 1.1rem;
      font-size: 0.85rem;
      border: 1px solid #e5e7eb;
      background-color: #ffffff;
      color: var(--text-muted);
      text-decoration: none;
      transition: all 0.15s ease;
    }

    .subnav .subnav-link.active,
    .subnav .subnav-link:hover {
      background-color: var(--primary);
      color: #ffffff;
      border-color: var(--primary-dark);
      box-shadow: 0 4px 10px rgba(192, 57, 43, 0.35);
    }

    /* Filter-Controls */
    .filter-row {
      row-gap: 0.75rem;
    }

    .badge-status {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 0.25rem 0.5rem;
      border-radius: 999px;
    }

    .badge-live {
      background-color: #dc2626;
      color: #fff;
    }

    .badge-finished {
      background-color: #16a34a;
      color: #fff;
    }

    .badge-upcoming {
      background-color: #e5e7eb;
      color: #111827;
    }

    /* Tabelle der Spiele */
    .table thead th {
      background-color: var(--primary);
      color: white;
      text-align: center;
      font-size: 0.8rem;
      vertical-align: middle;
    }

    .table td, .table th {
      text-align: center;
      vertical-align: middle;
      font-size: 0.86rem;
    }

    .table tbody tr:nth-child(even) {
      background-color: #f9fafb;
    }

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

    .no-data {
      text-align: center;
      padding: 1rem 0;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    /* Footer */
    footer {
      background-color: #111827;
    }

    footer h5 {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }

    footer ul li {
      font-size: 0.86rem;
      color: #cbd5f5;
      margin-bottom: 0.2rem;
    }

    footer .form-control {
      font-size: 0.86rem;
    }

    footer .small {
      color: #9ca3af;
    }

    footer a.text-white {
      opacity: 0.85;
    }

    footer a.text-white:hover {
      opacity: 1;
    }

    @media (max-width: 767.98px) {
      body {
        padding-top: 5.5rem;
      }
    }


/* --- bundesliga_stat --- */
:root {
      --primary: #c0392b;
      --primary-dark: #962d22;
      --bg-light: #f3f4f6;
      --text-main: #1f2933;
      --text-muted: #6b7b8a;
      --card-radius: 0.9rem;
      --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      padding-top: 7rem;
      background-color: var(--bg-light);
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
    }

    .container {
      max-width: 1200px;
    }

    /* NAVBAR wie auf den anderen neuen Seiten */
    .navbar {
      background: linear-gradient(90deg, var(--primary), #e74c3c);
      box-shadow: 0 4px 14px rgba(148, 27, 12, 0.35);
    }

    .navbar .container-fluid {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff !important;
      text-align: center;
      margin-bottom: 0.4rem;
    }

    .navbar-brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
    }

    .navbar-brand-text {
      display: inline-block;
    }

    .navbar-toggler {
      border: none;
      margin-bottom: 0.4rem;
    }

    .navbar-toggler:focus {
      box-shadow: none;
    }

    .navbar-collapse {
      flex-direction: column;
      align-items: center;
    }

    .navbar-nav {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.4rem;
    }

    @media (max-width: 991.98px) {
      .navbar-nav {
        flex-direction: column;
        align-items: center;
      }
    }

    .navbar .nav-link {
      color: #ffecec !important;
      opacity: 0.9;
      border-bottom: 2px solid transparent;
      font-size: 0.92rem;
      font-weight: 500;
      padding-bottom: 2px;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      opacity: 1;
      border-bottom-color: #ffffff;
    }

    .navbar .dropdown-menu {
      border-radius: 0.6rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      text-align: center;
    }

    .navbar .dropdown-item:hover {
      background-color: rgba(192, 57, 43, 0.08);
    }

    .navbar-search {
      max-width: 260px;
      border-radius: 999px;
      font-size: 0.9rem;
      border-color: #e2e8f0;
    }

    .navbar-search:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
    }

    /* Sektionstitel / Cards */
    .section-title {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .section-card {
      background-color: #ffffff;
      border-radius: var(--card-radius);
      padding: 1.25rem 1.4rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid #e5e7eb;
      margin-bottom: 2rem;
    }

    /* Liga-Header / Badge */
    .league-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #fee2e2;
      color: #b91c1c;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .league-badge i {
      font-size: 1rem;
    }

    /* Unterseiten-Menü */
    .subnav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .subnav .subnav-link {
      border-radius: 999px;
      padding: 0.35rem 1.1rem;
      font-size: 0.85rem;
      border: 1px solid #e5e7eb;
      background-color: #ffffff;
      color: var(--text-muted);
      text-decoration: none;
      transition: all 0.15s ease;
    }

    .subnav .subnav-link.active,
    .subnav .subnav-link:hover {
      background-color: var(--primary);
      color: #ffffff;
      border-color: var(--primary-dark);
      box-shadow: 0 4px 10px rgba(192, 57, 43, 0.35);
    }

    /* Tabellen / Boxen */
    .table thead th {
      background-color: var(--primary);
      color: white;
      text-align: center;
      font-size: 0.8rem;
      vertical-align: middle;
    }

    .table td, .table th {
      text-align: center;
      vertical-align: middle;
      font-size: 0.86rem;
    }

    .table tbody tr:nth-child(even) {
      background-color: #f9fafb;
    }

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

    .stats-box {
      border-radius: 0.8rem;
      padding: 1rem;
      text-align: center;
      margin-bottom: 1rem;
      background-color: #f3f4f6;
      border: 1px solid #e5e7eb;
    }

    .stats-box.green {
      background-color: #d4edda;
      border-color: #c3e6cb;
    }

    .stats-box.red {
      background-color: #f8d7da;
      border-color: #f5c6cb;
    }

    .stats-box h4 {
      font-size: 0.95rem;
      color: #374151;
      margin-bottom: 0.25rem;
    }

    .stats-box .number {
      font-size: 1.7rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.15rem;
    }

    .stats-box p {
      margin: 0;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .stats-box.bg-gradient {
      background: linear-gradient(135deg, #fee2e2, #ffffff);
    }

    .nav-tabs .nav-link {
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .nav-tabs .nav-link.active {
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
      font-weight: 600;
    }

    .list-group-item {
      background: #f9fafb;
      border: none;
      color: #374151;
      font-size: 0.9rem;
    }

    /* Footer */
    footer {
      background-color: #111827;
    }

    footer h5 {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }

    footer ul li {
      font-size: 0.86rem;
      color: #cbd5f5;
      margin-bottom: 0.2rem;
    }

    footer .form-control {
      font-size: 0.86rem;
    }

    footer .small {
      color: #9ca3af;
    }

    footer a.text-white {
      opacity: 0.85;
    }

    footer a.text-white:hover {
      opacity: 1;
    }

    @media (max-width: 767.98px) {
      body {
        padding-top: 5.5rem;
      }
    }


/* --- bundesliga_tabelle --- */
:root {
      --primary: #c0392b;
      --primary-dark: #962d22;
      --bg-light: #f3f4f6;
      --text-main: #1f2933;
      --text-muted: #6b7b8a;
      --card-radius: 0.9rem;
      --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      padding-top: 7rem;
      background: var(--bg-light);
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
    }

    .container {
      max-width: 1200px;
    }

    /* NAVBAR wie bei den anderen Seiten */
    .navbar {
      background: linear-gradient(90deg, var(--primary), #e74c3c);
      box-shadow: 0 4px 14px rgba(148, 27, 12, 0.35);
    }

    .navbar .container-fluid {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #fff !important;
      text-align: center;
      margin-bottom: 0.4rem;
    }

    .navbar-brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--primary);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
    }

    .navbar-brand-text {
      display: inline-block;
    }

    .navbar-toggler {
      border: none;
      margin-bottom: 0.4rem;
    }

    .navbar-toggler:focus {
      box-shadow: none;
    }

    .navbar-collapse {
      flex-direction: column;
      align-items: center;
    }

    .navbar-nav {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.4rem;
    }

    @media (max-width: 991.98px) {
      .navbar-nav {
        flex-direction: column;
        align-items: center;
      }
    }

    .navbar .nav-link {
      color: #ffecec !important;
      opacity: 0.9;
      border-bottom: 2px solid transparent;
      font-size: 0.92rem;
      font-weight: 500;
      padding-bottom: 2px;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      opacity: 1;
      border-bottom-color: #ffffff;
    }

    .navbar .dropdown-menu {
      border-radius: 0.6rem;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      text-align: center;
    }

    .navbar .dropdown-item:hover {
      background-color: rgba(192, 57, 43, 0.08);
    }

    .navbar-search {
      max-width: 260px;
      border-radius: 999px;
      font-size: 0.9rem;
      border-color: #e2e8f0;
    }

    .navbar-search:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
    }

    /* Sektionstitel / Cards */
    .section-title {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .section-card {
      background-color: #ffffff;
      border-radius: var(--card-radius);
      padding: 1.25rem 1.4rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid #e5e7eb;
      margin-bottom: 2rem;
    }

    /* Liga-Header / Badge */
    .league-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #fee2e2;
      color: #b91c1c;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .league-badge i {
      font-size: 1rem;
    }

    /* Unterseiten-Menü */
    .subnav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .subnav .subnav-link {
      border-radius: 999px;
      padding: 0.35rem 1.1rem;
      font-size: 0.85rem;
      border: 1px solid #e5e7eb;
      background-color: #ffffff;
      color: var(--text-muted);
      text-decoration: none;
      transition: all 0.15s ease;
    }

    .subnav .subnav-link.active,
    .subnav .subnav-link:hover {
      background-color: var(--primary);
      color: #ffffff;
      border-color: var(--primary-dark);
      box-shadow: 0 4px 10px rgba(192, 57, 43, 0.35);
    }

    /* Tabelle */
    .table thead th {
      background-color: var(--primary);
      color: white;
      text-align: center;
      font-size: 0.8rem;
      vertical-align: middle;
    }

    .table td, .table th {
      text-align: center;
      vertical-align: middle;
      font-size: 0.86rem;
    }

    .table tbody tr:nth-child(even) {
      background-color: #f9fafb;
    }

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

    /* Legende & Filter */
    .legend-dot {
      display: inline-block;
      width: 11px;
      height: 11px;
      border-radius: 3px;
      margin-right: 4px;
    }

    .dot-green { background-color: #28a745; }
    .dot-orange { background-color: #fd7e14; }
    .dot-red { background-color: #dc3545; }

    .btn-toggle {
      background: none;
      border: none;
      color: var(--primary);
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: underline;
      cursor: pointer;
    }

    .result-square {
      display: inline-block;
      width: 11px;
      height: 11px;
      margin: 0 1px;
      border-radius: 3px;
    }
    .green { background-color: #28a745; }
    .orange { background-color: #fd7e14; }
    .red { background-color: #dc3545; }

    /* Footer */
    footer {
      background-color: #111827;
    }

    footer h5 {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }

    footer ul li {
      font-size: 0.86rem;
      color: #cbd5f5;
      margin-bottom: 0.2rem;
    }

    footer .form-control {
      font-size: 0.86rem;
    }

    footer .small {
      color: #9ca3af;
    }

    footer a.text-white {
      opacity: 0.85;
    }

    footer a.text-white:hover {
      opacity: 1;
    }

    @media (max-width: 767.98px) {
      body {
        padding-top: 5.5rem;
      }
    }

/* =========================================================
   FINAL GLOBAL RESPONSIVE OVERRIDES (am Dateiende)
   ========================================================= */

/* Einheitliche Basis auf ALLEN Seiten (überschreibt ältere, ungescopte body-Regeln) */
body {
  padding-top: clamp(7.25rem, 12vw, 9.75rem) !important;
  background-color: var(--bg-light) !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--text-main) !important;
  line-height: 1.5;
}

/* Container-Start immer leicht unterhalb */
main.container,
.container.mt-4,
.container.mt-5,
.container {
  scroll-margin-top: 10rem;
}

main.container {
  margin-top: 0.75rem;
}

/* Medien allgemein */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Navbar: auf großen Screens nicht unnötig breit/umbruchanfällig */
@media (min-width: 992px) {
  .navbar-nav {
    width: auto;
  }
}

/* Headings & Hero: schöne Skalierung */
.hero-title { font-size: clamp(1.05rem, 2.4vw, 1.6rem); }
.hero-subtitle { font-size: clamp(0.82rem, 1.7vw, 0.95rem); }
.navbar-brand-text { font-size: clamp(1.0rem, 2.6vw, 1.35rem); }

/* Suchfeld: bleibt auf Mobile im Viewport */
.navbar-search { width: min(320px, 92vw); }

/* Cards: angenehmes Padding je nach Display */
.section-card { padding: clamp(1rem, 2.4vw, 1.4rem); }

/* Auf Seiten ohne Hero: erste Card nicht „ankleben“ */
main.container { margin-top: 0.75rem; }

/* Tabellen: auf kleinen Geräten horizontal scrollbar, statt Layout zu sprengen */
@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive .table {
    min-width: 720px;
  }
  .table td, .table th {
    padding: 0.45rem 0.55rem;
  }
}

/* Sehr kleine Displays: Hero-Overlay sauber untereinander */
@media (max-width: 575.98px) {
  .hero-overlay-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .dropdown-menu {
    text-align: left;
  }
}


/* === Unified Legal Page Template (Impressum, Datenschutz, Cookies, Feedback, Nutzungsbedingungen) === */
.legal-page .section-card {
  max-width: 960px;
  margin: 0 auto;
}

.legal-page h3 {
  margin-top: 1.6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.legal-page p {
  line-height: 1.75;
  margin-bottom: .85rem;
}

.legal-page ul {
  margin-top: .4rem;
  margin-bottom: 1rem;
}

.legal-page .alert {
  margin-top: 1.2rem;
}

/* mehr Abstand nach oben wegen Fixed Navbar (sauberer Look) */
.legal-page main.container {
  margin-top: 1rem;
}


/* Footer: Services links left + untereinander */
.footer-services, .footer-services ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.footer-services a {
  display: block;
  text-align: left;
}
