/* --- Global: Seite zentrieren --- */
body {
  margin: 0;
  padding: 0;
  background: #383838;
color: #383838;    
}

p {
  text-align: left;
justify-content: flex-start;    
}

a {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
    color: #DC3545; 
    text-decoration: none;  
}

a:hover {
  color: white;
}

/* --- Headings --- */

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
  text-align: center;    
  color: white;     
}

h2 {
  font-family: 'Encode Sans Condensed', sans-serif;
  font-size: 1.1em;
  color: white;
  text-align: left;
  display: inline;
  margin-top: 1.1em;
  margin-bottom: 1.1em;
  }

h3 {
  font-family: 'Encode Sans Condensed', sans-serif;
  font-size: 1.0em;
  color: white;
  text-align: center;
  display: inline;
  margin-top: 1.1em;
  margin-bottom: 1.1em;
  text-transform: uppercase;
}

h4 {
  font-family: 'Encode Sans Condensed', sans-serif;
  font-size: 1.1em;
  color: white;
  text-align: center;
  display: inline;
  margin-top: 1.1em;
  margin-bottom: 1.1em;
  }

h5 {
  font-family: 'Encode Sans Condensed', sans-serif;
  font-size: 1em;
  color: #DC3545;
  text-align: left;
  display: inline;
  margin-top: 1.1em;
  margin-bottom: 1.1em;
  }

h6 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8em;
    text-align: center;    
    color: green;
    text-shadow: -2px -2px 3px gray;    
}



/* --- Container --- */
.site-container {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  margin: 0 auto;
}

/* --- Kartenbereich --- */
.cards-section {
  margin-top: 2rem;
}

.cards-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.card-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* --- Tabellenbereich --- */
.table-container {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.data-table {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border-collapse: collapse;
  overflow: hidden;
}

/* --- Navbar --- */
.transparent-nav {
  background: #383838 !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease;
  z-index: 9999;
}

.nav-scrolled {
  background: rgba(56, 56, 56) !important;
}

/* Logo */
.navi-logo {
  position: relative;
  left: 5%;
  top: 5%;
  width: 12vw;
  max-width: 60px;
  min-width: 23px;
  pointer-events: none;
  padding-right: 20px;
}

/* --- HERO Video --- */
.hero-fullwidth {
  margin-top: 0px;
  width: 100vw;
  padding: 20px;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 50vh;
  border-radius: 10px;
  overflow: hidden;
}


.rahmen-wrapper {
  position: relative;
  width: 100%;
  height: 50vh;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px;
  border-color: white;
}



.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


.video-logo {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: 12vw;
  max-width: 180px;
  min-width: 70px;
  pointer-events: none;
}

.video-hero {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* --- Navigation Links --- */
.navbar-nav .nav-link {
  font-family: 'kedebideri-regular';
  font-size: 1.1em;
  font-weight: 700;  
  color: #fff;
  text-transform: uppercase;
  padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
  color: #FF0000;
}

.navbar-nav a:hover {
  color: #FF0000;
}


/* --- Dropdown Grundposition --- */
.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
}

/* --- Dropdown (HALBTRANSPARENT + BOUNCE + iOS FIX) --- */
.dropdown-menu {
  background: rgba(56, 56, 56, 0.65) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  border: none;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  visibility: hidden;

  transition:
      opacity 220ms ease-out,
      transform 380ms cubic-bezier(.34,1.56,.64,1),
      visibility 0ms linear 220ms;
}

/* Dropdown geöffnet */
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);

  transition:
      opacity 200ms ease-out,
      transform 420ms cubic-bezier(.34,1.56,.64,1),
      visibility 0ms;
}

/* --- Dropdown Text & Hover-Farbe ROT (DESKTOP & iPHONE) --- */
.dropdown-menu .dropdown-item {
  color: white;
  transition: color 150ms ease-in-out;
}

/* Hover, Tap, Focus → IMMER ROT */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus,
.show > .dropdown-item:hover {
  color: #DC3545 !important;
}

/* Dropdown Text */
.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item h3 {
  color: white;
  transition: color 150ms ease-in-out;
}

/* Hover / Klick / Tap */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:hover h3,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus h3,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:active h3 {
  color: #DC3545 !important;
}



/* --- Mobile Dropdown --- */
@media (max-width: 992px) {

  .navbar-nav .dropdown-menu {
    position: static !important;
    width: 100% !important;
    background: rgba(56, 56, 56, 0.75) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-nav .dropdown-menu.show {
    max-height: 500px;
    overflow-y: auto;
  }

  .navbar-nav .dropdown-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Tap-Farbe (iPhone) */
  .navbar-nav .dropdown-item:focus,
  .navbar-nav .dropdown-item:active {
    color: #DC3545 !important;
  }
}




/* --- Transparenter DIV --- */
.transparent-div {
  opacity: 0.5;
  background-color: #383838;
  color: white;
  padding: 20px;
}

.div_red {
  background-color: #DC3545;
  color: white;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);    
  border-radius: 8px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  /* Das "kleine Padding" zwischen Rahmen und Inhalt */
  padding: 15px; 
   }

.div_red_outline {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.grayscale {
    -webkit-filter: grayscale(0%); /* Chrome, Opera, Safari  */
    filter: grayscale(100%);   
    transition: width 1s, height 1s, filter 1s;
}

.grayscale:hover {
    -webkit-filter: grayscale(50%); /* Chrome, Opera, Safari  */
    filter: grayscale(50%);   
}

/* --- Formular --- */

.form_head {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
  text-align: center;    
  color: white;
}

.card-body a:hover {
  color: #383838;
}

.grau {
color: #383838;
text-decoration-color: #383838;   
}
/* =========================
   WRAPPER
========================= */
.main-wrapper {
  border: 1px solid rgba(220, 53, 69, 0.6);
  border-radius: 8px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* =========================
   Cards: Baseline
========================= */
.swipe-container .card {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.swipe-container .card-body {
  padding: 18px;
}

/* =================================================
   MOBILE: Swipe + Hinweis-Balken
================================================= */
@media (max-width: 767px) {

  .swipe-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: 15px;

    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.8) rgba(255, 255, 255, 0.1);
  }

  .swipe-container::-webkit-scrollbar {
    height: 4px;
  }
  .swipe-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }
  .swipe-container::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.8);
    border-radius: 10px;
  }

  .swipe-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding-right: 10px;
    position: relative;
    display: flex;
    justify-content: center;
  }

  .swipe-item .card {
    width: 100%;
    max-width: 420px;
  }

  /* Swipe-Hinweise */
  .swipe-item::before,
  .swipe-item::after {
    content: "";
    position: absolute;
    top: 18%;
    width: 4px;
    height: 64%;
    border-radius: 4px;
    background: linear-gradient(
      to bottom,
      transparent,
      
    );
    pointer-events: none;
    animation: hintPulse 1.8s infinite;
    opacity: 0;
  }

  .swipe-item::before { left: 16px; }
  .swipe-item::after  { right: 16px; }

  .swipe-item:not(:first-child):not(:last-child)::before,
  .swipe-item:not(:first-child):not(:last-child)::after {
    opacity: 1;
  }

  .swipe-item:first-child::after { opacity: 1; }
  .swipe-item:last-child::before { opacity: 1; }

  .swipe-item:only-child::before,
  .swipe-item:only-child::after {
    opacity: 0;
  }

  @keyframes hintPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
  }
}

