/* ========================================
   Theme-System mit CSS-Variablen
   Light Theme ist Standard (:root)
   Dark Theme über [data-theme="dark"]
   ======================================== */

/* Light Theme (Standard) */
:root, [data-theme="light"] {
  /* Hauptfarben - angepasst für besseren Kontrast */
  --primcol: #563698; /* Dunkles Violett für Light Theme */
  --seccol: #45413f; /* Dunkelgrau-Braun */
  --accent: #006d7a; /* Dunkles Türkis */
  --thirdcol: #b0af41; /* Oliv-Gelb */

  /* Hintergrundfarben - helle Varianten */
  --bgcol: #F5F5F5; /* Hellgrau - Haupthintergrund */
  --bgcoldark: #FFFFFF; /* Weiß - hellster Hintergrund */
  --bgcolmid: #E0E0E0; /* Mittelgrau - mittlerer Hintergrund */

  /* Text und Transparenz - invertiert */
  --textcol: #212121; /* Fast-Schwarz - Textfarbe */
  --white: #ffffff; /* Weiß bleibt gleich */
  --whitetrans: #00000015; /* Transparentes Schwarz für Light Theme */
  --blacktrans: #ffffff20; /* Transparentes Weiß für Light Theme */

  /* Zusätzliche Farben - angepasst */
  --farbe3: #546E7A;
  --farbe5: #D81B60;
  --accent2: #D81B60; /* Gleich wie farbe5 im Light Mode */
  --farbe9: #0097A7;
  --farbe10: #FAFAFA;

  /* Gradients - angepasst */
  --header-bg: linear-gradient(180deg, var(--primcol), var(--bgcol));
}

/* Dark Theme */
[data-theme="dark"] {
  /* Hauptfarben */
  --primcol: #7a56c4; /* Violett - Hauptfarbe */
  --seccol: #E7C29C; /* Beige - Sekundärfarbe */
  --accent: #5FC6BF; /* Türkis - Akzentfarbe */
  --thirdcol: #D55672; /* Blush - Drittfarbe */

  /* Hintergrundfarben */
  --bgcol: #636468; /* Mittelgrau - Haupthintergrund */
  --bgcoldark: #131B28; /* Dunkelblau - dunkler Hintergrund */
  --bgcolmid: #3B4048; /* Dunkelgrau - mittlerer Hintergrund */

  /* Text und Transparenz */
  --textcol: #f3f4f6; /* Hellgrau - Textfarbe */
  --white: #ffffff; /* Weiß */
  --whitetrans: #ffffff30; /* Transparentes Weiß */
  --blacktrans: #00000030; /* Transparentes Schwarz */

  /* Zusätzliche Farben */
  --farbe3: #8BA7A5;
  --farbe5: #FE52B1;
  --accent2: #f6a2ff; /* Helles Pink-Lila für Dark Mode */
  --farbe9: #7AFFFA;
  --farbe10: #18191d;

  /* Gradients */
  --header-bg: linear-gradient(180deg, var(--primcol), var(--bgcol));
}
[data-theme="dark"] .section-content {
  background-image: url("/images/hintergrund_pattern2_002.png");
}

/* Light Theme Overrides */
[data-theme="light"] header .verwaltungaktiv {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
[data-theme="light"] header .verwaltungaktiv.turnier-laufend {
  background: rgba(0, 140, 0, 0.35);
  border-color: rgba(0, 160, 0, 0.5);
}
[data-theme="light"] header .verwaltungaktiv.turnier-bald {
  background: rgba(200, 170, 0, 0.35);
  border-color: rgba(200, 170, 0, 0.5);
}
[data-theme="light"] header .verwaltungaktiv.turnier-vergangen {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .verwaltungbewerb:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] tr:hover {
  background-color: rgba(0, 0, 0, 0.0);
}

/* Globale Hilfe-Sektion für projektweite Verwendung */
.help-section {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--bgcolmid); /* #3B4048 - passt zum dunklen Design */
    color: var(--textcol); /* #f3f4f6 - helle Schrift */
    border-radius: 5px;
    border: 1px solid var(--accent); /* #5FC6BF - Akzentfarbe als Rahmen */
    box-shadow: 0 2px 4px var(--blacktrans);
}

.help-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--accent); /* Akzentfarbe für Überschriften */
    font-size: 1.1rem;
    font-weight: 600;
}

.help-section ul {
    margin: 5px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.help-section strong {
    color: var(--seccol); /* #E7C29C - Sekundärfarbe für Hervorhebungen */
    font-weight: 600;
}

.help-section p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Variante für kompakte Hilfe-Bereiche */
.help-section.compact {
    padding: 10px;
    font-size: 0.9rem;
}

.help-section.compact h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* ========================================
   Utility Classes für häufige Patterns
   ======================================== */
   
/* Display Utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Width Utilities */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mb-10 { margin-bottom: 10px !important; }
.p-0 { padding: 0 !important; }
.p-10 { padding: 10px !important; }
.p-20 { padding: 20px !important; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }

/* ========================================
   Base Styles mit Theme-Transition
   ======================================== */

html {
  font-size: 15px; /* Basisgröße */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 0, 0, 0.05);
}

body {
  background-color: var(--bgcol);
  color: var(--textcol);
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Smooth Theme Transition */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header mit Hauptmenü */
header {
  
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  
}
header .containermainmenu{
  background-color: var(--bgcoldark);
    background-image: url(/images/hintergrund_pattern2_007.png);
    animation: infiniteMovehead linear infinite 200000ms;
    color: var(--primcol);
    padding: 5px 5px 5px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width:100%;
    box-sizing: border-box;

}
@media (max-width: 768px) {
  header .containermainmenu{
    padding: 2px;
  }
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.header-betreiber {
  font-size: 1.4rem;
  color: var(--farbe3);
  font-weight: 600;
}
.header-betreiber a {
  color: var(--farbe3);
  text-decoration: none;
}
.header-betreiber a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .header-betreiber {
    font-size: 1rem;
  }
}

@keyframes infiniteMovehead {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 128px -512px; /* Passe das dynamisch in JS an */
  }
}

/* Burger-Menü */
header .burger-menu {
  display: none; /* Standardmäßig versteckt */
  background: none;
  border: none;
  color: var(--seccol);
  font-size: 1.4rem;
  cursor: pointer;
}

header h1 {
  margin-block-start: 0;
  margin-block-end: 0;
  font-size: 2rem;
  white-space: nowrap;
}
@media (max-width: 700px) { 
  header h1 {
    font-size: 1.6rem;
  }
}

/* Hauptmenü - Desktop */

header nav.main-menu {
  display: flex;
  gap: 20px;
}

header nav.main-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 20px;
}

header nav.main-menu li a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  font-weight: bold;
  background-color: var(--primcol);
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

header nav.main-menu li a:hover {
  background-color: var(--accent);
  color: var(--bgcol);

}

/* Sprachwechsel-Flagge mit Dropdown */
header nav.main-menu li.lang-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

header nav.main-menu li.lang-dropdown-wrap .lang-toggle {
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 20px;
  padding: 0px 4px;
  border-radius: 3px;
  border: 3px solid var(--primcol);
  cursor: pointer;
}

header nav.main-menu li.lang-dropdown-wrap .lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  flex-direction: column;
  background: var(--bgcol);
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 130px;
  gap: 0;
  z-index: 1000;
}

header nav.main-menu li.lang-dropdown-wrap:hover .lang-dropdown {
  display: flex;
}

header nav.main-menu li.lang-dropdown-wrap .lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: var(--textcol);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: normal;
  white-space: nowrap;
  background: none;
}

header nav.main-menu li.lang-dropdown-wrap .lang-dropdown li a:hover {
  background-color: var(--primcol);
  color: var(--white);
}

.lang-dropdown-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/*allgemeine überschrift einstellungen */

h1{

}
h2 {

}
h3{
  margin: 10px 2px;
}

/*Menü wenn Verwaltung aktiv anzeigen*/

header .verwaltungaktiv{
  display: flex;
  align-items: center;     /* vertikal zentrieren */
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--farbe3);
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(0.4rem, 1vw, 0.8rem);
  min-width: 0;            /* Flex-Child darf schrumpfen */
  flex-shrink: 1;
}
header .verwaltungaktiv h3{
  padding: 0;
  margin: 3px;
  flex-shrink: 0;          /* "Verwaltung" immer sichtbar */
}
header .verwaltungaktiv .turnieraktiv{
  padding: 0;
  margin: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
header .verwaltungaktiv .turnier-datum{
  margin-left: 4px;
  opacity: 0.85;
}
/* Turnierstatus-Farben */
header .verwaltungaktiv.turnier-laufend {
  background: rgba(0, 160, 0, 0.5);
  border-color: rgba(0, 200, 0, 0.6);
}
header .verwaltungaktiv.turnier-bald {
  background: rgba(200, 170, 0, 0.5);
  border-color: rgba(230, 200, 0, 0.6);
}
header .verwaltungaktiv.turnier-vergangen {
  background: rgba(0, 0, 0, 0.5);
}

/* Kontextmenü beim Rechtsklick auf die Verwaltungs-Box */
.verwaltung-ctxmenu {
  position: fixed;
  z-index: 10000;
  min-width: 200px;
  background: var(--bgcoldark);
  border: 1px solid var(--whitetrans);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  padding: 4px 0;
}
.verwaltung-ctxmenu a {
  display: block;
  padding: 8px 14px;
  color: var(--textcol);
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
}
.verwaltung-ctxmenu a:hover {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--textcol);
}

