/* Grundlayout */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

/* Hauptinhalt */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px 20px;
}

/* Standard-Container */
.container, .legal-container {
    max-width: 800px;
    width: 90%;
    padding: 30px;
    margin-top: 80px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.container {
    text-align: center;
}
.legal-container {
    max-width: 800px;
    width: 90%;
    padding: 30px;
    margin-top: 80px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Header */
header {
    background: #336699;
    color: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header-Container */
.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titel */
header h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Navigation */
nav {
    width: 100%;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
nav ul li {
    display: inline;
}
nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.3s;
}
nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    nav ul {
        gap: 5px;
    }
    nav ul li a {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    background: #e9ecef;
    width: min(90%, 800px);
    position: relative;
    margin: 20px auto 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Links */
footer a {
    text-decoration: none;
    color: #007bff;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.button, .email-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 1rem;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}
.button {
    background: #007bff;
}
.button:hover {
    background: #0056b3;
}
.email-button {
    background: #28a745;
}
.email-button:hover {
    background: #218838;
}

/* Startseitenbild */
.startbild {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Nachrichten-Erfolg & Fehler */
.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}
.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Formular-Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}
label {
    font-weight: bold;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
textarea {
    resize: vertical;
}
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}
button:hover {
    background: #0056b3;
}

/* Spinner-Animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 3px solid white;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