/* =================================================
   DESKTOP / TABLET
   - 3 nebeneinander (Standard)
   - responsive Reduktion
================================================= */
@media (min-width: 768px) {

  .swipe-container {
    display: grid;
    gap: 16px;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .swipe-item {
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 10px;
    padding: 8px;
  }
}

/* Größere Screens → 4 Cards */
@media (min-width: 1200px) {
  .swipe-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Kleinere Tablets → 2 Cards */
@media (min-width: 768px) and (max-width: 900px) {
  .swipe-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



/* =================================================
   MODAL – FAST FULLSCREEN (wie Impressum)
================================================= */

/* Backdrop */
.modal-backdrop.show {
  opacity: 0.6;
}

/* Variablen */
:root{
  --kc-navbar-h: 72px;
  --kc-gap: 12px;
}

/* Modal Container */
.impressum-modal{
  position: fixed;
  top: calc(var(--kc-navbar-h) + var(--kc-gap) + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: none;
  margin: 0;
  border: 1.5px solid #c62828;
  border-radius: 18px;
  overflow: hidden;
}

/* Modal Inhalt */
.impressum-modal .modal-content{
  height: 100%;
  border: 0;
  background: rgba(56,56,56,1.0);
}

/* Scrollbarer Body */
.modal-body{
  overflow-y: auto;
padding: 10;      
}

/* Header / Footer */
.modal-header,
.modal-footer {
  background: rgba(56,56,56,0.5);
  border-color: rgba(0,0,0,0.08);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .impressum-modal {
    top: 72px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 16px;
  }
}

/* Weißes Close-Icon */
.impressum-modal .btn-close {
  filter: invert(1);
  opacity: 1;
}
.impressum-modal .btn-close:hover {
  opacity: 0.7;
}

/* =================================================
   SPIELERBILD IM MODAL – MEHR SPIEGELUNG
================================================= */

/* Wrapper begrenzt Bild + Spiegelung */
.impressum-modal .item-3 {
  max-height: 50vh;          /* Gesamtbereich */
  overflow: hidden;         /* schneidet Spiegelung ab */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Bild kleiner -> mehr Platz nach unten für Spiegelung */
.impressum-modal .item-3 img {
  max-height: 36vh;          /* vorher 42vh -> jetzt mehr Spiegel-Platz */
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;

  /* Mehr Spiegelung: größerer Abstand + kräftigerer Verlauf */
  -webkit-box-reflect: below 8px
    linear-gradient(
      to bottom,
      transparent 40%,
      rgba(255,255,255,0.25) 65%,
      rgba(255,255,255,0.55) 100%
    );
}

/* Optional: auf Desktop etwas weniger "abgeschnitten" wirken lassen */
@media (min-width: 1024px) {
  .impressum-modal .item-3 img {
    max-height: 38vh;
    -webkit-box-reflect: below 10px
      linear-gradient(
        to bottom,
        transparent 35%,
        rgba(255,255,255,0.25) 65%,
        rgba(255,255,255,0.5) 100%
      );
  }
}

/* Modal: Bild wie Athlete-Card, aber Höhe begrenzen */
.impressum-modal .item-3 .image-wrapper img {
  max-height: 50vh;
  width: auto;
  height: 90%;
}

.modal-body-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Spieler Bilder Startseite */


        h2 {
            padding: 25px 15px 5px;
            font-weight: 600;
            font-size: 1.2rem;
            color: white;
        }

        /* Container für den horizontalen Swipe */
        .athlete-container {
            display: flex;
            flex-direction: row;
            overflow-x: auto;
            scroll-snap-type: x mandatory; 
            padding: 10px 10px; 
            gap: 10px;
            scrollbar-width: none; 
            color: white;
        }
        .athlete-container::-webkit-scrollbar { display: none; }

        /* Die Spieler-Kachel (Der schwarze Kasten) */
        .athlete-card {
            flex-shrink: 0;
            width: 60vw; 
            max-width: 130px;
            background: #1a1a1a; 
            border-radius: 10px;
            padding: 10px;
            /* Das untere Padding fängt die 30% Spiegelung auf */
            padding-bottom: 10px; 
            scroll-snap-align: start;
            border: 1px solid #333;

            /* 3D-Effekt */
            transform-style: preserve-3d;
            transform: perspective(1000px) rotateX(4deg);
            box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
            overflow: hidden; /* Garantiert, dass nichts über den Kasten ragt */
        }

        /* Header innerhalb des Kastens */
        .card-header {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
        }

        .athlete-number {
            font-size: 1.1rem;
            font-weight: 900;
        }

        .card-header h3 {
            font-family: 'Encode Sans Condensed', sans-serif;
            margin: 2px 0 0;
            font-size: 0.9rem;
            text-transform: uppercase;
            color: #aaa;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Bild-Wrapper */
        .image-wrapper {
            position: relative;
            width: 100%;
        }

        .image-wrapper img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 4px;

            /* Spiegelungs-Effekt begrenzt auf 30% */
            /* Die Maske (linear-gradient) sorgt dafür, dass nach 30% Schluss ist */
            -webkit-box-reflect: below 2px 
                linear-gradient(to bottom, 
                    transparent 70%, 
                    rgba(255, 255, 255, 0.3) 85%, 
                    rgba(255, 255, 255, 0.5) 100%);
        }

        /* Desktop-Modus (6 nebeneinander, volle Breite) */
        @media (min-width: 1024px) {
        .athlete-container {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* 6 Spalten, je 1/6 der Breite */
        gap: 10; /* kein Abstand zwischen den Karten */
        padding: 10; /* optional */
        width: 100%; /* volle Breite */
        margin: 0 auto; /* zentriert den Container */
        }

        .athlete-card {
        width: 100%; /* Karte füllt Grid-Zelle */
        max-width: 100%;
        padding-bottom: 50px; /* Abstand unten */
        box-sizing: border-box;
        }

        .athlete-number {
        font-size: 1.5rem;
        }

        .card-header h3 {
        font-size: 1.2rem;
        margin: 0;
        }
        }


/* Kontaktdaten */

/* Grund-Styling */
.main-wrapper {
  border: 1px solid rgba(220, 53, 69, 0.6);
  border-radius: 8px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
}

.item {
  background: transparent;
  display: flex;
  flex-direction: column;
  padding: 5px;
  position: relative; /* für Divider/Hinweis */
}

.item-title{
  font-family: "Bebas Neue", sans-serif;
  color: white;
  text-align: left;
  margin: 0 0 10px 0;
  font-weight: 300;
  text-transform: uppercase;
  /* responsive Größe: nie zu groß, nie zu klein */
  font-size: clamp(0.95rem, 0.6vw + 0.85rem, 1.4rem);
}

/* Iframe Styling (falls item-3 iframe enthält) */
.item-3 iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 4px;
}

/* ===== Ranking-Listen: Ausrichtung & Linkfarben ===== */

.item.vorschau h3{
  display: block !important;     /* wichtig: sonst kein echtes left-align */
  text-align: left !important;
}

/* Links im Ranking */
.item.vorschau h3 a,
.item.vorschau h3 a:visited{
  color: #ffffff !important;     /* normal: weiß */
  text-decoration: none;
}

.item.vorschau h3 a:hover,
.item.vorschau h3 a:focus,
.item.vorschau h3 a:active{
  color: #DC3545 !important;     /* hover: rot */
  text-decoration: none;
}

/* =========================
   MOBILE: Swipe
   - 1 Item sichtbar
   - Hinweisbalken an Item 1
========================= */
@media (max-width: 767px) {
  .swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.8) rgba(255, 255, 255, 0.1);
  }

  /* Scrollbar (Chrome/Safari/Edge) */
  .swipe-container::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  .swipe-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }
  .swipe-container::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.8);
    border-radius: 10px;
  }

  .swipe-container .item {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* Hinweis-Balken an Item 1 */
  .swipe-container .item-1::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 10px;
    width: 4px;
    height: 60%;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.9;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(220, 53, 69, 0.95),
      transparent
    );
  }
}

/* =========================
   DESKTOP: linke Spalte 4 Items / rechte Spalte Item-3
========================= */
@media (min-width: 768px) {
  .main-wrapper {
    display: grid;
    grid-template-columns: 3fr 7fr;          /* ✅ links 30% | rechts 70% */
    grid-template-rows: auto auto auto auto; /* 4 Zeilen links */
    gap: 20px;
  }
    
  .swipe-container {
    display: contents;
  }

  /* linke Spalte: 4 Items */
  .item-1 { grid-column: 1; grid-row: 1; }
  .item-2 { grid-column: 1; grid-row: 2; }
  .item-4 { grid-column: 1; grid-row: 3; }
  .item-5 { grid-column: 1; grid-row: 4; }

  /* rechte Spalte: Item-3 über alle 4 Zeilen */
  .item-3 {
    grid-column: 2;
    grid-row: 1 / 5;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-left: none;
    padding-left: 20px;
  }

  .item-3 h3 { margin-bottom: 15px; }
  .item-3 iframe { flex-grow: 1; }

  /* Trennstriche zwischen den linken Items */
  .item-1,
  .item-2,
  .item-4 {
    border-bottom: none;
  }
}

/* =========================
   SCHNELINFO: Fadenkreuz
========================= */


        /* Der Container darf nie größer als der Viewport sein */
        .grid-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            width: 90vw;
            height: 90vw;
            max-width: 600px;
            max-height: 600px;
            position: relative;
            margin-bottom: 50px;
        }
        
        .grid-container .number {
            font-family: 'Oswald', sans-serif;
            font-size: 4.2rem;   /* optional */
            font-weight: 600;    /* optional */
            }

        .grid-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.kc-lok.de/images/icons/kc_logo.png');
        background-size: contain; /* oder 'cover', je nachdem wie es wirken soll */
        background-position: center;
        background-repeat: no-repeat;
        
        /* Graustufen und Unschärfe */
        filter: grayscale(100%) blur(8px);
        opacity: 0.3; /* Macht es dezent, damit die Zahlen lesbar bleiben */
        
        z-index: 1; /* Hinter den Inhalten */
        }
        
        
        /* Die 4 Linien des Kreuzes */
        .line {
            position: absolute;
            background-color: white;
            z-index: 10;
        }

        /* Vertikale Linien (oben & unten) */
        .v-line {
            width: 1px;
            height: 45%; /* Lässt 10% in der Mitte frei */
            left: 50%;
            transform: translateX(-50%);
        }

        /* Horizontale Linien (links & rechts) */
        .h-line {
            height: 1px;
            width: 45%; /* Lässt 10% in der Mitte frei */
            top: 50%;
            transform: translateY(-50%);
        }

        .top { top: 0; }
        .bottom { bottom: 0; }
        .left { left: 0; }
        .right { right: 0; }

        /* Die 4 Quadrate mit 50% Transparenz */
        .grid-item {
            background-color: rgba(255, 255, 255, 0.0); /* Sehr dezentes Weiß-Transparent */
            backdrop-filter: blur(5px); /* Optional: macht den Hintergrund leicht unscharf */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border: none;
        }

        /* Outline Zahl: skaliert dynamisch */
        .number {
            font-size: clamp(3rem, 15vw, 6.5rem);
            font-weight: 900;
            color: transparent;
            -webkit-text-stroke: 1.5px white;
            line-height: 1;
        }

        /* Text unter der Zahl */
        .label {
            margin-top: 10px;
            font-size: clamp(0.6rem, 2.5vw, 0.9rem);
            color: white;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-align: center;
        }

