/*
Mentoring Fragebogen Styles
Version: 1.6.0 - Modern Purple Design
*/

/* Importiere eine moderne Schriftart (z.B. Inter von Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* Grundlegende Stile und Variablen (optional, aber hilfreich) */
:root {
    --background-color: #0a0a0a; /* Sehr dunkles Grau / Fast Schwarz */
    --container-background: #121212; /* Dunkler Container-Hintergrund */
    --text-primary: #f0f0f0; /* Helles Grau für Haupttext */
    --text-secondary: #a0a0a0; /* Dunkleres Grau für sekundären Text */
    --border-color-subtle: #333; /* Subtile Trennlinien */
    --border-color-accent: #8A2BE2; /* Haupt-Lila (BlueViolet) */
    --shadow-color-accent: rgba(138, 43, 226, 0.5); /* Lila Schattenfarbe */

    /* Lila Farbpalette */
    --purple-light: #D8BFD8; /* Helllila (Thistle) - für Low */
    --purple-medium: #9370DB; /* Mittellila (MediumPurple) - für Medium */
    --purple-dark-metallic: linear-gradient(45deg, #6a0dad, #a020f0); /* Dunkler Metallic-Gradient - für High */
    --purple-base: #8A2BE2; /* Basislila für Akzente */
    --purple-darker: #6a0dad; /* Dunkleres Lila für Hover etc. */

    /* Buttons */
    --button-gradient: linear-gradient(45deg, #6a0dad, #a020f0);
    --button-gradient-hover: linear-gradient(45deg, #5a0cac, #9010e0);
    --button-reset-bg: #444;
    --button-reset-hover-bg: #555;

    /* Schriftart */
    --font-family-main: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
}

/* Body Styling (falls möglich, ansonsten auf übergeordneten Container anwenden) */
body {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: var(--font-family-main);
    line-height: 1.6;
}

/* --- Allgemeine Stile für den Fragebogen-Container --- */
.mentoring-questionnaire {
    max-width: 800px;
    margin: 30px auto; /* Mehr vertikaler Abstand */
    padding: 30px; /* Mehr Innenabstand */
    border-radius: 12px; /* Stärkere Abrundung */
    background-color: var(--container-background);
    border: 1px solid var(--border-color-accent); /* Feine Lila Umrandung */
    box-shadow: 0 0 20px var(--shadow-color-accent); /* Leichter Lila Schatten */
    color: var(--text-primary);
    font-family: var(--font-family-main);
}

/* Hauptüberschrift des Fragebogens */
.mentoring-questionnaire h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 2em; /* Größer */
    font-weight: 700; /* Fetter */
}

/* Abschnittsüberschriften (H3) */
.mentoring-questionnaire h3 {
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--purple-base); /* Dünnere Linie in Basislila */
    padding-bottom: 10px;
    font-size: 1.6em;
    font-weight: 500; /* Mittlere Stärke */
}

/* Unter-Abschnittsüberschriften (H4) */
.mentoring-questionnaire h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-secondary); /* Sekundäre Textfarbe */
    font-size: 1.2em;
    font-weight: 500;
}

/* Labels für die Formularfelder */
.mentoring-questionnaire label {
    display: block;
    margin: 15px 0 8px; /* Angepasster Abstand */
    font-weight: 500; /* Etwas leichter als bold */
    color: var(--text-primary);
    font-size: 1em;
}

/* Stil für die Feldbeschreibung */
.field-description {
    font-size: 0.85em;
    color: var(--text-secondary); /* Sekundäre Textfarbe */
    margin-top: -5px; /* Näher am Feld darüber */
    margin-bottom: 15px;
    padding-left: 0; /* Keine Einrückung */
    font-weight: 400; /* Normale Stärke */
    line-height: 1.5;
}

/* Standard-Eingabefelder (Text, E-Mail, Zahl, Select, Textarea) */
.mentoring-questionnaire input[type="text"],
.mentoring-questionnaire input[type="email"],
.mentoring-questionnaire input[type="number"],
.mentoring-questionnaire select,
.mentoring-questionnaire textarea {
    width: 100%;
    padding: 12px 15px; /* Angepasstes Padding */
    margin-bottom: 15px;
    border: 1px solid var(--border-color-subtle);
    border-radius: 6px; /* Abgerundete Ecken */
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: #2a2a2a; /* Etwas hellerer dunkler Hintergrund */
    color: var(--text-primary);
    font-family: inherit; /* Schriftart erben */
}
.mentoring-questionnaire select {
    appearance: none; /* Standard-Pfeil entfernen */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* SVG Pfeil */
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px; /* Platz für den Pfeil */
}

