/* =============================================
   ANMELDUNG - 4-Wochen-Programm Formular
   ============================================= */

.anmeldung-hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
}

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

/* --- Header --- */
.anmeldung-header {
    text-align: center;
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-primary-dark);
}

.anmeldung-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.anmeldung-header h1 span {
    color: var(--color-primary);
}

.anmeldung-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Formular --- */
.anmeldung-form {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.8rem;
}

/* --- Radio Buttons (Custom) --- */
.radio-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.radio-option {
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}

.radio-group--multi .radio-option {
    flex: 0 1 auto;
    min-width: auto;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-box {
    display: block;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all 0.25s;
    background: var(--color-white);
}

.radio-box:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.radio-option input[type="radio"]:checked + .radio-box {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-btn);
}

/* --- Textfelder --- */
.anmeldung-form textarea,
.anmeldung-form input[type="text"],
.anmeldung-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background: var(--color-white);
}

.anmeldung-form textarea {
    min-height: 120px;
    resize: vertical;
}

.anmeldung-form textarea:focus,
.anmeldung-form input[type="text"]:focus,
.anmeldung-form input[type="email"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 116, 5, 0.15);
}

.anmeldung-form textarea::placeholder,
.anmeldung-form input::placeholder {
    color: var(--color-text-subtle);
}

/* --- Zwei Felder nebeneinander --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field .form-label {
    margin-bottom: 0.6rem;
}

/* --- Submit --- */
.form-submit {
    text-align: center;
    padding-top: 1rem;
}

.btn-large {
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
}

.form-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

/* --- Erfolgs-Overlay --- */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayIn 0.3s ease;
}

.success-box {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    margin: 2rem;
    box-shadow: var(--shadow-xl);
    animation: boxIn 0.4s ease;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-box h2 {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.success-box p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes boxIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .anmeldung-header h1 {
        font-size: 2rem;
    }

    .anmeldung-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-option {
        min-width: 100%;
    }
}
