/* 1. Variable global definieren */
:root {

	--button:		white;
	--gitter:		black;

	
	--navi:			#D1EEEE;
	--navi_dark: 	black;
	--negativ:		white;
	--lines:		black;
	--message:		#FFC0CB;
	--hinweis:   	#FFEC8B;
}

/* Gilt für alle Elemente und deren Pseudoelemente */
*, *::before, *::after {
    box-sizing: border-box; /* Element bleibt exakt so gross wie im CSS angegeben */
    margin: 0;   /* Optional: Entfernt standardmässige Aussenabstände */
    padding: 0;  /* Optional: Entfernt standardmässige Innenabstände */
}




body { 
	overflow-y: scroll;
    font-family: sans-serif; 
	font-size: 1rem; /* Entspricht den standardmässigen 16px, ist aber flexibel */
    line-height: 1.6rem;
	color: black; 
	margin: 20px;
    background: transparent;
}

.container { 
    display: flex; 
	overflow-x: auto;    /* Zeigt horizontalen Schieber an, wenn es zu eng wird */
    width: 100%; 
    gap: 20px; 
    align-items: flex-start;
}





/* ............................................ */
/* ........................... Inhaltseiten ... */
.content { 
	width: 800px;
	min-width: 800px;    /* Verhindert das Schrumpfen unter 800px */
    flex-shrink: 0;      /* Verhindert das Schrumpfen in Flex-Containern */
    display: flex;       /* Aktiviert Flexbox für die Kind-Elemente */
    flex-direction: column; 
}
.content_int {
	width: 100%;
	height: 100%;
}
.title {
	width: max-content;
	background-color: var(--navi_dark);
	color: var(--button);
	border-radius: 4px;
	padding: 0px 10px;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 20px;
}


/* ............................................ */
/* .................................. pages ... */
.subject {
	width: 100%;
	display: flex;
	flex-direction: column;
	margin: 25px 5px;
}
.subject_title {
	margin-bottom: 5px;
	font-weight: bold;
	text-transform: uppercase;
}
.subject a {
    display: block;
	height: 1.6rem;       /* Gewünschte Höhe festlegen */
	padding: 0px 10px;
	width: max-content;
	border-radius: 4px;
	color: var(--negativ);
	background-color: var(--navi_dark); 
    text-decoration: none; 
	font-weight: bold;
	text-transform: uppercase;
}
.subject_row {
	display: flex;
	align-items: center;    /* Zentriert Label und Input vertikal zueinander */
}
.subject label {
	width: 150px;
	font-weight: bold;
	text-transform: uppercase;
	flex-shrink: 0;   
}
.subject option {
	font-weight: normal !important;   /* Deaktiviert die fette Schrift */
	text-transform: none !important;  /* Verhindert Grossbuchstaben (Uppercase) */
}
.subject input {
	width: 400px;
}
.subject select{
	width: max-content;
}
.subject_group {
	display: flex;
	flex-direction: column;
	margin-bottom: 5px;
	font-weight: bold;
	text-transform: uppercase;
}
/* ............................................ */
/* .......................... pages Tabelle ... */
.subject_tab_cage {
	height: 310px; 
	margin-bottom: 5px;
	overflow-y: scroll; 
	border: 1px solid var(--lines); 
	border-radius: 4px;
	width: 100%;
}
.subject table {
	width: 100%; 
	border-collapse: collapse; 
	font-size: 0.9em;
}
.subject thead  {
	background: var(--navi);
	position: sticky; 
	top: 0;
}
.subject th {
	padding: 5px;
	text-align:left; 
	font-size: 1.2em;
	text-transform: uppercase;
}
.subject tr {
	border-bottom:  1px solid var(--lines);
}
.subject tr:last-child td, 
.subject tr:last-child th {
	border-bottom: 1px solid transparent;
}
.subject td {
	padding: 3px 5px;
}
.subject_tab_leer{
	padding: 20px; 
	background-color: var(--hinweis);
	text-align: center;
}


