* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f0f4f0;
    color: #1a2e1a;
    line-height: 1.5;
}

.container {
    max-width: 520px;
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    color: #2d5a2d;
}

header p {
    margin: 0;
    color: #4a6b4a;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

fieldset {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

legend {
    font-weight: 600;
    color: #2d5a2d;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #3d5c3d;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #c5d4c5;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4a8f4a;
    box-shadow: 0 0 0 3px rgba(74, 143, 74, 0.15);
}

button {
    width: 100%;
    padding: 0.85rem;
    background: #3d7a3d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

button:hover {
    background: #2d5a2d;
}

.field-hint {
    margin: -0.5rem 0 0.75rem;
    font-size: 0.85rem;
    color: #4a6b4a;
}

.field-hint-warn {
    color: #856404;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.verein-badge {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2d5a2d;
    background: #e8f5e6;
    border-radius: 6px;
}

.form-header h1 {
    margin: 0 0 0.35rem;
}

.verein-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #4a6b4a;
    font-weight: 500;
}

.form-header p {
    margin: 0;
}

.verein-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #d5e4d5;
    text-align: center;
}

.verein-footer p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    color: #7a8f7a;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button-link {
        text-align: center;
    }
}
