/* ==========================================================================
   360 BUSINESS SOLUTIONS — BEWERBER-FUNNEL (/bewerbung)
   Corporate Identity: Dark Anthracite (#1e1e1e / #141414) + Brand Gold (#f4c400)
   Mobile-First, Accessible, High-Conversion Multi-Step Funnel
   ========================================================================== */

:root {
    --bg-main: #1e1e1e;
    --bg-deep: #141414;
    --bg-surface: #262626;
    --bg-card: #222222;
    --bg-elevated: #2d2d2d;
    --brand-yellow: #f4c400;
    --brand-yellow-hover: #ffd21a;
    --brand-yellow-solid: #d4a900;
    --brand-yellow-glow: rgba(244, 196, 0, 0.16);
    --text-primary: #ffffff;
    --text-secondary: #c8c8c8;
    --text-muted: #949494;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --error-color: #ff5c5c;
    --error-bg: rgba(255, 92, 92, 0.12);
    --success-color: #2ecc71;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-main: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(244, 196, 0, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(244, 196, 0, 0.05) 0%, transparent 45%);
    color: var(--text-primary);
    line-height: 1.55;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.funnel-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-yellow);
    box-shadow: 0 0 8px var(--brand-yellow);
    flex-shrink: 0;
}

/* Main Content */
.funnel-main {
    flex: 1;
    padding: 24px 0 56px;
}

/* 1. EINSTIEG (Hero Card) */
.hero-card {
    background: linear-gradient(165deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 28px;
}

.eyebrow-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-yellow);
    background: var(--brand-yellow-glow);
    border: 1px solid rgba(244, 196, 0, 0.3);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.65rem, 5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Vier kurze Vorteile */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-yellow-glow);
    color: var(--brand-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Vergütungshinweis im Einstieg */
.compensation-notice {
    background: rgba(244, 196, 0, 0.09);
    border: 1px solid rgba(244, 196, 0, 0.35);
    border-left: 4px solid var(--brand-yellow);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.compensation-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-yellow);
    margin-bottom: 4px;
}

.compensation-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.hero-cta-wrap {
    display: flex;
    flex-direction: column;
}

/* Buttons */
.btn-primary {
    appearance: none;
    border: none;
    background: var(--brand-yellow);
    color: #141414;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 16px 24px;
    min-height: 54px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(244, 196, 0, 0.22);
}

.btn-primary:hover {
    background: var(--brand-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(244, 196, 0, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.btn-large {
    width: 100%;
    font-size: 1.06rem;
    min-height: 58px;
}

.btn-secondary {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 15px 20px;
    min-height: 54px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.32);
}

/* 2. ABLAUF EINFACH ERKLÄREN */
.process-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    margin-bottom: 32px;
}

.section-heading {
    font-size: clamp(1.3rem, 3.8vw, 1.65rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.process-step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: #141414;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-desc {
    font-size: 0.98rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.process-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

.process-note svg {
    color: var(--brand-yellow);
    flex-shrink: 0;
    margin-top: 2px;
}

.process-cta-bottom {
    display: flex;
}

.process-cta-bottom .btn-primary {
    width: 100%;
}

/* 3. BEWERBUNGS-FUNNEL SHELL */
.funnel-section {
    scroll-margin-top: 76px;
}

.funnel-shell {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 22px 18px 26px;
    box-shadow: var(--shadow-card);
}

/* Progress Header */
.progress-wrapper {
    margin-bottom: 22px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.86rem;
}

.step-indicator {
    font-weight: 700;
    color: var(--brand-yellow);
}

.step-category {
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-yellow-solid), var(--brand-yellow));
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Funnel Step Header */
.step-question {
    font-size: clamp(1.25rem, 3.6vw, 1.55rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
}

.step-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.subquestion-block {
    border-top: 1px solid var(--border-subtle);
    padding-top: 22px;
}

.subquestion-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 4px;
}

.mt-6 { margin-top: 22px; }
.mt-8 { margin-top: 26px; }

/* Interactive Option Cards (Checkboxes & Radios) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    min-height: 58px;
    background: rgba(255, 255, 255, 0.035);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.24);
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.option-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    background: rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.checkbox-indicator {
    border-radius: 7px;
}

.radio-indicator {
    border-radius: 50%;
}

.option-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Checked state via modern :has() and fallback class */
.option-card:has(input:checked),
.option-card.is-selected {
    background: rgba(244, 196, 0, 0.11);
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 1px rgba(244, 196, 0, 0.25);
}

.option-card:has(input:focus-visible) {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 2px;
}

.option-card input:checked + .checkbox-indicator {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.option-card input:checked + .checkbox-indicator::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid #141414;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.option-card input:checked + .radio-indicator {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow);
}

.option-card input:checked + .radio-indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #141414;
}

/* Step 4: Tech Requirements Yes/No Rows */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.tech-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.yesno-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.yesno-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text-secondary);
    transition: all 0.18s ease;
}