/* =========================
   COUNTER: Nächstes Spiel
========================= */

/* Äußerer Rahmen - erzwingt volle Breite */
.vorschau {
  border: 1px solid rgba(220, 53, 69, 0.6);    
  border-radius: 8px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 10px 10px; 
  background-color: rgba(255, 255, 255, 0.1); 
}

/* Countdown Styling */
.countdown-container {
  display: flex;
  flex-wrap: wrap; /* Verhindert Umbruch-Probleme auf schmalen Handys */
  justify-content: center;
  gap: 15px;
  font-family: 'Arial', sans-serif;
}

.time-section {
  text-align: center;
}

.flip-card {
  background: linear-gradient(to bottom, #333 50%, #222 50%); 
  color: #ffffff;
  font-size: 3rem;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 8px;
  min-width: 80px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin-bottom: 8px;
  border: 1px solid #444;
}

.label {
  color: #DC3545; 
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}     

/* Zweite Zeile Styling */
.item-text {
  flex-direction: column;
}

.item-text h3 {
  margin: 0 0 10px 0;
  color: #fff;
}

.item-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}


/* =========================
   RATING
========================= */

.star-rating {
  display: flex;
  flex-direction: row-reverse; /* Sterne von rechts nach links */
  justify-content: center;
  font-size: 3rem;
}
.star-rating input {
  display: none;
}
.star-rating label {
  color: #ccc;
  cursor: pointer;
  padding: 0 5px;
}
.star-rating input:checked ~ label {
  color: #ff9900;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ff9900;
}

/* =========================
   Tabellen
========================= */


/* Wrapper soll volle Breite nutzen */
.kc-swipe-wrap{
  width: 100%;
}

/* MOBILE: horizontal swipe */
.kc-swipe{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 12px;
}

/* Scrollbar optional dezent */
.kc-swipe::-webkit-scrollbar{ height: 6px; }
.kc-swipe::-webkit-scrollbar-thumb{ border-radius: 999px; }

/* Panel */
.kc-panel{
    scroll-snap-align: start;
    flex: 0 0 92%;
    border-radius: 14px;
    padding: 14px 12px 12px;
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.6);    
}

.swipe-indicator.bars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.swipe-indicator .bar {
  width: 22px;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  transition: background 0.3s;
}

.swipe-indicator .bar.active {
  background: #333;
}

@media (min-width: 900px) {
  .swipe-indicator {
    display: none;
  }
}


/* Ranking: volle Viewport-Breite, aber mit Innenabstand (Gutter) */
#ranking .kc-swipe-wrap.kc-fullbleed{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  /* <<< Abstand zum linken/rechten Rand */
  padding-left: clamp(12px, 2vw, 28px);
  padding-right: clamp(12px, 2vw, 28px);
  box-sizing: border-box;
}

/* Desktop: 3 Ranking-Sections nebeneinander */
@media (min-width: 992px){
  #ranking .kc-swipe{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    overflow: visible;
    padding: 0; /* kein extra padding hier, kommt vom Wrapper */
  }

  #ranking .kc-swipe > .item{
    width: 100%;
    min-width: 0;
  }
}




/* DESKTOP: 3 nebeneinander, volle Breite */
@media (min-width: 992px){
  .kc-swipe{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    width: 100%;
  }
  .kc-panel{
    flex: initial;
    min-width: 0; /* wichtig für Grid, damit nichts überläuft */
  }
}

/* Panel-Titel: wie h2 (weiß), aber responsiv angepasst */
.kc-panel-title{
  font-family: 'Encode Sans Condensed', sans-serif;
  color: white;
  text-align: left;
  margin: 0 0 10px 0;
  font-weight: 600;
  text-transform: uppercase;

  /* responsive Größe: nie zu groß, nie zu klein */
  font-size: clamp(0.95rem, 0.6vw + 0.85rem, 1.1rem);
}

/* ===== Tabelle: transparent + Schrift wie h2 ===== */
.kc-table, .kc-table * { 
    background: transparent !important; }

.kc-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;  
    
  font-family: 'Encode Sans Condensed', sans-serif;
  font-size: 1.1em;
  color: white;
  text-align: left;
  margin-top: 1.1em;
  margin-bottom: 1.1em;
}

.kc-table th,
.kc-table td{
  color: white; /* wie h2 */
  padding: .50rem .30rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.18);
    
  /* responsive Tabellen-Schrift */
  font-size: clamp(0.72rem, 0.35vw + 0.68rem, 0.90rem);
}

/* Mannschaft links, darf umbrechen */
.kc-table td.team,
.kc-table th.team{
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

/* Spaltenbreiten */
.kc-table col.c1 { width: 9%; }
.kc-table col.c2 { width: 40%; }
.kc-table col.c3 { width: 17%; }
.kc-table col.c4 { width: 12%; }
.kc-table col.c5 { width: 12%; }
.kc-table col.c6 { width: 10%; }

/* Köthen rot */
.kc-koethen td{
  color: white !important;
  font-weight: 800;
background-color: #d10000 !important;
    
}

#tabellen .container-fluid { 
  max-width: 100% !important; 
}

/* Tabellenbereich: niemals das alte main-wrapper Grid benutzen */
#tabellen .kc-tables-wrap{
  width: 100%;
  display: block;       /* wichtig: KEIN grid von main-wrapper */
}

/* Desktop: 3 Tabellen nebeneinander, volle Breite */
@media (min-width: 992px){
  #tabellen .kc-swipe{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    overflow: visible;
    padding: 0;
  }

  #tabellen .kc-panel{
    width: 100%;
    min-width: 0;
  }
}


/* ===== IMMER GANZ UNTEN ===== */

/* ===== Fix: Menü muss immer klickbar bleiben ===== */
body {
  overflow-x: hidden;  /* verhindert "Überhang" durch horizontale Scroller */
  padding-top: 82px;   /* Abstand, damit Inhalt nicht unter der festen Navi liegt */
}

.nav-container {
  position: relative;
  z-index: 20000;
}

.navbar,
.transparent-nav,
.navbar * {
  pointer-events: auto !important;
}

.navbar.fixed-top,
.transparent-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20000 !important;
  background: #383838 !important;
}

/* Globale h3-Abstände in der Navi neutralisieren */
.navbar-brand h3,
.navbar .nav-link h3,
.dropdown-item h3 {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  line-height: 1.2;
}

/* Hover besser lesbar statt weißem Kasten */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(220, 53, 69, 0.45) !important;
  border-radius: 8px;
}

.dropdown-menu .dropdown-item {
  background: transparent !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
  color: #fff !important;
  background: #dc3545 !important;
}

.dropdown-menu .dropdown-item:hover h3,
.dropdown-menu .dropdown-item:focus h3,
.dropdown-menu .dropdown-item:active h3 {
  color: #fff !important;
}

/* Swipe-Bereich darf niemals Klicks im Header abfangen */
.kc-swipe-wrap,
.kc-swipe,
.kc-panel {
  position: relative;
  z-index: 1;
}

/* Bild im Grid: Quadrant ausfüllen + Label darunter */
/* =========================
   Fadenkreuz: Bilder im Quadranten halten
   - nichts über Linien / Grenzen
   - Label unten
========================= */

/* Quadrant: Inhalt darf NICHT überlaufen */
.grid-item{
  position: relative;
  overflow: hidden;              /* <<< schneidet Bild am Quadranten ab */
  padding: 16px;                 /* <<< Abstand zu Linien + Rand */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
}

