/* Gemeinsame Stile für den Body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
	 padding-top: 90px; /* Höhe des Headers */
	margin-bottom: 100px;
}

/* Fixieren des Headers */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Höhe des Headers */
    background-color: #333;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1px;
    text-align: center;
    overflow: hidden; /* Verhindert, dass der Inhalt über die festgelegte Höhe hinausragt */
}

/* Stil für das Navigationsmenü */
nav {
    margin-top: 70px; /* Abstand zwischen Header und Navigation */
    background-color: #444;
    position: fixed; /* Positionierung des Navigationsmenüs */
    top: 0;
    left: 0;
    width: 100%; /* Volle Breite */
    z-index: 1000; /* Stelle sicher, dass das Navigationsmenü über anderen Inhalten liegt */
    display: flex; /* Flexbox verwenden */
    justify-content: center; /* Horizontal zentrierte Ausrichtung */
}

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

nav li {
    display: inline;
    margin-right: 1em;
}

nav a {
    color: white; /* Weiße Schriftfarbe */
    text-decoration: none; /* Keine Unterstreichung */
}

nav a:hover,
nav a:active,
nav a:focus {
    color: white; /* Behalte die weiße Schriftfarbe beim Hover, Klicken und Fokus */
    text-decoration: none; /* Keine Unterstreichung */
}



/* Gemeinsame Stile für den Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center; /* Text zentrieren */
}


/* Stile für den Hauptinhalt */
.main-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding-top: 90px; /* Höhe des Headers */
}


/* Stil für das Popup-Fenster */
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid black;
    z-index: 9999;
    overflow-y: auto; /* Fügt eine vertikale Scrollleiste hinzu, wenn der Inhalt überläuft */
    max-height: 80%; /* Begrenzt die maximale Höhe des Popup-Fensters */
    max-width: 80%; /* Begrenzt die maximale Breite des Popup-Fensters */
}


*/
// für formular
/* Füge diese Styles zu deiner bestehenden style.css-Datei hinzu oder erstelle eine neue */

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

button {
    padding: 10px;
}

/* Füge diese Styles zu deiner bestehenden style.css-Datei hinzu oder erstelle eine neue */

body {
    margin: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.modal-content {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

button {
    padding: 10px;
}

/*  Styles login container */

.login-container {
    position: absolute;
    top: 50%; /* Obere Position auf 50% der Höhe des main-content */
    left: 50%; /* Linke Position auf 50% der Breite des main-content */
    transform: translate(-50%, -50%); /* Zentrierung relativ zum Container */
    width: 250px; /* Ändere die Breite nach Bedarf */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*für buttons erfassen und bearbeiten*/
/* CSS-Stile für die Buttons */
.btn-erfassen,
.btn-bearbeiten {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50; /* Grüne Farbe */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; /* Abstand zwischen den Buttons */
}

.btn-loeschen {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #e57373; /* Rote Farbe */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; /* Abstand zwischen den Buttons */
	
}

.btn-loeschen:hover {
    background-color: #c62828; /* Dunklere Rottöne beim Hovern */
}


/* CSS für die Breite der Labels */
label {
    width: 120px; /* Ändern Sie diese Breite je nach Bedarf */
    display: inline-block;
}

/* CSS für die Breite der Input-Felder */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 250px; /* Ändern Sie diese Breite je nach Bedarf */
}

/* CSS für den Abstand zwischen Label und Input-Feld */
label,
input,
select,
textarea {
    margin-bottom: 10px; /* Ändern Sie diesen Abstand je nach Bedarf */
}
/* CSS für den Button bildungsstaetten */
#btn-erfassen-submit {
    width: 250px; /* Ändern Sie diese Breite je nach Bedarf */
    margin-top: 10px; /* Fügen Sie hier den Abstand zwischen dem Button und den vorherigen Elementen hinzu */
}
/* CSS für das Erfassen-Formular */
#erfassen-form {
    display: grid;
    grid-template-columns: 1fr; /* Eine Spalte */
    gap: 10px;
}

#erfassen-form label {
    /*display: none;*/ /* Labels ausblenden */
}

#erfassen-form label + input,
#erfassen-form label + select,
#erfassen-form label + textarea {
    margin-top: 5px; /* Abstand zwischen Label und Input-Feld */
}

#erfassen-form label + input::placeholder,
#erfassen-form label + select::placeholder,
#erfassen-form label + textarea::placeholder {
    visibility: hidden; /* Platzhaltertext ausblenden */
}

#erfassen-form label + input::placeholder::before,
#erfassen-form label + select::placeholder::before,
#erfassen-form label + textarea::placeholder::before {
    content: attr(data-label); /* Platzhaltertext durch Label ersetzen */
    visibility: visible; /* Label-Text anzeigen */
    color: #999; /* Farbe des Label-Textes */
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

label {
    margin-bottom: 5px;
}
label {
    margin-bottom: 5px;
    color: #333; /* Ändere die Farbe nach Bedarf */
}

/* pop das nur kurz sichtbar ist*/
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #000000;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}


/* CSS für das Bearbeiten-Formular */
.edit-form-bearbeiten {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.edit-form-bearbeiten label {
    display: block;
    margin-bottom: 5px;
}

.edit-form-bearbeiten select {
    width: calc(100% - 20px); /* Die Gesamtbreite des Formulars abzüglich des Button-Rands */
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.edit-form-bearbeiten button {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
/* CSS-Styling für das Formular */
.edit-form-details form {
    display: flex;
    flex-direction: column;
}

.edit-form-details .form-group {
    margin-bottom: 10px;
}