/* Statusfarben-Legende ueber der Turniertabelle (rechtsbuendig) */
.turnier-legende {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  float: right;
  margin: 10px 0;
  padding: 6px 12px;
  font-size: 0.75rem;
  opacity: 0.85;
  white-space: nowrap;
  background-color: var(--bgcolmid);
  color: var(--textcol);
  border-radius: 4px;
}
.turnier-legende:hover {
  opacity: 1;
}
.turnier-legende-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.turnier-legende-item:hover {
  background-color: var(--whitetrans);
}
.turnier-legende-item.active {
  background-color: var(--whitetrans);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: bold;
}
.turnier-legende-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid var(--whitetrans);
}
.turnier-legende-swatch.turnier-legende-laufend {
  background: rgba(0, 160, 0, 0.6);
  border-color: rgba(0, 200, 0, 0.7);
}
.turnier-legende-swatch.turnier-legende-bald {
  background: rgba(200, 170, 0, 0.6);
  border-color: rgba(230, 200, 0, 0.7);
}

/* Turnierverwaltung-Tabelle: Statushervorhebung (laufend gruen, bald gelb) */
tr.turnier-row.turnier-laufend,
tr.turnier-row-disabled.turnier-laufend {
  background: rgba(0, 160, 0, 0.35);
  box-shadow: inset 3px 0 0 rgba(0, 200, 0, 0.7);
}
tr.turnier-row.turnier-laufend:hover {
  background: rgba(0, 180, 0, 0.45);
}
[data-theme="light"] tr.turnier-row.turnier-laufend,
[data-theme="light"] tr.turnier-row-disabled.turnier-laufend {
  background: rgba(0, 140, 0, 0.22);
  box-shadow: inset 3px 0 0 rgba(0, 160, 0, 0.6);
}
[data-theme="light"] tr.turnier-row.turnier-laufend:hover {
  background: rgba(0, 160, 0, 0.32);
}
tr.turnier-row.turnier-bald,
tr.turnier-row-disabled.turnier-bald {
  background: rgba(200, 170, 0, 0.30);
  box-shadow: inset 3px 0 0 rgba(230, 200, 0, 0.7);
}
tr.turnier-row.turnier-bald:hover {
  background: rgba(220, 190, 0, 0.40);
}
[data-theme="light"] tr.turnier-row.turnier-bald,
[data-theme="light"] tr.turnier-row-disabled.turnier-bald {
  background: rgba(200, 170, 0, 0.20);
  box-shadow: inset 3px 0 0 rgba(200, 170, 0, 0.6);
}
[data-theme="light"] tr.turnier-row.turnier-bald:hover {
  background: rgba(220, 190, 0, 0.30);
}

header #meldungsblock{
 
  
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  border: 2px solid rgba(0, 255, 13, 0.671);
  color: rgba(0, 255, 13, 0.671);
  font-size: 0.9rem;
  padding: 3px;
  
  
}
/* Menü - Mobile Geräte */
@media (max-width: 768px) {
 header .burger-menu {
    display: block; /* Burger-Menü wird sichtbar */
  }


 header nav.main-menu {
    display: none; /* Menü standardmäßig versteckt */
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--primcol);
    width: 100%;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  }

 header nav.main-menu.active {
    display: flex; /* Menü wird angezeigt */
  }

 header nav.main-menu ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  header nav.main-menu li{
    display: flex;
    justify-content: center;
  }
 header nav.main-menu li a {
    padding: 10px;
    text-align: center;
    width: 100%;
  }
}




/* Submenü als Karussell */
nav.sub-menu {
  display: block; /* Flexbox für Zentrierung */
  justify-content: center; /* Zentriert den gesamten Inhalt */
  align-items: center; /* Vertikale Zentrierung */
  background-color: var(--accent);
  padding: 2px 0;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* Aktiviert horizontales Scrollen */
  overflow-y: hidden; /* Verhindert vertikales Scrollen */
  width: 100%; /* Container nimmt die gesamte Breite ein */
  margin: 0;
  scrollbar-width: thin; /* Für Firefox */
  scrollbar-color: var(--primcol) var(--accent); /* Scrollbar-Farben */
}

nav.sub-menu.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

nav.sub-menu ul {
  display: inline-flex;
  margin: 0 auto;
  flex-wrap: nowrap;
  list-style: none;
  gap: 15px;

  padding: 0;
  flex-shrink: 0; /* Verhindert das Schrumpfen */
}

nav.sub-menu li {
  padding: 5px 0;
}

nav.sub-menu ul:has(li:nth-child(n+2)) {
  justify-content: flex-start; /* Links ausrichten, wenn mehrere Elemente vorhanden sind */
  min-width: max-content; /* Breite passt sich an den Inhalt an */
}



nav.sub-menualt ul {
  display: inline-flex;
  min-width: max-content;
  list-style: none;
  gap: 15px;
  margin: 0 30px 0 30px ;
  padding: 0;
  justify-content: center; /* Zentriert die Links */
  align-items: center; /* Vertikale Zentrierung */
  overflow-x: auto; /* Aktiviert horizontales Scrollen */
  scroll-behavior: smooth; /* Sanftes Scrollen */
  -webkit-overflow-scrolling: touch; /* Unterstützt Swipe auf Mobilgeräten */
  scrollbar-width: thin; /* Für Firefox */
  scrollbar-color: var(--primcol) var(--accent); /* Farbe von Scrollbar und Hintergrund */
  overflow-y: hidden; /* Vertikale Scrollleiste ausblenden */
}

nav.sub-menu ul::-webkit-scrollbar {
  height: 10px; /* Höhe des Scrollbalkens */
}

nav.sub-menu ul::-webkit-scrollbar-thumb {
  background-color: var(--primcol); /* Farbe des Scrollbalkens */
  border-radius: 5px; /* Abgerundete Ecken */
  border: 2px solid var(--accent); /* Abstand und Rahmen */
}

/* Scrollbare Links */
nav.sub-menu li a {
  color: var(--bgcol);
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Hover-Effekt */
nav.sub-menu li a:hover {
  color: var(--primcol);
}

/* Pfeile für Navigation */
nav.sub-menu .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: var(--bgcol);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

nav.sub-menu .arrow.left {
  left: 0;
}

nav.sub-menu .arrow.right {
  right: 0;
}

/* Aktives Element im Submenü */
nav.sub-menu ul li a.active {
  font-weight: bold; /* Fett */
}




/* Main Content */
.main-content {
  position: relative;
  margin: 0px auto;
  /* max-width entfernt - nutzt volle Bildschirmbreite */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);

}

/* Farbverlauf nur auf den oberen 500px */
.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px; /* Farbverlauf-Höhe */
  background: var(--header-bg); /* Farbverlauf von der Variable */
  z-index: -1; /* Hinter dem Inhalt anzeigen */
  
}

/* Neuer Header-Bereich im Main Content */
.main-content-header {
  
  padding: 5px 5px;
  text-align: center;
  color: var(--white);
  font-weight: bold;
  border-radius: 8px;
  margin: 0 auto;
  font-size: clamp(0.8rem, 1.8vw, 1.3rem);
  white-space: nowrap;
  
}
.main-content-header a{
  text-decoration: none;
  color: var(--thirdcol);
  margin: 0px 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  padding: 4px;
}
.main-content-header a:hover{
  
  background-color: rgba(0, 0, 0, 0.2);
  
}
@media (max-width: 608px) {
  .main-content-header {
    font-size: 1rem;
    white-space:inherit;
  }
}

/* Section Content */



.section-content {
  background-color: var(--bgcol);
  background-image: url("/images/hintergrund_pattern2_003.png");
  animation: infiniteMove linear infinite 1600000ms;
  opacity: 0.95;
  padding: 5px 5px 15px 5px;
  margin: 0px auto 0;
  width: calc(100% - 20px);
  border-radius: 8px 8px 0 0;
}
@media (max-width: 768px) {
  .section-content {
        padding: 5px 3px 15px 3px;
        width: calc(100% - 8px);
    }
}

@keyframes infiniteMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -128px 512px; /* Passe das dynamisch in JS an */
  }
}

.section-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--textcol);
}
/* Footer */
footer {
  background-color: var(--seccol);
  color: var(--white);
  padding: 20px;
  text-align: center;
  box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
}

/* System-Banner (Public-Portal Footer)
   Groessen kommen aus CSS-Custom-Properties, die foot-menu.php inline setzt:
   --banner-width-desktop, --banner-height-desktop, --banner-width-mobile, --banner-height-mobile
*/
.system-banner {
  margin-top: 14px;
  text-align: center;
}
.system-banner-footer {
  max-width: var(--banner-width-desktop, 1200px);
  margin-left: auto;
  margin-right: auto;
}
.system-banner-link {
  display: inline-block;
  line-height: 0;
  width: 100%;
}
.system-banner-picture,
.system-banner-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: var(--banner-height-desktop, 220px);
  object-fit: contain;
  border-radius: 6px;
}
/* HTML-Banner im sandbox-iframe */
.system-banner-iframe {
  display: block;
  width: 100%;
  height: var(--banner-height-desktop, 220px);
  border: 0;
  border-radius: 6px;
  background: transparent;
}
/* Responsive-Switching fuer HTML- und Mischformen-Banner.
   Bei reinen Bild-Bannern uebernimmt <picture> automatisch das Switching;
   bei iframes / gemischten Setups rendert foot-menu.php zwei Elemente
   mit diesen Klassen. */
