/* ERGO Insurance Calculator Styles */

.ergo-calc-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.ergo-calc-header {
    text-align: center;
    margin-bottom: 0;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.ergo-calc-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 10px 0;
}

.ergo-calc-subtitle {
    color: #005596;
    font-size: 1.3125rem; /* 21px bei 16px base */
    margin: 0;
    font-weight: 500;
}

/* Progress Steps */
.ergo-calc-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}









.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}










/* Form Styles */
.ergo-calc-form {
    position: relative;
}

.calc-step {
    animation: fadeIn 0.3s ease-in-out;
}

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

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 10px;
    padding: 25px;
    background: white;
    border-radius: 0;
    border: none;
}

/* Trenner zwischen form-sections (außer erste) */
/* Trenner zwischen form-sections (aber nicht nach h3) */
.form-section:not(:first-child)::before {
    content: '';
    display: block;
    height: 1px;
    background: #e2e8f0;
    margin: -25px -25px 25px -25px; /* Negative margins um padding zu kompensieren */
}

/* Entferne Trenner bei erster form-section nach h3 */
h3 + .form-section::before {
    display: none;
}

.form-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select {
    -webkit-appearance: none;
    border: 1px solid #e1e1e1;
    padding: 8px 6px;
    outline: none;
    font: 1em "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #777;
    margin: 0;
    width: 100%;
    display: block;
    margin-bottom: 20px;
    background-color: #d4d9dd21;
    border-radius: 0;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.input-wrapper {
    position: relative;
}

.input-hint {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

`0 !important;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px; /* Verhindert Schrumpfen */
    border: 2px solid #d1d5db;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px; /* Leichte vertikale Ausrichtung mit Text */
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label 

/* Premium Display */
.premium-display {
    background: #edeef0;
    color: #004c8a;
    padding: 30px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

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

.premium-card {
    background: #edeef0;
    color: #004c8a;
    padding: 30px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

.premium-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.premium-amount {
    margin-bottom: 10px;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.frequency {
    font-size: 1rem;
    opacity: 0.8;
}

.premium-details {
    opacity: 0.8;
}

/* Buttons */










.btn-outline {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-success {
    background-color: #E89B2C;
    color: white;
    border: 2px solid #E89B2C;
    font-size: 18px;
    padding: 14px 32px;
    font-weight: bold;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-download {
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-download:hover {
    background: #d97706;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Documents Section */
.documents-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 15px;
    margin-bottom: 10px;
    padding-top: 0;
}

.documents-intro {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 25px;
    color: #92400e;
    font-weight: 500;
}

.documents-list {
    margin-bottom: 30px;
}





.document-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 5px;
}

.document-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.download-icon {
    font-size: 1.2rem;
}

/* Confirmation Section */
.confirmation-section {
    background: white;
    padding: 20px;
    border-radius: 0;
    border: 2px solid #e2e8f0;
}

/* Summary Section */
.summary-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
    border: none;
}

.summary-section h4 {
    color: #005596;
    font-size: 1.3125rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.summary-content {
    background: transparent;
    padding: 0;
    border: none;
}



/* Legal Confirmations */
.legal-confirmations {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
}

.anzeigepflicht-notice {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
}

.anzeigepflicht-notice h5 {
    color: #c2410c;
    font-weight: 600;
    margin-bottom: 10px;
}

.anzeigepflicht-notice p {
    color: #9a3412;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Loading and Success States */
.loading-overlay,
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    z-index: 1000;
}

.loading-content,
.success-content {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ergo-calc-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .ergo-calc-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-actions 
    
    
    
    
    
    

    .checkbox-label {
        gap: 10px; /* Etwas weniger Gap auf Mobile */
    }

    .checkmark {
        margin-top: 1px; /* Bessere Ausrichtung auf Mobile */
    }

}

@media (max-width: 480px) {
    /* Titel ausblenden auf Mobile */
    .ergo-calc-title {
        display: none !important;
    }

    /* Progress Steps: Ohne Text, noch kleiner, dürfen nicht umbrechen */
    .ergo-calc-progress {
        flex-wrap: nowrap !important;
        gap: 5px;
        overflow-x: auto;
        padding: 5px 0;
    }

    

    

    /* Text ausblenden */
    
}


/* === Auto-patch: Visibility & final-step controls === */
.calc-step { display: none; }
#step-1 { display: block; }
.summary-section, .legal-confirmations, #submit-application, #back-step5 { display: none; }
#step-5 .summary-section,
#step-5 .legal-confirmations,
#step-5 #submit-application,
#step-5 #back-step5 { display: block; }



/* Download Progress Styling */
.download-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 0;
    border: 1px solid #e2e8f0;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: #005596;
    border-radius: 0;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.progress-text {
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-text.success {
    color: #16a34a;
    font-weight: 600;
}

.progress-text.error {
    color: #dc2626;
    font-weight: 600;
}

#download-all-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-all-wrapper {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #e6f3ff;
    border-radius: 0;
}


/* Final Checkboxes vor Buttons - V33 */
.final-checkboxes {
    margin-bottom: 20px;
}
.final-checkboxes .form-group {
    margin-bottom: 15px;
}

.final-checkboxes .checkbox-group {
    margin-bottom: 12px;
}

.final-checkboxes .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.6;
    gap: 12px; /* Abstand zwischen Checkmark und Text */
}


/* Checkbox Fehler-State (dezenter roter Schatten) */
.checkbox-group.checkbox-error {
    animation: shake 0.3s ease-in-out;
}

/* Checkbox Error: Nur roter Text + roter Checkmark Border */
.checkbox-group.checkbox-error .checkbox-label {
    color: #dc2626 !important;
}

.checkbox-group.checkbox-error .checkmark {
    border-color: #dc2626;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Fehlermeldungen für Felder */
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
    font-weight: 500;
}

input.error,
select.error,
textarea.error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Fehlermeldung für Checkboxen - DEAKTIVIERT (nur roter Text) */
.checkbox-error-message {
    display: none !important; /* Keine Fehlermeldung-Box mehr */
}

/* Mobile Optimierung für Fehlermeldungen */
@media (max-width: 768px) {
    /* Felder: Kompaktere Fehlermeldungen */
    .error-message {
        font-size: 0.8125rem; /* 13px statt 14px */
        margin-top: 3px;
        line-height: 1.3;
    }

    /* Checkboxen: Fehlermeldung unter statt daneben */
    .checkbox-error-message {
        font-size: 0.8125rem; /* 13px statt 14px */
        margin-top: 6px;
        padding-left: 32px; /* Gleicher Einzug wie Desktop */
        line-height: 1.3;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
}


/* 2-Spalten Layout für Desktop (Step 1) */
@media (min-width: 768px) {
    .ergo-calculator-step-1 .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 0;
    }

    .ergo-calculator-step-1 .form-row .form-group {
        flex: 1;
        margin-bottom: 20px;
    }

    .ergo-calculator-step-1 .form-group:not(.form-row .form-group) {
        margin-bottom: 20px;
    }
}








/* Datumsfelder - EXAKT wie Text Inputs (Straße, PLZ, Ort) */
.form-group input[type="date"],
.ergo-calculator input[type="date"] {
    /* Erbt alle Styles von .form-group input */
    /* Keine Überschreibungen - komplett identisch */
}

/* Nur Browser-spezifische Anpassungen */
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.ergo-calculator input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.ergo-calculator input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8;
}

/* Textarea Focus */
textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}

/* Checkbox Text bleibt neben Checkmark bei Zeilenumbruch */
.checkbox-label .checkbox-text {
    flex: 1;
    padding-top: 2px;
    min-width: 0; /* Erlaubt Text-Wrapping innerhalb des Containers */
}


/* Mobile: Kleinere Checkbox Labels */
@media (max-width: 768px) {
    .checkbox-label {
        font-size: 0.8125rem !important; /* 13px - etwas kleiner auf Mobile */
    }
}


/* Comprehensive Focus Override - überschreibt Enfold */
input:focus,
textarea:focus,
select:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}


/* Checkbox Text - Force normal weight */
.checkbox-label span,
.checkbox-label {
    font-weight: 400 !important;
}


/* Keine runden Ecken - überall eckig */
.calculator-container,
.calc-step,
.step-content,
.form-group,
.form-section,
.document-container,


/* Checkmark bleibt eckig */
.checkmark {
    border-radius: 0 !important;
}


/* Success State - Zentriert im Viewport */
#success-state.success-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 !important;
    max-width: 600px;
    width: 90%;
}

.success-content {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 20px;
}


/* Checkboxen explizit versteckt halten */
.form-group input[type="checkbox"],
.checkbox-group input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: inline !important;
}


/* Step 5 - Checkbox Spacing */
#step-5 .checkbox-label {
    gap: 14px; /* Mehr Abstand in Step 5 */
    margin-bottom: 16px; /* Abstand zwischen Checkboxen */
}

#step-5 .checkbox-group {
    margin-bottom: 16px;
}

#step-5 .checkmark {
    margin-top: 3px; /* Bessere vertikale Ausrichtung mit mehrzeiligem Text */
}

/* Mobile: Step 5 Checkboxen */
@media (max-width: 768px) {
    #step-5 .checkbox-label {
        gap: 12px;
        margin-bottom: 14px;
    }

    #step-5 .checkbox-error-message {
        margin-top: 8px;
        margin-bottom: 12px;
    }
}

/* Smooth button color transitions */
.calc-actions 

/* Secondary button style (less prominent) */
.calc-actions 

.calc-actions 

/* Overlay Styles */
.ergo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ergo-overlay-content {
    background: white;
    padding: 40px;
    border-radius: 0;
    text-align: center;
    max-width: 400px;
}

.ergo-overlay-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 24px;
}

.ergo-overlay-content p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Spinner Animation */
.ergo-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Checkmark */
.ergo-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.ergo-success-checkmark svg {
    width: 100%;
    height: 100%;
}

.ergo-success-checkmark circle {
    stroke: #4CAF50;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ergo-success-checkmark path {
    stroke: #4CAF50;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Reload Overlay - White Background like Success */
/* ============================================================================
   RELOAD LOADING OVERLAY - "Gleich kannst du neu berechnen"
   ============================================================================ */

#ergo-reload-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: center;
}

#ergo-reload-loading-overlay .ergo-overlay-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

#ergo-reload-loading-overlay h3 {
    color: #005596;
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

#ergo-reload-loading-overlay p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

#ergo-reload-loading-overlay .ergo-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #005596;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#ergo-reload-loading-overlay .ergo-overlay-content {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* Ensure Step 4 confirmation checkbox has same styling as Step 5 */
.confirmation-checkbox-wrapper.final-checkboxes {
    margin: 24px 0;
    padding: 0 20px;
}

.confirmation-checkbox-wrapper.final-checkboxes .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.6;
}

.confirmation-checkbox-wrapper.final-checkboxes .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}










/* Focus Styles für alle Checkboxen (Step 4 + Step 5) */
.checkbox-label:focus-within .checkmark,
.confirmation-checkbox-wrapper .checkbox-label:focus-within .checkmark,
.final-checkboxes .checkbox-label:focus-within .checkmark {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

/* Keyboard Focus (Tab Navigation) */
input[type="checkbox"]:focus-visible ~ .checkmark {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}


/* EINHEITLICHE CHECKMARK STYLES - Step 4 + Step 5 */
.checkbox-label .checkmark,
.confirmation-checkbox-wrapper .checkbox-label .checkmark,
.final-checkboxes .checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 0;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

/* Hover */
.checkbox-label:hover .checkmark,
.confirmation-checkbox-wrapper .checkbox-label:hover .checkmark,
.final-checkboxes .checkbox-label:hover .checkmark {
    border-color: #0066cc;
}

/* Checked State */
.checkbox-label input[type="checkbox"]:checked ~ .checkmark,
.confirmation-checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark,
.final-checkboxes input[type="checkbox"]:checked ~ .checkmark {
    background-color: #0066cc;
    border-color: #0066cc;
}

/* Checkmark Haken (CSS Border) - EINHEITLICH */



/* Checkbox Error Step 4: Nur roter Text + roter Checkmark Border */
.confirmation-checkbox-wrapper.checkbox-error .checkbox-label {
    color: #dc2626 !important;
}

.confirmation-checkbox-wrapper.checkbox-error .checkmark {
    border-color: #dc2626 !important;
}

.confirmation-checkbox-wrapper .checkbox-error-message {
    display: none !important; /* Keine Fehlermeldung-Box mehr */
}


/* UNICODE HAKEN \2713 FÜR ALLE CHECKBOXEN (Step 4 + Step 5) */
.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after,
.confirmation-checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark::after,
.final-checkboxes input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* FIX: Step 5 .checkbox-group auf column setzen */
/* Verhindert dass Label und Liste nebeneinander stehen */
#ergo-calculator-container #step-5 .final-checkboxes .checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* FIX: Step 5 Confirmation Points - Liste untereinander anzeigen */
/* Hohe Spezifität durch ID-Selektor - kein !important nötig */
#ergo-calculator-container .final-checkboxes ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0 0 35px;
    display: block;
}

#ergo-calculator-container .final-checkboxes ul li {
    display: list-item;
    margin-bottom: 8px;
    line-height: 1.8;
    padding-left: 5px;
}

/* Mobile: Weniger Einzug */
@media (max-width: 768px) {
    #ergo-calculator-container .final-checkboxes ul {
        margin-left: 20px;
        padding-left: 15px;
    }
}





    .step-number {
        font-size: 20px;
    }

    .step-title {
        font-size: 10px;
    }
}



    .step-number {
        font-size: 16px;
    }

    .step.completed .step-number::before {
        font-size: 20px;
    }
}

/* ============================================================================
   HEADER - OHNE TITEL
   ============================================================================ */

.ergo-calc-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.ergo-calc-title {
    display: none !important;
}




@media (max-width: 768px) {
    .ergo-calc-header {
        display: none !important;
    }
}

/* ============================================================================
   STEP NAVIGATION - PFEIL/CHEVRON DESIGN (KORREKT & RESPONSIV)
   ============================================================================ */

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 1000px;
    overflow: visible;
}

/* Einzelner Step - Pfeil/Chevron Form */
.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 80px;
    padding: 12px 30px 12px 15px;
    background-color: #edeef0;
    color: #9e9e9e;
    font-size: 11px;
    font-weight: normal;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: not-allowed;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
    box-sizing: border-box;
}

/* Erster Step - keine linke Einbuchtung */
.step:first-child {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    padding-left: 12px;
}

/* Letzter Step - keine rechte Spitze */
.step:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
    padding-right: 12px;
}

/* Step Number */
.step-number {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}

/* Step Title */
.step-title {
    font-size: 10px;
    line-height: 1.1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AKTIVER STEP - Blau */
.step.active {
    background-color: #004c8a;
    color: white;
    font-weight: bold;
    z-index: 3;
    cursor: default;
}

.step.active .step-number {
    color: white;
}

.step.active .step-title {
    color: white;
    font-weight: bold;
}

/* ABGESCHLOSSENER STEP - Blau mit NUR Checkmark */
.step.completed {
    background-color: #004c8a;
    color: white;
    cursor: pointer;
    z-index: 2;
}

/* Zahl komplett verstecken, nur Häkchen zeigen */
.step.completed .step-number {
    font-size: 0;
    line-height: 0;
}

.step.completed .step-number::before {
    content: '\2713';
    font-size: 32px;
    line-height: 1;
    display: block;
}

.step.completed .step-title {
    color: white;
}

/* KEIN HOVER EFFEKT */
.step.completed:hover {
    background-color: #004c8a;
}

/* INAKTIVE STEPS */
.step:not(.active):not(.completed) {
    background-color: #edeef0;
    color: #9e9e9e;
    cursor: not-allowed;
    z-index: 1;
}

.step:not(.active):not(.completed) .step-number {
    color: #9e9e9e;
}

.step:not(.active):not(.completed) .step-title {
    color: #9e9e9e;
}

/* ============================================================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================================================ */

@media (max-width: 1024px) {
    .step {
        height: 80px;
        padding: 10px 25px 10px 12px;
        clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    }

    .step:first-child {
        clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    }

    .step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
    }

    .step-number {
        font-size: 20px;
    }

    .step-title {
        font-size: 9px;
    }

    .step.completed .step-number::before {
        font-size: 28px;
    }
}

/* ============================================================================
   MOBILE RESPONSIVE - NUR ZAHLEN/HÄKCHEN (< 768px)
   ============================================================================ */

@media (max-width: 768px) {
    .step-indicator {
        padding: 0 5px;
    }

    .step {
        height: 55px;
        padding: 8px 15px 8px 8px;
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
    }

    .step:first-child {
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
        padding-left: 8px;
    }

    .step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
        padding-right: 8px;
    }

    /* Schrift komplett ausblenden */
    .step-title {
        display: none;
    }

    .step-number {
        font-size: 18px;
        margin-bottom: 0;
    }

    .step.completed .step-number::before {
        font-size: 22px;
    }
}

/* ============================================================================
   SEHR KLEINE MOBILE (< 480px)
   ============================================================================ */

@media (max-width: 480px) {
    .step-indicator {
        padding: 0 3px;
    }

    .step {
        height: 48px;
        padding: 6px 12px 6px 6px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    }

    .step:first-child {
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    }

    .step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
    }

    .step-number {
        font-size: 16px;
    }

    .step.completed .step-number::before {
        font-size: 20px;
    }
}

/* ============================================================================
   EXTRA KLEINE MOBILE (< 360px)
   ============================================================================ */

@media (max-width: 360px) {
    .step {
        height: 42px;
        padding: 5px 10px 5px 5px;
        clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
    }

    .step:first-child {
        clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    }

    .step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
    }

    .step-number {
        font-size: 14px;
    }

    .step.completed .step-number::before {
        font-size: 18px;
    }
}

/* ============================================================================
   BUTTON SYSTEM - KLARE HIERARCHIE
   ============================================================================ */

/* BASE BUTTON STYLES */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
    min-height: 48px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 🔵 PRIMÄR BUTTONS - Blau (Weiter Buttons Steps 1-4) */
.btn-primary {
    background-color: #005596;
    color: white;
    border: 2px solid #005596;
}

.btn-primary:hover:not(:disabled) {
    background-color: #004477;
    border-color: #004477;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 85, 150, 0.2);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 85, 150, 0.2);
}

/* 🟠 CALL-TO-ACTION - Orange (NUR "Antrag absenden" in Step 5) */
.btn-cta,
.btn-submit {
    background-color: #E89B2C;
    color: white;
    border: 2px solid #E89B2C;
    font-size: 18px;
    padding: 14px 32px;
    font-weight: bold;
}

.btn-cta:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    background-color: #d18a1f;
    border-color: #d18a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 155, 44, 0.3);
}

.btn-cta:active:not(:disabled),
.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(232, 155, 44, 0.3);
}

/* ⚪ SEKUNDÄR BUTTONS - Grau (Zurück Buttons) */
.btn-secondary,
.btn-back {
    background-color: #edeef0;
    color: #9e9e9e;
    border: 2px solid #edeef0;
}

.btn-secondary:hover:not(:disabled),
.btn-back:hover:not(:disabled) {
    background-color: #d8d9db;
    border-color: #d8d9db;
    color: #7a7a7a;
}

.btn-secondary:active:not(:disabled),
.btn-back:active:not(:disabled) {
    background-color: #c8c9cb;
}

/* \1F4C4 DOWNLOAD BUTTONS - Weiß mit blauem Border */
.btn-download {
    background-color: white;
    color: #005596;
    border: 2px solid #005596;
}

.btn-download:hover:not(:disabled) {
    background-color: #f0f7ff;
    border-color: #004477;
    color: #004477;
}

.btn-download:active:not(:disabled) {
    background-color: #e6f2ff;
}

/* Download Icon */
.btn-download::before {
    content: '⬇';
    font-size: 16px;
    margin-right: 4px;
}

/* ============================================================================
   ALERT BOXES SYSTEM
   ============================================================================ */

.alert-box {
    padding: 15px 20px;
    border-radius: 0;
    margin: 15px 0;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-box::before {
    font-size: 20px;
    flex-shrink: 0;
}

/* ℹ️ INFO - Hellblau */
.alert-info {
    background-color: #E6F2FF;
    border-color: #005596;
    color: #003d6b;
}

.alert-info::before {
    content: 'ℹ️';
}

/* \26A0 WARNING - Hellorange */
.alert-warning {
    background-color: #FFF4E6;
    border-color: #E89B2C;
    color: #8a5a00;
}

.alert-warning::before {
    content: '\26A0';
}

/* \274C ERROR - Hellrot */
.alert-error {
    background-color: #FFE6E6;
    border-color: #dc2626;
    color: #7f1d1d;
}

.alert-error::before {
    content: '\274C';
}

/* \2705 SUCCESS - Hellgrün */
.alert-success {
    background-color: #E6F9E6;
    border-color: #16a34a;
    color: #14532d;
}

.alert-success::before {
    content: '\2705';
}

/* ============================================================================
   SEPA INFO BOX (als INFO Alert)
   ============================================================================ */

.sepa-info {
    background-color: #E6F2FF;
    border: 1px solid #005596;
    border-left: 4px solid #005596;
    border-radius: 0;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #003d6b;
}

/* ============================================================================
   ERROR MESSAGES
   ============================================================================ */

/* ============================================================================
   ERROR MESSAGES - VEREINHEITLICHT
   ============================================================================ */

/* Basis-Styling für ALLE Error-Messages */
.error-message {
    background-color: #FFE6E6;
    border: 1px solid #dc2626;
    border-left: 4px solid #dc2626;
    border-radius: 0;
    padding: 10px 15px;
    margin-top: 8px;
    font-size: 13px;
    color: #7f1d1d;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* Icon für ALLE Error-Messages */
.error-message::before {
    content: '\26A0';
    font-size: 16px;
    flex-shrink: 0;  /* Verhindert Schrumpfen des Icons */
    margin-right: 8px;  /* Abstand zwischen Icon und Text */
}

/* Checkbox-Group: Versteckt per default */
.checkbox-group .error-message {
    display: none;
}

/* Checkbox-Group: Zeige bei Error */
.checkbox-group.error .error-message {
    display: flex;
    align-items: flex-start;  /* Oben ausrichten bei mehrzeiligem Text */
}

/* Checkbox-Group: Kleineres Icon und weniger Padding */
.checkbox-group .error-message::before {
    font-size: 14px;
}

.checkbox-group .error-message {
    padding: 10px 12px;  /* Weniger Padding als normale Felder */
}

/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-cta,
    .btn-submit {
        font-size: 16px;
        padding: 12px 24px;
    }

    .step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .step-actions .btn {
        width: 100%;
    }

    .alert-box {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 42px;
    }

    .btn-cta,
    .btn-submit {
        font-size: 15px;
        padding: 11px 20px;
    }
}


/* ============================================================================
   STEP 4 - INTRO TEXT (ORANGE)
   ============================================================================ */

.download-intro-text {
    background-color: #fff3e0;
    border-left: 4px solid #E89B2C;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 14px;
    color: #7c4a00;
    line-height: 1.5;
}


/* ============================================================================
   STEP 4 - DOWNLOAD ALL BUTTON (BLAU)
   ============================================================================ */

.btn-download-all {
    background-color: #005596;
    color: white;
    border: 2px solid #005596;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    width: 100%;
    max-width: 400px;
}

.btn-download-all::before {
    content: '\1F4C4';
    font-size: 20px;
}

.btn-download-all.downloaded::before {
    content: '\2713';
    font-size: 24px;
}

.btn-download-all:hover:not(:disabled) {
    background-color: #004477;
    border-color: #004477;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 85, 150, 0.2);
}

.btn-download-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ============================================================================
   STEP 4 - MOBILE: NUR DOWNLOAD BUTTONS AUSBLENDEN
   ============================================================================ */

@media (max-width: 768px) {
    
}


/* ============================================================================
   STEP 4 - DESKTOP: PDF ICON STATT BUTTON
   ============================================================================ */

@media (min-width: 769px) {
    

    

    /* Hide text */
    

    /* PDF Icon Form */
    

    

    
}


/* ============================================================================
   CHECKBOX ERROR MESSAGES
   ============================================================================ */

.checkbox-group {
    position: relative;
    margin-bottom: 15px;
}

.checkbox-group.error .checkbox-label {
    color: #dc2626;
}

.checkbox-group.error .checkmark {
    border-color: #dc2626 !important;
}





/* Premium Display - Alle Texte und Zahlen #004c8a */
.premium-display *,
.premium-card * {
    color: #004c8a !important;
}

.premium-display .premium-amount,
.premium-card .premium-amount {
    color: #004c8a !important;
}

.premium-display .premium-label,
.premium-card .premium-label {
    color: #004c8a !important;
}



/* ============================================================================
   ZURÜCK BUTTONS - Grau Style
   ============================================================================ */

#back-step2,
#back-step3,
#back-step4,
#back-step5 {
    background: #edeef0;
    color: #9e9e9e;
    border: 2px solid #edeef0;
}

#back-step2:hover,
#back-step3:hover,
#back-step4:hover,
#back-step5:hover {
    background: #d8d9db;
    color: #7a7a7a;
    border: 2px solid #d8d9db;
}

#back-step2:focus,
#back-step3:focus,
#back-step4:focus,
#back-step5:focus {
    background-color: #edeef0;
    color: #9e9e9e;
    border: 2px solid #edeef0;
    outline: none;
}

#back-step2:active,
#back-step3:active,
#back-step4:active,
#back-step5:active {
    background: #c8c9cb;
    color: #7a7a7a;
    border: 2px solid #c8c9cb;
}



.btn-success:hover:not(:disabled) {
    background-color: #d18a1f;
    border-color: #d18a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 155, 44, 0.3);
}

.btn-success:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(232, 155, 44, 0.3);
}

@media (max-width: 768px) {
    .anzeigepflicht-notice {
        padding: 12px;
    }

    .anzeigepflicht-notice h5 {
        font-size: 0.9375rem;
    }

    .anzeigepflicht-notice p {
        font-size: 0.8125rem;
    }

    .final-checkboxes {
        margin-bottom: 15px;
    }

    .final-checkboxes .form-group {
        margin-bottom: 12px;
    }
}

/* Summary Grid - Kompakt & Modern */
.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Summary Section - Wie Steps 1-4 */
.summary-grid .summary-section {
    background: white;
    padding: 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 0;
}

/* Trenner zwischen Summary Sections (außer erste) */
.summary-grid .summary-section:not(:first-child)::before {
    content: '';
    display: block;
    height: 1px;
    background: #e2e8f0;
    margin: -20px -20px 20px -20px;
}

.summary-grid .summary-section h5 {
    color: #005596;
    font-size: 1.125rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.summary-grid .summary-section p {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.summary-grid .summary-section p:last-child {
    margin-bottom: 0;
}

.summary-grid .summary-section p strong {
    color: #005596;
    font-weight: 600;
    display: inline-block;
    min-width: 180px;
}

/* Summary Legal - Kompakt */
.summary-legal {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
}

.summary-legal h4 {
    color: #005596;
    font-size: 1.125rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.summary-legal p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.digital-signature-compact {
    margin-top: 15px;
    padding: 12px;
    background: transparent;
    border-left: 3px solid #64748b;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
}

.digital-signature-compact strong {
    color: #475569;
    font-weight: 600;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .summary-grid .summary-section {
        padding: 15px;
    }

    .summary-grid .summary-section:not(:first-child)::before {
        margin: -15px -15px 15px -15px;
    }

    .summary-grid .summary-section h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .summary-grid .summary-section p {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }

    .summary-grid .summary-section p strong {
        display: block;
        min-width: auto;
        margin-bottom: 2px;
    }

    .summary-legal {
        padding: 15px;
    }

    .summary-legal h4 {
        font-size: 1rem;
    }

    .digital-signature-compact {
        padding: 10px;
        font-size: 0.8125rem;
    }
}

/* Document Item - PDF Icon rechts */
.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.document-item:hover {
    background: #e9ecef;
    border-color: #005596;
}

.document-item .document-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.document-item .document-title {
    color: #005596;
    font-weight: 600;
    font-size: 16px;
}

.document-item .document-description {
    color: #666;
    font-size: 14px;
}

/* PDF Icon - Weiß mit blauem Border und PDF Text - RECHTS */
.document-item .pdf-icon {
    width: 50px;
    height: 60px;
    background: white;
    border: 2px solid #005596;
    border-radius: 0;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

/* Gefaltete Ecke oben rechts */
.document-item .pdf-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #005596 transparent transparent;
}

/* PDF Text unten im Icon */
.document-item .pdf-icon::after {
    content: 'PDF';
    color: #005596;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .document-item {
        padding: 12px;
    }

    .document-item .pdf-icon {
        width: 40px;
        height: 50px;
        padding-bottom: 6px;
    }

    .document-item .pdf-icon::before {
        border-width: 0 12px 12px 0;
    }

    .document-item .pdf-icon::after {
        font-size: 10px;
    }

    .document-item .document-title {
        font-size: 14px;
    }

    .document-item .document-description {
        font-size: 12px;
    }
}



/* ============================================
   LEISTUNGSÜBERSICHT (Performance Tabs)
   ============================================ */

/* Container - optisch mit Beitragsanzeige verbunden */
.performance-tabs-container {
    width: 100%;
    margin-top: -1px; /* Verbindet sich mit premium-display */
    border: 1px solid #ddd;
    border-radius: 0; /* Eckig wie gewünscht */
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Navigation (die beiden Buttons) */
.performance-tabs-nav {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

/* Einzelner Tab-Button */
.performance-tab-link {
    flex: 1;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #666;
    transition: all 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
}

/* Hover für inaktiven Tab */
.performance-tab-link:not(.is-active):hover {
    background-color: #e9ecf0;
    color: #333;
}

/* Aktiver Tab - verwendet eure Primärfarbe */
.performance-tab-link.is-active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    background-color: #ffffff;
}

/* Container für den Inhalt */
.performance-tab-content {
    padding: 20px;
    display: none;
    animation: fadeInTab 0.3s ease;
}

/* Aktiver Inhalt */
.performance-tab-content.is-active {
    display: block;
}

/* Sektionen innerhalb eines Tabs */
.tab-section {
    margin-bottom: 18px;
}

.tab-section:last-child {
    margin-bottom: 0;
}

.tab-section strong {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 8px;
    display: inline-block;
}

.tab-section ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0 0;
}

.tab-section ul li {
    padding: 6px 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Fußnote im "Hinweise"-Tab */
.tab-footer-note {
    font-size: 0.85em;
    color: #777;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    font-style: italic;
}

/* Fade-In-Animation */
@keyframes fadeInTab {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive: Kleinere Schrift auf mobilen Geräten */
@media (max-width: 768px) {
    .performance-tab-link {
        font-size: 14px;
        padding: 12px 8px;
    }

    .performance-tab-content {
        padding: 15px;
    }

    .tab-section ul li {
        font-size: 0.9em;
    }
}

/* ============================================
   Step 4 Checkbox Error State
   ============================================ */

/* Error state for checkbox label */
.checkbox-label.error {
    color: #dc2626;
}

.checkbox-label.error .checkmark {
    border-color: #dc2626;
    background-color: #fee;
}

/* Field hint styling (matches other form fields) */
.field-hint {
    font-size: 13px;
    color: #dc2626;
    line-height: 1.4;
    margin-top: 8px;
}

/* Mobile responsiveness for hint */
@media (max-width: 768px) {
    .field-hint {
        font-size: 12px;
        line-height: 1.3;
        padding-left: 24px !important;
    }

    .confirmation-checkbox-wrapper {
        padding: 0 10px !important;
    }
}

@media (max-width: 480px) {
    .field-hint {
        font-size: 11px;
        padding-left: 20px !important;
    }
}

/* Verstecke Download-Bestätigungs-Checkbox (wird automatisch aktiviert) */
.ergo-calc-wrapper #hat_dokumente_heruntergeladen {
    display: none !important;
}

.ergo-calc-wrapper .confirmation-checkbox-wrapper label[for="hat_dokumente_heruntergeladen"] {
    display: none !important;
}


/* ============================================================================
   ERGO LOGO IN PREMIUM CARD
   ============================================================================ */

.ergo-logo-container {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 8px;
    padding-top: 8px;
}

.ergo-logo-image {
    display: block;
    max-width: 100px;
    height: auto;
    margin: 0 auto;
    opacity: 0.9;  /* Leicht transparent = weniger dominant */
}

/* Responsive */
@media (max-width: 768px) {
    .ergo-logo-image {
        max-width: 85px;
    }
}

@media (max-width: 480px) {
    .ergo-logo-image {
        max-width: 70px;
    }
}


/* ============================================
   FOOTER FIX - v244
   ============================================
   Problem 1: Auf Seiten mit Advanced Layout Builder ist der Footer
   außerhalb von #wrap_all, wodurch die enfold_child.css
   Regel (#top #wrap_all .footer_color h3) nicht greift.

   Problem 2: Font-Weight der Footer-Überschriften wird von
   600 auf 300 überschrieben.

   Lösung: Füge spezifischere Selektoren hinzu die auf beide
   Strukturen passen, OHNE !important zu verwenden.
   Dies respektiert die Child-Theme Hierarchie.
   ============================================ */

/* Fix 1: Text-Transform für Footer Widgets
   Spezifität: 0,0,3,1 (höher als .widgettitle = 0,0,1,0)
   Aber niedriger als Child-Theme wenn #wrap_all vorhanden ist */
#top #footer .widgettitle,
#top .footer_color .widgettitle,
body #footer h3.widgettitle {
    text-transform: none;
}

/* Fix 2: Font-Weight für Footer-Überschriften
   Verhindere dass Plugin den font-weight überschreibt
   Spezifität: 0,0,2,1 */
#footer .widgettitle,
#footer h3.widgettitle {
    font-weight: 300 !important;
}

/* Fix 3: Responsive Layout für Footer-Spalten
   Stelle sicher dass die Spalten auf Mobile umbrechen */
@media only screen and (max-width: 767px) {
    #footer .flex_column {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        float: none;
        display: block;
    }
}

/* Fix 4: Tablet Layout */
@media only screen and (min-width: 768px) and (max-width: 989px) {
    #footer .flex_column.av_one_third {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        float: none;
        display: block;
    }
}
