/* assets/css/overthinking-analysis.css */

/* Grund-Reset und Dark Theme Farben */
#overthinking-analysis-app {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Wissenschaftlich-modern */
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden; /* Für sanfte Übergänge */
    position: relative;
    box-sizing: border-box; /* Wichtig für responsives Layout */
}

/* Start-Screen und Premium-Optionen */
#premium-not-purchased, #premium-access-options {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 1px solid rgba(255, 163, 90, 0.3); /* rgba von #ffa35a */
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
#premium-not-purchased.active, #premium-access-options.active {
    opacity: 1;
    transform: translateY(0);
}
#premium-not-purchased h2, #premium-access-options h2 {
    color: #ffa35a;
    font-size: 2em;
    margin-bottom: 0.5em;
}
#premium-not-purchased p, #premium-access-options p {
    color: #eee;
    margin-bottom: 1.5em;
    line-height: 1.6;
}
#premium-not-purchased .cta-button, #premium-access-options .cta-button {
    margin: 0.5rem auto;
    display: block;
    width: 80%; /* Etwas schmaler als 100% für Ästhetik */
    max-width: 300px;
}
.secondary-button {
    background: #ffa35a; /* HIER GEÄNDERT: von blau/violett zu #ffa35a */
    color: #1a1a1a; /* Textfarbe auf dunklem Hintergrund */
    border: 1px solid rgba(255, 163, 90, 0.3);
}
.secondary-button:hover {
    box-shadow: 0 5px 15px rgba(255, 163, 90, 0.3);
}

.dominant-type-selection {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 163, 90, 0.1);
}
.dominant-type-selection select {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ffa35a;
    border-radius: 8px;
    background-color: #2d2d2d;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    appearance: none; /* Entfernt native Pfeile */
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2212%22%20height%3D%227%22%20viewBox%3D%220%200%2012%207%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M6%206.5L0.5%201L11.5%201L6%206.5Z%22%20fill%3D%22%23ffa35a%22%2F%3E%0A%3C%2Fsvg%3E'); /* Farbe des SVG-Pfeils */
    background-repeat: no-repeat;
    background-position: right 1em top 50%;
    background-size: 0.8em;
    cursor: pointer;
}
.dominant-type-selection select option {
    background-color: #2d2d2d;
    color: #ffffff;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #2d2d2d;
    border-radius: 6px;
    margin-bottom: 2rem;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #ffa35a); /* Gold-Orange Verlauf */
    border-radius: 6px;
    transition: width 0.5s ease-out;
}
.progress-text {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.9em;
    color: #ffa35a;
    font-weight: bold;
}

