/******************
    User custom CSS
    Familienland Niederösterreich / LimeSurvey
    ---------------------------------------------------------
    Globale Schrift: Lato, Fallback Arial
    Fließtext: 13px
    Überschriften: eigene Größen + Familienland Blau
    Footer: barrierearm, vollflächig blau
******************/

@charset "UTF-8";

/* ==========================================================
   Globale Designvariablen
   ========================================================== */

:root {
    --fl-blue: #005a9a;
    --fl-blue-dark: #004b80;
    --fl-blue-light: #2b76ad;
    --fl-white: #ffffff;
    --fl-text: #212529;

    --bs-primary: #005a9a !important;
    --bs-primary-rgb: 0, 90, 154 !important;
    --bs-info: #005a9a !important;
    --bs-info-rgb: 0, 90, 154 !important;

    --bs-font-sans-serif: "Lato", Arial, Helvetica, sans-serif;
    --bs-body-font-family: "Lato", Arial, Helvetica, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #ffffff;
}

/* ==========================================================
   Globale Schrift
   ========================================================== */

html,
body,
#limesurvey,
#outerframeContainer,
#outerframeContainer * {
    font-family: "Lato", Arial, Helvetica, sans-serif;
}

html,
body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--fl-text);
    background-color: #ffffff;

    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   Fließtext global 13px
   Wichtig: keine Überschriften überschreiben
   ========================================================== */

body,
p,
li,
td,
th,
label,
legend,
small,
.form-label,
.form-text,
.question-text,
.answertext,
.answer-container,
.ls-question-message,
.ls-em-tip,
.ls-questionhelp,
.survey-description,
.survey-description p,
.completed-text,
.completed-wrapper p,
.completed-wrapper li,
#completed p,
#completed li,
.error-page p,
.error-container p,
.message-box p,
.alert p,
#content p {
    font-size: 14px;
    line-height: 1.5;
}

/* Formularelemente */
input,
textarea,
select,
button,
.form-control,
.form-select,
.btn {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* ==========================================================
   Überschriften
   ========================================================== */

h1,
.h1,
.survey-welcome h1,
.completed-wrapper h1,
#completed h1 {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 32px !important;
        font-style: italic;
    font-weight: 700;
    color: var(--fl-blue) !important;
    line-height: 1.25;
    margin-bottom: 18px;
}

h2,
.h2,
.group-title {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 24px !important;
    font-weight: 700;
    color: var(--fl-blue) !important;
    line-height: 1.3;
    margin-bottom: 16px;
}

h3,
.h3,
.question-title-container,
.question-title {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 16px !important;
    font-weight: 700;
    color: var(--fl-text);
    line-height: 1.35;
    margin-bottom: 12px;
}

h4,
.h4 {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.35;
}

h5,
.h5 {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.35;
}

h6,
.h6 {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.4;
}

/* Fragetitel in LimeSurvey */
.ls-label-question,
.question-title-container,
.question-title-container *,
.ls-question-title,
.ls-question-title * {
    font-size: 16px !important;
    font-weight: 700;
}

/* ==========================================================
   Links
   ========================================================== */

a {
    color: var(--fl-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--fl-blue);
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--fl-blue);
    outline-offset: 3px;
}

/* ==========================================================
   Buttons
   ========================================================== */

.btn-primary,
.ls-move-btn,
.ls-button-submit,
.ls-button-previous,
.ls-button-next {
    background-color: var(--fl-blue) !important;
    border-color: var(--fl-blue) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.ls-move-btn:hover,
.ls-move-btn:focus,
.ls-button-submit:hover,
.ls-button-submit:focus,
.ls-button-previous:hover,
.ls-button-previous:focus,
.ls-button-next:hover,
.ls-button-next:focus {
    background-color: var(--fl-blue-dark) !important;
    border-color: var(--fl-blue-dark) !important;
    color: #ffffff !important;
}

/* ==========================================================
   Formularfelder
   ========================================================== */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--fl-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 90, 154, 0.2) !important;
}

/* ==========================================================
   Checkboxen & Radio Buttons
   ========================================================== */

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--fl-blue) !important;
}

.form-check-input:checked,
.form-check-input:indeterminate,
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--fl-blue) !important;
    border-color: var(--fl-blue) !important;
}

.form-check-input:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    border-color: var(--fl-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(0, 90, 154, .25) !important;
}

/* LimeSurvey eigene Checkboxen / Radio-Labels */
.checkbox-item input[type="checkbox"]:checked + label::before,
.checkbox-item input[type="checkbox"]:checked + label::after,
.radio-item input[type="radio"]:checked + label::before,
.radio-item input[type="radio"]:checked + label::after {
    border-color: var(--fl-blue) !important;
    background-color: var(--fl-blue) !important;
}

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

