/* Grundlegende Styles */
body {
	background: url(90636.jpg) no-repeat top center;
	background-size: cover;
	background-attachment: fixed;
    font-family: Arial, sans-serif;
	text-align: center;
    margin: 0;
    padding: 0;
}

/* Header fixieren */
header {
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100; /* Stellt sicher, dass der Header über dem Inhalt bleibt */
}

h1, h2, h3, hr {
    color: #FFFFFF;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a, h1 a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover, h1 a:hover {
    text-decoration: underline;
}

/* Den Main-Bereich anpassen, um Platz für Header und Footer zu lassen */
main {
	margin: 60px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px); /* Höhe des Viewports minus Header und Footer */
}

div#admin {
	display: flex;
	width: 80%;
	margin: 0 auto;
}

.intro {
	color: #FFFFFF;
}

/* Abschnitt für Links */
.links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
	opacity: 0.7;
    gap: 20px; /* Fügt eine Lücke zwischen den Link-Boxen hinzu */
}

.link-box {
	color: #FFFFFF;
    background-color: #000;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 30%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-box h3 {
    margin-top: 0;
}

.button, button {
    display: inline-block;
    background-color: #000;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
	border: 1px solid #fff;
    border-radius: 5px;
}

.button:hover {
    background-color: #333;
}

/* Stil für den dynamischen Inhalt */
#dynamic-content {
    background-color: black;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
    opacity: 0.7;
    color: #FFFFFF;
    overflow: hidden; /* Verhindert das Scrollen direkt im Container */
    flex-grow: 1; /* Damit #dynamic-content den verbleibenden Platz im Main-Bereich ausfüllt */
    display: flex;
    flex-direction: column;
}

/* Innerer Container für den Inhalt */
#dynamic-content .content-wrapper {
    overflow-y: auto; /* Ermöglicht das Scrollen des Inhalts */
    flex-grow: 1; /* Der Wrapper nimmt den gesamten verfügbaren Platz ein */
}

/* Tabellenstil für Charts und Archiv */
table {
	color: #FFFFFF;
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #FFFFFF;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #000;
}

tr:nth-child(even) {
    background-color: #000;
}

tr:hover {
    background-color: #333;
}

span#fail {
	color: red;
}

span#true {
	color: green;
}

#pflicht {
	color: red;
	font-size: 12px;
}

/* Formular zum Vorschlagen von Titeln */
form {
    margin-top: 5px;
}

form label {
    color: #FFFFFF;
    display: block;
    margin-bottom: 1px;
    font-weight: bold;
}

form input[type="text"], form input[type="email"], form input[type="url"], form textarea {
    width: 50%;
    padding: 5px;
    margin-bottom: 2px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
	background: black;
	color: #e353ff;
	font-size: 1em;
}

form textarea {
    resize: vertical;
}

form input[type="submit"] {
    background-color: #999;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #218838;
}

/* Styling für das Datumseingabefeld */
input[type="date"] {
    width: 50%;
    padding: 5px;
    margin-bottom: 2px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    background-color: black;
    color: #e353ff;
    font-size: 1em;
    text-align: center; /* Zentriert den Text im Eingabefeld */
}

/* Anpassen des Erscheinungsbildes des Kalender-Pickers */
input[type="date"]:focus {
    outline: none;
    border-color: #e353ff; /* Leuchtet auf, wenn das Feld fokussiert wird */
    background-color: #333; /* Dunkleres Grau für den Fokus */
}

/* Kalender-Button */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #FFFFFF; /* Gelbe Farbe für den Kalender-Button */
    border-radius: 4px;
    padding: 5px;
}

/* Hover-Effekt für den Kalender-Button */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: #e353ff; /* Farbe beim Hover-Effekt */
}


/* Footer fixieren */
footer {
    color: #FFFFFF;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100; /* Stellt sicher, dass der Footer über dem Inhalt bleibt */
}

footer a {
	color: #FFFFFF;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	overflow: auto;
}

.modal-content {
	background-color: black;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 500px;
	text-align: center;
    border: 1px solid #fff;
    border-radius: 8px;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}
.modal-content p {
	color: #FFFFFF;
}

.close:hover,
.close:focus {
	color: #FFFFFF;
	text-decoration: none;
	cursor: pointer;
}

.modal img {
	max-width: 15%;
	height: auto;
}