/* Allgemeine Reset-Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 10px;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

/* Layout der Navigation */
nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #fff;
    background-color: #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

nav a:hover {
    background-color: #2980b9;
}

/* Formular-Stile */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"], form input[type="datetime-local"], form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form input[type="submit"], form button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover, form button:hover {
    background-color: #2980b9;
}

form .error {
    color: red;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Umfrageergebnisse */
.results-summary, .results {
    background-color: #fff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.results-summary p, .results div {
    margin-bottom: 10px;
}

.result-item {
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.result-item strong {
    color: #3498db;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    form {
        padding: 15px;
    }

    form input[type="text"], form input[type="datetime-local"], form select {
        font-size: 1em;
    }

    form input[type="submit"], form button {
        padding: 12px;
    }

    .results-summary, .results {
        padding: 12px;
    }

    .result-item {
        padding: 8px;
        margin-bottom: 6px;
    }
}

/* Stil für die Kopfzeile */
header {
    background-color: #3498db;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Stile für Links in Umfragen */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mobile-first Ansatz für das Layout */
@media (max-width: 500px) {
    h2, h3 {
        font-size: 1.3em;
    }

    form input[type="text"], form input[type="datetime-local"], form select {
        font-size: 1.1em;
    }

    nav a {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}
/* Stile für den Löschen-Button */
.delete-button {
    padding: 8px 12px;/*8px 12px;*/
    background-color: #e74c3c;
    border: none;
    border-radius: 1px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #c0392b;
}
/* Allgemeine Stile für die Umfragen */
.survey-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}