/* === Grundlayout === */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0fdf4;
    color: #1b4332;
    margin: 0;
    padding: 0;
}

/* Haupt-Container */
.container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.1);
    border: 1px solid #b7e4c7;
}

/* Vereinsname anstelle von Logo */
header::before {
    content: "Johannescrowd e.V.";
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #2d6a4f;
    margin-bottom: 1rem;
}

/* Logo ausblenden */
header img,
header svg {
    display: none !important;
}

/* Überschriften */
h1, h2 {
    text-align: center;
    color: #1b4332;
}

/* Formularfelder */
input[type="email"],
input[type="text"],
select {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #95d5b2;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #e9fbee;
}

/* Labels */
label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Checkbox + Label nebeneinander */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    transform: translateY(1px);
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Button */
button,
input[type="submit"] {
    background-color: #52b788;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #40916c;
}

/* Erfolgsmeldung / Fehler */
.alert-success {
    background-color: #d8f3dc;
    color: #1b4332;
    padding: 1rem;
    border-radius: 6px;
}

.alert-error {
    background-color: #ffd6d6;
    color: #7f1d1d;
    padding: 1rem;
    border-radius: 6px;
}

/* Hinweis für Double-Opt-in */
body::before {
    content: "Hinweis: Zum Abonnieren ist Ihre Zustimmung erforderlich. Sie erhalten eine E-Mail mit einem Bestätigungslink auf den Sie klicken müssen um Ihre Zustimmung zu erteilen (Double-Opt-in). Ohne Bestätigung dürfen wir Ihnen leider keinen Newsletter zusenden.";
    display: block;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 1rem;
    margin: 2rem auto 1rem auto;
    max-width: 600px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}