/* ............................................ */
/* ............................?????????????................ */
.gruppe {
	width: 100%;
	margin-bottom: 5px;
	padding: 10px 10px 0px 10px;
	border: 1px solid var(--lines);
	border-radius: 4px;
}
.gruppe .zeile {
	display: flex;
}
.gruppe label {
	width: 105px;
	flex-shrink: 0;      /* Verhindert, dass das Label zusammengedrückt wird */
}
.gruppe .luzi_select_wrapper {
	flex-grow: 1; /* Der Wrapper nimmt sich den gesamten restlichen Platz */
}
.gruppe select {
	display: inline-block;
	width: 100%;
}
.gruppe button {
	display: flex;           /* Überschreibt inline-flex für 100% Breite */
	width: 100%;
	margin-bottom: 10px; 
}
 















.hinweis {
	width: 100%;
	margin-bottom: 5px;
	padding: 5px 10px 5px 10px;
	font-size: 1rem;
	font-weight: normal;
	text-transform: none;
	border-radius: 4px;
    background-color: var(--hinweis);
}
.karte.hinweis {
	margin-bottom: 0;
	display: flex;
	flex-direction: column;  /* Hält die Zeilen untereinander */
	justify-content: center; /* Zentriert den Inhalt vertikal */
	align-items: center;     /* Zentriert den Inhalt horizontal */
	text-align: center;      /* Sorgt für die zentrierte Ausrichtung des Textes selbst */
}

.warning {
	width: 100%;
	margin-bottom: 5px;
	padding: 5px 10px 5px 10px;
	font-size: 1rem;
	font-weight: normal;
	text-transform: none;
	border-radius: 4px;
    background-color: var(--message);
}




/* ............................................ */
/* ............................ jap_abc.php ... */
.trainer {
    display: flex;
	flex-direction: row;
    gap: 20px; 
	}
.trainer_li {
	display: flex;          /* Aktiviert Flexbox für die Spalte */
	flex-direction: column; /* Stapelt die inneren Elemente untereinander */
	width: 70%;
	}
.trainer_li_top {
	display: flex;          /* Aktiviert Flexbox für die Spalte */
	flex-direction: column; /* Stapelt die inneren Elemente untereinander */
	margin-bottom: 20px;
	}
.trainer_re {
	width: 30%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	}


/* ............................................ */
/* ................................... form ... */ 
 form {
	width: 100%;
	height: 100%;
	display: block;
	font-family: inherit; 
	font-size: inherit; 
}


/* ............................................ */
/* ............................. Karte oben ... */ 
.karte {
	/* height: 300px; */
	display: flex;
	flex-direction: column;
	justify-content: space-start;
	border: 1px solid var(--lines);
	border-radius: 4px;
	padding: 0;
}
.karte_top {
	padding: 10px;
}
.words {
	width: 100%;
	height: auto;
	color: var(--negativ);
	text-align: right;
	font-weight: bold;
	text-transform: uppercase;
}
.inner {
	width: max-content;
	padding: 0px 10px;
	margin-left: auto;
	background-color: var(--navi_dark);
	border-radius: 4px;
}
.instruction {
	width: 100%;
	height: auto;
	font-weight: bold;
	text-transform: uppercase;
}
.begriff {
	width: 100%;
	height: auto;
	margin-bottom: 10px;
	padding: 0px 10px 0px 10px;
	border-radius: 4px;
	background-color: var(--navi_dark);
	color: var(--negativ);
	text-align: center;
	text-transform: none;
	font-size: 1.3rem;
	font-weight: bold;
}
/* ............................................ */
/* .................... Speaker, Trennlinie ... */
.speaker {
	display: inline-flex; 
	justify-content: center; 
	align-items: center;
	transform: scaleX(-1);   /* Spiegelt das Icon horizontal */
	font-size: 1.3rem;		 /* Leicht verkleinert, damit es perfekt in 1.6rem Höhe passt */
	line-height: 1.5rem;          /* Verhindert, dass unsichtbare Texthöhen das Icon verschieben */
	height: 1.6rem;             /* Nutzt die volle Höhe des Flex-Containers*/
	cursor: pointer;
}
.trennlinie {
	width: 100%;
	height: 1px;
	background-color: var(--lines);
	border: 0;  /* Entfernt den Standard-Browser-Style von <hr> */
}
/* ............................................ */
/* ............................ Karte unten ... */ 
.karte_bottom {
	height: 100%;
	display: flex; 
	flex-direction: column;
	justify-content: space-between;
	padding: 0px 10px 10px;
}
/* ............................................ */
/* .................... multiple_choice.php ... */
.mult_ch {
	height: 100%;
	display: flex; 
	flex-direction: column;
	justify-content: flex-start;
	padding: 0px 0px 0px 0px;
	font-size: 1.2rem;
	font-weight: bold;
}
.mult_ch label {
    display: flex;         
    align-items: flex-start; 
    width: 100%;           
    padding: 2px 10px;
    cursor: pointer;
}
.mult_ch label input[type="radio"] {
	display: flex; 
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	height: 1.6rem;
    margin-right: 8px;     
    flex-shrink: 0;        /* Verhindert, dass der Radio-Button zusammengedrückt wird */
}
.mult_ch label:hover {
	border-radius: 4px;
	background-color: var(--navi);
}
/* ............................................ */
/* ............................... textarea ... */
.schreiben {
	width: 100%;
    flex-grow: 1;        /* Zwingt die Textarea, den gesamten freien Platz zu füllen */
	min-height: 120px;
	resize: none;
	margin-bottom: 8px;
	background-color: var(--navi);
    border: none;
	outline: none;	
    border-radius: 4px;
	padding: 5px 10px;
    font-size: 1.3rem;
}
.karte_bottom button {
	width: max-content;   
	margin-left: auto;    
}