/* Datenschutz-Checkbox */
.privacy input[type="checkbox"],
.privacy .form-check-input,
#datasecurity_accepted {
    accent-color: var(--fl-blue) !important;
}

.privacy input[type="checkbox"]:checked,
.privacy .form-check-input:checked,
#datasecurity_accepted:checked {
    background-color: var(--fl-blue) !important;
    border-color: var(--fl-blue) !important;
}

/* ==========================================================
   Dropdowns / Selects
   ========================================================== */

select:focus,
.form-select:focus {
    border-color: var(--fl-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(0, 90, 154, .25) !important;
}

/* Tom Select */
.ts-control.focus,
.ts-control:focus-within {
    border-color: var(--fl-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(0, 90, 154, .25) !important;
}

.ts-dropdown .active,
.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background-color: var(--fl-blue) !important;
    color: #ffffff !important;
}

/* Select2 */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected],
.select2-container--default .select2-results__option--selected,
.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: var(--fl-blue) !important;
    color: #ffffff !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--fl-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(0, 90, 154, .25) !important;
}

/* Bootstrap Dropdown */
.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--fl-blue) !important;
    color: #ffffff !important;
}

/* ==========================================================
   LimeSurvey-spezifische Optimierungen
   ========================================================== */

.question-container,
.ls-questionhelp,
.ls-question-message {
    font-size: 14px;
}

.question-title-container {
    margin-bottom: 12px;
}

.answer-container {
    font-size: 14px;
}

/* Abschlussseite */
.completed-wrapper,
.completed-text,
#completed {
    font-family: "Lato", Arial, Helvetica, sans-serif !important;
    font-size: 16px;
}

.completed-wrapper p,
.completed-wrapper li,
.completed-text p,
#completed p,
#completed li {
    font-size: 14px !important;
}

.completed-wrapper h1,
.completed-wrapper .h1,
#completed h1,
#completed .h1 {
    color: var(--fl-blue) !important;
    font-size: 32px !important;
    font-weight: 700;
}

/* Fehlerseiten / Session abgelaufen */
body.error,
.error-page,
.error-container,
.message-box,
.alert,
#content {
    font-family: "Lato", Arial, Helvetica, sans-serif !important;
}

body.error,
.error-page p,
.error-container p,
.message-box p,
.alert p,
#content p {
    font-size: 14px !important;
    line-height: 1.6;
}

.error-page h1,
.error-page h2,
.error-container h1,
.error-container h2,
.message-box h1,
.message-box h2,
.alert h1,
.alert h2 {
    color: var(--fl-blue) !important;
    font-family: "Lato", Arial, Helvetica, sans-serif !important;
    font-weight: 700;
}

/* Pflichtfeldhinweise */
.asterisk,
.text-danger {
    color: #c00000;
}

/* Fortschrittsbalken */
.progress-bar {
    background-color: var(--fl-blue) !important;
}

/* Slider */
.form-range::-webkit-slider-thumb {
    background: var(--fl-blue) !important;
}

.form-range::-moz-range-thumb {
    background: var(--fl-blue) !important;
}

/* Pagination / Navigation */
.page-link,
.page-item.active .page-link {
    color: var(--fl-blue);
}

.page-item.active .page-link {
    background: var(--fl-blue) !important;
    border-color: var(--fl-blue) !important;
    color: #ffffff !important;
}

/* Bootstrap-Farbklassen */
.text-primary {
    color: var(--fl-blue) !important;
}

.bg-primary {
    background-color: var(--fl-blue) !important;
}

.border-primary {
    border-color: var(--fl-blue) !important;
}

/* ==========================================================
   Familienland Niederösterreich - Footer
   ========================================================== */

#outerframeContainer,
#limesurvey,
main,
main[role="main"] {
    flex: 1 0 auto;
}

.fl-footer {
    background: var(--fl-blue);
    color: #ffffff;
    width: 100%;

    margin-top: auto;
    padding: 18px 0;

    font-size: 13px;
    line-height: 1.5;

    border-top: 1px solid var(--fl-blue-light);

    flex-shrink: 0;
}

.fl-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fl-footer-nav,
.fl-footer-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-footer a {
    color: #ffffff;
    font-weight: 500;
    transition: color .2s ease, text-decoration .2s ease;
}

.fl-footer-nav a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fl-footer-copyright a {
    text-decoration: none;
}

.fl-footer-nav a:hover,
.fl-footer-nav a:focus {
    text-decoration-thickness: 2px;
}

.fl-footer-copyright a:hover,
.fl-footer-copyright a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fl-footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 3px;
}

