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

@font-face {
  font-family: "Blues Smile";
  src:
    local("Blues Smile"),
    url("../files/Blues Smile.otf") format("opentype"),
    url("../files/Blues Smile.ttf") format("truetype"),
    url("Font/Blues Smile.otf") format("opentype"),
    url("Font/Blues Smile.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --zl-blue: #339bf0;
  --zl-blue-soft: #dff0ff;
  --zl-blue-light: #f4faff;
  --zl-navy: #172967;
  --zl-green: #92c355;
  --zl-green-dark: #5c982b;
  --zl-orange: #ff6b00;
  --zl-red: #e30613;
  --zl-sand: #e9dfca;
  --zl-ink: #17213d;
  --zl-muted: #5c6780;
  --zl-line: rgba(23, 41, 103, 0.16);
  --zl-shadow: 0 18px 42px rgba(23, 41, 103, 0.14);
  --zl-logo: url("../files/Logo_Rund_Neu.png");
  --zl-wordmark: url("../files/Schriftzug_Zeltlager_1.png");
  --zl-background: url("../files/Motiv_nur_Hintergrund_2000px.png");
  --zl-heading-font: "Blues Smile", "Noto Sans", Arial, Helvetica, sans-serif;
}

html,
body.fruity.vanilla {
  min-height: 100%;
}

html {
  background: #eef8df;
}

body.fruity.vanilla,
body {
  color: var(--zl-ink);
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: -22px;
  pointer-events: none;
  background-image: var(--zl-background);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.02);
  opacity: 0.42;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.82)),
    rgba(244, 250, 255, 0.28);
  z-index: -1;
}

a {
  color: var(--zl-navy);
}

a:hover,
a:focus {
  color: var(--zl-green-dark);
}

#survey-nav.navbar {
  min-height: 74px;
  padding: 0.5rem clamp(0.75rem, 3vw, 2rem);
  position: fixed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 240, 255, 0.94)),
    var(--zl-blue-soft) !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(23, 41, 103, 0.12);
}

#survey-nav .container-fluid {
  min-height: 58px;
  position: relative;
}

#survey-nav .logo-container {
  display: flex !important;
  align-items: center;
  min-width: 270px;
  min-height: 58px;
  margin: 0;
}

#survey-nav .logo-container::before {
  content: "";
  width: min(330px, 68vw);
  height: 60px;
  display: block;
  background-image: var(--zl-wordmark);
  background-repeat: no-repeat;
  background-size: calc(100% - 28px) auto;
  background-position: center;
  background-color: rgba(146, 195, 85, 0.9);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(23, 41, 103, 0.22), 0 8px 20px rgba(23, 41, 103, 0.14);
}

#survey-nav .logo-container > a,
#survey-nav .logo-container > img,
#survey-nav .navbar-brand > a,
#survey-nav .navbar-brand > img,
.logo-container .ls-logo,
.navbar-brand .ls-logo,
.powered-by,
.poweredby,
.ls-poweredby,
.ls-powered-by,
#powered-by,
#poweredby {
  display: none !important;
}

body .top-container {
  margin-top: 88px !important;
}

.top-container .top-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.progress {
  height: 1.15rem;
  overflow: visible;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: inset 0 1px 4px rgba(23, 41, 103, 0.16);
}

.progress-bar {
  min-width: 2.25rem;
  color: #fff;
  font-weight: 800;
  line-height: 0.95rem;
  background: linear-gradient(90deg, var(--zl-green), var(--zl-green-dark));
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(92, 152, 43, 0.3);
}

#outerframeContainer {
  max-width: 960px;
  margin-top: 1.35rem;
  margin-bottom: 4rem;
  padding: 0 clamp(0.85rem, 2.4vw, 1.5rem);
}

#main-col {
  position: relative;
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.survey-form-container {
  position: relative;
}

.group-container {
  padding: clamp(0.6rem, 2vw, 1rem) 0 0;
}

.group-title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0.55rem 1.25rem 0.7rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-family: var(--zl-heading-font);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  background: var(--zl-navy);
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--zl-green), var(--zl-shadow);
}

#welcome-container .survey-name {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.65rem 1.45rem 0.78rem;
  color: #fff;
  font-family: var(--zl-heading-font);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  background: var(--zl-navy);
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--zl-green), var(--zl-shadow);
}

.question-container {
  margin: 0 0 1.15rem !important;
  padding: clamp(1rem, 2.5vw, 1.4rem) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93)),
    var(--zl-blue-light) !important;
  border: 2px solid var(--zl-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--zl-shadow) !important;
}

.question-container.mandatory {
  border-left: 8px solid var(--zl-green) !important;
}

.question-title-container {
  margin-bottom: 0.7rem;
}

.question-text,
.ls-label-question {
  color: var(--zl-navy);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
}

.asterisk,
.asterisk .text-danger,
.fa-asterisk.text-danger {
  color: var(--zl-orange) !important;
}

.question-help-container,
.question-valid-container,
.ls-questionhelp,
.ls-question-message {
  color: var(--zl-muted) !important;
  font-size: 0.95rem;
  line-height: 1.4;
}

.answer-container {
  color: var(--zl-ink);
}