/* Bild nimmt den verfügbaren Platz, aber bleibt IM Quadranten */
.grid-image{
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;                 /* wichtig für flex (sonst kann es überlaufen) */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bild skaliert innerhalb des Bildbereichs */
.grid-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;           /* <<< kein Abschneiden, bleibt komplett sichtbar */
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Label bleibt unten sichtbar */ca
.grid-item .label{
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  color: white;
  font-size: clamp(0.6rem, 2.5vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Linien immer OBEN drüber (falls doch z-index Probleme) */
.line{
  z-index: 20;
}

/* =========================
   FADENKREUZ – ZAHLEN WIRKLICH MITTIG
========================= */

/* Zahlen-Quadrant */
.grid-item.is-number{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

/* Wrapper für Zahl + Label (optische Mitte) */
.grid-item.is-number .number{
  position: relative;
  transform: translateY(-6%); /* <<< DAS ist der Schlüssel */
}

/* Unterschrift */
.grid-item.is-number .label{
  margin-top: 10px;
  transform: translateY(-6%);
  letter-spacing: 3px;
  text-align: center;
}

/* Full width – bricht aus zentrierten Containern aus */
.kc-fullbleed{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* optional: keine seitlichen Abstände am Außenwrapper */
#ranking .kc-fullbleed{
  padding-left: 0;
  padding-right: 0;
}

/* gleiche Logogröße */

.payment-logo {
  max-width: 160px;   /* ggf. kleiner für Mobile */
  height: auto;
}

/* gleichmäßiger, enger Abstand */
.payment-row {
  margin-left: 0;
  margin-right: 0;
}

.payment-row > div {
  padding-left: 6px;
  padding-right: 6px;
}

/* Logo-Größe */
.payment-logo {
  max-width: 140px;
  width: 100%;
  height: auto;
}

.kc_container_white {
    display: flex;
    height: 100%;
    min-height: 100%;
    margin-bottom 20px;
    flex-flow: row wrap;
    justify-content:center;
    margin-top: 10px;
    padding: 1px; 
    border-bottom-style: hidden;
    background-color: white;
 }


sponsoren_bild {
    display: flex;
    margin-bottom 20px;
    flex-flow: row wrap;
    justify-content:space-around;
    margin-top: 20px;
    padding: 20px; 
    border-bottom-style: hidden;
    background: no-repeat center center fixed;
   -webkit-background-size: cover;
   -moz-background-size: cover;
   -o-background-size: cover; 
}


/* =========================
   News – Container und toggle
========================= */

.news-swipe-wrap{
overflow-x:auto;
-webkit-overflow-scrolling:touch;
padding-bottom:10px;
}

.news-swipe-row{
display:flex;
gap:16px;
flex-wrap:nowrap;
}

.news-swipe-card{
min-width:220px;
max-width:220px;
flex:0 0 220px;
}

.news-thumb{
width:100%;
height:160px;
object-fit:cover;
background:#f3f3f3;
}

@media (min-width:1200px){

.news-swipe-wrap{
overflow-x:visible;
}

.news-swipe-row{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:16px;
}

.news-swipe-card{
min-width:0;
max-width:none;
flex:none;
}

}


/* =========================
   News – Update Einträge
========================= */

textarea {
width: 100%;
min-height: 200px; /* mindestens 10 Zeilen bei Standard-Schriftgröße */
resize: vertical; /* Benutzer kann die Höhe ändern */
overflow-y: auto; /* Scrollbar bei Bedarf */
font-family: Arial, sans-serif;
}

/* Galerie-Bilder etwas höher und bei Bedarf beschnitten anzeigen */
.gallery-img {
  width: 100%;          /* füllt die Spalte komplett */
  max-height: 180px;    /* Höhe nach Wunsch anpassen */
  object-fit: cover;    /* schneidet, ohne zu verzerren */
  border-radius: .25rem;
}

/* Kleinerer, dezenter Lösch‑Button */
.delete-btn {
  font-size: .8rem;
  padding: .25rem .5rem;
}

/* Etwas Luft zwischen Bild & Button */
.gallery-item a.delete-btn {
  display: inline-block;
  margin-top: .25rem;
}

#editor {
border: 1px solid #ccc;
min-height: 200px;
padding: 10px;
}
.toolbar button {
margin-right: 5px;
}    

/* Größere Vorschaubilder, ohne Verzerrung */
.gallery-img {
width: 100%;
max-height: 200px; /* Höhe nach Wunsch anpassen */
object-fit: cover;
border-radius: .25rem;
}

/* Kleinerer, dezenter Lösch-Button */
.delete-btn {
font-size: .8rem;
padding: .25rem .5rem;
}

/* etwas Platz zwischen Bild und Button */
.gallery-item .delete-btn {
display: inline-block;
margin-top: .25rem;
}


.news-thumb {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
}

.news-thumb-small {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    background: #f8f9fa;
}


/* =========================
   Setup
========================= */

/* --- MOBIL: Swipe / horizontal scroll --- */
.kc-swipe-row{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: .5rem;     
}

.kc-swipe-row > .kc-swipe-item{
  flex: 0 0 90%;
  max-width: 90%;
  scroll-snap-align: start;
}

.kc-swipe-row::-webkit-scrollbar{
  height: 8px;
}

.kc-swipe-row::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.2);
  border-radius: 8px;
}

/* --- TABLET: 2 Spalten, mittig --- */
@media (min-width: 768px){
  .kc-swipe-row{
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0.75rem;
    justify-content: center;  
    }

  .kc-swipe-row > .kc-swipe-item{
    flex: 0 0 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
  }
}

/* --- DESKTOP: bis 4 Spalten, mittig wenn weniger --- */
@media (min-width: 992px){
  .kc-swipe-row{
    gap: 0.75rem;
    justify-content: space-around;   /* 🔥 wichtig */
  }

  .kc-swipe-row > .kc-swipe-item{
    flex: 0 0 calc(25% - 0.5625rem);
    max-width: calc(25% - 0.5625rem);
  }
    
}

/* --- Karten gleich hoch --- */
.kc-swipe-item .card{
  height: 100%;
}

/* ANSPRECHPARTNER >> WICHTIGER FIX: Bereich darf auf Desktop nicht abgeschnitten werden */
#ansprechpartner,
#ansprechpartner .video-wrapper,
#ansprechpartner .ansprechpartner-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

#ansprechpartner {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.ansprechpartner-container {
    width: 100%;
    padding: 0 !important;
    background: transparent;
}

.ansprechpartner-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.ansprechpartner-cards-wrap {
    width: 100%;
    margin-top: 20px;
}

.ansprechpartner-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.ansprechpartner-card {
    background: rgba(56, 56, 56, 0.88);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 24px 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
    min-height: 100%;
    overflow: hidden;
}

.ansprechpartner-card h2 {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: #fff;
}

.ansprechpartner-card hr {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,.18);
    margin: 0 0 16px 0;
}

.ansprechpartner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ansprechpartner-row {
    font-size: 1.05rem;
    color: rgba(255,255,255,.92);
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.ansprechpartner-row a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ansprechpartner-row a:hover {
    color: #dc3545;
}

.ansprechpartner-row .material-icons-outlined {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

/* Nur Mobil/Tablet */
@media (max-width: 991.98px) {
    .ansprechpartner-img {
        object-fit: contain;
        height: auto;
        max-height: 60vh;
    }

    .ansprechpartner-cards-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: rgba(220,53,69,.75) rgba(255,255,255,.08);
    }

    .ansprechpartner-cards-wrap::-webkit-scrollbar {
        height: 10px;
    }

    .ansprechpartner-cards-wrap::-webkit-scrollbar-track {
        background: rgba(255,255,255,.08);
        border-radius: 20px;
    }

    .ansprechpartner-cards-wrap::-webkit-scrollbar-thumb {
        background: rgba(220,53,69,.75);
        border-radius: 20px;
    }

    .ansprechpartner-cards {
        display: flex;
        gap: 16px;
        width: max-content;
        min-width: 100%;
    }

    .ansprechpartner-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
    }
}

@media (max-width: 575.98px) {
    .ansprechpartner-card {
        flex: 0 0 88vw;
        max-width: 88vw;
        padding: 20px 16px;
    }

    .ansprechpartner-card h2 {
        font-size: 1.35rem;
    }

    .ansprechpartner-row {
        font-size: 0.98rem;
    }
}

/* News_Update */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.toolbar button{
  border:1px solid #ced4da;
  background:#f8f9fa;
  color:#212529;
  border-radius:6px;
  padding:6px 10px;
  cursor:pointer;
}

.editor{
  min-height:260px;
  border:1px solid #ced4da;
  border-radius:8px;
  padding:12px;
  background:#fff;
  color:#212529;
  line-height:1.55;
}

.editor:focus{
  outline:none;
  border-color:#86b7fe;
  box-shadow:0 0 0 .2rem rgba(13,110,253,.25);
}

.editor ul,
.editor ol{
  padding-left:1.5rem;
}

.editor a{
  color:#0d6efd;
  text-decoration:underline;
}

.editor h2{
  font-size:1.5rem;
  margin:0 0 .75rem 0;
}

.gallery-thumb{
  max-height:180px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #dee2e6;
}



/* Modal Spieler */

.topteam-modal .modal-dialog {
    max-width: none;
    width: auto;
    margin: 0;
}