.system-banner-desktop-only { display: block; }
.system-banner-mobile-only  { display: none; }
@media (max-width: 768px) {
  .system-banner-footer {
    max-width: var(--banner-width-mobile, 100%);
  }
  .system-banner-picture,
  .system-banner-img,
  .system-banner-iframe {
    height: var(--banner-height-mobile, 160px);
  }
  .system-banner-desktop-only { display: none; }
  .system-banner-mobile-only  { display: block; }
}

.foot-menu {
  background-color: var(--accent);
  padding: 15px;
  text-align: center;
}

.foot-menu nav {
  max-width: 100%;
}

.user-info {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--white);
}

/* Menü-Links */
.foot-menu nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* Automatisches Umbrechen der Links */
  justify-content: center; /* Zentriert die Links */
  gap: 10px 20px; /* Abstand zwischen den Links */
  margin: 0;
  padding: 0;
}

.foot-menu nav ul li {
  flex: 1 1 auto; /* Links teilen sich den verfügbaren Platz */
  max-width: calc(33% - 20px); /* Maximale Breite für jeden Link */
}

.foot-menu nav ul li a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease;
  display: inline-block;
  text-align: center;
}

.foot-menu nav ul li a:hover {
  color: var(--primcol);
}

/* Theme Toggle Button */
#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px 12px;
  transition: transform 0.3s ease;
  line-height: 1;
}

#theme-toggle:hover {
  transform: scale(1.2);
}

#theme-toggle:focus {
  outline: none;
}

/* Responsives Design */
@media (max-width: 768px) {
  .foot-menu nav ul li {
    max-width: calc(50% - 10px); /* Zwei Links pro Zeile auf kleineren Bildschirmen */
  }
}

@media (max-width: 480px) {
  .foot-menu nav ul li {
    max-width: 100%; /* Ein Link pro Zeile auf sehr kleinen Bildschirmen */
  }
}

/*********************************************************************************************
/* Allgemein Table Style
*********************************************************************************************/
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden; /* Damit die abgerundeten Ecken auch für den Inhalt wirken */
}
/*alle möglichen table im verwaltungsbereich werden zarter dargestellt*/

teilnehmer-container table  {
  font-size: 0.8rem;
}

th {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 3px;
  font-size: 0.8em;
}


th a{
  color: inherit;
  text-decoration: none;
}
td {
  padding: 3px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.8);
  font-size: 0.8em;
}
td.cent{
  text-align: center;
}

tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.12);
}


tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.22);
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.7);

}

/*Login
/*********************************************************************************************
/* allgemeines form  Styling 
*********************************************************************************************/
input, textarea, select  {
  
  padding: 2px;
  margin: 1px 0;
  border: 1px solid var(--bgcolmid);
  border-radius: 4px;
  font-size: 0.85rem;
  
}

p.formularinfo {
  width:100%;
}
 
/*********************************************************************************************
/* Popup Styling
*********************************************************************************************/

#popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: var(--bgcol);
  padding: 17px 17px;
  border-radius: 10px;
  border: 5px solid var(--accent);
  /* width: 400px; */
  min-width: 400px;
  max-width: 95%;
  max-height: 90vh; /* Maximale Höhe 90% der Viewport-Höhe */
  color: var(--textcol);
  overflow-y: auto; /* Scrollbar bei Bedarf */
  overflow-x: hidden; /* Kein horizontales Scrollen */
  /* Scrollbar-Styling für bessere Sichtbarkeit */
  scrollbar-width: thin;
  scrollbar-color: var(--primcol) var(--bgcolmid);
}

/* Webkit-basierte Browser Scrollbar */
#popup::-webkit-scrollbar {
  width: 8px;
}

#popup::-webkit-scrollbar-track {
  background: var(--bgcolmid);
  border-radius: 4px;
}

#popup::-webkit-scrollbar-thumb {
  background: var(--primcol);
  border-radius: 4px;
}

#popup::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

#popup h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--textcol);
}

#popup label {
  font-size: 0.8rem;
  color: var(--textcol);
}

#popup input:not([type="radio"]):not([type="checkbox"]), #popup textarea  {
  width: calc(100% - 20px);
}

#popup .popupnav{
  width: 100%;
  display: flex;
  justify-content: space-between; /* Elemente gleichmäßig verteilen */
  align-items: center; /
}

#popup .popupnav button{
  height: 2em;
  
}


input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid var(--primcol);
  width: 13px!important;
  height: 13px!important;
  border-radius: 4px;
  position: relative;
cursor: pointer;
}

input[type="checkbox"]:checked::after {
  content: "✔";
  color: #33d733;
  font-size: 19px;
  font-weight: bold;
  position: absolute;
  top: -14px;
  left: -2px;
}

/*********************************************************************************************
/*  Popup-Meldung Styling 
*********************************************************************************************/

#popupmeldung {
  display: none;
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 1002;
  background: var(--bgcol);
  padding: 17px 30px;
  border-radius: 10px;
  border: 5px solid var(--seccol);
  box-shadow: 0 0 20px 10px #cfcfcf63;
  width: 400px;
  min-width: 400px;
  max-width: 95%;
  color: var(--textcol);
  transition: opacity 0.3s ease;
}

#popupmeldung h1 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primcol);
  margin:0;
  text-align: center;
  width: 100%;
  
}

#popupmeldung label {
  font-size: 1rem;
  color: var(--textcol);
}

#popupmeldung input, #popupmeldung textarea  {
  width: calc(100% - 20px);
  
  
}

/* Neue Styles für das Meldung-System - Hinzufügen am Ende der styles.css */

/* Meldung-Styling */
#popupmeldung  .meldung-content {
  /*padding: 15px;#wird nicht benötigt. 
  border-radius: 8px;
  margin-bottom: 10px;*/
}

/* Icon in der Überschrift */
#popupmeldung  .meldung-icon {
  margin-right: 10px;
  font-size: 1.2em;
}


/* Header mit Icon und Überschrift */
#popupmeldung .meldung-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#popupmeldung .meldung-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* Meldungstext */
#popupmeldung .meldung-text {
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Button-Container */
#popupmeldung .meldung-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* Meldungs-Buttons */
#popupmeldung .meldung-button {
  background-color: var(--primcol);
  color: var(--bgcolmid);
  border: none;
  padding: 7px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#popupmeldung .meldung-button:hover {
  background-color: var(--accent);
}

#popupmeldung .meldung-cancel-button {
  background-color: var(--bgcolmid);
  color: var(--white);
}

#popupmeldung .meldung-cancel-button:hover {
  background-color: var(--bgcoldark);
}

/* Farben für verschiedene Meldungstypen */
#popupmeldung .meldung-info {
  /*background-color: rgba(0, 0, 0, 0.5);
  border-left: 5px solid var(--accent);*/
}
/*
#popupmeldung .meldung-fehler {
  background-color: rgba(0, 0, 0, 0.5);
  border-left: 5px solid var(--thirdcol);
}*/

/*#popupmeldung .meldung-bestaetigung {
  background-color: rgba(0, 0, 0, 0.5);
  border-left: 5px solid var(--seccol);
}*/



/*********************************************************************************************
Form filter
*********************************************************************************************/

form.formfilter{
  background-color: var(--bgcol);
  background-image: url(/images/hintergrund_pattern2_007.png);
  animation: infiniteMove linear infinite 1600000ms;
  opacity: 0.95;
  padding: 5px;
  margin: 5px;
  /* margin: 0px auto 0; */
  max-width: 100%;
  box-shadow: inset 0 0 10px 3px var(--whitetrans);
  border-radius: 8px;
}
form.formfilter label,form.formfilter select, form.formfilter input, form.formfilter button{
  margin: 0 5px ;
}

/*********************************************************************************************
Popup styling allgemein
*********************************************************************************************/
/*formular divs um die einzelne formulare abzuheben*/
#popup div.form{
  background-color: var(--bgcol);
  background-image: url(/images/hintergrund_pattern2_007.png);
  animation: infiniteMove linear infinite 1600000ms;
  opacity: 0.95;
  padding: 5px;
  margin: 5px;
  /* margin: 0px auto 0; */
  max-width: 100%;
  box-shadow: inset 0 0 10px 3px var(--whitetrans);
  border-radius: 8px;
}



#popup .close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--textcol);
  opacity: 0.7;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1001; /* Sicherstellen, dass Close-Button über Scrollinhalt liegt */
}

#popup .close:hover {
  color: var(--accent);
  opacity: 1;
}

/* Modal-Header für standardisierte Popups */
#popup .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background-color: var(--bgcolmid);
  border-bottom: 1px solid var(--whitetrans);
  margin: -17px -17px 0 -17px;
  border-radius: 6px 6px 0 0;
  position: sticky;
  top: -17px;
  z-index: 10;
}

