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

/* Dark Mode */
body.dark {
    background-color: #222;
    color: #ddd;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border-bottom: 2px solid #ddd;
    border-radius: 10px;
    margin: 10px;
}

body.dark header {
    background-color: #333;
    border-bottom: 2px solid #555;
}

/* Logo */
header img {
    height: 40px;
}

/* Navigation */
nav a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    font-weight: bold;
}

body.dark nav a {
    color: #ddd;
}

nav a:hover {
    color: #007bff;
}

/* Dark Mode & Language Switch */
.controls {
    display: flex;
    gap: 10px;
}

.controls button {
    border: none;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
}

.controls button:hover {
    background: #0056b3;
}

/* Main */
main {
    padding: 20px;
    text-align: center;
}

main img {
    max-width: 80%;
    border-radius: 10px;
    margin-top: 15px;
}

/* Formular */
form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
}

body.dark form {
    background: #444;
}

label {
    display: block;
    margin-top: 10px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

body.dark input, body.dark textarea {
    background: #555;
    color: #ddd;
    border: 1px solid #666;
}

button[type="submit"] {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
}

button[type="submit"]:hover {
    background: #218838;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background: #ddd;
    border-radius: 10px;
}

body.dark footer {
    background: #333;
}

.typewriter {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
    color: #007bff;
    display: inline-block;
    margin-top: 15px;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    color: #007bff;
}

@keyframes blink {
    50% { opacity: 0; }
}
.typewriter {
    white-space: pre-line;
}
#success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    display: none; /* Sicherstellen, dass es per JS aktiviert werden kann */
}

.hidden {
    display: none; /* Falls du es als Default verstecken möchtest */
}

