* {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	font-size: 15px;
}

.minimum {
	visibility: collapse;
}

.bild {
	max-width: 100%;
	height: auto;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0 auto;
}

#main {
	min-height: 100px;
	flex: 1;
}

#header {
	background-color: white;
	padding: 0.5em;
    display: flex;
    justify-content: space-between; /* Schiebt Inhalt an die Außenkanten */
    align-items: center;            /* Zentriert die Elemente vertikal */
}

#logout {
	padding: 0.5em;
    margin-left: auto;
}

#fagafe {
	background-color: lightred;
	padding: 0.5em;
	padding-left: 2em;
	padding-right: 1em;
	text-decoration: none;
}

nav {
	display: flex;
	background-color: #bed5d8;
	border: black 1px solid;
	padding: 0.5em;

}

.nav ul {
	display: flex;
	flex-wrap: wrap;
	flex-grow: 1;
	flex-basis: auto;
}

.nav li {
	background-color: #bed5d8;
	list-style: none;
	padding: 0.5em;
}

.nav .choice {
	background-color: #acbcbf;
	margin-left: 2em;
	font-weight: bold;
}
.preamble {
	display: flex;
	flex-direction: column;
	padding: 0.5em;
 	list-style: square;
}
.preamble div {
	margin: 0.5em;
	
}

.preamble .ebene1 {
	margin-left: 2em;
}
.preamble .ebene2 {
	margin-left: 3.5em;
}

.preamble .ebene3 {
	margin-left: 4.5em;
}


#body {
	background-color: #e7f4f6;
	padding: 0.5em;
}

#footer {
	background-color: #d6e5e7;
	font-size: 8px;
	padding: 0.5em;
}

.anz {
	font-weight: bold;
	padding: 0.5em;
}

.meta {
	display: flex;
	background-color: #dce7e9;
	border-top: black 1px solid;
	padding: 0.5em;

	/* --- Neu hinzugefügt --- */
   /* position: -webkit-sticky; /* Für Safari */
   /* position: sticky;         /* Macht das Element "klebrig" */
    /*top: 0;                   /* Bleibt ganz oben am Rand hängen */
   /* z-index: 1000;            /* Sorgt dafür, dass es über der Tabelle liegt */
    /*border-bottom: 1px solid black; /* Optional: Abschluss nach unten, wenn gescrollt wird */
}

.meta div {
	background-color: #e7f4f6;
	padding: 0.5em;
}

.meta_response {
	display: flex;
	background-color: #dce7e9;
	border-top: black 1px solid;
	padding: 0.5em;

	/* --- Neu hinzugefügt --- */
    position: -webkit-sticky; /* Für Safari */
    position: sticky;         /* Macht das Element "klebrig" */
    top: 0;                   /* Bleibt ganz oben am Rand hängen */
    z-index: 1000;            /* Sorgt dafür, dass es über der Tabelle liegt */
    border-bottom: 1px solid black; /* Optional: Abschluss nach unten, wenn gescrollt wird */
}

.meta_response div {
	background-color: #e7f4f6;
	padding: 0.5em;
}

.missing_media {
	font-weight:bold;
	color:white;
	width: 200px;
	white-space: normal;
    word-wrap: break-word; /* optional */
    overflow-wrap: break-word; /* moderner Standard */
	margin-top: 0.5em;
}


.contentinfo {
	display: flex;
	flex-wrap: wrap;
/* 	flex-direction: column; */
	background-color: #dce7e9;
	padding: 0.5em;
	
}

.contentinfo div {
	background-color: #e7f4f6;
	padding: 0.3em;
	width: 400px;
	padding: 0.5em;	


	margin: 0.2em;
}


.content {
	display: flex;
	background-color: #e7f4f6;
	padding: 0.5em;
}

.content div {
	background-color: #e7f4f6;
	padding: 0.5em;
}

.video-container {
	width: 800px;
}
.video-js{
background-color: #e7f4f6;
}

.tablesorter-blue thead th {
    position: sticky;
    /* Der Abstand von oben muss so groß sein wie die Höhe des .meta Divs */
    top: 33px; /*38*/
    z-index: 999;
}

@media all and (max-width: 800px) {
	.video-container {
	width: 640px;
	}
}

@media all and (max-width: 740px) {
	* {
		font-size: 10px;
	}
	.contentinfo div {
	width: 300px;
	}
	.video-container {
	width: 500px;
	}
}

@media all and (max-width: 500px) {
	* {
		font-size: 10px;
	}
	.quer {
		display: none;
	}
	.video-container {
	width: 359px;
	}
}

@media all and (max-width: 359px) {
	* {
		visibility: collapse;
	}
	.minimum {
		background-color: #F00;
		visibility: visible;
		border-radius: 5px;
		border: black 1px solid;
	}
}

/* --- Fahrzeug-Notizen Modal --- */
#infoModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#modalTitle {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

#infoTextarea {
    width: 100%;
    height: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.modal-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

#btnLoeschen  { display: none; background: #e74c3c; }
#btnAbbrechen { background: #95a5a6; }
#btnSpeichern { background: #27ae60; }

#btnLoeschen, #btnAbbrechen, #btnSpeichern {
    padding: 8px 16px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* --- Fahrzeug-Zellen --- */
.fahrzeug-zelle {
    cursor: pointer;
}

.fahrzeug-zelle:hover {
    background-color: rgba(0,0,0,0.05) !important;
}

.info-symbol {
    margin-left: 6px;
    font-size: 14px;
	padding: 0 4px;
    cursor: pointer;
    display: none;
	color: #145f9c;
	font-weight: bold;
}

/* --- Fahrzeug-Notiz Tooltip --- */
.notiz-tooltip {
    position: absolute;
    background: #3869c5;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}