@media (min-width: 768px) {
    .topteam-modal .modal-dialog {
        position: fixed;
        top: calc(var(--kc-navbar-h, 72px) + var(--kc-gap, 12px) + env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .topteam-modal .modal-dialog {
        margin: 72px 8px 8px 8px;
        max-width: none;
    }
}

.topteam-modal-shell {
    height: 100%;
    background: #383838;
    color: white;
    border: 1.5px solid #c62828;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topteam-modal .modal-header,
.topteam-modal .modal-footer {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.topteam-modal .modal-title {
    color: white;
    width: 100%;
    text-align: left;
    display: block;
    margin: 0;
}

.topteam-modal .btn-close {
    filter: invert(1);
    opacity: 1;
}

.topteam-modal .btn-close:hover {
    opacity: 0.7;
}

.topteam-modal .modal-body {
    padding: 20px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.athlete-button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Modal-Container innen */
.player-modal-panels {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.player-modal-panels::-webkit-scrollbar {
    height: 6px;
}
.player-modal-panels::-webkit-scrollbar-thumb {
    background: rgba(220,53,69,.6);
    border-radius: 999px;
}

.player-modal-panel {
    flex: 0 0 92%;
    scroll-snap-align: start;
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    padding: 18px;
    min-width: 0;
}

.player-modal-panel-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    color: white;
    margin: 0 0 14px 0;
    letter-spacing: .03em;
    text-align: left;
}

/* Desktop: 4 Kästen nebeneinander */
@media (min-width: 992px) {
    .player-modal-panels {
        display: grid;
        grid-template-columns: 0.95fr 1.05fr 1.45fr 1fr;
        gap: 18px;
        overflow: visible;
        scroll-snap-type: none;
        align-items: start;
    }

    .player-modal-panel {
        flex: initial;
    }
}

/* Linke Spalte: Daten */
.player-meta-list {
    display: grid;
    gap: 12px;
}

.player-meta-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

.player-meta-label {
    display: block;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}

.player-meta-value {
    display: block;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 1.05rem;
    color: white;
    line-height: 1.35;
}

/* Mitte: Stats */
.player-stats-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-stats-panel h5 {
    margin-top: 16px;
}

/* Schrift im roten Fadenkreuz ca. 20% kleiner */
.player-stats-panel .grid-container .number {
    font-size: clamp(2.4rem, 12vw, 5.2rem);
}

.player-stats-panel .grid-container .label {
    font-size: clamp(0.48rem, 2vw, 0.72rem);
}


/* Fadenkreuz im Spieler-Modal kleiner halten, damit der rote Kastenrand sichtbar bleibt */
.player-stats-panel {
    overflow: hidden;
    justify-content: flex-start;
    padding: 18px;
}

.player-stats-panel .grid-container {
    width: 100%;
    max-width: min(100%, 320px);
    height: auto;
    max-height: 320px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    margin: 8px auto 0 auto;
}

.player-stats-panel .grid-item {
    padding: 8px;
}

.player-stats-panel .grid-container::before {
    inset: 8px;
    width: auto;
    height: auto;
    background-size: contain;
}

@media (min-width: 992px) {
    .player-stats-panel .grid-container {
        max-width: min(100%, 280px);
        max-height: 280px;
    }
}

/* Top 10 Karteikarten */
.player-top-panel {
    overflow: hidden;
}

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

.player-top-heading {
    font-family: "Bebas Neue", sans-serif;
    color: #dc3545;
    font-size: 1.25rem;
    letter-spacing: .04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.player-top-list {
    display: grid;
    gap: 8px;
}

.player-top-card {
    display: grid;
    grid-template-columns: 30px 58px 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.09);
}

.player-top-rank {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.15rem;
    color: rgba(255,255,255,.7);
}

.player-top-score {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
    color: #fff;
}

.player-top-date {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: .78rem;
    color: rgba(255,255,255,.62);
    white-space: nowrap;
}

.player-top-opponent {
    font-family: 'Encode Sans Condensed', sans-serif;
    color: rgba(255,255,255,.92);
    font-size: .95rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.player-top-empty {
    font-family: 'Encode Sans Condensed', sans-serif;
    color: rgba(255,255,255,.65);
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 575.98px) {
    .player-top-columns {
        grid-template-columns: 1fr;
    }
}

/* Rechts: Bild Apple-artig */
.player-apple-card {
    height: 100%;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.08);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.player-apple-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(220,53,69,0.16), transparent 35%);
    pointer-events: none;
}

.player-apple-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.player-apple-kicker {
    font-family: 'Encode Sans Condensed', sans-serif;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .78rem;
    margin-bottom: 8px;
}

.player-apple-name {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    color: white;
    line-height: 1;
    margin-bottom: 18px;
}

.player-apple-image-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-apple-image {
    max-width: 100%;
    max-height: 80%;
    width: auto;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    display: inline-block;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,0.32));
}

.player-apple-footer {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    text-align: center;
    color: rgba(255,255,255,0.78);
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: .95rem;
}

/* Grid in der Mitte */
.player-stats-panel .grid-container {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .player-apple-name {
        font-size: 1.7rem;
    }
}


/* Spinner für Upload */

    #uploadSpinner {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.72);
        z-index: 999999;
        align-items: center;
        justify-content: center;
    }

    .upload-spinner-box {
        text-align: center;
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 18px;
        padding: 32px 38px;
        backdrop-filter: blur(10px);
    }

    .upload-spinner {
        width: 72px;
        height: 72px;
        border: 8px solid rgba(255, 255, 255, 0.25);
        border-top-color: #fff;
        border-radius: 50%;
        animation: uploadSpin 0.85s linear infinite;
        margin: 0 auto 18px auto;
    }

    .upload-spinner-text {
        font-size: 20px;
        font-weight: 700;
    }

    .upload-spinner-subtext {
        margin-top: 6px;
        font-size: 14px;
        opacity: 0.85;
    }

    @keyframes uploadSpin {
        to {
            transform: rotate(360deg);
        }
    }

/* =========================================================
   MITGLIEDERVERWALTUNG
========================================================= */
.member-admin-shell {
    border: 1px solid rgba(220, 53, 69, 0.6);
    border-radius: 8px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.1);
}

.member-admin-wrap {
    width: 100%;
}

.member-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.member-admin-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all .2s ease;
}

.member-admin-btn-new:hover {
    background: #b02a37;
    color: #fff !important;
}

.member-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, .75) rgba(255,255,255,.08);
}

.member-tabs-wrap::-webkit-scrollbar {
    height: 8px;
}

.member-tabs-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
}

.member-tabs-wrap::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, .75);
    border-radius: 999px;
}

.member-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: max-content;
}

.member-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(220, 53, 69, 0.45);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    border-radius: 10px;
    padding: 8px 14px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.1rem;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .2s ease;
    min-width: 48px;
}

.member-tab-btn:hover {
    background: rgba(220,53,69,0.18);
    color: #fff;
}

.member-tab-btn.has-items {
    border-color: rgba(220, 53, 69, 0.85);
    background: rgba(220,53,69,0.12);
    color: #fff;
}

.member-tab-btn.active {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.member-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.member-tab-btn.active .member-tab-count {
    background: rgba(255,255,255,0.24);
}

.member-panel {
    display: none;
}

.member-panel.active {
    display: block;
}

.member-list-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.member-list-head {
    background: #dc3545;
    color: #fff;
    padding: 14px 18px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.35rem;
    letter-spacing: .03em;
}

.member-list-body {
    padding: 0;
}

.member-empty {
    display: block;
    padding: 18px;
    color: #6c757d;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 1rem;
}

.member-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.member-row:last-child {
    border-bottom: 0;
}

.member-name {
    display: block;
    color: #383838;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.member-meta {
    display: block;
    color: #6c757d;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 0.96rem;
    line-height: 1.35;
}

.member-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all .2s ease;
}

.member-btn-edit {
    background: #198754;
    color: #fff !important;
}

.member-btn-edit:hover {
    background: #157347;
    color: #fff !important;
}

.member-btn-delete {
    background: #dc3545;
    color: #fff !important;
}

.member-btn-delete:hover {
    background: #b02a37;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .member-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .member-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .member-tab-btn {
        padding: 8px 12px;
        min-width: 44px;
    }

    .member-btn {
        min-width: auto;
    }

    .member-tab-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.72rem;
        padding: 0 5px;
    }

    .member-admin-shell {
        padding: 10px;
    }
}

/* =========================================================
   Spielbetrieb Ergebnisse
========================================================= */

.kc-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
}

.kc-marker {
  display: flex;
  align-items: center;
}

.kc-result-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,.25);
}

.kc-win .kc-result-dot {
  background: #28a745;
}

.kc-lose .kc-result-dot {
  background: #dc3545;
}

.kc-draw .kc-result-dot {
  background: #ffc107;
}

.kc-match-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.kc-match-link:hover {
  color: #fff;
  text-decoration: underline;
}

.kc-match-meta {
  font-weight: 400;
}

.topteam-modal .spiel-spieler-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.topteam-modal .spiel-spieler-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.topteam-modal .spiel-spieler-row-gast {
  grid-template-columns: 1fr auto;
  background: rgba(255,193,7,.13);
}

.topteam-modal .spiel-spieler-img {
  width: 60px;
  height: 60px;
  border-radius: 10%;
  object-fit: contain;
  background: rgba(255,255,255,.1);
}
.topteam-modal .spiel-spieler-name {
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
}

.topteam-modal .spiel-spieler-ergebnis {
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

.topteam-modal .spiel-gast-block,
.topteam-modal .spiel-bericht-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.topteam-modal .spiel-block-label {
  margin-bottom: 8px;
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.topteam-modal .spiel-bericht-text {
  color: rgba(255,255,255,.86);
  font-size: .92rem;
  line-height: 1.45;
  white-space: normal;
}

.topteam-modal .spiel-ergebnis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 10px auto 0 auto;
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}

.topteam-modal .spiel-ergebnis-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.kc-lok.de/images/icons/kc_logo.png");
  background-size: 78%;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) blur(7px);
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}

.topteam-modal .spiel-ergebnis-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(255,255,255,0.16) calc(50% - 0.5px), rgba(255,255,255,0.16) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(255,255,255,0.16) calc(50% - 0.5px), rgba(255,255,255,0.16) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  z-index: 2;
  pointer-events: none;
}

