/* ============================================
   SEILER ASSISTENZ – Bewerber-Funnel
   Design System & Styles
   Brand: Orange #E8751A · Warm · Human
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --sa-orange: #E8751A;
    --sa-orange-dark: #C45E0E;
    --sa-orange-light: #FFF3EB;
    --sa-orange-glow: rgba(232, 117, 26, 0.15);
    --sa-orange-subtle: rgba(232, 117, 26, 0.08);

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FBF9F7;
    --surface: #F5F2EF;
    --border: #E8E4E0;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --text-inverse: #FFFFFF;

    /* Semantic */
    --success: #22C55E;
    --success-bg: #F0FDF4;
    --error: #EF4444;
    --error-bg: #FEF2F2;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 32px;
    --gap-2xl: 48px;
    --gap-3xl: 64px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--off-white);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === PROGRESS BAR === */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress--visible {
    opacity: 1;
}

.progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sa-orange), var(--sa-orange-dark));
    border-radius: 0 2px 2px 0;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === LOGO MARK === */
.logo-mark {
    position: fixed;
    top: 16px;
    left: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark__img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-mark__text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    display: none;
}

@media (min-width: 768px) {
    .logo-mark__img {
        height: 48px;
    }
    .logo-mark__text {
        display: block;
    }
}

/* === FUNNEL CONTAINER === */
.funnel {
    width: 100%;
    max-width: 640px;
    min-height: 100dvh;
    padding: 80px 20px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* === STEPS === */
.step {
    display: none;
    width: 100%;
    animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.step--active {
    display: block;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stepOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-16px);
    }
}

.step__content {
    width: 100%;
}

.step__content--center {
    text-align: center;
}

/* === HERO (Step 0) === */
.step__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--sa-orange-light);
    color: var(--sa-orange);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--gap-lg);
    letter-spacing: 0.02em;
}

.step__hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--gap-md);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.accent {
    color: var(--sa-orange);
}

.step__hero-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--gap-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Start Button */
.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--sa-orange), var(--sa-orange-dark));
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(232, 117, 26, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 117, 26, 0.45);
}

.btn-start:hover::before {
    opacity: 1;
}

.btn-start:active {
    transform: translateY(0);
}

/* Micro Trust */
.step__micro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-lg);
    margin-top: var(--gap-lg);
    flex-wrap: wrap;
}

.micro-trust {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Social Proof */
.step__social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--gap-xl);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.avatars {
    display: flex;
    margin-right: 4px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-left: -6px;
    border: 2px solid var(--off-white);
    background: hsl(var(--hue, 25), 65%, 50%);
}

.avatar:first-child {
    margin-left: 0;
}

/* Benefits Cards (Hero) */
.hero-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
    margin-top: var(--gap-xl);
    margin-bottom: var(--gap-lg);
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-benefit__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero-benefits {
        grid-template-columns: 1fr;
    }
}

/* === QUESTION STEPS === */
.step__question-number {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sa-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--gap-sm);
}

.step__title {
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--gap-sm);
    letter-spacing: -0.01em;
}

.step__hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-xl);
    line-height: 1.5;
}

/* === OPTIONS === */
.options {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.option {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sa-orange-subtle);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option:hover {
    border-color: var(--sa-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 117, 26, 0.1);
}

.option:hover::before {
    opacity: 1;
}

.option--selected {
    border-color: var(--sa-orange);
    background: var(--sa-orange-light);
    box-shadow: 0 0 0 1px var(--sa-orange);
}

.option--selected::before {
    opacity: 1;
}

.option--selected::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--sa-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.option__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.option__text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.option__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.option__desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: block;
}

.option--warning .option__desc {
    color: var(--sa-orange-dark);
}

/* Multi-select checkboxes */
.options--multi .option::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.options--multi .option--selected::after {
    content: '✓';
    background: var(--sa-orange);
    border-color: var(--sa-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Multi-select Continue Button */
.btn-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin-top: var(--gap-lg);
    background: var(--sa-orange);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.4;
    pointer-events: none;
}

.btn-continue--active {
    opacity: 1;
    pointer-events: auto;
}

.btn-continue:hover {
    background: var(--sa-orange-dark);
    transform: translateY(-1px);
}

/* === RESULT SCREEN === */
.result-animation {
    margin-bottom: var(--gap-xl);
}

.result-check {
    width: 72px;
    height: 72px;
    margin: 0 auto;
}

.result-check__svg {
    width: 100%;
    height: 100%;
}

.result-check__circle {
    stroke: var(--sa-orange);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.result-check__path {
    stroke: var(--sa-orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkPath 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes checkCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkPath {
    to { stroke-dashoffset: 0; }
}

.step__result-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: var(--gap-lg);
    letter-spacing: -0.02em;
}

.step__result-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto var(--gap-xl);
}

/* Result Benefits */
.result-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-xl);
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.result-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: benefitSlide 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

.result-benefit:nth-child(1) { animation-delay: 0.9s; }
.result-benefit:nth-child(2) { animation-delay: 1.05s; }
.result-benefit:nth-child(3) { animation-delay: 1.2s; }
.result-benefit:nth-child(4) { animation-delay: 1.35s; }
.result-benefit:nth-child(5) { animation-delay: 1.5s; }

@keyframes benefitSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-benefit__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* === CONTACT FORM === */
.contact-form {
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
}

.form-field {
    margin-bottom: var(--gap-md);
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--sa-orange);
    box-shadow: 0 0 0 3px var(--sa-orange-glow);
}

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