/* Drag-Handle: Cursor ändert sich auf dem Header (nur Desktop) */
@media (pointer: fine) {
  #popup .modal-header.popup-drag-handle {
    cursor: grab;
    user-select: none;
  }
  #popup .modal-header.popup-drag-handle:active {
    cursor: grabbing;
  }
}

/* Popup im Drag-Zustand: kein Transition, bessere Performance */
#popup.popup-dragged {
  transition: none;
}

#popup .modal-header h3 {
  margin: 0;
  color: var(--textcol);
  font-size: 1.2rem;
}

#popup .modal-body {
  padding: 5px 0px;
}

#popup .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 10px 5px 10px;
  margin: 15px -17px -17px -17px;
  background-color: var(--bgcolmid);
  border-top: 1px solid var(--whitetrans);
  border-radius: 0 0 6px 6px;
}

#popup .cancel-popup-btn {
  background-color: var(--bgcoldark, #333);
  color: var(--textcol, #fff);
  padding: 8px 16px;
  border: 1px solid var(--whitetrans);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#popup .cancel-popup-btn:hover {
  background-color: var(--bgcolmid, #444);
  border-color: var(--accent);
}

#popup .save-bewerb-btn,
#popup .save-btn {
  background-color: var(--primcol, #7a56c4);
  color: var(--bgcoldark, #1a1a2e);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

#popup .save-bewerb-btn:hover,
#popup .save-btn:hover {
  background-color: var(--accent, #5fc6bf);
  transform: translateY(-1px);
}

/* Responsive Anpassungen für Popup */
@media (max-width: 768px) {
  #popup {
    width: 90%;
    min-width: 90%;
    max-height: 85vh; /* Etwas weniger Höhe auf mobilen Geräten */
    padding: 15px 20px;
    top: 50%;
  }
}

@media (max-width: 480px) {
  #popup {
    width: 95%;
    min-width: 95%;
    max-height: 80vh; /* Noch weniger Höhe auf sehr kleinen Bildschirmen */
    padding: 10px 15px;
  }
}

#messageBox{

  display:none; background-color: #d4edda; color: #155724; padding: 10px; margin-bottom: 10px;
}


/*Standartwerte für Buttons Inputs usw */
button {
  background-color: var(--primcol);
  color: var(--bgcolmid);
  border: none;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button.active{
  background-color: var(--accent) ;
}

button:hover {
  background-color: var(--accent);
}

/* Styling für einen deaktivierten Button */
button:disabled {
  background-color: #ccc; /* Grauer Hintergrund */
  color: #666;           /* Graue Schrift */
  cursor: not-allowed;   /* Mauszeiger zeigt "nicht erlaubt" */
  opacity: 0.7;          /* Leicht transparent */
}

buttonwirdglaubeichnichtgebarucht[type="button"] {
  
  color: var(--bgcoldark);
  margin-left: 10px;
}

button[type="button"]:hover {
 
  color: var(--bgcol);
}

div.button-toggle{
  display: flex;
      flex-wrap: nowrap;
      align-content: center;
      justify-content: center;
      flex-direction: row;
      gap: 5px;
      padding: 5px;
}

.btn-group-border {
  display: inline-flex;
  gap: 2px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 2px;
}

@media (max-width: 768px) {
  div.button-toggle button {
    padding: 3px;
    font-size: 0.8rem;
  }
}

/**********************************************************************************************************************
Verwaltung Tabellen div flexbox vorläufig für bewerbe
***********************************************************************************************************************/

.turnierinfo{
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  height: 2em;
  overflow: hidden;
  transition: height 1.3s ease, background-color 0.5s ease; /* Übergangseffekte */
}
.turnierinfo:hover{
 
  background-color: rgba(255, 255, 255, 0.2);
}

/*Turnierinfofeld für wird in Abrechung verwendet*/
.turnierinfo h2{
  margin:0;
  font-size: 1rem;
}
.turnierinfo p{
  margin:0;
  font-size: 0.8rem;
}

/* Gesamtübersicht */
.verwaltungbewerbsuebersicht {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Abstand zwischen den Bewerben */
}

/* Einzelner Bewerb */
.verwaltungbewerb {
  border: 1px solid rgba(0, 0, 0, 1.8);
  border-radius: 3px;
  padding: 2px;
  margin-bottom: 1px;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  cursor: pointer; /* Doppelklick öffnet Start-/Ergebnisliste */
}

/* Hover-Effekt */
.verwaltungbewerb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Zeilen im Bewerb */
.verwaltungbewerb-zeile {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Abstand zwischen den Spalten */
  margin-bottom: 5px;
}

/* Einträge in einer Zeile */
.verwaltungbewerb-zeile span {
  flex: 1;
  white-space: nowrap;
  font-size:  clamp(0.5rem, 1.5vw, 0.9rem); /* automatisch Schriftgröße anpassen */


}

/* Spezifische Klassen */
.verwaltungbewerb-zeile .nummer {
  font-weight: bold;
  width: 30px;
  flex:none;
}

.verwaltungbewerb-zeile .name {
  font-weight: bold;
 
}

.verwaltungbewerb-zeile .klasse {
  text-align: center;
  color: #666;
}

.verwaltungbewerb-zeile .zeit {
  color: var(--seccol);
  font-size: 0.7rem;
}

.verwaltungbewerb-zeile .freigabeja {
  color: #28a745;
  cursor: pointer;
}
.verwaltungbewerb-zeile .freigabenein {
  color: #dc3545;
  cursor: pointer;
}


.verwaltungbewerb-zeile .ergebnisse a {
  text-decoration: none;
  color: #dc3545;
}
.verwaltungbewerb-zeile .abteilungen {
  display: flex;
  border: 1px rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  font-size: 0.7rem;
  width:100%;
  white-space: nowrap;
  align-items: center; /* NEU: vertikal ausrichten innerhalb der Abteilungen */
  gap: 1px; /* optional für Abstand zwischen Elementen */
}
.verwaltungbewerb-zeile .abteilungen span{
  
  font-size: 0.6rem;
    text-align: right;
    display: inline-block; /* inline-block beibehalten */
    vertical-align: middle;
 
}
.verwaltungbewerb-zeile .abteilungeinzeln {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  padding: 3px 4px;
  margin: 0 1px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--textcol);
}
.verwaltungbewerb-zeile .abteilungeinzeln span {
  font-size: 0.8em;
}


.verwaltungbewerb-zeile .ergebnisse a:hover {
  text-decoration: underline;
}

/* Aktionen */
.verwaltungbewerb-zeile .aktionen {
  flex: none; /* Keine automatische Anpassung */
  display: flex;
  gap: 5px;
}

.verwaltungbewerb-zeile .aktionen a {
  text-decoration: none;
  color: var(--accent);
}

.verwaltungbewerb-zeile .aktionen a:hover {
  color: var(--primcol);
}



/*********************************************************************************************************
 Übersicht für Smartphones (Turniere und Bewerbe)
 *********************************************************************************************************/
 .turnier-uebersicht, .bewerbs-uebersicht {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Abstand zwischen den Elementen */
}


/* Einzelnes Item (Turnier oder Bewerb) */
.turnier-item, .bewerb-item {
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

/* Hover-Effekt */
.turnier-item:hover, .bewerb-item:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Zeilen im Item */
.turnier-item-zeile, .bewerb-item-zeile {
  display: flex;
  flex-direction: row; /* Horizontale Ausrichtung */
  justify-content: space-between;
}

/* Einträge in einer Zeile */
.turnier-item-zeile span, .bewerb-item-zeile span {
  font-size: 14px;
  word-wrap: break-word;
}

/* Spezifische Klassen für Namen, Dauer, Typ */
.turnier-item .name, .bewerb-item .name {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent);
}

.turnier-item .dauer, .bewerb-item .dauer {
  color: var(--seccol);
  font-style: italic;
}

.turnier-item .typ, .bewerb-item .typ {
  color: var(--accent);
  font-weight: bold;
}

/* Portal Startlisten/Ergebnislisten: Sub-Info (Aufgabe + Location) */
.portal-sub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--textcol, #ccc);
  opacity: 0.7;
  padding: 2px 0 8px;
}
/* Portal Bewerbinfo (öffentlicher Infotext pro Bewerb) */
.portal-bewerbinfo {
  font-size: 0.85rem;
  color: var(--textcol);
  padding: 6px 10px;
  margin: 4px 0 8px;
  border-left: 3px solid var(--accent);
  background: var(--whitetrans);
  white-space: pre-line;
}
.portal-sub-location {
  font-style: italic;
}

/* Portal Tabellen (modernisiert) */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.portal-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
.portal-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.portal-table tr:hover {
  background: rgba(255,255,255,0.05);
}
.portal-table tr:nth-child(even) {
  background: rgba(0,0,0,0.1);
}