.form-control,
.form-select,
.list-question-select,
textarea.form-control {
  min-height: 2.9rem;
  color: var(--zl-ink);
  background-color: #fff;
  border: 2px solid rgba(23, 41, 103, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(23, 41, 103, 0.05);
}

.form-control:focus,
.form-select:focus,
.list-question-select:focus,
textarea.form-control:focus {
  color: var(--zl-ink);
  background-color: #fff;
  border-color: var(--zl-blue);
  box-shadow: 0 0 0 0.22rem rgba(51, 155, 240, 0.24);
}

textarea.form-control {
  min-height: 8rem;
}

.ls-answers,
.answers-list {
  gap: 0.55rem;
}

.answer-item {
  margin: 0.35rem 0;
}

.radio-label,
.checkbox-label,
.answer-text,
.control-label {
  color: var(--zl-ink);
  font-weight: 650;
}

.radio-item label,
.checkbox-item label,
.yesno-button .answer-text {
  cursor: pointer;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
  border-color: var(--zl-navy);
}

.radio-item input[type="radio"]:checked,
.checkbox-item input[type="checkbox"]:checked {
  background-color: var(--zl-green);
  border-color: var(--zl-green-dark);
}

.answers-list:not(.yesno-button) .answer-item {
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
}

.answers-list:not(.yesno-button) .answer-item:hover {
  background: rgba(51, 155, 240, 0.08);
}

.yesno-button {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  border-radius: 8px;
}

.yesno-button .answer-item {
  margin: 0 !important;
}

.yesno-button .answer-text {
  min-width: 8rem;
  padding: 0.72rem 1rem;
  text-align: center;
  background: #fff;
  border: 2px solid rgba(23, 41, 103, 0.18);
  border-radius: 8px;
  box-shadow: 0 5px 12px rgba(23, 41, 103, 0.08);
}

.yesno-button input[type="radio"]:checked + .answer-text,
.yesno-button input[type="radio"]:checked + label {
  color: #fff;
  background: var(--zl-navy);
  border-color: var(--zl-navy);
  box-shadow: 5px 5px 0 var(--zl-green);
}

.array-multi-flexi table,
.ls-answers table {
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--zl-line);
  border-radius: 8px;
}

.array-multi-flexi th,
.array-multi-flexi td,
.ls-answers th,
.ls-answers td {
  border-color: rgba(23, 41, 103, 0.12) !important;
}

.array-multi-flexi thead th,
.ls-answers thead th {
  color: #fff;
  background: var(--zl-navy);
}

.btn,
.ls-button,
button[name="move"],
input[type="submit"] {
  min-height: 2.75rem;
  padding: 0.62rem 1.2rem;
  font-weight: 850;
  border-radius: 8px;
  border-width: 2px;
  letter-spacing: 0;
}

.btn-primary,
.btn-success,
button[name="move"][value="movenext"],
button[name="move"][value="movesubmit"],
input[type="submit"] {
  color: #fff !important;
  background: var(--zl-navy) !important;
  border-color: var(--zl-navy) !important;
  box-shadow: 6px 6px 0 var(--zl-green);
}

.btn-primary:hover,
.btn-success:hover,
button[name="move"][value="movenext"]:hover,
button[name="move"][value="movesubmit"]:hover,
input[type="submit"]:hover {
  color: #fff !important;
  background: #21367f !important;
  border-color: #21367f !important;
  transform: translateY(-1px);
}

.btn-outline-secondary,
button[name="move"][value="moveprev"] {
  color: var(--zl-navy) !important;
  background: #fff !important;
  border-color: rgba(23, 41, 103, 0.32) !important;
}

.btn-outline-secondary:hover,
button[name="move"][value="moveprev"]:hover {
  color: #fff !important;
  background: var(--zl-green-dark) !important;
  border-color: var(--zl-green-dark) !important;
}

.alert-danger,
.em_q_fn_validation,
.em_regex_validation {
  color: #7a0610 !important;
  background: #fff0f1 !important;
  border-color: rgba(227, 6, 19, 0.32) !important;
  border-radius: 8px;
}

.modal-content {
  border: 2px solid var(--zl-line);
  border-radius: 8px;
  box-shadow: var(--zl-shadow);
}

.modal-header {
  color: #fff;
  background: var(--zl-navy);
}

.ls-hidden,
.ls-irrelevant {
  transition: opacity 160ms ease;
}

@media (max-width: 767.98px) {
  #survey-nav.navbar {
    min-height: 64px;
    padding: 0.35rem 0.8rem;
  }

  #survey-nav .logo-container {
    display: flex !important;
    min-width: 0;
  }

  #survey-nav .logo-container::before {
    width: min(260px, 82vw);
    height: 50px;
    background-size: calc(100% - 22px) auto;
    box-shadow: 4px 4px 0 rgba(23, 41, 103, 0.2), 0 6px 16px rgba(23, 41, 103, 0.12);
  }

  body .top-container {
    margin-top: 78px !important;
  }

  .group-title {
    width: 100%;
    font-size: 1.32rem;
    text-align: center;
    box-shadow: 5px 5px 0 var(--zl-green), var(--zl-shadow);
  }

  #welcome-container .survey-name {
    width: 100%;
    font-size: 1.55rem;
    text-align: center;
    box-shadow: 5px 5px 0 var(--zl-green), var(--zl-shadow);
  }

  .question-container {
    padding: 1rem !important;
  }

  .yesno-button {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .yesno-button .answer-text {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