/* Hover/Focus Effekt für Standard-Felder */
.mentoring-questionnaire input[type="text"]:focus,
.mentoring-questionnaire input[type="email"]:focus,
.mentoring-questionnaire input[type="number"]:focus,
.mentoring-questionnaire select:focus,
.mentoring-questionnaire textarea:focus {
    border-color: var(--purple-base); /* Lila Hervorhebung */
    outline: none;
    box-shadow: 0 0 8px var(--shadow-color-accent); /* Lila Schein */
}

/* Stile für den Range-Slider */
.mentoring-questionnaire input[type="range"] {
    width: 100%;
    margin: 15px 0; /* Mehr vertikaler Abstand */
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 20px;
}
/* Track (die Leiste) */
.mentoring-questionnaire input[type="range"]::-webkit-slider-runnable-track {
    background: #444; /* Dunkelgrauer Track */
    height: 6px;
    border-radius: 3px;
}
.mentoring-questionnaire input[type="range"]::-moz-range-track {
    background: #444;
    height: 6px;
    border-radius: 3px;
}
/* Thumb (der Schieber) */
.mentoring-questionnaire input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: var(--purple-base); /* Lila */
    border-radius: 50%;
    margin-top: -6px; /* Vertikal zentrieren */
    border: none; /* Kein Rand */
    box-shadow: 0 0 5px var(--shadow-color-accent); /* Leichter Schein */
}
.mentoring-questionnaire input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background-color: var(--purple-base);
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 5px var(--shadow-color-accent);
}

/* Output-Anzeige für Range Slider */
.mentoring-questionnaire output {
    display: inline-block;
    min-width: 2em;
    margin-left: 15px; /* Mehr Abstand */
    font-weight: 700; /* Fett */
    color: var(--purple-base); /* Lila */
    vertical-align: middle;
    background-color: #2a2a2a; /* Passend zu Feldern */
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Stile für Textarea */
.mentoring-questionnaire textarea {
    height: 120px;
    resize: vertical;
}

/* Stile für Checkboxen und deren Labels */
.mentoring-questionnaire input[type="checkbox"] {
    appearance: none; /* Standard-Checkbox entfernen */
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color-subtle);
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 8px;
    cursor: pointer;
    position: relative; /* Für das Häkchen */
    background-color: #2a2a2a;
    transition: background-color 0.2s, border-color 0.2s;
}
.mentoring-questionnaire input[type="checkbox"]:checked {
    background-color: var(--purple-base);
    border-color: var(--purple-base);
}
/* Häkchen für die Checkbox */
.mentoring-questionnaire input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.mentoring-questionnaire input[type="checkbox"] + label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    font-weight: 400; /* Normal */
    color: var(--text-secondary);
    cursor: pointer;
    vertical-align: middle;
}

/* Stile für den Submit-Button */
.mentoring-questionnaire input[type="submit"] {
    background: var(--button-gradient);
    color: white;
    padding: 14px 25px; /* Größer */
    border: none;
    border-radius: 8px; /* Abgerundeter */
    cursor: pointer;
    font-size: 1.1em; /* Größer */
    font-weight: 700;
    transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
    width: 100%;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.mentoring-questionnaire input[type="submit"]:hover {
    background: var(--button-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color-accent); /* Stärkerer Schatten beim Hover */
}
.mentoring-questionnaire input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- Stile für den Ergebnis-Container --- */
.mentoring-results-container {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(18, 18, 18, 0.9); /* Dunkler, leicht transparent */
    border-radius: 12px;
    border: 1px solid var(--border-color-accent);
    box-shadow: 0 0 20px var(--shadow-color-accent);
}

.mentoring-results-container h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.mentoring-results-container p {
    color: var(--text-secondary); /* Sekundäre Farbe für Beschreibungstext */
    line-height: 1.6;
    margin-bottom: 20px;
}

.result-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color-subtle); /* Subtile Linie */
}
.result-section:last-child {
    border-bottom: none;
}

.result-section h4 {
    color: var(--text-primary); /* Primäre Textfarbe für Titel */
    margin-bottom: 12px;
    font-size: 1.15em;
    font-weight: 500;
}

/* Fortschrittsbalken im Ergebnisbereich */
.result-section progress {
    width: 100%;
    height: 12px; /* Etwas dünner */
    border-radius: 6px;
    border: none;
    margin-bottom: 8px;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden; /* Stellt sicher, dass der Radius angewendet wird */
}
/* Hintergrund der Progressbar */
.result-section progress::-webkit-progress-bar {
    background-color: #333; /* Dunkelgrauer Hintergrund */
    border-radius: 6px;
}
.result-section progress { /* Fallback */
    background-color: #333;
    border-radius: 6px;
}