/* Teilnoten-Spalten (Richter C/E/M/B/H + Gesamt) */
.portal-table th.col-note,
.portal-table td.col-note {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.portal-table td.col-note {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}
.portal-table td.col-note .note-prozent {
  font-weight: 600;
}
.portal-table td.col-note .note-punkte {
  color: var(--seccol);
  font-size: 0.75rem;
  opacity: 0.7;
}
/* Gesamt-Spalte hervorgehoben */
.portal-table th.col-gesamt,
.portal-table td.col-gesamt {
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Platz-Spalte */
.portal-table td.col-platz {
  text-align: center;
  font-weight: 600;
}
/* Scroll-Container für breite Tabellen (z.B. Stechen) */
.portal-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Spalten auf Mobile ausblenden */
@media (max-width: 600px) {
  .portal-table .hide-mobile {
    display: none;
  }
  .portal-table {
    font-size: 0.8rem;
  }
  .portal-table th,
  .portal-table td {
    padding: 4px 6px;
  }
}

/* ============================================================
   Nations Cup (NC) Ergebnisliste — Team-Block-Layout
   ============================================================ */
.portal-table-nc tbody.nc-team-block {
  background: var(--bgcoldark, rgba(0,0,0,0.15));
}
.portal-table-nc tbody.nc-team-block-alt {
  background: var(--bgcolmid, rgba(0,0,0,0.05));
}
.portal-table-nc tbody.nc-team-block + tbody.nc-team-block {
  border-top: 3px solid var(--whitetrans, rgba(255,255,255,0.1));
}
.portal-table-nc tr.nc-team-header {
  background: var(--blacktrans, rgba(0,0,0,0.25));
}
.portal-table-nc tr.nc-team-header td {
  padding: 8px 10px;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.15));
}
.portal-table-nc td.nc-team-rang {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primcol);
}
.portal-table-nc td.nc-team-flag img {
  width: 28px;
  height: auto;
  vertical-align: middle;
}
.portal-table-nc td.nc-team-name strong {
  font-size: 1.2rem;
}
.portal-table-nc .nc-team-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bgcolmid);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.portal-table-nc .nc-team-chef {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 1px;
}
.portal-table-nc .nc-team-chef-label {
  font-weight: 600;
}
.portal-table-nc td.nc-team-u1,
.portal-table-nc td.nc-team-u2,
.portal-table-nc td.nc-team-st,
.portal-table-nc td.nc-team-gesamt {
  font-weight: 700;
}
.portal-table-nc td.nc-team-st {
  color: var(--primcol);
}
.portal-table-nc td.nc-team-st .nc-team-st-zeit {
  font-weight: normal;
  opacity: 0.7;
  font-size: 0.85em;
}
/* Reiter-Score pro Umlauf: oben Gesamt (F+ZF), darunter dezent die Aufschluesselung. */
.portal-table-nc td.col-gesamt .nc-score-val {
  display: block;
  line-height: 1.1;
}
.portal-table-nc td.col-gesamt .nc-score-detail {
  display: block;
  font-size: 0.72em;
  opacity: 0.6;
  line-height: 1.1;
  font-weight: normal;
}
.portal-table-nc td.nc-team-gesamt {
  font-size: 1.25rem;
  color: var(--primcol);
}
.portal-table-nc tr.nc-rider-row td {
  padding: 4px 10px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.04));
}
/* Reiter-Zellen (Fehler/Zeit/Total) ohne Bold — Team-Header bleibt bold */
.portal-table-nc tr.nc-rider-row td.col-gesamt,
.portal-table-nc tr.nc-rider-row td.col-note {
  font-weight: normal;
}
.portal-table-nc td.nc-einzel-rang {
  color: var(--seccol);
  font-style: italic;
  text-align: end;
}
.portal-table-nc td.nc-rider-cell strong {
  font-weight: 600;
}
.portal-table-nc td.nc-rider-cell .zusatzinfo {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 1px;
}
.portal-table-nc td.nc-einzel-gesamt {
  font-weight: normal;
}
/* Streichergebnis — dezent ausgegraut + durchgestrichen */
.portal-table-nc td.nc-cell-streich {
  opacity: 0.45;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
/* Negativ-Status (EL, AUF, …) */
.portal-table-nc td.nc-cell-negativ {
  text-align: center;
  font-style: italic;
  opacity: 0.7;
}
/* Einzelreiter-Block (außer Wertung) */
.portal-table-nc tbody.nc-einzel-block {
  background: transparent;
}
.portal-table-nc tr.nc-einzel-separator td {
  padding: 12px 10px 4px;
  font-size: 0.85rem;
  color: var(--seccol);
  font-style: italic;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.1));
  background: transparent;
}
/* Zweizeiliger thead: "Umlauf 1" / "Umlauf 2" als Gruppen-Header über Fehler+Zeit */
.portal-table-nc thead th.nc-umlauf-group {
  text-align: center;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.15));
  font-weight: 600;
}

/* NC-Startliste: Team-Spalte (voller Team-Name nach Reiter) */
.portal-table td.nc-team-cell {
  font-weight: 500;
  white-space: nowrap;
}
.portal-card-team {
  font-size: 0.82rem;
  opacity: 0.85;
  margin: 2px 0;
  font-weight: 500;
}

/* ============================================================
   Nations Cup (NC) Mobile-Ergebnisliste — Team-Block in Card-Form
   ============================================================ */
.portal-nc-card-team {
  background: var(--bgcoldark, rgba(0,0,0,0.15));
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 8px;
}
.portal-nc-card-team-alt {
  background: var(--bgcolmid, rgba(0,0,0,0.05));
}
.portal-nc-card-team-header {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.15));
}
.portal-nc-card-team-rang {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primcol);
  min-width: 1.6em;
  text-align: center;
}
.portal-nc-card-team-flag img {
  width: 28px;
  height: auto;
  vertical-align: middle;
}
.portal-nc-card-team-info {
  min-width: 0;
}
.portal-nc-card-team-name strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.portal-nc-card-team-chef {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 1px;
}
.portal-nc-card-team-chef-label {
  font-weight: 600;
}
.portal-nc-card-team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  font-size: 0.78rem;
}
.nc-card-team-stat {
  white-space: nowrap;
}
.nc-card-team-stat-lbl {
  opacity: 0.65;
  margin-right: 2px;
}
.nc-card-team-stat-st {
  color: var(--primcol);
}
.nc-card-team-st-zeit {
  opacity: 0.7;
  font-weight: normal;
}
.portal-nc-card-team-totals {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.portal-nc-card-team-gesamt {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primcol);
  line-height: 1;
}
.portal-nc-card-team-pg {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}
/* Reiter-Cards innerhalb des Team-Blocks */
.portal-nc-card-rider {
  padding: 6px 4px;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.05));
  font-size: 0.85rem;
}
.portal-nc-card-rider:last-child {
  border-bottom: 0;
}
.portal-nc-card-rider-reserve {
  opacity: 0.75;
}
.portal-nc-card-rider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.portal-nc-card-rider-name strong {
  font-weight: 600;
}
.nc-card-rider-rang {
  opacity: 0.65;
  font-style: italic;
  font-size: 0.85em;
  margin-left: 4px;
}
.nc-card-reserve-badge {
  display: inline-block;
  background: var(--whitetrans, rgba(255,255,255,0.15));
  color: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}
.nc-card-rider-pg {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.portal-nc-card-rider-pferd {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 1px;
}
.portal-nc-card-rider-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.nc-card-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--whitetrans, rgba(255,255,255,0.06));
  font-size: 0.8rem;
  white-space: nowrap;
}
.nc-card-pill-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.65;
  text-transform: uppercase;
}
.nc-card-pill-val {
  font-weight: 700;
}
.nc-card-pill-detail {
  font-size: 0.72em;
  opacity: 0.6;
  font-weight: normal;
}
.nc-card-pill-zeit {
  opacity: 0.75;
  font-weight: normal;
}
.nc-card-pill-streich {
  opacity: 0.45;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.nc-card-pill-negativ {
  font-style: italic;
  opacity: 0.7;
}
.nc-card-pill-leer {
  opacity: 0.4;
}
/* Einzelreiter-Block (außer Wertung) */
.portal-nc-card-einzel-separator {
  padding: 12px 4px 4px;
  font-size: 0.85rem;
  color: var(--seccol);
  font-style: italic;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.1));
  margin-bottom: 6px;
}
.portal-nc-card-einzel-block .portal-nc-card-rider {
  padding-left: 8px;
}

/* NC-Startliste: Heading + Toggle (Umlauf 1 / Umlauf 2) nebeneinander */
.nc-startlist-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.nc-startlist-header h3 {
  margin: 0;
}
.nc-round-toggle {
  display: inline-flex;
  border: 1px solid var(--whitetrans, rgba(255,255,255,0.2));
  border-radius: 4px;
  overflow: hidden;
}
.nc-round-toggle-btn {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}
.nc-round-toggle-btn + .nc-round-toggle-btn {
  border-left: 1px solid var(--whitetrans, rgba(255,255,255,0.2));
}
.nc-round-toggle-btn.active {
  background: var(--primcol);
  color: var(--bgcolmid);
}
.nc-round-toggle-btn:hover:not(.active) {
  background: var(--whitetrans, rgba(255,255,255,0.1));
}

