/* Allgemeine Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    /*text-align: center;*/
}

/* Standardmäßig Scrollbar anzeigen */
html {
    overflow-y: scroll; /* Immer vertikale Scrollbar anzeigen */
    overflow-x: auto;   /* Horizontale Scrollbar nur bei Bedarf */
}

footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    background-color: #f4f4f4;
    color: #333;
    margin-top: 20px;
}

/* Navigation */
nav {
    background: #007BFF;
    padding: 15px;
    text-align: center;
}


nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 18px;
	display: inline-block;
}

nav a:hover {
    background: #0056b3;
    border-radius: 5px;
}

/* Container für Inhalte */
.container {
    background: white;
    width: 60%;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Buttons */
button, .btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
}

button:hover, .btn:hover {
    background: #218838;
}

button.red {
    background: #dc3545;
}

button.red:hover {
    background: #c82333;
}

/* Lückentext sauber formatieren */
.lueckentext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1.6;
    margin: 15px 0;
    text-align: center;
}

.lueckentext span {
    margin: 5px;
}

.lueckentext input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    font-size: 18px;
    width: 150px;
    text-align: center;
    margin: 5px;
}

/* Richtige Antwort hervorheben */
#correct-answer-container {
    font-size: 18px;
    font-weight: bold;
    color: red;
    margin-top: 20px;
    text-align: center;
}

/* Button-Container für bessere Anordnung */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* Abstand zwischen Buttons */
.button-container button {
    width: 250px;
    padding: 12px;
    font-size: 18px;
    margin: 10px;
}

/* Antwort-Buttons "Ich wusste es" */
.answer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
	text-align: center;
    gap: 15px;
    margin-top: 20px;
}


.answer-buttons button {
    width: 200px;
}

/* Tabellen */
table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 5px;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
}

table th {
    background: #007BFF;
    color: white;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Statistik-Charts */
canvas {
    margin: 20px auto;
    max-width: 400px;
}

/* Formulare */
.form-container {
    background: white;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

/* Input-Felder für einheitliches Design */
.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

/* Eingabefelder: Einheitliches Styling für alle Typen */
input[type="text"], 
input[type="password"], 
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
    margin-top: 5px;
}

/* Impressum & Info-Seite Styling */
.info-container, .impressum-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}

.info-container h2, .info-container h3, 
.impressum-container h2, .impressum-container h3 {
    color: #007BFF;
}

.info-container p, .impressum-container p {
    line-height: 1.6;
}

.info-container ul, .impressum-container ul {
    list-style-type: disc;
    padding-left: 20px;
}

.info-container a, .impressum-container a {
    color: #007BFF;
    text-decoration: none;
}

.info-container a:hover, .impressum-container a:hover {
    text-decoration: underline;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .lueckentext input {
        width: 100px;
    }

    .button-container button {
        width: 100%;
    }

    .answer-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .answer-buttons button {
        width: 100%;
    }
}