.yesno-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.yesno-pill:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text-primary);
}

.yesno-pill:has(input:checked),
.yesno-pill.is-selected {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #141414;
}

/* Step 5: Collaboration Info Box & Mandatory Checkboxes */
.collab-infobox {
    background: rgba(244, 196, 0, 0.08);
    border: 1px solid rgba(244, 196, 0, 0.35);
    border-left: 4px solid var(--brand-yellow);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 14px 0 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.consent-checks-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consent-check-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.consent-check-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.consent-check-card:has(input:checked),
.consent-check-card.is-selected {
    background: rgba(244, 196, 0, 0.09);
    border-color: var(--brand-yellow);
}

.consent-check-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.consent-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.18s ease;
}

.consent-check-card input:checked + .consent-box {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.consent-check-card input:checked + .consent-box::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid #141414;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.consent-text {
    font-size: 0.94rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.consent-text a {
    color: var(--brand-yellow);
    text-decoration: underline;
}

/* Form Inputs & Auto-Growing Textarea */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

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

.optional-tag {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.req-star {
    color: var(--brand-yellow);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.32);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px 15px;
    min-height: 52px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-textarea {
    field-sizing: content;
    width: 100%;
    height: auto;
    min-block-size: 3lh;
    max-block-size: 10lh;
    resize: vertical;
    line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #777777;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(244, 196, 0, 0.18);
}

/* Deferred Validation (:user-invalid & aria-invalid) */
.form-input:user-invalid,
.form-input[aria-invalid="true"] {
    border-color: var(--error-color);
}

.phone-input-group {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 10px;
}

.dial-select {
    cursor: pointer;
    background-color: #181818;
}

/* Privacy Box in Step 6 */
.privacy-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.privacy-info-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
}

.privacy-info-text a {
    color: var(--brand-yellow);
    text-decoration: underline;
}

/* Validation Error Messages */
.field-error {
    margin-top: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--error-color);
    background: var(--error-bg);
    border: 1px solid rgba(255, 92, 92, 0.3);
    padding: 9px 12px;
    border-radius: 8px;
}

.error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--error-bg);
    border: 1px solid rgba(255, 92, 92, 0.4);
    color: #ffd6d6;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.error-banner[hidden],
.field-error[hidden],
.funnel-step[hidden],
.btn-secondary[hidden],
.btn-primary[hidden],
.confirmation-card[hidden] {
    display: none !important;
}

/* Honeypot hidden off-screen */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Funnel Navigation Footer */
.funnel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.funnel-nav .btn-next,
.funnel-nav .btn-submit {
    flex: 1;
}

/* 4. BESTÄTIGUNGSSEITE */
.confirmation-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(244, 196, 0, 0.45);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.success-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(244, 196, 0, 0.14);
    border: 2px solid var(--brand-yellow);
    color: var(--brand-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirmation-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
}

/* Footer */
.funnel-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-deep);
    padding: 24px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: var(--brand-yellow);
}

/* Responsive Tablet & Desktop Breakpoints */
@media (min-width: 640px) {
    .hero-card,
    .process-section,
    .funnel-shell {
        padding: 34px 32px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .options-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .yesno-group {
        width: 220px;
        flex-shrink: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}