/* Frage-Container */
.question-container {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 1px solid rgba(255, 163, 90, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem; /* Abstand zur Progress Bar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    width: 100%; /* Wichtig für absolute Positionierung */
    box-sizing: border-box;
}
/* Animation für Fragenübergang */
.question-container.fade-out {
    opacity: 0;
    transform: translateX(-100px); /* Kürzere Distanz */
    position: absolute;
}
.question-container.fade-in {
    opacity: 0;
    transform: translateX(100px); /* Kürzere Distanz */
}
.question-container.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.question-text {
    font-size: 1.5rem;
    color: #ffa35a;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Antwort-Optionen (Likert-Skala) */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 163, 90, 0.1);
    border: 1px solid rgba(255, 163, 90, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 163, 90, 0.2);
    border-color: rgba(255, 163, 90, 0.5);
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #ffa35a;
    transform: scale(1.2); /* Etwas größer machen */
    cursor: pointer; /* Zeiger auch auf dem Radio-Button */
}

.option-text {
    color: #ffffff;
    font-size: 1rem;
    flex-grow: 1; /* Text nimmt den Rest des Platzes ein */
}

/* Navigations-Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.cta-button {
    background: #ffa35a;
    color: #1a1a1a;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
    text-align: center;
}
#prev-question {
    margin-right: 1rem; /* Abstand zwischen den Buttons */
}
.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 163, 90, 0.2);
}
.cta-button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Ergebnis-Bereich */
#free-results-area, #premium-results-area {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a); /* Darker gradient */
    border: 1px solid rgba(255, 163, 90, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: left; /* Text linksbündig für bessere Lesbarkeit */
    opacity: 0; /* Standardmäßig versteckt */
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
#free-results-area.active, #premium-results-area.active {
    opacity: 1;
    transform: translateY(0);
}
#free-results-area h2, #premium-results-area h2 {
    color: #ffa35a;
    font-size: 2em;
    margin-bottom: 0.5em;
    text-align: center;
}
#free-results-area .dominant-type-title, #premium-results-area .dominant-type-title {
    font-size: 2.5em;
    color: #ffa35a;
    margin-bottom: 1.5em;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 163, 90, 0.5);
}
#free-results-area h3, #premium-results-area h3 {
    color: #fff; /* Behält Weiß/Hellgrau für Lesbarkeit auf dunklem Hintergrund */
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5em;
}
#free-results-area p, #premium-results-area p {
    color: #eee;
    line-height: 1.6;
    margin-bottom: 1em;
}
#free-results-area ul, #premium-results-area ul {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}
#free-results-area ul li, #premium-results-area ul li {
    background: rgba(255, 163, 90, 0.1);
    padding: 0.7em 1.2em;
    margin-bottom: 0.6em;
    border-radius: 5px;
    color: #eee;
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
}
#free-results-area ul li::before, #premium-results-area ul li::before {
    content: ''; /* Entfernt Standard-Listenpunkt */
}
.scientific-background-box, .premium-upsell-box, .action-plan-box, .upsell-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 163, 90, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2.5rem;
}
.scientific-background-box h3, .premium-upsell-box h3, .action-plan-box h3, .upsell-container h3 {
    color: #ffa35a;
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 1em;
}
.premium-upsell-box ul, .action-plan-box ul, .upsell-container ul {
    margin-top: 1em;
}
.premium-upsell-box ul li, .action-plan-box ul li, .upsell-container ul li {
    background: none;
    border: none;
    color: #fff;
    padding: 0.3em 0;
}
.premium-upsell-box .cta-button, .action-plan-box .cta-button, .upsell-container .cta-button {
    margin-top: 1.5rem;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#free-results-area .success-message, #premium-results-area .success-message {
    color: #ffa35a;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
}

/* --- STYLING-REGELN FÜR INPUT-FELDER --- */
.upsell-container form input[type="text"],
.upsell-container form input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ffa35a; /* Rahmen in Akzentfarbe */
    border-radius: 8px;
    background-color: #2d2d2d; /* Dunkler Hintergrund */
    color: #ffffff; /* Heller Text */
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upsell-container form input[type="text"]:focus,
.upsell-container form input[type="email"]:focus {
    border-color: #ffffff; /* Hellerer Rahmen bei Fokus */
    box-shadow: 0 0 8px rgba(255, 163, 90, 0.5); /* Leichter Glow */
    outline: none; /* Standard-Outline entfernen */
}

.upsell-container form input::placeholder {
    color: #aaa; /* Hellerer Platzhalter-Text */
}

.upsell-container form label {
    color: #eee;
    font-size: 0.9em;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left; /* Text linksbündig für die Checkbox-Label */
    width: 100%;
    max-width: 400px;
}

.upsell-container form input[type="checkbox"] {
    accent-color: #ffa35a; /* Akzentfarbe für die Checkbox */
    margin-right: 0.5rem;
    transform: scale(1.1);
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 768px) {
    #overthinking-analysis-app {
        padding: 1rem;
        margin: 1rem auto;
    }
    #premium-not-purchased h2, #premium-access-options h2 {
        font-size: 1.5em;
    }
    #premium-not-purchased p, #premium-access-options p {
        font-size: 0.9em;
    }
    .question-text {
        font-size: 1.2rem;
    }
    .radio-option {
        padding: 0.6rem 0.8rem;
    }
    .option-text {
        font-size: 0.9rem;
    }
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        margin-right: 0 !important; /* Prevents margin from breaking layout */
    }
    #free-results-area h2, #premium-results-area h2 {
        font-size: 1.8em;
    }
    #free-results-area .dominant-type-title, #premium-results-area .dominant-type-title {
        font-size: 2em;
    }
    #free-results-area h3, #premium-results-area h3 {
        font-size: 1.3em;
    }
    /* Responsive für neue Input-Felder */
    .upsell-container form input[type="text"],
    .upsell-container form input[type="email"],
    .upsell-container form label {
        max-width: none;
    }
}