/* NUTRIX Fragebogen CSS */


.fragebogen_container {
    margin-top: -70px;
}

/* Scroll Offset für fixiertes Menü */
#pflegekraftContainer {
    scroll-margin-top: 180px; /* Desktop */
}

@media (max-width: 1200px) {
    #pflegekraftContainer {
        scroll-margin-top: 280px; /* Tablet und Mobile */
    }
}


/* Progress Container */
.pflegekraft-progress-container {
    background-color: #f9f9f9;
    padding: 20px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.pflegekraft-progress-bar {
    position: relative;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.pflegekraft-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D50A3A 0%, #ff1744 100%);
    transition: width 0.4s ease;
    width: 0%;
    border-radius: 6px;
}

.pflegekraft-progress-label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pflegekraft-progress-percent {
    font-size: 14px;
    color: #D50A3A;
    font-weight: 600;
}

/* Navigation Buttons Zentrierung */
#pflegekraftPrevBtn,
#pflegekraftNextBtn,
#pflegekraftSubmitBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Submit Button in Summary zentrieren */
#pflegekraftSubmitBtn {
    margin: 0 auto;
    background-color: #76b828 !important;
}

/* Barrierefreiheit: Focus-Styles für Buttons */
button:focus {
    outline: 2px solid #D50A3A;
    outline-offset: 2px;
}

.pflegekraft-btn-right {
    display: flex;
    justify-content: flex-end;
}

.pflegekraft-row-spacing {
    margin-top: 40px !important;
}

/* Form Container */
.pflegekraft-form-container {
    padding: 40px;
}

#pflegekraftQuestionContainer {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.pflegekraft-question {
    display: block;
    animation: fragebogenFadeIn 0.3s ease;
    width: 100%;
}


@keyframes fragebogenFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pflegekraft-question-number {
    color: #D50A3A;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.pflegekraft-question-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #444444;
    font-weight: 600;
}

.pflegekraft-question h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #444444 !important;
    font-weight: 600;
}

.pflegekraft-required-star {
    color: #D50A3A;
    margin-left: 4px;
}

/* Custom Radio/Checkbox Styling - großflächige Buttons */
.pflegekraft-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Form-group Labels zurücksetzen */
.pflegekraft-question .form-group label {
    padding-left: unset !important;
    padding-right: unset !important;
    font-size: unset !important;
    font-weight: unset !important;
    letter-spacing: unset !important;
    text-transform: unset !important;
}


.pflegekraft-options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.pflegekraft-options-smoking {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pflegekraft-smoking-row-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pflegekraft-smoking-row-2 {
    display: grid;
    grid-template-columns: 1fr;
}

.pflegekraft-option {
    position: relative;
}

.pflegekraft-option input[type="radio"],
.pflegekraft-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pflegekraft-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 0;
    min-height: 56px;
    padding-left: unset !important;
    font-size: unset !important;
    font-weight: unset !important;
    letter-spacing: unset !important;
    text-transform: unset !important;
}

.pflegekraft-option input[type="radio"]:checked + label,
.pflegekraft-option input[type="checkbox"]:checked + label {
    background-color: #f9f9f9;
    border-color: #D50A3A;
    color: #D50A3A;
    font-weight: 500;
}

.pflegekraft-option label:hover {
    border-color: #c8c8c8;
}

/* Barrierefreiheit: Focus-Styles für Radio/Checkbox */
.pflegekraft-option input[type="radio"]:focus-visible + label,
.pflegekraft-option input[type="checkbox"]:focus-visible + label {
    border-color: #c8c8c8;
    outline: 2px solid #D50A3A;
    outline-offset: 2px;
}

/* Barrierefreiheit: Keyboard-Navigation für versteckte Inputs */
.pflegekraft-option input[type="radio"]:focus,
.pflegekraft-option input[type="checkbox"]:focus {
    outline: none;
}