/* Bewerbe-Extras (Aufgabe/Arena/PDFs unter der Card) */
.bewerb-extras {
  padding: 4px 10px 10px;
  font-size: 0.82rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bewerb-extras a {
  text-decoration: none;
  color: var(--accent);
}
.bewerb-extras a:hover {
  opacity: 0.8;
}

/* Bewerbe-Links (Skizze + PDFs) */
.bewerb-links {
  white-space: nowrap;
}
.bewerb-links a {
  text-decoration: none;
  margin-right: 6px;
  font-size: 0.85rem;
}
.bewerb-links a:hover {
  opacity: 0.7;
}
.bewerb-link-right {
  float: right;
}

/* Portal Cards (Mobile Startliste/Ergebnisliste) */
.portal-card {
  padding: 8px 10px;
  border-bottom: 1px solid var(--whitetrans, rgba(255,255,255,0.1));
  font-size: 0.9rem;
  line-height: 1.4;
 }



.portal-card:nth-child(even) {
  background: rgba(0, 0, 0, 0.15);
}
.portal-card-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.portal-card-nr {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--primcol);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}
.portal-card-noten {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--seccol);
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.portal-card-gesamt {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--textcol);
}
.portal-card-platziert {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
}
/* 2-Phasen Noteboxen untereinander ausgerichtet (Portal Card) */
.portal-card-phase-row {
  justify-content: flex-end;
}
.portal-card-phase-row > .note-box {
  flex: 1 1 0;
  min-width: 0;
}
/* P1-Box: normale Größe, aber accent-Farbe wie gesamt */
.note-box-phase1 .note-box-prz {
  color: var(--accent);
}