/* Farbe des Balkens */
.result-section progress::-webkit-progress-value {
    border-radius: 6px; /* Wichtig für Webkit */
    transition: width 0.5s ease-in-out, background 0.3s ease;
}
.result-section progress::-moz-progress-bar {
    border-radius: 6px;
    transition: width 0.5s ease-in-out, background 0.3s ease;
}

/* Farbliche Anpassung basierend auf Level */
.result-section progress.result-level-low::-webkit-progress-value,
.result-section progress.result-level-low::-moz-progress-bar {
    background: var(--purple-light); /* Helllila für niedrig */
}
.result-section progress.result-level-medium::-webkit-progress-value,
.result-section progress.result-level-medium::-moz-progress-bar {
    background: var(--purple-medium); /* Mittellila für mittel */
}
.result-section progress.result-level-high::-webkit-progress-value,
.result-section progress.result-level-high::-moz-progress-bar {
    background: var(--purple-dark-metallic); /* Metallic-Gradient für hoch */
}

/* Text unter dem Fortschrittsbalken */
.result-section p {
    font-size: 0.95em;
    color: var(--text-secondary);
}
.result-section p strong { /* Hervorhebung im Text */
    color: var(--text-primary);
}

/* Nachrichten-Stile in den Ergebnissen */
.result-success {
    color: var(--purple-base); /* Basislila */
    font-weight: 500;
}
.result-warning {
     color: #ffcc00; /* Gelb für Warnungen */
     font-weight: 500;
}
.result-error {
    color: #ff4d4d; /* Rot für Fehler */
    font-weight: 500;
}

/* Button zum Zurücksetzen des Fragebogens */
#reset-questionnaire-button {
    background-color: var(--button-reset-bg); /* Dunkelgrau */
    color: var(--text-secondary);
    padding: 10px 20px;
    border: 1px solid var(--border-color-subtle);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    display: block;
    margin: 30px auto 0 auto; /* Mehr Abstand oben, zentriert */
    width: fit-content; /* Breite an Inhalt anpassen */
}
#reset-questionnaire-button:hover {
     background-color: var(--button-reset-hover-bg);
     color: var(--text-primary);
}

/* --- Stile für die Empfehlung und den Button im Ergebnisbereich --- */
.result-recommendation {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color-subtle); /* Subtile Trennlinie */
    text-align: center; /* Alles zentrieren */
}
.result-recommendation h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5em; /* Größer */
    font-weight: 700;
}
.result-recommendation p {
     font-size: 1.1em;
     color: var(--text-primary); /* Haupttextfarbe */
     margin-bottom: 20px; /* Abstand zum Button */
}
.result-recommendation p strong {
    /* Farbverlauf für den Paketnamen */
    background: var(--purple-dark-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 700;
}

.result-button { /* Button für Paket-Link */
    display: inline-block;
    margin-top: 0; /* Kein extra Abstand oben, da p schon Abstand hat */
    padding: 12px 25px; /* Gleiches Padding wie Submit */
    background: var(--button-gradient); /* Gleicher Gradient */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px; /* Gleicher Radius */
    font-size: 1.05em; /* Leicht größer */
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.result-button:hover {
    background: var(--button-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color-accent);
}
.result-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Responsives Verhalten */
@media (max-width: 768px) {
    .mentoring-questionnaire {
        padding: 20px; /* Angepasstes Padding */
        margin: 20px 10px; /* Rand links/rechts */
    }
    .mentoring-questionnaire h2 { font-size: 1.6em; }
    .mentoring-questionnaire h3 { font-size: 1.3em; }
    .mentoring-questionnaire h4 { font-size: 1.1em; }

    .mentoring-questionnaire input[type="text"],
    .mentoring-questionnaire input[type="email"],
    .mentoring-questionnaire input[type="number"],
    .mentoring-questionnaire select,
    .mentoring-questionnaire textarea,
    .mentoring-questionnaire input[type="submit"] {
        font-size: 1em; /* Standardgröße beibehalten oder anpassen */
        padding: 12px;
    }
    .field-description { font-size: 0.8em; }

    /* Checkbox-Labels auf Mobilgeräten */
    .mentoring-questionnaire input[type="checkbox"] + label {
        display: block; /* Untereinander */
        margin-left: 0;
        margin-bottom: 10px; /* Mehr Abstand */
    }

    .mentoring-results-container { padding: 20px; }
    .mentoring-results-container h2 { font-size: 1.6em; }
    .result-section h4 { font-size: 1.1em; }
    .result-recommendation h3 { font-size: 1.4em; }
    .result-recommendation p { font-size: 1em; }
    .result-button { font-size: 1em; padding: 10px 20px; }
}