/* ............................................ */
/* ............................. Auswertung ... */
.reihe {
	display: flex; 
	width: 100%;
}
.auswertung .reihe {
	border-bottom: 1px solid var(--lines);
}
.zelle {
	display: flex; 
	flex-direction: column;
	justify-content: flex-start;
	padding: 6px 0px; 
	line-height: 1.6rem;
	font-size: 1.2rem; 
	font-weight: bold;
}
.zelle.first {
	min-width: 110px;
	font-size: 1rem; 
    text-transform: uppercase;
}
.speaker1 {
	display: flex; 
	flex-direction: column;
	justify-content: center;
	align-content: center;
	height: 2rem !important;
	margin: 3px 3px 3px 0px;
	border-radius: 4px;
	background-color: var(--navi_dark);
	color: var(--negativ)
}
.zelle.speaker1 {
	padding: 0 !important;
}
.but_re {
	width: 100%;
	height: 100%;
	display: flex; 
	flex-direction: column;
	justify-content: flex-end;
	text-align: right;
}







/* ............................................ */
/* .................... words_in_stufen.php ... */
.trainer_re table {
	border-collapse: separate; 
	border-spacing: 0;
	border-radius: 4px;
	width: 200px; 
	text-align: center;
	overflow: hidden; 
	border-top: 1px solid var(--lines);
	border-left: 1px solid var(--lines);
}

.trainer_re table th {
	background: #D1EEEE;	
}

.trainer_re table th, 
.trainer_re table td {
	min-width: 45px;
	height: 36px;
	empty-cells: show; 
	border-right: 1px solid var(--lines);
	border-bottom: 1px solid var(--lines);
}
.trainer_re table tr:last-child td:last-child {
	border-bottom-right-radius: 4px;
}
.stufe {
	background-color: #D1EEEE;
}
.hear {
	background-color: #FFD700;
}
.read {
	background-color: #1874CD;
}
.write {
	background-color: #EE3A8C;
}
.fortschritt {
	background-color: #00EE00;
}
/* ............................................ */



/* ............................................ */
/* .................................. buton ... */
button {
	height: 1.6rem; 
	padding: 0 9px;
	margin-bottom: 5px;
	background-color: var(--navi_dark); 
	border: 1px solid var(--navi_dark);
	border-radius: 4px; 
	color: var(--button);
	font-family: sans-serif;
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;    /* Nutzt das Flex-Layout für den Button */
	align-items: center;     /* Zentriert den Inhalt mathematisch auf der Mittellinie */
	justify-content: center; /* Zentriert den Inhalt horizontal */
	gap: 10px;                /* Sauberer Abstand zwischen Icon und Text */
	vertical-align: middle;  /* Verhindert, dass der Button selbst in der Zeile springt */
}

button:focus,
button:active {
    outline: none;
    box-shadow: none; /* Manche Browser nutzen Box-Shadow statt Outline */
}
button:hover {
	background-color: var(--navi_dark);
}
/* ............................................ */