/* Richter-Noten Mini-Boxen (Card-Ansicht getrenntes Richten) */
.portal-card-noteboxes {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.note-box {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
}
.note-box-gesamt {
  flex: 0 0 auto;
}
.note-box-label {
  font-size: 0.65rem;
  opacity: 0.6;
  text-transform: uppercase;
}
.note-box-pkt {
  font-size: 0.7rem;
  color: var(--seccol);
  line-height: 1.2;
}
.note-box-prz {
  font-size: 0.7rem;
  color: var(--seccol);
  white-space: nowrap;
}
.note-box-gesamt {
  background: rgba(255,255,255,0.08);
}
.note-box-gesamt .note-box-pkt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.note-box-gesamt .note-box-prz {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

/* Siegerrunde (SR1/SR2) Card-Ansicht: drei Hierarchie-Stufen
   Umlauf -> Default; Sg.-Zeile kleiner; Ges.-Zeile groesser als Endresultat */
.portal-card-sr-row .note-box-gesamt .note-box-prz {
  font-size: 0.7rem;
}
.portal-card-ges-row .note-box-gesamt .note-box-prz {
  font-size: 1.4rem;
}

/* Siegerrunde-Indikator: Badge neben Rang/Stnr fuer Reiter in der Siegerrunde */
.portal-sr-badge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 4px;
  background: var(--accent);
  color: var(--bgcoldark);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.portal-table .zusatzinfo {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 1px;
}

/* International Startliste: FEI-Detailzeilen */
.portal-card-meta:has(.intl-horse-detail) {
  flex-direction: column;
  gap: 1px;
}
.intl-horse-detail {
  font-size: 0.78rem;
  opacity: 0.7;
  display: block;
  line-height: 1.3;
}
.intl-rider-detail {
  font-size: 0.82rem;
  opacity: 0.8;
}
.intl-cell-top {
  vertical-align: top;
}
.nation-flag {
  width: 42px;
  height: 28px;
  vertical-align: middle;
}
td:has(.nation-flag) {
  padding: 2px !important;
}
.herkunft-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 768px) {
  .herkunft-flag {
    flex-direction: row-reverse;
  }
}

.portal-card-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* Trenner zwischen bewerteten und nicht bewerteten Teilnehmern */
.portal-ergebnis-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin: 4px 0;
  opacity: 1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.portal-ergebnis-separator::before,
.portal-ergebnis-separator::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.portal-card-unbewertet {
  font-style: italic;
  border-left:3px solid var(--thirdcol);
}

/* Zuletzt bewerteter Starter: Highlight */
/* Arena-Farben (Dark-Modus Standard) */
.arena-color-0 { color: #7ec8d9; font-weight: 600; }
.arena-color-1 { color: #d9b87e; font-weight: 600; }
.arena-color-2 { color: #8bd9aa; font-weight: 600; }
.arena-color-3 { color: #d99aae; font-weight: 600; }
.arena-color-4 { color: #b9b0e1; font-weight: 600; }
.arena-color-5 { color: #90d9c8; font-weight: 600; }

/* Arena-Farben (Light-Modus) */
[data-theme="light"] .arena-color-0 { color: #1a7a8f; }
[data-theme="light"] .arena-color-1 { color: #8a6520; }
[data-theme="light"] .arena-color-2 { color: #1a7a42; }
[data-theme="light"] .arena-color-3 { color: #8a2a4a; }
[data-theme="light"] .arena-color-4 { color: #5040a0; }
[data-theme="light"] .arena-color-5 { color: #1a7a6a; }

/* Bewerb-Status Labels (läuft / nächster) */
.bewerb-status-live {
  display: inline-block;
  background: var(--primcol);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  animation: statusPulse 2s infinite;
}
.bewerb-status-next {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Round-1/Round-2-Label in der Bewerbsuebersicht (bei getrennten Umlaeufen am gleichen Tag) */
.bewerb-round-label {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 2px;
  vertical-align: baseline;
  white-space: nowrap;
}
.bewerb-row-round2 td {
  background-color: var(--whitetrans);
}
.portal-card-round2 {
  background-color: var(--whitetrans);
}

/* Zuletzt bewerteter Starter: dauerhafter Rand + Hintergrund */
.last-result-highlight {
  border-left: 3px solid var(--primcol) !important;
  background-color: rgba(255, 90, 174, 0.15) !important;
}
tr.last-result-highlight td {
  border-left-color: var(--primcol);
}
/* Flash-Animation: kurzes Aufleuchten via box-shadow (umgeht !important auf background) */
.last-result-flash {
  animation: resultFlash 4s ease-out;
}
@keyframes resultFlash {
  0% { box-shadow: inset 0 0 0 200px rgba(255, 90, 174, 0.45); }
  50% { box-shadow: inset 0 0 0 200px rgba(255, 90, 174, 0.2); }
  100% { box-shadow: none; }
}

/* Pausen/Bodenpflege in Portal-Startlisten */
.portal-pause-row td,
.portal-pause-row {
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
  padding: 8px;
}
.portal-pause-row.pause td,
div.portal-pause-row.pause {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}
.portal-pause-row.bodenpflege td,
div.portal-pause-row.bodenpflege {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}

/* Richter-/Parcoursbauer-Anzeige im Portal */
.richter-line {
  padding: 0;
  color: var(--textcol);
  font-size: 0.75em;
  margin-bottom: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
  .turnier-item-zeile, .bewerb-item-zeile {
    flex-direction: row; /* Horizontale Ausrichtung */
    justify-content: space-between;
  }

  .turnier-item-zeile span, .bewerb-item-zeile span {
    flex: 1;
  }
}

/* Links für Items */
a.turnier-item, a.bewerb-item {
  text-decoration: none;
  color: inherit;
}

/* Nicht freigegebene Bewerbe - deaktiviertes Styling */
.bewerb-nicht-freigegeben {
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
  position: relative;
}

.bewerb-nicht-freigegeben::after {
  content: "🔒 Noch nicht freigegeben";
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Hover-Effekt für nicht freigegebene Bewerbe deaktivieren */
.bewerb-nicht-freigegeben:hover {
  background-color: rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
}

/* Tabellen-Zeilen für nicht freigegebene Bewerbe */
tr.bewerb-nicht-freigegeben {
  background-color: rgba(0, 0, 0, 0.1) !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

tr.bewerb-nicht-freigegeben:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
  cursor: not-allowed !important;
}

tr.bewerb-nicht-freigegeben td {
  color: #999 !important;
}

/* Nicht-freigegebene Bewerbe im portal-card Stil */
.portal-card.bewerb-nicht-freigegeben {
  opacity: 0.5;
  cursor: not-allowed;
  border: none;
  border-radius: 0;
  padding: 8px 10px;
  background-color: transparent;
  position: relative;
}
.portal-card.bewerb-nicht-freigegeben::after {
  content: "🔒";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  z-index: 2;
}
.portal-card.bewerb-nicht-freigegeben:hover {
  background: transparent;
}

.bewerbs-uebersicht h3{
  margin-top: 10px;
  margin-bottom: 0;
}

/* Live-Dashboard Location-Filter */
.live-location-filter {
  text-align: center;
  padding: 10px;
  background-color: var(--bgcolmid);
  border-bottom: 1px solid var(--blacktrans);
}
.live-location-filter label {
  margin-right: 10px;
  font-weight: bold;
}
.live-location-filter select {
  padding: 5px;
}

/* Live-Dashboard Cards */
.live-dashboard-empty {
  text-align: center;
  padding: 40px 20px;
}
/* Fullscreen-Modus (öffentliche Bildschirme) */
.main-content.fullscreen {
  margin: 0;
  padding: 0;
  max-width: 100%;
}
.main-content.fullscreen .section-content {
  padding: 0;
}

.live-dashboard-columns {
  display: flex;
  gap: 12px;
}
@media (max-width: 900px) {
  .live-dashboard-columns {
    flex-direction: column;
  }
}
.live-dashboard-bewerb {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--whitetrans);
  border-radius: 4px;
  overflow: hidden;
}
.live-dashboard-bewerb-header {
  padding: 10px 12px;
  border-bottom: 2px solid var(--accent);
}
.live-dashboard-bewerb-header.laeuft {
  border-bottom-color: var(--primcol);
}
.live-dashboard-bewerb-header.beendet {
  opacity: 0.7;
}
.live-dashboard-liste {
  padding: 0;
}

/* Live-Cards */
.live-card {
  padding: 6px 10px;
  border-bottom: 1px solid var(--whitetrans);
  font-size: 0.88rem;
  line-height: 1.35;
}
.live-card:nth-child(even) {
  background: rgba(0, 0, 0, 0.08);
}
.live-card-top1 { border-left: 3px solid gold; }
.live-card-top2 { border-left: 3px solid silver; }
.live-card-top3 { border-left: 3px solid #cd7f32; }
.live-card-pause {
  text-align: center;
  padding: 4px;
  opacity: 0.6;
  font-style: italic;
}
/* Zeile 1: Rang, Zeit, KopfNr, Pferd, Reiter */
.live-card-line1 {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.live-card-rang {
  min-width: 22px;
  font-weight: bold;
  text-align: right;
  flex-shrink: 0;
}
.live-card-zeit {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.85em;
}
.live-card-kopfnr {
  opacity: 0.6;
  flex-shrink: 0;
  font-size: 0.85em;
}
.live-card-pferd {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card-reiter {
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  text-align: right;
}
/* Zeile 2: Teilnoten + Ergebnis */
.live-card-line2 {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  padding-left: 28px;
}
.live-card-teilnoten {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.live-card-teil {
  font-size: 0.8em;
  opacity: 0.75;
}
.live-card-ergebnis {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}
.live-card-neg {
  color: var(--primcol);
  font-weight: normal;
  font-style: italic;
}
.live-card-platz {
  font-size: 0.85em;
  margin-left: 4px;
}
/* Zeile 3: Pferd-Infos + Reiter-Infos (wrapping) */
.live-card-line3 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.78em;
  opacity: 0.55;
  padding-left: 28px;
  margin-top: 1px;
}
.live-card-info-pferd,
.live-card-info-reiter {
  white-space: nowrap;
}
.live-card-aufgabe {
  padding: 4px 10px;
  font-size: 0.82em;
  opacity: 0.7;
  font-style: italic;
}
.live-card-richter {
  padding: 4px 10px;
  font-size: 0.8em;
  opacity: 0.6;
  border-bottom: 1px solid var(--whitetrans);
}
.live-card-abteilung {
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.85em;
  background: var(--bgcoldark);
  border-bottom: 1px solid var(--whitetrans);
}
.live-dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.live-dashboard-card-nr {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  font-weight: bold;
  background: var(--bgcoldark);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}
.live-dashboard-card-name {
  font-weight: 600;
}
.live-dashboard-card-klasse {
  opacity: 0.7;
  font-size: 0.9em;
}
.live-dashboard-card-location {
  margin-left: auto;
  font-size: 1.2em;
  font-weight: bold;
}
.live-dashboard-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}
.live-dashboard-progress-bar {
  height: 4px;
  background: var(--bgcoldark);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.live-dashboard-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.live-dashboard-progress-fill.complete {
  background: var(--primcol);
}
.live-dashboard-es-folgt {
  padding: 10px 12px;
  background: var(--bgcoldark);
  border-top: 1px solid var(--whitetrans);
  font-size: 0.95rem;
  color: var(--accent);
}
.live-dashboard-es-folgt-zeit {
  opacity: 0.7;
  margin-left: 6px;
}

/* Auto-Switch Toggle */
.auto-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
}
.auto-switch-toggle input {
  display: none;
}
.auto-switch-slider {
  width: 34px;
  height: 18px;
  background: var(--bgcoldark);
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
}
.auto-switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--textcol);
  border-radius: 50%;
  transition: transform 0.2s;
}
.auto-switch-toggle input:checked + .auto-switch-slider {
  background: var(--accent);
}
.auto-switch-toggle input:checked + .auto-switch-slider::after {
  transform: translateX(16px);
}
.auto-switch-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.portal-verwaltung-link {
  margin-left: 15px;
  font-size: 0.8rem;
  color: var(--textcol);
  opacity: 0.7;
  text-decoration: none;
  border: 1px solid var(--whitetrans);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .portal-verwaltung-link {
    display: none;
  }
}

.portal-verwaltung-link:hover {
  opacity: 1;
  color: var(--primcol);
  border-color: var(--primcol);
}








/* Style für die Pferde-Ergebnisliste mit Scrollbalken */
#results div.liste {
  max-height: 420px; /* Maximale Höhe der Liste */
  overflow-y: auto; /* Vertikaler Scrollbalken erscheint bei Bedarf */
 
}

/* Style für Scrollbalken (optional, für besseres Aussehen) */
#results div.liste::-webkit-scrollbar {
  width: 8px;
}


#results div.liste::-webkit-scrollbar-thumb {
  background-color: var(--accent, #5FC6BF);
  border-radius: 4px;
}


/* Buttons und Icons innerhalb der Liste besser positionieren */
#results div.liste button {
  margin-top: 10px;
}

/* Info-Text unter der Liste besser hervorheben */
#results div.liste i {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}


























/*********************************************************************************************************
Verwalungsform1 ist für Breite Popupformulare
 *********************************************************************************************************/

 .verwaltungsform1 {
  display: grid;
  grid-template-columns: 150px 1fr; /* Erste Spalte für Label, zweite für Input */
  gap: 10px 20px; /* Abstand zwischen Spalten und Zeilen */
  align-items: center; /* Vertikale Zentrierung von Label und Input */
  margin: 0 auto; /* Zentrierung des Formulars */
}

.verwaltungsform1 label {
  text-align: right; /* Labels rechtsbündig ausrichten */
}

.verwaltungsform1 input:not([type="checkbox"]),
.verwaltungsform1 select,
.verwaltungsform1 button {
  width: 100%!important;  /* Inputs und Selects füllen die zweite Spalte aus */
  box-sizing: border-box; /* Padding und Border in die Breite einrechnen */
}

/* Sparte-Felder Container (Dauer/Umlaufzeit) - Grid-transparent */
.verwaltungsform1 .sparte-feld {
  display: contents; /* Container wird für Grid unsichtbar, Kinder nehmen direkt am Grid teil */
}

.verwaltungsform1 .sparte-feld.hidden {
  display: none;
}

.verwaltungsform1 div.buttons {
  grid-column: span 2; /* Der Button nimmt die gesamte Zeilenbreite ein */
  justify-self: end; /* Button linksbündig ausrichten */
  padding: 10px 20px; /* Button-Padding */
}


.verwaltungsform1 div.buttons button{
  width: auto!important;
}


/*********************************************************************************************************
melden Container für die meldungen
 *********************************************************************************************************/

 .melden-container .form-section{
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  margin: 2px 0px;
  padding: 2px;
 }

 .melden-container h3{
    margin: 0.1rem 0;
    font-size:1rem;
 
  }

  .melden-container #results .form-section{
    width: 50%;
   }

   .melden-container #results {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.melden-container #results button {
  float: right;
  padding: 3px;
}
.melden-container #results button {
  float: right;
  padding: 3px;
}
.melden-container #results i {
  size: 0.6rem;
  color: var(--seccol);
}

.melden-container form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.melden-container form label {
  flex: 1;
  text-align: right;
  padding-right: 8px;
  font-weight:normal;
}

.melden-container form input {
  flex: 2;
  width: 100%;
  
  
}

.melden-container form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.2);
}
.melden-container #bewerbSelection {
  justify-content: left; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal */
    gap: 10px; /* Abstand zwischen den Elementen */
    padding: 0.3rem;
}


.melden-container #bewerbSelection button{
  margin: 3px;
}


.melden-container .liste div.item{
  font-size: 0.85rem;
    padding: 0.1rem;
    
}
.melden-container .liste div.item:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.melden-container .liste div.item:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.06); 
}
.melden-container table {
  border-radius: 0;
  font-size: 0.85rem;
    padding: 0.1rem;
  overflow: auto;
}
.melden-container td {
  padding: 3px;
  border:none;
}

.melden-container .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.melden-container a {
  color: var(--textcol);
  
}

.melden-container  div label {
  flex-grow: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.melden-container .text {
  margin-left: 10px;
}


.melden-container .info-cell {
  text-align: center;
  width: 40px;
  position: relative; /* Wichtig, damit die Info-Box sich relativ zu diesem Element positioniert */
}

.melden-container .info-box {
  position: absolute;
  top: 100%; /* Direkt unter dem "ℹ️" */
  right: 0%; /* Zentriert unter dem Icon */
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px;
  font-size: 12px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  white-space: nowrap;
  display: none;
  z-index: 1000;
  border-radius: 5px;
  min-width: 150px;
  text-align: left;
}
.melden-container .delete-icon{
  cursor: pointer;
}


/**************************************
 todo liste
***************************************/
    /* Basis CSS – nur für den Todo-Bereich */
    th.checkbox-col, td.checkbox-col {
      width: 30px;
      text-align: center;
  }
  .toggle-link {
      margin-top: 10px;
      display: inline-block;
  }
  /* Deine bestehenden Styles */
  .todoeintrag, .todostapel {
      margin: 20px 0;
      padding: 10px;
      background-color: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 5px;
  }
  .todoeintrag textarea {
      width: 100%;
      height: 40px;
      padding: 8px;
      border-radius: 4px;
      font-size: 14px;
      box-sizing: border-box;
  }
  .todoeintrag button, .todostapel button, .todostapel select {
      margin-top: 4px;
      padding: 5px;
      cursor: pointer;
  }
  .todotable {
      width: 100%;
      border-collapse: collapse;
  }
  .todotable th, .todotable td {
      
      padding: 8px;
      text-align: left;
  }
  .admin-comment-container {
      display: flex;
      align-items: center;
      gap: 5px;
  }
  .admin-comment-container textarea {
      flex: 1;
      resize: none;
      overflow: hidden;
  }

  .filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filter-form {
  /* Optional: Falls du noch weitere Anpassungen für das Formular möchtest */
}

.cancel-toggle {
  text-align: right;
  background-color: var(--primcol);
  text-decoration: none;
  padding: 6px;
  margin:5px;
  border-radius: 4px;
  font-weight: bold;
  vertical-align: middle;
  color: var(--white);
}
.cancel-toggle:hover {
  text-align: right;
  background-color: var(--primcol);
  text-decoration: none;
  padding: 6px;
  margin:5px;
  border-radius: 4px;
  font-weight: bold;
  vertical-align: middle;
}
.cancel-toggle a {
  
  text-decoration: none;
  color: var(--bgcoldark);
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}


/********************************************************************
/* Dropdown-Menü für Submenü
*********************************************************************/
/* Dropdown-Container */
nav.sub-menu li.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown-Toggle Link */
nav.sub-menu li.dropdown .dropdown-toggle {
  position: relative;
  padding-right: 20px; /* Platz für den Pfeil */
}

/* Pfeil-Symbol für Dropdown */
nav.sub-menu li.dropdown .dropdown-toggle::after {
  content: '▼';
  font-size: 0.7em;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

/* Dropdown-Menü (standardmäßig ausgeblendet) */
nav.sub-menu li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background-color: var(--accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 4px 4px;
  z-index: 1001;
  padding: 5px 0;
  margin: 0;
}

/* Dropdown-Menü anzeigen bei Hover */
nav.sub-menu li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown-Menü-Elemente */
nav.sub-menu li.dropdown .dropdown-menu li {
  display: block;
  width: 100%;
  padding: 0;
}

nav.sub-menu li.dropdown .dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  color: var(--bgcol);
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

nav.sub-menu li.dropdown .dropdown-menu li a:hover {
  background-color: var(--bgcolmid);
  color: var(--white);
}

/* Sekundäre Menüpunkte — dezenter, rechtsbündig */
nav.sub-menu ul:has(.submenu-secondary) {
  width: 100%;
}

nav.sub-menu li.submenu-gap {
  margin-left: auto;
}

nav.sub-menu li.submenu-secondary > a {
  font-size: 0.85em;
  opacity: 0.7;
}

nav.sub-menu li.submenu-secondary > a:hover {
  opacity: 1;
}

nav.sub-menu li.submenu-secondary .dropdown-menu {
  left: auto;
  right: 0;
}

/* Mobile Anpassungen für Dropdown */
@media (max-width: 768px) {
  nav.sub-menu li.dropdown .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  nav.sub-menu li.dropdown .dropdown-menu li a {
    padding-left: 30px; /* Einrückung für mobile Ansicht */
  }
}

/************************************************************************************************
Uploadformulare
*************************************************************************************************/
#uploadMessage{
  background-color: var(--bgcol);
}




/************************************************************************************************
Hilfesystem
*************************************************************************************************/
/* Hilfe-Tooltips */
.hilfe-tooltip {
  position: absolute;
  background-color: var(--bgcoldark);
  color: var(--textcol);
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3);
  z-index: 1010;
  max-width: 300px;
  font-size: 0.9rem;
}

.hilfe-tooltip:after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--bgcoldark) transparent;
}

