
/* Standard-Stil (Light Mode) */
body {
  background-color: white;
  color: black;
}

/* Dark Mode bei aktivierter Klasse */
body.dark {
  background-color: black;
  color: #e0e0e0;
}

body.dark .btn {
  background-color: #333;
  color: white;
}
body.dark .table-container {
    background-color: black;  /* z. B. dunkelgrau für Dark Mode */
    border-color: gray;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}
body.dark input[type="text"],
body.dark input[type="tel"],
body.dark input[type="number"],
body.dark textarea {
    background-color: #666666;
    color: #ffffff;
    caret-color: #ffffff;
}

body.dark input::placeholder {
    color: #aaa;
}
body.dark table {
    background-color: #1e1e1e;
    color: #ffffff;

}

body.dark th,
body.dark td {
    border: 1px solid darkgray;

    background-color: black;
}

body.dark tr:nth-child(even) {
    background-color: #2a2a2a;
}


body.dark .gap{
    color: white !important;

}

.dark-toggle {
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
}




.letzteRunde {
	background-color: #2b9d09 /*grün*/ !important;
    color: black;
}

body.dark .letzteRunde {
	background-color: #2b9d09 /*grün*/ !important;
    color: black;
}

.countdown {
	text-align: right;
	font-family: monospace;
	padding: 0.3em;
}

.countdown.rot {
	background-color: #c80011 /*rot*/;
	color: black;
}

.countdown.gelb {
	background-color: #beba24 /*gelb*/;
	color: black;
}

.countdown.gruen {
	background-color: #2b9d09 /*grün*/;
	color: black;
}


.gap {
	text-align: right;
	font-family: monospace;
	padding: 0.3em;
}

.gap.warn {
	background-color: #c80011 /*rot*/;
	color: black;
}

body.dark .gap.warn {
	background-color: #c80011 /*rot*/;
	color: black !important;
}


body.dark .checkbox_top_right {
	position: absolute;
	background-color: transparent; 

}




  .text-mobile { display: none; } /* Standardmäßig nur Desktop-Text anzeigen */
/* Standard CSS für den Container */

@font-face {
    font-family: 'DSEG7';
    src: url('../rc_images/DSEG7Classic-Bold.ttf') format('truetype');
}

.digital {
    font-family: 'DSEG7', sans-serif;
    text-align: center;
}
.dark-toggle {
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
}

.name, .klasse, .hinweis {
    font-family: Arial;
    text-align: center;
    margin: 0;
    font-size: 12px !important;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block; /* <-- Hier wichtig */
    vertical-align: middle;
}
.klasse {
    color: white;
    background-color: black;
    padding-left: 5px;
    padding-right: 5px;
}
.hinweis {
    color: #c80011 /*rot*/;
    background-color: #beba24 /*gelb*/;
    font-weight: bold;
    font-size: 20px !important;
    padding-left: 5px;
    padding-right: 5px;    
}

.spalte_startnummer{
    color: white;
    background: black !important;

}

.table-container_DUMMY {
	position: relative; /* wichtig! */
}

.checkbox_top_right {
	position: absolute;
	top: 5px;
	right: 10px;
	font-size: 14px;
	z-index: 10;
	background-color: white; /* optional: für bessere Lesbarkeit */
	padding: 5px;
	border-radius: 4px;
}


h3{
 margin: 0px;   
}

body {
   font-size: clamp(8px, 4vw, 16px);
}
#container {
    width: 100%;
    max-width: 800px;
    border: 0px solid #000000; /* Rahmen */
    margin: 0 auto;
    padding: 0px;
    text-align: center;
}
.startnummer_small{
    
    width: 180px;
    font-size: clamp(8px, 6vw, 70px);
    text-align: center;
    font-family: 'DSEG7', sans-serif;
    
}
/* Formulare und Buttons */
.form-container {
    width: 100%;
    margin-bottom: 20px;
    border: 0px solid #c80011 /*rot*/; /* Rahmen */
}



select, input[type="number"], button {
    padding: 2px;
    margin: 5px;
     font-size: clamp(8px, 3vw, 15px);
}

button {
    padding: 10px;
     font-size: clamp(8px, 3vw, 20px);
    width: 95%;
    max-width: 200px;
    background-color: #28a745;
    color: white; /* Textfarbe weiß */
    border: none; /* Entfernt die Standard-Umrandung */
    border-radius: 10px; /* Optionale Rundung der Ecken */
    cursor: pointer; /* Zeigt den Mauscursor als Hand-Symbol */
}