/* ............................................ */
/* ................................. select ... */
.luzi_select_wrapper {
	position: relative;    /* Setzt den Bezugspunkt wieder hierhin */
	display: inline-block; /* NEU: Der Wrapper zieht sich exakt so schmal zusammen wie das Select-Feld */
	width: auto;           /* ÄNDERUNG: Verhindert, dass der Wrapper 100% Breite erzwingt */
}
.luzi_select {
	appearance: none; 
	-webkit-appearance: none;
	-moz-appearance: none;
	display: block;
	height: 1.6rem;   
	padding: 0px 20px; /* Oben | Links/rechts | Unten */    
	width: max-content;    /* Das Feld bestimmt die Breite */
	margin-bottom: 5px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
	color: black;
	background-color: var(--navi);
	border-radius: 4px; 
	border: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
}
.luzi_select:focus {
	outline: none;
}
.luzi_select_wrapper::after {
	content: "▼";
	position: absolute; 
	left: 8px;           /* Klebt am rechten Rand des Wrappers (der dank inline-block so breit ist wie das Select) */
	top: 50%;           
	transform: translateY(-60%); 
	pointer-events: none;  /* Klicks gehen durch das Zeichen durch ins Feld */
}
.luzi_select_wrapper.rechts::after {
	left: auto;          /* Hebt die linke Klebung der ersten Regel auf */
	right: 8px;          /* Klebt das Element stattdessen an den rechten Rand */
}
.kat-aktiv {
    color: #36648b;
    font-weight: bold;
}
/* ............................................ */
 
 
/* ............................................ */
/* .................................. input ... */
.luzi_input {
	appearance: none; 
	-webkit-appearance: none;
	-moz-appearance: none;
	display: inline;
	height: 1.6rem;  
	padding-left: 15px;      /* Abstand zur linken Kante */
	width: 200px;    
	margin-bottom: 5px;
	color: var(--navi_dark);            /* TEXTFARBE SCHWARZ */
	font-family: inherit;
	font-size: 1rem;
	background-color: white; /* HINTERGRUND WEISS (für die Lesbarkeit) */
	border-radius: 4px; 
	border: 1px solid black; /* Schwarzer Rand */
	box-shadow: none;
	outline: none;
	cursor: pointer;
	box-sizing: border-box;  /* Hält die Breite exakt bei 200px */
}
.luzi_input[type="file"] {
	padding-left: 0;          /* Entfernt das Standard-Padding für Text-Inputs */
	height: auto;             /* Erlaubt dem Feld, sich an den Button anzupassen */
	border: none;             /* Entfernt den äusseren Standardrahmen */
	background: transparent;  /* Verhindert einen doppelten Hintergrund */
}
/* Styling für den integrierten Datei-Auswahl-Button */
.luzi_input[type="file"]::file-selector-button {
	appearance: none;
	-webkit-appearance: none;
	height: 1.6rem;
	padding: 0 15px;
	color: var(--negativ);
	background-color: var(--navi_dark);
	border: 1px solid black;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	margin-right: 10px;       /* Abstand zum nachfolgenden Dateinamen-Text */
}
 
.luzi_input[type="number"] {
	-moz-appearance: textfield;
	width: 250px;          /* Feste Breite, damit der lange Text komplett reinpasst */
	padding-left: 10px;    /* Leicht reduzierter Innenabstand für mehr Platz */
}
.luzi_input::-webkit-outer-spin-button,
.luzi_input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

 

 /* ............................................ */
/* .............................. login.php ... */
.login {
	display: flex;
	flex-direction: column;
	align-items: left; 
	margin: 0px 10px;
	font-weight: bold;
	text-transform: uppercase;
}
.login form {
	width: max-content;
	display: flex;
	flex-direction: column;
	align-items: left;
}
.login p {
	line-height: 1.1rem; 
	font-size: 0.8rem;
}
/* ............................................ */


/* ............................................ */
/* ........................ Steuerung links ... */
.sidebar { 
    width: 250px; 
	min-width: 250px; 
}
.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
	font-weight: bold;
	text-transform: uppercase;
}
.sidebar a {
    display: block;
	height: 1.6rem;       /* Gewünschte Höhe festlegen */
	padding: 0px 10px;
	width: max-content;
	color: black; 
    text-decoration: none; 
}
.sidebar li a:hover { 
	background: var(--navi);
	border-radius: 4px;
}
/* ............................................ */