/* Hilfe-Button */
.hilfe-link {
  color: var(--accent);
  font-size: 1rem;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hilfe-link:hover {
  opacity: 1;
  text-decoration: none;
}

/* Hilfe-Artikel */
.hilfe-artikel {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.hilfe-artikel h2 {
  margin-top: 0;
  color: var(--primcol);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.kategorie-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bgcol);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.artikel-inhalt {
  line-height: 1.6;
}

.artikel-inhalt img {
  max-width: 100%;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.artikel-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  text-align: right;
}

/* Verwandte Artikel */
.verwandte-artikel {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.verwandte-artikel h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primcol);
}

.verwandte-artikel ul {
  padding-left: 20px;
}

.verwandte-artikel li {
  margin-bottom: 8px;
}

/* Hilfesystem - Hauptcontainer */
.hilfe-container {
  margin: 0 auto;
  max-width: 1100px;
}

/* Hilfe-Suchfeld */
.hilfe-suche {
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.search-container input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px 0 0 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--textcol);
}

.search-container button {
  padding: 10px 15px;
  border: 1px solid var(--primcol);
  border-radius: 0 4px 4px 0;
  background-color: var(--primcol);
  color: var(--bgcoldark);
  cursor: pointer;
}

/* Hilfe-Bereichs-Styling */
.hilfe-section {
  margin-bottom: 40px;
}

.hilfe-section h2 {
  color: var(--primcol);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

/* Artikel-Grid für Top-Artikel */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.artikel-card {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.artikel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.artikel-card h3 {
  margin-top: 0;
  color: var(--primcol);
}

.artikel-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
}

.artikel-link:hover {
  text-decoration: underline;
}

/* Kategorie-Grid */
.kategorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.kategorie-card {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: background-color 0.3s;
}

.kategorie-card:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.kategorie-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
}

/* FAQ-Styling */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.faq-frage {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.faq-frage:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.faq-frage:after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.faq-frage.active:after {
  content: '-';
}

.faq-antwort {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Einzelner Artikel */
.hilfe-artikel {
  max-width: 800px;
  margin: 0 auto 30px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
}

.artikel-header {
  margin-bottom: 20px;
}

.artikel-navigation {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.back-link, .category-link {
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover, .category-link:hover {
  text-decoration: underline;
}

.artikel-inhalt {
  line-height: 1.7;
}

.artikel-inhalt img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 15px 0;
}

.artikel-inhalt ul, .artikel-inhalt ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.artikel-inhalt li {
  margin-bottom: 8px;
}

.artikel-inhalt table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.artikel-inhalt th, .artikel-inhalt td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
}

.artikel-inhalt th {
  background-color: rgba(0, 0, 0, 0.2);
}

.verwandte-artikel {
  margin-top: 30px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.verwandte-artikel h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primcol);
}

/* Admin-Panel */
.admin-panel {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
  margin-top: 0;
  color: var(--accent);
}

.card-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 15px 0;
  color: var(--primcol);
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
}

.admin-actions {
  margin: 30px 0;
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Artikel-Formular */
.artikel-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.artikel-form {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
}

.artikel-form textarea{
  width: 100%;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Status-Badges */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-active {
  background-color: rgba(40, 167, 69, 0.2);
  color: #40c057;
}

.status-inactive {
  background-color: rgba(220, 53, 69, 0.2);
  color: #e55c6c;
}

/* Kategorie Badges */
.kategorie-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bgcol);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}


/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
  .form-row {
      grid-template-columns: 1fr;
  }
  
  .artikel-navigation {
      flex-direction: column;
      gap: 10px;
  }
  
  .artikel-grid, .kategorie-grid {
      grid-template-columns: 1fr;
  }
  
  .button-group {
      flex-direction: column;
  }
  
  .dashboard-cards {
      grid-template-columns: 1fr;
  }
}

/* ============================================================
   Turnier-Select Komponente (renderTurnierSelect)
   Zentrale UI-Komponente aus system/func_components.php
   ============================================================ */
.turnier-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.turnier-select > label {
    white-space: nowrap;
}
.turnier-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.turnier-select select {
    flex: 1;
    min-width: 200px;
    padding: 6px 8px;
    border-radius: 5px;
    border: 1px solid var(--whitetrans);
    background-color: var(--bgcoldark);
    color: var(--textcol);
}
.turnier-select-aktivieren-btn {
    padding: 6px 14px;
    border-radius: 5px;
    border: 1px solid var(--whitetrans);
    background-color: var(--accent);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
}
.turnier-select-aktivieren-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.turnier-select-hinweis {
    width: 100%;
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: rgba(230, 168, 23, 0.15);
    border-left: 3px solid #e6a817;
    color: var(--textcol);
}

/* Felder die ausgefüllt werden sollten (generisch) */
.should-fill {
    border-left: 3px solid #e6a817 !important;
    background-color: rgba(230, 168, 23, 0.08) !important;
}
.should-fill-label {
    color: #e6a817;
}
.should-fill-label::after {
    content: ' *';
    color: #e6a817;
    font-weight: bold;
}

/* =========================================================
   Passwort-Sichtbarkeits-Toggle (Auge-Button)
   ========================================================= */
.pw-toggle-wrap {
    position: relative;
    display: block;
    width: 100%;
}
.pw-toggle-wrap > input {
    width: 100% !important;
    padding-right: 38px !important;
    box-sizing: border-box;
}
.pw-toggle-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px 8px;
    color: var(--textcol, inherit);
    opacity: 0.6;
}
.pw-toggle-btn:hover,
.pw-toggle-btn:focus {
    opacity: 1;
    outline: none;
}