/* Error Message */
.pflegekraft-error-message {
    background-color: #ffebee;
    color: #D50A3A;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

/* Summary Container */
.pflegekraft-summary-container {
    padding: 40px;
}

.pflegekraft-summary-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.summary-item {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.summary-item:last-child {
    border-bottom: none !important;
}

.summary-item h4 {
    color: #D50A3A !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.edit-link {
    font-size: 13px !important;
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.edit-link:hover {
    color: #D50A3A !important;
}

/* Barrierefreiheit: Focus-Style für Links */
.edit-link:focus {
    outline: 2px solid #D50A3A;
    outline-offset: 2px;
    color: #D50A3A !important;
}

.summary-item p {
    font-size: 16px !important;
    color: #444444 !important;
    margin-bottom: 0 !important;
}

.summary-item p span {
    font-weight: 600;
}

/* Success Container */
.pflegekraft-success-container {
    padding: 60px 40px;
    text-align: center;
}

.pflegekraft-success-icon {
    width: 80px;
    height: 80px;
    background-color: #4caf50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
}

.pflegekraft-success-container h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.pflegekraft-success-container p {
    font-size: 16px;
    color: #666;
}
















/*----------------------------------------------------------*/
/* Responsive */
/*----------------------------------------------------------*/

/* Responsive - Tablet & Mobile */
@media (max-width: 768px) {
    .pflegekraft-progress-container {
        padding: 16px 20px;
    }

    .pflegekraft-form-container,
    .pflegekraft-summary-container {
        padding: 30px 20px;
    }

    .pflegekraft-question h3,
    .pflegekraft-question-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .pflegekraft-question-number {
        font-size: 13px;
    }

    .pflegekraft-option label {
        padding: 14px 18px;
        font-size: 15px;
    }

    .pflegekraft-options-row {
        grid-template-columns: 1fr;
    }

    .pflegekraft-smoking-row-1 {
        grid-template-columns: 1fr;
    }

    .pflegekraft-btn-right {
        justify-content: flex-start;
    }

    .pflegekraft-row-spacing {
        margin-top: 30px !important;
    }

    .pflegekraft-summary-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .summary-item {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }

    .summary-item h4 {
        font-size: 13px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .edit-link {
        font-size: 12px !important;
    }

    .summary-item p {
        font-size: 15px !important;
    }

    .btn-block {
        width: 100% !important;
    }

    /* Mobile: Zurück-Button Abstand nach unten */
    #pflegekraftPrevBtn {
        margin-bottom: 0 !important;
    }

    #pflegekraftNextBtn,
    #pflegekraftSubmitBtn {
        margin-bottom: 15px !important;
    }

    /* Mobile: Button-Reihenfolge umkehren */
    .pflegekraft-row-spacing {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .pflegekraft-progress-container {
        padding: 12px 16px;
    }

    .pflegekraft-form-container,
    .pflegekraft-summary-container {
        padding: 20px 16px;
    }

    .pflegekraft-question h3,
    .pflegekraft-question-title {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .pflegekraft-question-number {
        font-size: 12px;
    }

    .pflegekraft-option label {
        padding: 12px 16px;
        font-size: 14px;
    }

    .pflegekraft-row-spacing {
        margin-top: 24px !important;
    }

    .pflegekraft-progress-bar {
        height: 10px;
    }

    .pflegekraft-progress-percent {
        font-size: 13px;
    }

    .pflegekraft-summary-container h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .summary-item {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    .summary-item h4 {
        font-size: 12px !important;
    }

    .edit-link {
        font-size: 11px !important;
    }

    .summary-item p {
        font-size: 14px !important;
    }

    .form-control {
        font-size: 16px !important;
        min-height: 48px !important;
    }

    .pflegekraft-error-
    .pflegekraft-success-container h2 {
        font-size: 22px;
    }

    .pflegekraft-success-container p {
        font-size: 15px;
    }
}
 
/* Fix: Button Text Zentrierung sicherstellen */
.btn.btn-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}