/* Onboarding Modal Styles */

/* Modal Overlay & Container */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onboarding-modal.active {
    display: flex;
    opacity: 1;
}

.onboarding-modal.closing {
    opacity: 0;
}

.onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.onboarding-container {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    height: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Dark Mode */
:root[data-theme="dark"] .onboarding-container {
    background: #1c1c1e;
    color: #ffffff;
}

/* Steps */
.onboarding-step {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 20px 0;
}

.onboarding-step.active {
    display: flex;
}

/* Step 2, 3, 4 und 5 mit mehr Inhalt - oben ausrichten */
#step2,
#step3,
#step4,
#step5 {
    justify-content: flex-start;
    padding-top: 40px;
}

.onboarding-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Blaufärbung für #2a5298 */
    filter: brightness(0) saturate(100%) invert(26%) sepia(67%) saturate(1511%) hue-rotate(199deg) brightness(92%) contrast(91%);
}

:root[data-theme="dark"] .onboarding-icon img {
    /* Hellere Blaufärbung für Dark Mode */
    filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(773%) hue-rotate(181deg) brightness(96%) contrast(88%);
}

/* Success Icon (Checkmark) */
.onboarding-icon-success img {
    /* Blaufärbung für #2a5298 */
    filter: brightness(0) saturate(100%) invert(26%) sepia(67%) saturate(1511%) hue-rotate(199deg) brightness(92%) contrast(91%);
}

:root[data-theme="dark"] .onboarding-icon-success img {
    /* Hellere Blaufärbung für Dark Mode */
    filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(773%) hue-rotate(181deg) brightness(96%) contrast(88%);
}

/* FontAwesome Icons */
.onboarding-icon-fontawesome i {
    font-size: 100px;
    color: #2a5298;
}

:root[data-theme="dark"] .onboarding-icon-fontawesome i {
    color: #5b8bc4;
}

.onboarding-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1c1c1e;
}

:root[data-theme="dark"] .onboarding-title {
    color: #ffffff;
}

.onboarding-description {
    font-size: 18px;
    line-height: 1.6;
    color: #3a3a3c;
    margin: 0 0 20px 0;
    max-width: 520px;
}

:root[data-theme="dark"] .onboarding-description {
    color: #aeaeb2;
}

/* Privacy Details */
.privacy-details {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
    text-align: left;
    margin-top: 10px;
}

:root[data-theme="dark"] .privacy-details {
    background: #2c2c2e;
}

.privacy-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #2a5298;
    margin: 0 0 16px 0;
}

:root[data-theme="dark"] .privacy-subtitle {
    color: #5b8bc4;
}

.privacy-details p {
    font-size: 15px;
    line-height: 1.6;
    color: #3a3a3c;
    margin: 0 0 12px 0;
}

.privacy-details p:last-child {
    margin-bottom: 0;
}

:root[data-theme="dark"] .privacy-details p {
    color: #aeaeb2;
}

/* Terms Box */
.terms-scrollbox {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
    max-width: 520px;
    width: 100%;
}

:root[data-theme="dark"] .terms-scrollbox {
    background: #2c2c2e;
}

.terms-scrollbox h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2a5298;
    margin: 0 0 8px 0;
}

:root[data-theme="dark"] .terms-scrollbox h3 {
    color: #5b8bc4;
}

.terms-scrollbox h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1e;
    margin: 20px 0 10px 0;
}

:root[data-theme="dark"] .terms-scrollbox h4 {
    color: #ffffff;
}

.terms-scrollbox p {
    margin: 0 0 12px 0;
    color: #3a3a3c;
    font-size: 14px;
    line-height: 1.6;
}

:root[data-theme="dark"] .terms-scrollbox p {
    color: #aeaeb2;
}

.terms-scrollbox ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.terms-scrollbox li {
    color: #3a3a3c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

:root[data-theme="dark"] .terms-scrollbox li {
    color: #aeaeb2;
}

.terms-scrollbox strong {
    font-weight: 600;
    color: #1c1c1e;
}

:root[data-theme="dark"] .terms-scrollbox strong {
    color: #ffffff;
}

/* Email Input Container */
.email-input-container {
    width: 100%;
    max-width: 450px;
    margin-top: 10px;
}

.email-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1c1c1e;
    margin-bottom: 10px;
}