.fl-separator {
    color: rgba(255, 255, 255, .7);
    user-select: none;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 768px) {

    .fl-footer {
        padding: 20px 0;
    }

    .fl-footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .fl-footer-nav,
    .fl-footer-copyright {
        justify-content: center;
        flex-wrap: wrap;
    }

    .fl-separator {
        display: none;
    }

    h1,
    .h1,
    .completed-wrapper h1,
    #completed h1 {
        font-size: 26px !important;
    }

    h2,
    .h2,
    .group-title {
        font-size: 21px !important;
    }

    h3,
    .h3,
    .question-title-container,
    .question-title {
        font-size: 17px !important;
    }
}


/* ==========================================================
   Optimierung Fragenlayout
   ========================================================== */

/* Fragetitel */
.question-title-container,
.question-title,
.ls-label-question,
.ls-question-title {
    font-family: "Lato", Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    color: #212529 !important;
    margin-bottom: 12px;
}

/* Hilfetext */
.ls-questionhelp,
.question-help,
.em_default,
.question-valid-container {
    font-family: "Lato", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    color: #666666 !important;
    font-style: italic;
    font-weight: 400 !important;
    margin-bottom: 12px;
}

/* Antwortoptionen */
.answer-item label,
.radio-item label,
.checkbox-item label,
.form-check-label,
.answer-container label,
.ls-answers label {
    font-family: "Lato", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400;
    color: #212529;
}

/* Mehr Abstand zwischen Antworten */
.answer-item,
.radio-item,
.checkbox-item,
.form-check {
    margin-bottom: 12px;
}

/* Pflichtstern in derselben Zeile */
.question-title-container .asterisk,
.question-title-container .mandatory,
.ls-label-question .asterisk,
.ls-label-question .mandatory,
.question-title .asterisk,
.question-title .mandatory {
    display: inline !important;
    position: static !important;
    float: left !important;
    vertical-align: middle;
    color: #c00000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-right: 6px;
    margin-left: 0;
}

/* Falls der Stern in einem separaten Block ausgegeben wird */
.question-title-container > .asterisk,
.question-title-container > .mandatory {
    display: inline !important;
}

/* Radio / Checkbox vertikal mittig */
.form-check-input,
input[type="radio"],
input[type="checkbox"] {
    vertical-align: middle;
}

/* ==========================================================
   Kompaktere Abstände - LimeSurvey Fragen & Textboxen
   ========================================================== */

/* Gesamtblock einer Frage etwas kompakter */
.question-container,
.ls-question-container,
.question-wrapper,
.ls-question-wrapper,
div[id^="question"] {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-top: 0 !important;
}

/* Abstand Fragetitel zur Antwort reduzieren */
.question-title-container,
.question-title,
.ls-question-title,
.ls-label-question {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
}

/* Hilfetexte kompakter */
.ls-questionhelp,
.question-help,
.em_default,
.question-valid-container,
.ls-em-tip {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Antwortbereich direkt unter Frage/Hilfetext */
.answer-container,
.ls-answers,
.answers-list,
.subquestion-list,
div[id^="javatbd"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Textboxen / lange freie Antworten */
textarea,
textarea.form-control,
textarea.textarea,
.long-free-text textarea,
.text-long textarea,
.ls-answers textarea,
.answer-container textarea {
    margin-top: 0 !important;
    display: block;
}

/* Falls LimeSurvey um Textareas herum zusätzliche Abstände setzt */
.long-free-text .answer-container,
.text-long .answer-container,
.question-container .answer-container,
.question-container .ls-answers {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Einzelne Antwortoptionen */
.answer-item,
.radio-item,
.checkbox-item,
.form-check {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Abstand nach Radio-/Checkbox-Gruppen etwas kompakter */
.radio-list,
.checkbox-list,
.list-unstyled,
.ls-answers ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Pflichtstern bleibt farblich klar, Position wird vom Template bestimmt */
.asterisk,
.mandatory {
    color: #c00000 !important;
    font-weight: 700 !important;
}



.question-count-text {font-size:14px !important}



.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
    color: #ffffff !important;
    background-color: #005898 !important;
}


.alert-warning {
    border: 1.33px solid #1E1E1E;
    background-color:#ffd400 !importantimportant;
    color: #1E1E1E;
}


.large-heading {color:#005898 !important; font-style:italic !important; font-size: 32px !important;}



/* ==========================================================
   Fließtext auf 18px erhöhen
   Überschriften und Labels bleiben unverändert
   ========================================================== */

p,
.survey-description,
.survey-description p,
.ls-question-text,
.question-text,
.completed-text,
.completed-wrapper,
.completed-wrapper p,
.completed-wrapper li,
#completed,
#completed p,
#completed li,
.error-page p,
.error-container p,
.message-box p,
.alert p,
#content p,.alert {
    font-size: 18px !important;
    line-height: 1.7;
}

/* Bild Errormeldung */
.m-auto {font-size:18px !important}
.m-auto img {width:300px; height:auto;}

.error-content {margin-bottom:20px}