.topteam-modal .spiel-ergebnis-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-width: 0;
  min-height: 0;
  text-align: center;
  padding: 10px;
}

.topteam-modal .spiel-ergebnis-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 0.9;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.topteam-modal .spiel-ergebnis-label {
  margin-top: 10px;
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.topteam-modal .spiel-bilanz-ring {
  width: min(260px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 20px auto;
  position: relative;
  background:
    conic-gradient(
      #28a745 0 calc(var(--win) * 1%),
      #ffc107 calc(var(--win) * 1%) calc((var(--win) + var(--draw)) * 1%),
      #dc3545 calc((var(--win) + var(--draw)) * 1%) 100%
    );
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.topteam-modal .spiel-bilanz-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  background: #383838;
  border-radius: 50%;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.4);
}

.topteam-modal .spiel-bilanz-center {
  position: absolute;
  inset: 34px;
  z-index: 2;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.topteam-modal .spiel-bilanz-diff {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.topteam-modal .spiel-bilanz-sub {
  margin-top: 6px;
  font-family: "Encode Sans Condensed", sans-serif;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.topteam-modal .bilanz-plus {
  color: #28a745;
}

.topteam-modal .bilanz-minus {
  color: #dc3545;
}

.topteam-modal .bilanz-draw {
  color: #ffc107;
}

.topteam-modal .spiel-bilanz-legende {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-family: "Encode Sans Condensed", sans-serif;
  color: white;
}

.topteam-modal .spiel-bilanz-legende div {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.topteam-modal .spiel-bilanz-legende .dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
}

.topteam-modal .spiel-bilanz-legende .dot.win {
  background: #28a745;
}

.topteam-modal .spiel-bilanz-legende .dot.lose {
  background: #dc3545;
}

.topteam-modal .spiel-bilanz-legende .dot.draw {
  background: #ffc107;
}

.topteam-modal .bilanz-toggle-btn {
  display: block;
  margin: 16px auto 0 auto;
  font-family: "Encode Sans Condensed", sans-serif;
}

.topteam-modal .bilanz-details-collapse {
  margin-top: 12px;
}

.topteam-modal .bilanz-detail-list {
  display: grid;
  gap: 6px;
}

.topteam-modal .bilanz-detail-line {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: .82rem;
  white-space: nowrap;
}

.topteam-modal .bilanz-result-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
}

.topteam-modal .bilanz-detail-win .bilanz-result-dot {
  background: #28a745;
}

.topteam-modal .bilanz-detail-lose .bilanz-result-dot {
  background: #dc3545;
}

.topteam-modal .bilanz-detail-draw .bilanz-result-dot {
  background: #ffc107;
}

.topteam-modal .bilanz-detail-date {
  color: rgba(255,255,255,.68);
  font-weight: 700;
}

.topteam-modal .bilanz-detail-teams {
  overflow: hidden;
  text-overflow: ellipsis;
}

.topteam-modal .bilanz-detail-kegel,
.topteam-modal .bilanz-detail-punkte {
  font-weight: 800;
}

@media (max-width: 768px) {
  .kc-line {
    flex-wrap: wrap;
  }

  .kc-match-meta {
    width: 100%;
  }

  .topteam-modal .bilanz-detail-line {
    grid-template-columns: 1fr;
    white-space: normal;
  }
}


/* =========================================================
   Spieler-Modal Korrekturen Teams
   - Fadenkreuz mit sauberem Innenabstand
   - Top 10 Heim/Auswärts auf kleinen Ansichten swipebar
   - bessere Abstände im Statistik-Kasten
========================================================= */

.topteam-modal .modal-body {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.player-stats-panel {
    justify-content: flex-start;
    padding: 18px 18px 16px 18px;
}

.player-stats-panel .player-modal-panel-title {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.player-stats-panel .grid-container {
    width: min(100%, 270px);
    height: auto;
    max-width: 270px;
    max-height: 270px;
    aspect-ratio: 1 / 1;
    margin: 2px auto 10px auto;
    overflow: hidden;
}

.player-stats-panel .grid-container .number {
    font-size: clamp(2.1rem, 4.5vw, 4.4rem);
    line-height: .9;
}

.player-stats-panel .grid-container .label {
    margin-top: 8px;
    font-size: clamp(0.45rem, 1.05vw, 0.66rem);
    letter-spacing: 2.5px;
    line-height: 1.15;
}

.player-stats-panel h5 {
    display: block;
    width: 100%;
    text-align: center;
    margin: 4px 0 0 0;
    font-size: 1rem;
}

@media (min-width: 1400px) {
    .player-stats-panel .grid-container {
        width: min(100%, 300px);
        max-width: 300px;
        max-height: 300px;
    }
}

@media (max-width: 991.98px) {
    .topteam-modal .modal-body {
        overflow-y: auto;
    }

    .player-stats-panel {
        justify-content: flex-start;
    }

    .player-stats-panel .grid-container {
        width: min(78vw, 300px);
        max-width: 300px;
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .player-top-columns {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 10px;
    }

    .player-top-section {
        flex: 0 0 88%;
        scroll-snap-align: start;
        min-width: 0;
    }

    .player-top-columns::-webkit-scrollbar {
        height: 6px;
    }

    .player-top-columns::-webkit-scrollbar-thumb {
        background: rgba(220,53,69,.6);
        border-radius: 999px;
    }
}


/* =========================================================
   Spieler-Modal Feinkorrektur: Fadenkreuz + Top 10 Spielart
========================================================= */
.topteam-modal .player-stats-panel {
    justify-content: flex-start;
    align-items: center;
    padding: 18px;
}

.topteam-modal .player-stats-panel .grid-container {
    width: min(100%, 300px);
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 12px auto 0 auto;
}

.topteam-modal .player-stats-panel .grid-container .number {
    font-size: clamp(2.05rem, 6.5vw, 4.15rem);
    line-height: .9;
}

.topteam-modal .player-stats-panel .grid-container .label {
    font-size: clamp(0.46rem, 1.5vw, 0.68rem);
    line-height: 1.15;
    margin-top: 12px;
    letter-spacing: 4px;
}

.topteam-modal .player-stats-panel .grid-container .v-line {
    height: 40%;
}

.topteam-modal .player-stats-panel .grid-container .h-line {
    width: 40%;
}

.topteam-modal .player-stats-panel .grid-item.is-number {
    transform: none;
}

/* Abstand zur Mittel-Linie: Reihen/Spalten bewusst von der Kreuzmitte wegziehen */
.topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(5) {
    padding: 16px 30px 32px 16px;
}
.topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(6) {
    padding: 16px 16px 32px 30px;
}
.topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(7) {
    padding: 32px 30px 16px 16px;
}
.topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(8) {
    padding: 32px 16px 16px 30px;
}

.topteam-modal .player-top-card {
    grid-template-columns: 30px 58px 1fr;
    grid-template-areas:
        "rank main opponent"
        "rank art art";
}

.topteam-modal .player-top-rank { grid-area: rank; }
.topteam-modal .player-top-main { grid-area: main; }
.topteam-modal .player-top-opponent { grid-area: opponent; }

.topteam-modal .player-top-art {
    grid-area: art;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 2px;
    padding: 2px 7px;
    border-radius: 999px;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: .72rem;
    line-height: 1.1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
}

.topteam-modal .player-top-art.is-sonstiges-spiel {
    color: #fff;
    border-color: rgba(220, 53, 69, .55);
    background: rgba(220, 53, 69, .24);
}

.topteam-modal .player-top-art.is-punktspiel {
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.06);
}

@media (min-width: 992px) {
    .topteam-modal .player-stats-panel .grid-container {
        width: min(100%, 285px);
        max-width: 285px;
    }
}

@media (max-width: 575.98px) {
    .topteam-modal .player-stats-panel .grid-container {
        width: min(100%, 275px);
        max-width: 275px;
    }

    .topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(5) {
        padding: 14px 26px 30px 14px;
    }
    .topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(6) {
        padding: 14px 14px 30px 26px;
    }
    .topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(7) {
        padding: 30px 26px 14px 14px;
    }
    .topteam-modal .player-stats-panel .grid-container > .grid-item:nth-child(8) {
        padding: 30px 14px 14px 26px;
    }
}

/* =========================================================
   Modal Spieler – Top-Ergebnisse: erst 5, dann Toggle
========================================================= */
.topteam-modal .player-top-more {
    margin-top: 10px;
}

.topteam-modal .player-top-more summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(220, 53, 69, 0.55);
    background: rgba(220, 53, 69, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: .86rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.topteam-modal .player-top-more summary::-webkit-details-marker {
    display: none;
}

.topteam-modal .player-top-more summary::after {
    content: "+";
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.15rem;
    line-height: 1;
}

.topteam-modal .player-top-more[open] summary::after {
    content: "–";
}

.topteam-modal .player-top-list-more {
    margin-top: 9px;
}

/* =========================================================
   Modal Spieler – Kästen gleich hoch + immer zentriert
========================================================= */

@media (min-width: 992px) {

    .player-modal-panels {
        width: 100%;
        justify-content: center;
        align-items: stretch;
    }

    .player-modal-panel {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Inhalt sauber strecken */
    .player-meta-list,
    .player-top-panel,
    .player-apple-card,
    .player-stats-panel {
        flex: 1 1 auto;
    }

    /* Wenn nur 3 Kästen vorhanden sind -> mittig */
    .player-modal-panels:has(.player-modal-panel:nth-child(3):last-child) {
        grid-template-columns:
            minmax(280px, 0.95fr)
            minmax(280px, 1.05fr)
            minmax(280px, 1.45fr);
        justify-content: center;
        max-width: 1500px;
        margin: 0 auto;
    }

    /* 4 Kästen ebenfalls mittig */
    .player-modal-panels:has(.player-modal-panel:nth-child(4)) {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* =========================================================
   Spielbetrieb Quali
========================================================= */

.vm-section {
    width: 100%;
    box-sizing: border-box;
}

.vm-info {
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Encode Sans Condensed', sans-serif;
    color: white;
}

.vm-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.vm-card {
    flex: 0 0 92%;
    scroll-snap-align: start;

    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(220,53,69,0.6);
    border-radius: 10px;

    padding: 14px;
    color: white;
    min-width: 0;
}

.vm-card-title {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;

    margin-bottom: 10px;
    padding-bottom: 8px;

    border-bottom: 1px solid rgba(220,53,69,0.35);
}

.vm-player {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 8px 0;
}

.vm-player:last-child {
    border-bottom: 0;
}

.vm-toggle {
    display: block;
    text-decoration: none;
    color: white;
    font-family: 'Encode Sans Condensed', sans-serif;
}

.vm-toggle:hover,
.vm-toggle:focus {
    color: white;
    text-decoration: none;
}

.vm-line-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.vm-note {
    font-size: 0.9rem;
    color: #d0d0d0;
    display: block;
}

.vm-ds-h1 {
    margin: 0;

    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;

    color: #DC3545;
    line-height: 1;
    white-space: nowrap;
}

.vm-ds-top4 {
    color: white;
}

.vm-details {
    margin-top: 10px;
    padding: 10px;

    background: rgba(0,0,0,0.25);
    border-radius: 8px;
}

.vm-games-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.vm-games-table col.vm-col-date {
    width: 72px;
}

.vm-games-table col.vm-col-result {
    width: 58px;
}

.vm-games-table th {
    color: #DC3545;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 700;
    text-align: left;
    font-size: 0.95rem;
}

.vm-games-table th,
.vm-games-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
}

.vm-games-table th:nth-child(3),
.vm-games-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

.vm-gegner {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-empty {
    margin: 0;
    color: #d0d0d0;
    font-family: 'Encode Sans Condensed', sans-serif;
}

.vm-print-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: transparent;
    color: #ffffff;

    border: 1px solid #ffffff;
    padding: 8px 14px;
    border-radius: 999px;

    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 700;

    text-decoration: none;
}

.vm-print-button:hover {
    color: #ffffff;
    border-color: #DC3545;
    background: rgba(220,53,69,0.2);
}

.vm-print-button .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

@media (min-width: 768px) {

    .vm-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        overflow: visible;
        scroll-snap-type: none;
    }
}

@media (min-width: 1200px) {

    .vm-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================================
   Kalender
========================================================= */

  #kc-termin-kalender,
  #kc-termin-kalender *{ box-sizing: border-box; }
  body{ margin:0; overflow-x:hidden; }
  #kc-termin-kalender{ max-width: 100vw; }
  #kc-termin-kalender .calendar-card{ max-width: 100%; }

  #kc-termin-kalender{
    --kc-bg: #383838;
    --kc-red: #DC3545;
    --kc-red-dark: #c62828;
    --kc-text: rgba(255,255,255,.92);
    --kc-muted: rgba(255,255,255,.55);
    --kc-panel: rgba(255,255,255,.06);
    --kc-panel-2: rgba(0,0,0,.18);
    --kc-border: rgba(220, 53, 69, 0.60);
    --kc-radius: 22px;
    --kc-shadow: 0 18px 40px rgba(0,0,0,.45);
    --kc-navbar-h: 72px;
    --kc-gap: 12px;
    --kc-dot-game:   #28c782;
    --kc-dot-train:  #8d9693;
    --kc-dot-request:#ffd400;
    --kc-dot-rent:   #eb86a1;

    padding-left: 0 !important;
    padding-right: 0 !important;
    color: var(--kc-text);
  }

  #kc-termin-kalender .calendar-card{
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    border-radius: var(--kc-radius);
    box-shadow: var(--kc-shadow);
    overflow:hidden;
    display:grid;
    grid-template-columns: 460px 1fr;
    border: none;
    background: rgba(255,255,255,.02);
  }

  @media (min-width: 1400px){
    #kc-termin-kalender .calendar-card{
      grid-template-columns: 500px 1fr;
    }
  }

  #kc-termin-kalender .left{
    background: var(--kc-red);
    color:#fff;
    padding:30px 30px 22px;
    position:relative;
    min-height: 560px;
  }

  #kc-termin-kalender .big-day{
    font-family: "Bebas Neue", sans-serif;
    font-size: 128px;
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -1px;
    margin: 0;
    text-align:left;
    width:100%;
  }

  #kc-termin-kalender .big-dow{
    margin: 10px 0 34px;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    opacity:.95;
    text-align:left;
  }

  #kc-termin-kalender .section-title{
    margin: 0 0 10px;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 700;
    opacity: .95;
    font-size: 16px;
  }

  #kc-termin-kalender .events{
    margin:0 0 18px;
    padding:0;
    opacity:.95;
    list-style: none;
  }

  #kc-termin-kalender .events li{
    margin: 8px 0;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    padding-left: 14px;
  }

  #kc-termin-kalender .events li .li-dot{
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    opacity: .92;
  }

  #kc-termin-kalender .event-link{
    color: inherit;
    text-decoration: none;
  }

  #kc-termin-kalender .event-link:hover{
    text-decoration: underline;
  }

  #kc-termin-kalender .create{
    position:absolute;
    left:30px; right:30px;
    bottom:22px;
    border-top: 1px solid rgba(255,255,255,.35);
    padding-top: 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight:800;
    text-transform: uppercase;
    letter-spacing: .6px;
  }

  #kc-termin-kalender .plus{
    width:32px;height:32px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.92);
    display:grid;
    place-items:center;
    font-size: 18px;
    line-height: 0;
    user-select:none;
    cursor:pointer;
    background: rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
  }

  #kc-termin-kalender .plus:hover{ background: rgba(0,0,0,.18); }

  #kc-termin-kalender .right{
    padding: 24px 28px 28px;
    background: rgba(0,0,0,.12);
  }

  #kc-termin-kalender .topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 10px;
  }

  #kc-termin-kalender .nav{ display:flex; align-items:center; gap:10px; }

  #kc-termin-kalender .icon-btn{
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    cursor:pointer;
    padding:9px 12px;
    border-radius:12px;
    font-weight:900;
    color: var(--kc-muted);
  }

  #kc-termin-kalender .icon-btn:hover{
    background: rgba(255,255,255,.10);
    color: #fff;
    border-color: rgba(255,255,255,.18);
  }

  #kc-termin-kalender .year{
    font-size: 36px;
    font-weight: 800;
    color: rgba(255,255,255,.25);
    letter-spacing: .5px;
    user-select:none;
  }

  #kc-termin-kalender .today-btn{
    margin-left:10px;
    border: 1px solid rgba(255,255,255,.10);
    background: var(--kc-red);
    color:#fff;
    padding:10px 14px;
    border-radius: 12px;
    font-weight: 900;
    cursor:pointer;
    box-shadow: 0 10px 20px rgba(220,53,69,.25);
    text-transform: uppercase;
    letter-spacing: .4px;
  }

  #kc-termin-kalender .today-btn:hover{ background: var(--kc-red-dark); }

  #kc-termin-kalender .months-wrap{
    display:grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: stretch;
  }

  #kc-termin-kalender .months{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    margin: 12px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  #kc-termin-kalender .month{
    text-align:center;
    font-weight: 900;
    color: rgba(255,255,255,.35);
    padding: 7px 0;
    border-radius: 10px;
    font-size: 14px;
    user-select:none;
    cursor:pointer;
    text-transform: uppercase;
    font-family: 'Encode Sans Condensed', sans-serif;
  }

  #kc-termin-kalender .month.active{
    color: var(--kc-red);
    background: rgba(220,53,69,.14);
    border: 1px solid rgba(220,53,69,.25);
  }

  #kc-termin-kalender .month:hover{
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
  }

  #kc-termin-kalender .revenue-month-head{
    margin: 12px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    display:flex;
    align-items:center;
    justify-content:center;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 900;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
  }

  #kc-termin-kalender .calendar-body-wrap{
    display:grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items:start;
  }

  #kc-termin-kalender .grid{
    display:grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px 8px;
    margin-top: 10px;
  }

  #kc-termin-kalender .dow{
    text-align:center;
    font-weight: 900;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    letter-spacing:.6px;
    padding: 8px 0 4px;
    user-select:none;
    font-family: 'Encode Sans Condensed', sans-serif;
  }

  #kc-termin-kalender .week-revenue{
    display:grid;
    grid-template-rows: 33px repeat(6, 50px);
    gap: 14px 0;
    margin-top: 10px;
  }

  #kc-termin-kalender .week-revenue-head{
    text-align:center;
    font-weight: 900;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    letter-spacing:.6px;
    padding: 8px 0 4px;
    user-select:none;
    font-family: 'Encode Sans Condensed', sans-serif;
  }

  #kc-termin-kalender .week-revenue-cell{
    height: 50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 14px;
    font-weight: 800;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
    padding: 0 8px;
    text-align:center;
  }

  #kc-termin-kalender .cell{
    height: 50px;
    display:grid;
    place-items:center;
    border-radius: 999px;
    font-weight: 900;
    color: rgba(255,255,255,.75);
    position:relative;
    user-select:none;
    cursor:pointer;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    font-size: 15px;
  }

  #kc-termin-kalender .cell.out{
    color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.04);
    font-weight:800;
  }

  #kc-termin-kalender .cell:hover{
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: #fff;
  }

  #kc-termin-kalender .cell.today{
    background: var(--kc-red);
    color:#fff;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 12px 22px rgba(220,53,69,.25);
  }

  #kc-termin-kalender .cell.today::after{ display:none !important; content:none !important; }

  #kc-termin-kalender .cell.selected{
    outline: 2px solid rgba(220,53,69,.35);
    background: rgba(220,53,69,.10);
    border-color: rgba(220,53,69,.25);
    color: #fff;
  }

  #kc-termin-kalender .dot{
    position:absolute;
    bottom: 9px;
    width:6px; height:6px;
    border-radius:999px;
    opacity:.92;
    box-shadow:
      0 0 0 2px rgba(0,0,0,.35),
      0 0 10px rgba(255,255,255,.18);
  }

  #kc-termin-kalender .dot.dot-game{ background: var(--kc-dot-game); }
  #kc-termin-kalender .dot.dot-train{ background: var(--kc-dot-train); }
  #kc-termin-kalender .dot.dot-request{ background: var(--kc-dot-request); }
  #kc-termin-kalender .dot.dot-rent{ background: var(--kc-dot-rent); }

  #kc-termin-kalender .events li .li-dot.dot{
    box-shadow:
      0 0 0 2px rgba(0,0,0,.35),
      0 0 10px rgba(255,255,255,.18);
  }

  #kc-termin-kalender .event-link-disabled{
    cursor: default;
  }

  #kc-termin-kalender .event-link-disabled:hover{
    text-decoration: none;
  }

  #kc-termin-kalender .kc-actionbar{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  #kc-termin-kalender .kc-mini-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: none;
    z-index: 60000;
  }

  #kc-termin-kalender .kc-mini-backdrop.show{ display:block; }

  #kc-termin-kalender .kc-mini-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 60001;
    padding: 24px 12px;
    overflow: auto;
  }

  #kc-termin-kalender .kc-mini-modal.show{ display:block; }

  #kc-termin-kalender .kc-mini-card{
    max-width: 520px;
    margin: 8vh auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(56,56,56,1);
    color: rgba(255,255,255,.92);
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
  }

  #kc-termin-kalender .kc-mini-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  #kc-termin-kalender .kc-mini-title{
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.6em;
    letter-spacing: .5px;
    text-transform: uppercase;
  }

  #kc-termin-kalender .kc-mini-x{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color:#fff;
    cursor:pointer;
    font-size: 22px;
    line-height: 0;
  }

  #kc-termin-kalender .kc-mini-body{
    padding: 16px;
  }

  #kc-termin-kalender .kc-mini-label{
    display:block;
    font-weight: 800;
    margin-bottom: 6px;
  }

  #kc-termin-kalender .kc-mini-hint{
    display:block;
    margin-top: 8px;
    opacity: .75;
  }

  #kc-termin-kalender .kc-mini-text{
    margin: 0;
    font-weight: 700;
  }

  #kc-termin-kalender .kc-mini-foot{
    display:flex;
    justify-content:flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  #kc-termin-kalender .btn-versendet{
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
  }

  #kc-termin-kalender .btn-versendet:hover{
    background: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #FFFFFF !important;
  }

  #kc-termin-kalender .modal-backdrop{
    position:fixed;
    inset:0;
    background:#000;
    opacity:0;
    pointer-events:none;
    transition: opacity 200ms ease;
    z-index: 50000;
  }

  #kc-termin-kalender .modal-backdrop.show{
    opacity: .60;
    pointer-events:auto;
  }

  #kc-termin-kalender .modal{
    position:fixed;
    top: calc(var(--kc-navbar-h) + var(--kc-gap) + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    border: 0 !important;
    border-radius: 0 !important;
    overflow:hidden;
    z-index: 50001;
    display:none;
    background: transparent !important;
  }

  #kc-termin-kalender .modal.show{ display:block; }

  #kc-termin-kalender .modal-dialog.impressum-modal{
    top: calc(var(--kc-navbar-h) + var(--kc-gap) + env(safe-area-inset-top)) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border: 1.5px solid #c62828 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  #kc-termin-kalender .modal-content{
    height:100% !important;
    border:0 !important;
    background: rgba(56,56,56,1.0) !important;
    display:flex;
    flex-direction:column;
  }

  #kc-termin-kalender .modal-header{
    background: rgba(56,56,56,0.5);
    border-color: rgba(0,0,0,0.08);
    padding: 14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  #kc-termin-kalender .modal-title{
    margin:0;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.8em;
    font-weight: 400;
    color:#fff;
    letter-spacing:.6px;
    text-transform: uppercase;
  }

  #kc-termin-kalender .btn-close{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    cursor:pointer;
    position:relative;
    filter: invert(1);
    opacity: 1;
  }

  #kc-termin-kalender .btn-close:hover{ opacity:.7; }

  #kc-termin-kalender .btn-close::before,
  #kc-termin-kalender .btn-close::after{
    content:"";
    position:absolute;
    top:50%; left:50%;
    width:18px; height:2px;
    background:#000;
    transform-origin:center;
  }

  #kc-termin-kalender .btn-close::before{ transform: translate(-50%,-50%) rotate(45deg); }
  #kc-termin-kalender .btn-close::after{ transform: translate(-50%,-50%) rotate(-45deg); }

  #kc-termin-kalender .modal-body{
    overflow:auto;
    padding: 16px !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  #kc-termin-kalender #eventModal .container.div_red{
    width: 100%;
    max-width: 2000px;
    margin: 24px auto 0 auto;
    padding: 26px 32px;
  }

  #kc-termin-kalender .below-calendar{
    margin-top: 22px;
    display:grid;
    gap: 18px;
  }

  #kc-termin-kalender .info-card{
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
  }

  #kc-termin-kalender .info-card h3{
    margin: 0 0 14px;
    font-family: 'Encode Sans Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #fff;
    font-size: 20px;
  }

  #kc-termin-kalender .search-form{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items:center;
  }

  #kc-termin-kalender .search-form input[type="text"]{
    flex: 1 1 280px;
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color:#fff;
    padding: 12px 14px;
  }

  #kc-termin-kalender .search-form input[type="text"]::placeholder{
    color: rgba(255,255,255,.45);
  }

  #kc-termin-kalender .search-form .btn{
    border-radius: 12px;
  }

  #kc-termin-kalender .list-plain{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    gap: 10px;
  }

  #kc-termin-kalender .list-plain li{
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    padding: 12px 14px;
  }

  #kc-termin-kalender .list-plain a{
    color: #fff;
    text-decoration:none;
    font-weight:700;
    display: block;
  }

  #kc-termin-kalender .list-plain a:hover{
    text-decoration:underline;
  }

  #kc-termin-kalender .list-date{
    display:block;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin-bottom: 4px;
    font-weight: 800;
  }

  #kc-termin-kalender .list-text{
    display:block;
  }

  #kc-termin-kalender .month-total{
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(220,53,69,.10);
    border: 1px solid rgba(220,53,69,.25);
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
  }

  #kc-termin-kalender .month-total span{
    color: #ffd6db;
  }

  @media (max-width: 1199px){
    #kc-termin-kalender .months-wrap{
      grid-template-columns: 1fr;
    }
    #kc-termin-kalender .calendar-body-wrap{
      grid-template-columns: 1fr;
    }
    #kc-termin-kalender .revenue-month-head,
    #kc-termin-kalender .week-revenue{
      display:none;
    }
  }

  @media (max-width: 980px){
    #kc-termin-kalender .calendar-card{
      grid-template-columns: 1fr;
      max-width: 100%;
    }
    #kc-termin-kalender .left{ min-height: 420px; }
    #kc-termin-kalender .big-day{ font-size: 104px; }
  }

  @media (max-width: 520px){
    #kc-termin-kalender .right{ padding: 18px 14px 18px; }
    #kc-termin-kalender .months{ gap: 6px; }
    #kc-termin-kalender .month{ font-size: 12px; padding: 6px 0; }
    #kc-termin-kalender .grid{ gap: 10px 6px; }
    #kc-termin-kalender .dow{
      font-size: 11px;
      letter-spacing: .2px;
      padding: 6px 0 2px;
    }
    #kc-termin-kalender .cell{ height: 44px; font-size: 13px; }
  }



