/******************
    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
*/

/* ==========================================================
   BWG - Breuberger Wähler Gemeinschaft
   LimeSurvey Theme: bwg_modern
   Basis: Fruity
   ========================================================== */

:root {
    --bwg-blue: #00a5e8;
    --bwg-blue-dark: #007eae;
    --bwg-heading: #18324b;
    --bwg-text: #263849;
    --bwg-background: #f5f8fb;
    --bwg-border: #dce5ed;
    --bwg-white: #ffffff;
}

/* ==========================================================
   1. Allgemeine Darstellung
   ========================================================== */

body.fruity,
.fruity {
    color: var(--bwg-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.fruity {
    background-color: var(--bwg-background);
}

/* Inhaltsbereich */
.fruity .container {
    max-width: 1100px;
}

/* Überschriften */
.fruity h1,
.fruity h2,
.fruity h3,
.fruity .group-title {
    color: var(--bwg-heading);
    font-weight: 600;
    line-height: 1.35;
}

/* ==========================================================
   2. Logo und Kopfbereich
   ========================================================== */

/* Navigationsleiste */
.fruity .navbar {
    min-height: 100px;
    background-color: var(--bwg-white);
    border-bottom: 1px solid var(--bwg-border);
    box-shadow: 0 2px 5px rgba(24, 50, 75, 0.05);
}

/* Logo-Container mittig ausrichten */
.fruity .navbar .navbar-header {
    width: 100%;
    text-align: center;
}

.fruity .navbar .navbar-header > div {
    width: 100%;
}

/* BWG-Logo proportional darstellen */
.fruity .navbar .logo {
    display: block;
    width: 180px !important;
    height: 180px !important;
    max-width: 100% !important;
    max-height: 180px !important;
    object-fit: contain;
    margin: 0 auto !important;
}

/* ==========================================================
   3. Fragetexte und Überschriften
   ========================================================== */

/* Normale Schrift für Erklärungen */
.fruity .question-container .question-text {
    color: var(--bwg-text);
    font-weight: 400 !important;
    line-height: 1.65;
}

/* Textabsätze */
.fruity .question-text p,
.fruity .question-text div,
.fruity .question-text li {
    font-weight: 400;
    line-height: 1.65;
}

/* Bewusst fett formatierte Passagen */
.fruity .question-text strong,
.fruity .question-text b {
    font-weight: 700 !important;
}

/* Fragetitel hervorheben */
.fruity .question-title-container,
.fruity .question-title-container .question-title {
    color: var(--bwg-heading);
    font-weight: 600;
}

/* Absätze */
.fruity .question-text p {
    margin-bottom: 12px;
}

/* ==========================================================
   4. Fragebereiche
   ========================================================== */

.fruity .question-container {
    margin-bottom: 24px;
    border: 1px solid var(--bwg-border);
    background-color: var(--bwg-white);
    border-radius: 8px;
    padding: 16px;
}

/* Antwortbereich */
.fruity .answer-container {
    margin-top: 12px;
}

.fruity .answer-item {
    font-weight: 400;
}

/* ==========================================================
   5. Eingabefelder
   ========================================================== */

.fruity .form-control,
.fruity .form-select {
    border: 1px solid var(--bwg-border);
    background-color: var(--bwg-white);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    color: var(--bwg-text);
}

.fruity .form-control:focus,
.fruity .form-select:focus {
    border-color: var(--bwg-blue);
    box-shadow: 0 0 0 3px rgba(0, 165, 232, 0.15);
    outline: none;
}

/* ==========================================================
   6. Checkboxen und Radio-Buttons
   ========================================================== */

/* Fokusfarben */
.fruity .form-check-input:checked {
    background-color: var(--bwg-blue);
    border-color: var(--bwg-blue);
}

.fruity .checkbox-item input[type="checkbox"]:checked + label::before,
.fruity .radio-item input[type="radio"]:checked + label::before {
    border-color: var(--bwg-blue);
}

.fruity .checkbox-item input[type="checkbox"]:checked + label::after,
.fruity .radio-item input[type="radio"]:checked + label::after {
    color: var(--bwg-blue);
}

/* ==========================================================
   7. Links
   ========================================================== */

.fruity a {
    color: var(--bwg-blue-dark);
    text-decoration-color: currentColor;
}

.fruity a:hover {
    color: var(--bwg-heading);
}

/* ==========================================================
   8. Buttons
   ========================================================== */

.fruity .btn-primary,
.fruity #ls-button-submit {
    background-color: var(--bwg-blue);
    border-color: var(--bwg-blue);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 22px;
}

.fruity .btn-primary:hover,
.fruity #ls-button-submit:hover {
    background-color: var(--bwg-blue-dark);
    border-color: var(--bwg-blue-dark);
    color: #ffffff;
}

.fruity .btn-primary:focus-visible,
.fruity #ls-button-submit:focus-visible,
.fruity a:focus-visible {
    outline: 3px solid var(--bwg-blue-dark);
    outline-offset: 3px;
}

/* ==========================================================
   9. Fortschrittsanzeige
   ========================================================== */

.fruity .progress-bar {
    background-color: var(--bwg-blue);
}

/* ==========================================================
   10. Pflichtfelder und Meldungen
   ========================================================== */

.fruity .asterisk,
.fruity .mandatory,
.fruity .text-danger {
    color: #b43c45;
}

/* ==========================================================
   11. Mobile Darstellung
   ========================================================== */

@media (max-width: 768px) {

    body.fruity {
        font-size: 16px;
    }

    .fruity .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .fruity .navbar {
        min-height: 90px;
    }

    .fruity .navbar .logo {
        width: 125px !important;
        height: 125px !important;
        max-height: 125px !important;
    }

    .fruity h1 {
        font-size: 1.8rem;
    }

    .fruity .group-title {
        font-size: 1.5rem;
    }

    .fruity .question-container {
        padding: 14px;
        margin-bottom: 18px;
    }

    .fruity .btn-primary,
    .fruity #ls-button-submit {
        min-height: 44px;
    }
}

/* ==========================================================
   Ende BWG Modern
   ========================================================== */
