/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

/* Weiter-Button */
.btn.btn-primary, .ls-move-btn {
    background-color: #ffc540 !important;
    border-color: #ffc540 !important;
    color: #222 !important; /* dunklere Schrift für bessere Lesbarkeit auf Gelb */
}
.btn.btn-primary:hover, .ls-move-btn:hover {
    background-color: #e6b33a !important; /* etwas dunkleres Gelb für Hover */
    border-color: #e6b33a !important;
}

/* Fortschrittsbalken */
.progress-bar {
    background-color: #ffc540 !important;
}

/* Beantwortete Frage */
.question.answered {
    background-color: #fff8e1 !important; /* sehr helles Gelb als Hintergrund */
    border-left: 4px solid #ffc540 !important;
}


/* Für alle Titel in LimeSurvey */
h1, h2, h3, h4, h5, h6,
.survey-title,        /* Umfragetitel */
.group-title,         /* Fragegruppen-Titel */
.ls-group-title,      /* Alternative Fragegruppen-Titel */
.question-title,      /* Fragetitel */
.ls-question-title    /* Alternative Fragetitel */
{
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 28px !important;
    color: #ffc540 !important;
    font-weight: bold !important;
}

/* Radiobutton: Markierter Kreis und Haken in Gelb */
input[type="radio"]:checked + label::before,
.custom-control-input:checked ~ .custom-control-label::before,
.form-check-input:checked ~ .form-check-label::before,
.radio input[type="radio"]:checked + label::before {
    border-color: #ffc540 !important;
    background-color: #ffc540 !important;
}

/* Radiobutton: Markierter Punkt im Kreis */
input[type="radio"]:checked + label::after,
.custom-control-input:checked ~ .custom-control-label::after,
.form-check-input:checked ~ .form-check-label::after,
.radio input[type="radio"]:checked + label::after {
    background-color: #ffc540 !important;
    border-color: #ffc540 !important;
}

/* Falls SVG für Radiobuttons genutzt wird */
input[type="radio"]:checked + label svg,
.custom-control-input:checked ~ .custom-control-label svg {
    fill: #ffc540 !important;
    color: #ffc540 !important;
}

/* Grün explizit überschreiben */
label.text-success,
.text-success {
    color: #ffc540 !important;
}


/* Erzwinge gelbe Farbe auch bei Inline-Style */
label.text-success span[style],
.text-success span[style],
.answer-item.active label span[style],
.answer-item.checked label span[style] {
    color: #ffc540 !important;
}

/* Noch spezifischer: Überschreibe Inline-Styles auf .text-success span */
label.text-success span,
.text-success span {
    color: #ffc540 !important;
}

/* Noch eine Stufe spezifischer für LimeSurvey-Antworten */
.answer-item.active label.text-success span,
.answer-item.checked label.text-success span {
    color: #ffc540 !important;
}

/* Nur gelbe Schrift, wenn das Radio ausgewählt ist */
.radio-item input[type="radio"]:checked + label,
.radio-item input[type="radio"]:checked + label span,
.radio-item input[type="radio"]:checked + label span span {
    color: #ffc540 !important;
}

.survey-name.large-heading {
    font-size: 38px !important;        /* Wunschgröße */
    line-height: 1.2 !important;       /* Zeilenhöhe */
    font-family: Arial, Helvetica, sans-serif !important; /* Schriftart */
    color: #ffc540 !important;         /* Gelb */
    font-weight: bold !important;      /* Optional: Fett */
}

/* 1. Gelbe Schrift für den Datenschutzerklärungs-Link */
label .show-policy,
.datasecurity-checkbox-label .show-policy {
    color: #ffc540 !important;
    font-weight: 600 !important;
    text-decoration: underline !important; /* optional, wie im Original */
}

/* 2. Gelber Rahmen und Haken für das Kontrollkästchen */
input[type="checkbox"]:checked + label::before,
input[type="checkbox"]:checked + .datasecurity-checkbox-label::before,
input[type="checkbox"] + label::before,
input[type="checkbox"] + .datasecurity-checkbox-label::before {
    border-color: #ffc540 !important;
    background-color: #ffc540 !important;
}
