/* ==========Allgemeine Einstellungen für die gesamte Umfrage========== */

/* Hintergrund der Umfrage mit Farbverlauf - kann auch in den outerframe.twig in "Vorlagenvorschau: Willkommen" */
#outerframeContainer {
    background-image: linear-gradient(to bottom, lightsteelblue, #f0ffff /* LightCyan1 */);
}

/* Einheitliche Schriftart für alle Elemente. */
* {
    font-family: Saar !important;
}

/* Einheitliche Absatzformatierung für alle Texte. */
p {
    margin-bottom: 15px;
    line-height: 1.3;
}

/* ==========Verhalten der Schaltflächen der Seiten========== */

/* Weiter, Zurück und Absenden - Ruhezustand. Die Fläche selbst ist durchsichtig, die Schriftfarbe dieselbe wie der dunklere obere Hintergrundfarbe. */
#ls-button-submit,
#ls-button-previous,
#ls-button-next {
    background-color: transparent !important;
    border-color: transparent !important;
    color: lightsteelblue;
    box-shadow: none !important;
    font-size: 20px;
    font-weight: bold;
}

/* Weiter, Zurück und Absenden - Hovern. Die Fläche ist dieselbe wie die dunklere obere Hintergrundfarbe, die Schriftfarbe ist dieselbe wie die hellere untere Hintergrundfarbe. */
#ls-button-submit:hover,
#ls-button-previous:hover,
#ls-button-next:hover {
    background-color: lightsteelblue !important;
    border-color: transparent;
    color: #f0ffff;
    font-size: 20px;
    font-weight: bold;
}

/*==========Textelemente. Können auch in den welcome.twig in "Vorlagen-Vorschau: Willkommen"========== */

/* Umfragename */
#welcome-container .survey-name {
    color: white;
    font-size: 40pt;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 6pt;
    text-shadow: 2px 2px 6px slategray;
    margin-bottom: 50px;
}

/* Beschreibung */
#welcome-container .survey-description {
    color: slategray;
    font-size: 20pt;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Willkommenstext */
#welcome-container .survey-welcome {
    color: slategray;
    font-size: 20pt;
    text-align: justify;
}

/* ==========Gruppen-Einstellungen. Dafür gibt es auch group-Twigs bei "Vorlagen in Vorschau: Frage".========== */

/* Gruppentitel */
.group-title {
    color: salmon;
    font-weight: normal !important;
    font-size: 24pt;
    text-shadow: 2px 2px 2px slategray, -1px -1px 1px white;
}

/* Gruppenbeschreibung */
.group-description {
    color: slategray;
    font-size: 20pt !important;
}

/* ==========Fragen. Dafür gibt es auch question-Twigs bei "Vorlagen in Vorschau: Frage========== */

.question-container {
    border: 8px solid lavender;
    box-shadow: inset 0 0 6px 1px slategray, 4px 4px 16px 2px lightslategray;
    border-radius: 12px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 20px;
    margin-left: 4px;
    margin-bottom: 40px;
}

.question-container .ls-label-question {
    color: #666666;
}

.question-container .form-control:read-write,
.question-container select {
    border: 1px solid lightsteelblue;
    border-radius: 8px;
}

.question-container .form-control:read-write:hover,
.question-container select:hover {
    border: 3px solid lightsteelblue;
    border-radius: 8px !important;
    box-shadow: 0 0 4px 1px lightsteelblue;
}

/* Hilfetext */
.question-help-container .ls-questionhelp {
    color: darkseagreen;
    font-size: 16pt;
    text-align: justify;
}

.question-container .answer-item label,
.question-container select,
.question-container input,
.question-container option,
.question-container text,
.question-container textarea,
.question-container date {
    color: steelblue;
    font-size: 18px;
    line-height: 1.3;
    text-align: justify;
}

.question-container .question-item label {
    color: slategray;
}