.form-field input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 18px;
}

/* Submit Button */
.btn-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 24px;
    margin-top: var(--gap-lg);
    background: linear-gradient(135deg, var(--sa-orange), var(--sa-orange-dark));
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(232, 117, 26, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 117, 26, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit__text {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-submit__sub {
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 4px;
}

/* Loading Spinner */
.btn-submit .spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-submit--loading .spinner {
    display: block;
}

.btn-submit--loading .btn-submit__text,
.btn-submit--loading .btn-submit__sub {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Trust */
.form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    margin-top: var(--gap-md);
    flex-wrap: wrap;
}

.form-trust span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* === THANK YOU PAGE === */
.success-burst {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--gap-xl);
}

.success-burst__ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--sa-orange);
    border-radius: 50%;
    opacity: 0;
    animation: burstRing 1.2s cubic-bezier(0, 0.5, 0.5, 1) 0.3s forwards;
}

.success-burst__ring--2 {
    inset: -22px;
    animation-delay: 0.5s;
    border-color: var(--sa-orange-light);
}

@keyframes burstRing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.success-burst__emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Next Steps */
.next-steps {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    margin: var(--gap-xl) auto;
    max-width: 380px;
    text-align: left;
}

.next-step {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    font-size: 0.92rem;
    color: var(--text-primary);
}

.next-step__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sa-orange-light);
    color: var(--sa-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Phone */
.cta-phone {
    margin-top: var(--gap-xl);
    padding: var(--gap-md);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.cta-phone span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.cta-phone a {
    color: var(--sa-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.cta-phone a:hover {
    text-decoration: underline;
}

/* === NAV BACK === */
.nav-back {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 50;
}

.nav-back:hover {
    border-color: var(--sa-orange);
    box-shadow: 0 4px 20px rgba(232, 117, 26, 0.15);
}

.nav-back svg {
    color: var(--text-secondary);
}

/* === FOOTER === */
.footer-mark {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    background: linear-gradient(transparent, var(--off-white) 40%);
    z-index: 10;
}

.footer-mark a {
    color: var(--text-tertiary);
    text-decoration: none;
}

.footer-mark a:hover {
    color: var(--sa-orange);
}

.footer-sep {
    margin: 0 6px;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 200;
    display: flex;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.cookie-banner__content {
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.cookie-banner__text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--sa-orange);
}

.cookie-banner__actions {
    display: flex;
    gap: var(--gap-sm);
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn--accept {
    background: var(--sa-orange);
    color: white;
}

.cookie-btn--accept:hover {
    background: var(--sa-orange-dark);
}

.cookie-btn--reject {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn--reject:hover {
    border-color: var(--text-tertiary);
}

/* === ANIMATE IN === */
.animate-in {
    opacity: 0;
    transform: translateY(16px);
    animation: animateIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.45s; }
.delay-5 { animation-delay: 0.6s; }

@keyframes animateIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .funnel {
        padding: 70px 16px 90px;
    }

    .step__hero-title {
        font-size: 1.65rem;
    }

    .btn-start {
        width: 100%;
        justify-content: center;
    }

    .step__micro {
        flex-direction: column;
        gap: var(--gap-sm);
    }

    .step__social-proof {
        font-size: 0.8rem;
    }

    .option {
        padding: 14px 16px;
    }
}

.hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hide-mobile {
        display: inline;
    }
}

/* === ORANGE ACCENT BAR (Bottom, like in ads) === */
.accent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sa-orange), var(--sa-orange-dark));
    z-index: 5;
}

/* === REGION TAG === */
.region-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--sa-orange);
    font-weight: 500;
    margin-top: var(--gap-sm);
}

.region-tag::before {
    content: '📍';
}

/* === LOADING DOTS === */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sa-orange);
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* === SUB-QUESTION (Conditional, e.g. Automatik/Manuell) === */
.sub-question {
    margin-top: var(--gap-md);
    padding: var(--gap-md);
    background: var(--sa-orange-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--sa-orange-glow);
}

.sub-question__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--gap-sm);
}

.sub-options {
    display: flex;
    gap: var(--gap-sm);
}

.sub-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-option:hover {
    border-color: var(--sa-orange);
    background: var(--sa-orange-light);
}

.sub-option--selected {
    border-color: var(--sa-orange);
    background: var(--sa-orange-light);
    color: var(--sa-orange-dark);
    font-weight: 600;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SELECT FIELD (Dropdown) === */
.form-section {
    margin-bottom: var(--gap-md);
}

.form-section__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--gap-sm);
}

.select-wrapper {
    position: relative;
}

.select-field {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-field:focus {
    outline: none;
    border-color: var(--sa-orange);
    box-shadow: 0 0 0 3px var(--sa-orange-glow);
}

.select-field.error {
    border-color: var(--error);
    animation: fieldShake 0.4s ease;
}

/* === COMPACT OPTIONS (Inline Ja/Nein) === */
.options--compact {
    display: flex;
    gap: var(--gap-sm);
}

.option--small {
    flex: 1;
    padding: 12px 16px !important;
    min-height: auto !important;
}

.option--small .option__icon {
    font-size: 1.1rem !important;
}

.option--small .option__label {
    font-size: 0.95rem !important;
}

/* === DATE INPUT === */
input[type="date"] {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
}

input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

/* Fix for empty date input placeholder color */
input[type="date"]:invalid {
    color: var(--text-tertiary);
}
