:root {
    --primary-color: #e63946;     /* Rot - Buttons, Hover, etc. */
    --progress-color: #2a9d8f;    /* Türkis - Progressbar separat */
    --secondary-color: #6c757d;
    --success-color: #2a9d8f;
    --background-color: #ffffff;
    --text-color: #333333;
}

.job-funnel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Überschreibe alle möglichen Browser/Theme-Defaults für Überschriften */
.job-funnel-container h1,
.job-funnel-container h2,
.job-funnel-container h3,
.job-funnel-container h4,
.job-funnel-container h5,
.job-funnel-container h6 {
    font-weight: normal !important;
    text-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.funnel-step {
    display: none;
    background: var(--background-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.funnel-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.step-title {
    font-size: 24px !important;
    font-weight: normal !important;
    color: var(--text-color) !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    margin: 0 !important;
}

/* Spezifischere Regel für h2 in step-header */
.step-header h2.step-title {
    font-size: 24px !important;
    font-weight: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.step-question {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 25px;
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
    text-transform: none;
}

.option-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0; /* Hellgrau als Standard */
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: normal !important;
    text-transform: none !important;
    position: relative;
    overflow: hidden;
}

.option-button:hover:not(:disabled):not(.loading) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.option-button:active:not(:disabled):not(.loading) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.option-button.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.option-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.option-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.option-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.option-button.loading .button-text {
    opacity: 0.3;
}

/* Spinner-Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse-Animation für aktive Buttons */
.option-button.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Erfolgs-Animation */
.option-button.success {
    animation: success-bounce 0.6s ease-in-out;
}

@keyframes success-bounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Progress-Indikator für den gesamten Funnel */
.funnel-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.funnel-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.funnel-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.funnel-loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

/* Button-Hover-Effekte verbessern */
.option-button:hover:not(:disabled):not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.option-button:active:not(:disabled):not(.loading) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Visuelles Feedback für ausgewählte Optionen */
.option-button.selected {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Smooth Transitions für alle Buttons */
.option-button,
.back-button,
.submit-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading-State für Submit-Button */
.submit-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-button.loading .button-text {
    opacity: 0.3;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: var(--progress-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Button-Gruppe */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-button {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    align-self: flex-start;
}

.back-button:hover {
    background: #5a6268;
}

/* Formular-Styling */
.form-group {
    margin-bottom: 15px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0; /* Hellgrau als Standard */
    border-radius: 6px;
    font-size: 16px;
    background: var(--background-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Rot bei Fokus */
}

#contact-form input:valid:not(:placeholder-shown),
#contact-form select:valid:not([value=""]),
#contact-form textarea:valid:not(:placeholder-shown) {
    border-color: var(--primary-color); /* Rot wenn ausgefüllt */
}

#contact-form select {
    cursor: pointer;
}

#contact-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Submit-Button - KNALLROT! */
.submit-button {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 15px 30px;
    border: none !important;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover:not(:disabled) {
    background: #d62c37 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

.submit-button:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Markierung für Pflichtfelder */
#contact-form input[required],
#contact-form select[required] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" fill="%23e63946"><circle cx="2" cy="2" r="2"/></svg>');
    background-position: right 10px top 10px;
    background-repeat: no-repeat;
}

.file-upload {
    border: 2px solid #e0e0e0 !important; /* Hellgrau wie andere Felder */
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--background-color);
}

.file-upload:hover {
    border-color: var(--primary-color) !important;
}

.file-upload label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    cursor: pointer;
}

#file-upload,
#lichtbild {
    margin: 10px 0;
    border: 2px solid #e0e0e0 !important; /* Hellgrau wie andere Felder */
    border-radius: 6px !important;
    padding: 8px !important;
    background: var(--background-color) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

#file-list li {
    padding: 8px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Lichtbild Preview Styling */
#lichtbild-preview {
    margin: 10px 0;
}

#lichtbild-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 10px 0;
}

/* Pflichtfeld-Hinweis Styling */
.required-fields-info {
    margin-top: 15px !important;
    font-size: 13px !important;
    color: #666 !important;
    text-align: center !important;
}

#required-indicator {
    color: #d63638 !important;
    font-weight: 600 !important;
}

/* Info-Text für Lichtbild */
.lichtbild-info {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
}

/* Dankesseite Styling */
.thank-you-message {
    animation: fadeIn 0.5s ease-in;
}

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

@media (max-width: 768px) {
    .job-funnel-container {
        padding: 10px;
    }
    
    .funnel-step {
        padding: 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    /* Mobile Dankesseite */
    .thank-you-message {
        padding: 40px 20px !important;
    }
    
    .thank-you-message h2 {
        font-size: 24px !important;
    }
    
    .thank-you-message p {
        font-size: 16px !important;
    }
    
    .thank-you-message div[style*="background: #fff"] {
        padding: 20px !important;
    }
} 