/* Textfeld beim Ausfüllen */
.question-container input:focus,
.question-container textarea:focus,
.question-container select:focus{
    border: none;
    box-shadow: 2px 2px 8px 0 lightblue !important;
}

/* Textfeld ausgefüllt */
input[type="text"]:not(:placeholder-shown),
textarea:not(:placeholder-shown),
select:has(option:checked:not([value=""])) {
    background-color: azure;
}

/* Mit dieser Klasse wird der Frage-Validierungshinweis angesprochen. */
.question-valid-container * {
    text-align: center;
    font-style: normal !important;
    font-size: 14pt !important;
    font-family: Saar;
    color: sandybrown !important;
}

/* Checkbox-Rahmen - Ruhezustand */
.checkbox-item input[type="checkbox"] + label::before {
    width: 32px;
    height: 32px;
    border: 2px solid lightsteelblue !important;
    border-radius: 4px !important;
    background-color: #FFFFFF !important;
}

/* Checkbox - Hover */
.checkbox-item input[type="checkbox"] + label:hover:before {
    border: 3px solid lightsteelblue;
    border-radius: 8px;
    box-shadow: 0 0 8px 3px lightsteelblue;
}

/* Checkbox-Rahmen - ausgewählter Zustand */
.checkbox-item input[type="checkbox"]:checked + label::before {
    background-color: steelblue !important;
    border: steelblue !important;
}

/* Checkbox-Häkchen */
.checkbox-item input[type="checkbox"]:checked + label::after {
    content: "✔";
    color: #FFFFFF !important;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

/* Checkbox-Label ausgewählt */
.checkbox-item:has(input:checked) label {
    color: steelblue !important;
}

/* Radio-Button - Ruhezustand */
.radio-item input[type="radio"] + label::before {
    width: 20px;
    height: 20px;
    border: 2px solid lightsteelblue !important;
    border-radius: 50% !important;
    background-color: #FFFFFF !important;
}

/* Radio-Button - Hover */
.radio-item input[type="radio"] + label:hover::before {
    border: 3px solid lightsteelblue !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px 3px lightsteelblue !important;
}

/* Radio-Button - ausgewählter Zustand */
.radio-item input[type="radio"]:checked + label::before {
    background-color: steelblue !important;
    border: 2px solid steelblue !important;
}

/* Radio-Button - Auswahlmarkierung */
.radio-item input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #FFFFFF;
    border-radius: 50%;
}

/* ====Specials====== */

/* Sehr speziell: Schaltfläche zum Herunterladen von Dokumenten */
.btn.btn-primary {
    color: white;
    font-size: 12pt;
    font-weight: bold;
    background-color: darksalmon;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 8px 1px slategray;
    width: 200px;
    height: 50px;
    margin-bottom: 15px;
}

.btn.btn-primary:hover {
    color: slategray;
    font-size: 14pt;
    font-weight: bold;
    background-color: mistyrose;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 12px 2px darkslategray;
    width: 220px;
    height: 55px;
}

/* Schreibgeschützte Eingabefelder */
input[readonly],
textarea[readonly],
.form-control[readonly],
input:disabled,
textarea:disabled,
select:disabled {
    background-color: azure;
    color: steelblue;
    border: azure;
    opacity: 1;
}

/* Gruppentitel nicht als Flex-Element behandeln */
.group-container:has(.zweispaltig) {
    display: block;
}

/* Gruppentitel und Beschreibung bleiben oberhalb */
.group-container .group-title,
.group-container .group-description {
    display: block;
    width: 100%;
}

.group-container:has(.zweispaltig) {
    display: flex;
    flex-wrap: wrap;
    column-gap: 55px;
    row-gap: 20px;
}

/* Breite der beiden Fragencontainer */
.group-container .zweispaltig {
    flex: 0 0 calc((100% - 40px) / 2);
    max-width: calc((100% - 40px) / 2);
    box-sizing: border-box;
}

.group-container .einspaltig {
    flex: none;
    display: block;
    width: 100%;
}