:root[data-theme="dark"] .email-label {
    color: #ffffff;
}

.email-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 2px solid #d1d1d6;
    border-radius: 12px;
    background: #ffffff;
    color: #1c1c1e;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.email-input::placeholder {
    color: #aeaeb2;
}

.email-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

:root[data-theme="dark"] .email-input {
    background: #2c2c2e;
    color: #ffffff;
    border-color: #48484a;
}

:root[data-theme="dark"] .email-input::placeholder {
    color: #636366;
}

:root[data-theme="dark"] .email-input:focus {
    border-color: #5b8bc4;
    box-shadow: 0 0 0 4px rgba(91, 139, 196, 0.2);
}

.email-notice {
    font-size: 13px;
    color: #86868b;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

:root[data-theme="dark"] .email-notice {
    color: #636366;
}

/* Theme Selection */
.theme-selection {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
    max-width: 500px;
}

.theme-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px solid #d1d1d6;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

:root[data-theme="dark"] .theme-option {
    background: #2c2c2e;
    border-color: #48484a;
}

.theme-option:hover {
    border-color: #2a5298;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.15);
}

:root[data-theme="dark"] .theme-option:hover {
    border-color: #5b8bc4;
}

.theme-option.selected {
    border-color: #2a5298;
    background: rgba(42, 82, 152, 0.05);
}

:root[data-theme="dark"] .theme-option.selected {
    border-color: #5b8bc4;
    background: rgba(91, 139, 196, 0.1);
}

.theme-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #2a5298;
    transition: transform 0.2s ease;
}

:root[data-theme="dark"] .theme-icon {
    color: #5b8bc4;
}

.theme-option:hover .theme-icon {
    transform: scale(1.1);
}

.theme-label {
    font-size: 18px;
    font-weight: 500;
    color: #1c1c1e;
}

:root[data-theme="dark"] .theme-label {
    color: #ffffff;
}

.theme-checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #2a5298;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

:root[data-theme="dark"] .theme-checkmark {
    background: #5b8bc4;
}

.theme-option.selected .theme-checkmark {
    display: flex;
}

.terms-acceptance {
    display: flex;
    align-items: center;
}

.terms-acceptance label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #1c1c1e;
}

:root[data-theme="dark"] .terms-acceptance label {
    color: #ffffff;
}

.terms-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Navigation Buttons */
.onboarding-navigation {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.onboarding-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
}

.onboarding-btn span {
    display: block;
    color: white;
}

/* Previous Button - Secondary Style */
.onboarding-btn-prev {
    background: #8e8e93;
    display: none; /* Standardmäßig versteckt beim ersten Schritt */
}

.onboarding-btn-prev:hover {
    background: #636366;
}

/* Next Button - Primary Style with your colors */
.onboarding-btn-next {
    background: #2a5298;
}

.onboarding-btn-next:hover {
    background: #1e3d6f;
}

/* Disabled State */
.onboarding-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.onboarding-btn-next:disabled:hover {
    background: #2a5298;
}

/* Button Spinner */
.onboarding-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: onboarding-spinner-rotate 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes onboarding-spinner-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hide previous button on first step (handled by JS) */
.onboarding-btn-prev[style*="display: none"] {
    display: none !important;
}

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

.onboarding-step.active .onboarding-title,
.onboarding-step.active .onboarding-description {
    animation: fadeIn 0.5s ease;
}

/* Scrollbar Styling */
.terms-scrollbox::-webkit-scrollbar {
    width: 8px;
}

.terms-scrollbox::-webkit-scrollbar-track {
    background: transparent;
}

.terms-scrollbox::-webkit-scrollbar-thumb {
    background: #c7c7cc;
    border-radius: 4px;
}

:root[data-theme="dark"] .terms-scrollbox::-webkit-scrollbar-thumb {
    background: #48484a;
}

.terms-scrollbox::-webkit-scrollbar-thumb:hover {
    background: #aeaeb2;
}

:root[data-theme="dark"] .terms-scrollbox::-webkit-scrollbar-thumb:hover {
    background: #636366;
}