button:hover {
    background-color: #218838; /*218838 Etwas dunkler beim Hover */
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.button_mini {
    padding: 2px 5px; /* Kleineres Padding für eine kompakte Größe */
    font-size: 10px;
    background-color: grey;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-block; /* Damit der Button nur so breit wie der Text ist */

    text-align: center;
    vertical-align: middle; /* Vertikale Zentrierung des Buttons */
    
    width: auto;
    margin:0px;
}
.button_mini:hover {
    background-color: #c80011 /*rot*/ !important; 
}



th {
    background-color: #f2f2f2;
    padding: 0px;
    text-align: center !important;
}

td {
    padding: 3px;
    text-align: center ;
}





.tab_els {
    max-width: 900px;
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;  /* Muss 'collapse' bleiben */
}

.tab_els td, .tab_els th {
    padding: 10px;  /* Erzeugt optischen Abstand innerhalb der Zellen */
    border: 1px solid black;  /* Unsichtbarer Rand für optischen Effekt */
    background-color: white;  /* Hintergrund, um den Abstand optisch zu simulieren */
}

.tab_els tr {
    border-bottom: 1px solid black !important;  /* Dünne Linie unter jeder Zeile */
    border-left: 2px;
}

.tab_els th {
    font-size: 16px; /* Größere Schrift für Überschriften */
    background-color: #28a745;
    color: white;

}

.tab_els tr.datenzeile td {
    font-size: clamp(8px, 9vw, 60px);
    vertical-align: middle;
}

.tab_els tr.zusatzinfo td {
    font-size: 20px;
    padding: 0px;
    vertical-align: middle;
}



/* Stil für die Links */
a {
    text-decoration: none;
}

/* Spezifische Stilregeln für den Bereich zur PDF-Generierung */
a button {
    background-color: #28a745;
    font-size: clamp(8px, 3vw, 16px) !important;
}

a button:hover {
    background-color: #218838;
}

/* Stil für das Input-Feld zur Startnummer */
input[type="number"] {
    width: 100px;
}

.button_small {
   width: auto;
    height: auto;
    padding: 8px 8px; /* Kleineres Padding für eine kompakte Größe */
    font-size: 14px;
    margin:2px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-block; /* Damit der Button nur so breit wie der Text ist */
    text-align: center;
    vertical-align: middle; /* Vertikale Zentrierung des Buttons */
}

#eingabeMinute {
  display: flex;
  justify-content: center;   /* horizontal zentrieren */
  align-items: center;       /* vertikal zentrieren */
  gap: 10px;                 /* Abstand zwischen Button und Input */
  margin: 20px 0px 5px 0px;         /* optional: Container selbst zentrieren */
}

#eingabeMinute input.digital {
  text-align: center;
    font-size: clamp(8px, 5vw, 26px);
    margin: 0px;
    height: 25px;
    width:80px;
    border: none;
}


body.dark #eingabeMinute input.digital {
    background-color: black;
    color: white;
}

#eingabeMinute .btn_pm {
   width: 25px;
    height: 30px;
	width:100px;
    padding: 0; 
    margin:2px;
    font-size: 25px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-block; /* Damit der Button nur so breit wie der Text ist */
    text-align: center;
    vertical-align: middle; /* Vertikale Zentrierung des Buttons */

}



.table-container {
	position: relative;
	width: 100%;
	margin: 5px auto;
	padding: 8px 8px 8px 8px;
	border: 2px solid #ccc;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buttons_#c80011 /*rot*/ {
	position: absolute;
	bottom: 5px;
	right: 5px;
	display: flex;
	flex-direction: column; /* 🟢 Buttons untereinander */
	gap: 0px; /* Abstand zwischen den Buttons */
	align-items: flex-end; /* optional: rechtsbündig */
}

    #lapTimeInput {
        width: 35px; /* Kleinere Breite */
        text-align: center; /* Zentrierter Text */
    }
    
    /* Entfernt die Hoch-/Runter-Pfeile in Chrome, Safari, Edge, Opera */
    #lapTimeInput::-webkit-inner-spin-button,  
    #lapTimeInput::-webkit-outer-spin-button {  
        -webkit-appearance: none;  
        margin: 0;  
    }

    /* Entfernt die Pfeile in Firefox */
    #lapTimeInput {
        -moz-appearance: textfield;
    }



    .button_rot {
  
		width:190px;
        background-color: #c80011 /*rot*/;
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        font-size: 12px;
        margin: 10px;
     /* Damit der Button nach rechts rückt */
    display: block;
    margin-left: auto;
 	
    }
    .button_rot:hover {
        background-color: dark#c80011 /*rot*/;
    }

#warn_gelb, #warn_rot, #gap_min, #refreshInterval{
    width: 50px;
    text-align: right;
}
.exclude-link {
    font-size: 16px;  /* Hier kannst du die gewünschte Schriftgröße anpassen */
}
#teilnehmerInfo, #rundenzahl_output{
    font-size: clamp(8px, 3vw, 24px);
}
.excludelink {
	cursor: pointer;
}

#eingabeBereich {
  display: flex;
  flex-direction: column;   /* erst die Zeile, dann Info darunter */
  align-items: center;      /* horizontal alles in der Mitte */
  margin: 0px ;        /* Container zentrieren */
  text-align: center;
}

.eingabezeile {
  display: flex;
  justify-content: center;  /* Eingabefeld + Button nebeneinander mittig */
  align-items: center;
  gap: 10px;                /* Abstand zwischen Input und Button */
    padding:0px;
}

#rundenzahl_output {
	font-weight: bold;
	color: blue;
}

#teilnehmerInfo {
	font-weight: bold;
    text-align: left;
    padding-left:20px;
}

/*################################################################################*/
/*################################################################################*/
/*################################################################################*/
/*################################################################################*/
/*################################################################################*/
/*################################################################################*/
/*################################################################################*/
/* Media Queries für kleinere Bildschirme (Tablets und Smartphones) */
@media (max-width: 980px) {
    body {
   margin:0px;
}
.table-container {
    width: 98%; /* Feste Breite */
margin: 0px;
margin-left: 0px;
    padding: 2px;
    margin-right: 0px;
}
.text-desktop { display: none; }
.text-mobile { display: inline; }


}

