/******************
    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
*/
/* ========================================================
   AGIONT Community Theme — Custom CSS
   Override für theme_apple.css (#14AE5C grün → #F26419 orange)
   Font: Poppins | Headings & Line-Heights: harmonisch
   ======================================================== */

/* ── 1. Google Fonts: Poppins ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── 2. Design Tokens ──────────────────────────────────── */
:root {
  --ac-primary:       #C94A00;
  --ac-accent:        #F26419;
  --ac-accent-hover:  #D4510E;
  --ac-accent-light:  #FFF0E6;
  --ac-text:          #1E1E1E;
  --ac-text-muted:    #6B6B6B;
  --ac-border:        #E8E0D8;

  /* Bootstrap-Override (theme_apple.css setzt diese auf grün) */
  --bs-primary:       #F26419 !important;
  --bs-primary-rgb:   242, 100, 25 !important;
  --bs-success:       #F26419 !important;
  --bs-success-rgb:   242, 100, 25 !important;
  --bs-link-color:    #C94A00 !important;
  --bs-link-color-rgb: 201, 74, 0 !important;
  --bs-link-hover-color: #F26419 !important;
}

/* ── Footer-Überlappung verhindern ─────────────────────── */
body {
  padding-bottom: 80px !important;
}
/* Navigations-Buttons extra Abstand zum Footer */
.ls-navigation-buttons,
.navigator,
#ls-button-submit,
.btn[id*="submit"],
.btn[id*="nextpage"],
.btn[id*="prevpage"],
[id*="ls-button"] {
  margin-bottom: 1.5rem;
}


.ls-answers .ls-heading th, .ls-answers th {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.2rem;
    color: #000000;
}
/* ── 3. Poppins überall ────────────────────────────────── */
html, body, h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, label, li, td, input, textarea, select, button,
.btn, .form-control, .form-select,
.navbar, .dropdown-menu, .question-text, .answer-text {
  font-family: 'Poppins', system-ui, sans-serif !important;
}

#survey-nav .logo-container {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: -35px;
}

#survey-nav .dropdown-toggle::after {
    font-family: "remixicon";
    content: "\ea6e" /*!rtl:'\ea64'*/;
    border: none;
    vertical-align: 0;
    position: sticky;
    right: 8px;
    padding-left: 0px;
    font-size: 0.88rem;
}

#survey-nav .logo-container .logo {
    max-height: 98px !important;
    max-width: 320px !important;
    width: auto !important;
    height: auto !important;
}

.question-container .ls-question-message
 {
    color: #222222;
    font-style: normal;
    font-size: 0.88rem;
}

/* ── Pflichtfrage-Asterisk: korrekte Ausrichtung ─────────── */
.question-title-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 0.25rem;
  flex-wrap: nowrap;
}
.question-title-container .asterisk {
  display: inline-flex !important;
  flex-shrink: 0;
  width: 0.7rem !important;
  height: 0.7rem !important;
  font-size: 0.45rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  color: var(--ac-accent, #F26419);
  position: relative;
  top: -0.15rem;
}

/* Verhindert dass der Icon-Font die Box aufbläst */
.question-title-container .asterisk::before {
  line-height: 1 !important;
  vertical-align: middle !important;
}

/* Fragetext-Größe 0.88rem */
.question-text,
.question-text .ls-label-question,
div[id^="ls-question-text-"] {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
}

/* Fragecontainer-Höhe reduzieren */
.question-container .question-title-container {
  margin-bottom: 6px !important;
}

/* ── Fragetext-Größe: 0.9375rem (= 15px) statt 0.88rem ──── */
.question-text,
.question-text .ls-label-question,
div[id^="ls-question-text-"] {
  font-size: 0.88rem !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
}

.ls-survey-title, h1.group-title {
    font-size: 1.0rem !important;
}

.list-group-item {
    background-color: #ffffff;
    border: 1px solid #dddddd;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    background-color: #fff;
    /* border: 1px solid rgba(0, 0, 0, 0.125); */
}

.question-container .ls-label-question {
    font-weight: 400;
}

.group-container .group-title {
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 52px;
    margin-top: 1em;
    margin-bottom: 10px;
}

a {
    font-weight: 400;
    font-size: 0.88rem;
    text-decoration: underline;
}

/* ── 4. Body & Lesbarkeit ──────────────────────────────── */
body {
  line-height: 1.7;
  font-size: 0.88rem;
  color: var(--ac-text);
}

p, li, td, label, .answer-text {
  line-height: 1.7 !important;
  font-size: 0.88rem;
}

/* ── 5. Headings — fixe Größen statt riesigem clamp ───── */
h1, .h1 { font-size: 1.70rem !important; line-height: 1.3 !important; font-weight: 400; }
h2, .h2 { font-size: 1.15rem !important; line-height: 1.35 !important; font-weight: 400; }
h3, .h3 { font-size: 1.10rem  !important; line-height: 1.4  !important; font-weight: 400; }
h4, .h4 { font-size: 1.05rem  !important; line-height: 1.4  !important; font-weight: 400; }
h5, .h5 { font-size: 1rem     !important; line-height: 1.4  !important; font-weight: 400; }
h6, .h6 { font-size: 0.8875rem !important; line-height: 1.4  !important; font-weight: 400; }

/* Survey-Title und Group-Title etwas größer als Default-h1 */
.ls-survey-title, h1.group-title { font-size: 1.7rem !important; }

/* Frage-Text */
.question-text {
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  font-weight: 400;
}

/* ── 6. Bootstrap-Klassen: GRÜN → ORANGE ──────────────── */
.btn-primary, .btn-success {
  background-color: var(--ac-accent) !important;
  border-color: var(--ac-accent) !important;
  color: #fff !important;
  font-weight: 400 !important;
}
.btn-primary:hover, .btn-success:hover,
.btn-primary:focus, .btn-success:focus {
  background-color: var(--ac-accent-hover) !important;
  border-color: var(--ac-accent-hover) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(242,100,25,0.3) !important;
}

.btn-outline-primary, .btn-outline-success {
  color: var(--ac-accent) !important;
  border-color: var(--ac-accent) !important;
  background: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-success:hover {
  background: var(--ac-accent) !important;
  color: #fff !important;
}

.btn-link, a.btn-link {
  color: var(--ac-primary) !important;
}
.btn-link:hover { color: var(--ac-accent) !important; }

.text-primary, .text-success {
  color: var(--ac-accent) !important;
}
.bg-primary, .bg-success {
  background-color: var(--ac-accent) !important;
}
.border-primary, .border-success, .success-border {
  border-color: var(--ac-accent) !important;
}
.link-primary, .link-success {
  color: var(--ac-primary) !important;
}
.link-primary:hover, .link-success:hover {
  color: var(--ac-accent) !important;
}

/* Validation-States — grüne ".has-success" → orange neutralisieren */
.has-success .form-control,
.was-validated .form-control:valid {
  border-color: var(--ac-border) !important;
  background-image: none !important;
}
.was-validated .form-control:valid:focus,
.has-success .form-control:focus {
  border-color: var(--ac-accent) !important;
  box-shadow: 0 0 0 3px rgba(242,100,25,0.15) !important;
}

/* ── 7. Radio & Checkbox Häkchen ──────────────────────── */
.radio-item input[type="radio"]:checked + label::before,
.checkbox-item input[type="checkbox"]:checked + label::before {
  border-color: var(--ac-accent) !important;
  background-color: var(--ac-accent) !important;
}
.radio-item input[type="radio"]:checked + label::after,
.checkbox-item input[type="checkbox"]:checked + label::after {
  color: var(--ac-accent) !important;
}

/* ── 8. Links ──────────────────────────────────────────── */
a, a:visited { color: var(--ac-primary); }
a:hover { color: var(--ac-accent); }

/* ── 9. Form-Inputs ────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--ac-accent) !important;
  box-shadow: 0 0 0 3px rgba(242,100,25,0.15) !important;
  outline: none;
}

/* ── 10. Progress-Bar ──────────────────────────────────── */
.progress-bar { background-color: var(--ac-accent) !important; }

/* ── 11. Slider (theme_apple.css nutzt grün) ───────────── */
.slider-selection,
.slider .slider-track-high,
.slider .slider-handle,
.slider-tick.custom::before {
  background: var(--ac-accent) !important;
  border-color: var(--ac-accent) !important;
}

/* ── 12. Table — Hover-Highlight ───────────────────────── */
.table-hover > tbody > tr:hover > * {
  background-color: var(--ac-accent-light) !important;
}

/* ── 13. Privacy-Block (Datenschutz-Box auf Startseite) ── */
.privacy { border-color: var(--ac-border) !important; }
.ls-privacy-block [role="heading"] {
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  font-weight: 400;
  color: var(--ac-text-muted);
}

/* ── 14. Navbar Direkt-Buttons (für nav_bar Override) ──── */
.btn-outline-nav {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88125rem;
  font-weight: 400;
  color: var(--ac-primary);
  border: 1px solid var(--ac-border);
  background: transparent;
  border-radius: 7px;
  padding: 11px 5px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-outline-nav:hover {
  background: var(--ac-accent-light);
  border-color: var(--ac-accent);
  color: var(--ac-accent);
}

/* ── 15. Chatwoot-Bubble über fixem Footer ─────────────── */
.woot-widget-bubble  { bottom: 70px !important; }
.woot-widget-holder  { bottom: 130px !important; }


/* Fragenindex-Dropdown: scrollbar bei vielen Fragen */
#survey-nav-actions .dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
  min-width: 280px;
  scrollbar-width: thin;
  scrollbar-color: var(--ac-accent, #F26419) transparent;
}

#survey-nav-actions .dropdown-menu::-webkit-scrollbar {
  width: 8px;
}
#survey-nav-actions .dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--ac-accent, #F26419);
  border-radius: 4px;
}
#survey-nav-actions .dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

/* Fragenindex-Items kompakter */
#survey-nav-actions .dropdown-menu .dropdown-item {
  padding: 6px 12px;
  font-size: 0.8875rem;
  white-space: normal;
  line-height: 1.4;
}


/* ─────────────────────────────────────────────────────────
   AGIONT — Header & Footer Styling
   ───────────────────────────────────────────────────────── */

/* Body Padding für fixed Header + Footer */
body {
  padding-top: 64px !important;
  padding-bottom: 80px !important;
}

/* ── Navbar / Header ──────────────────────────────────── */
#survey-nav.navbar {
  background: #FFFFFF !important;
  border-bottom: 2px solid var(--ac-accent, #F26419) !important;
  box-shadow: 0 2px 12px rgba(202,74,0,0.08) !important;
  height: 64px;
  padding: 0 1.5rem !important;
  z-index: 1030;
}
#survey-nav .container-fluid {
  height: 100%;
  align-items: center;
  display: flex;
}
#survey-nav .logo-container {
  display: flex;
  align-items: center;
  margin-right: auto;
}
#survey-nav .logo-container .logo {
  max-height: 38px;
  max-width: 220px;
}

/* ── Navbar Direkt-Buttons (Später fortfahren / Fragenindex) ── */
.btn-outline-nav {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88125rem;
  font-weight: 500;
  color: var(--ac-primary, #C94A00) !important;
  border: 1px solid var(--ac-border, #E8E0D8) !important;
  background: transparent !important;
  border-radius: 7px !important;
  padding: 6px 14px !important;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-outline-nav:hover {
  background: var(--ac-accent-light, #FFF0E6) !important;
  border-color: var(--ac-accent, #F26419) !important;
  color: var(--ac-accent, #F26419) !important;
}
.btn-outline-nav.dropdown-toggle::after {
  margin-left: 0.6em;
  vertical-align: 0.15em;
}

/* Fragenindex-Dropdown: scrollbar bei vielen Fragen */
#survey-nav-actions .dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
  min-width: 280px;
  font-size: 0.8875rem;
  border-radius: 10px;
  border: 1px solid var(--ac-border, #E8E0D8);
  box-shadow: 0 4px 24px rgba(202,74,0,0.13);
}
#survey-nav-actions .dropdown-menu .dropdown-item {
  padding: 6px 12px;
  white-space: normal;
  line-height: 1.4;
}
#survey-nav-actions .dropdown-menu::-webkit-scrollbar { width: 8px; }
#survey-nav-actions .dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--ac-accent, #F26419);
  border-radius: 4px;
}

/* ── Fixed Footer ─────────────────────────────────────── */
#agiont-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #1A0F00;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  font-family: 'Poppins', sans-serif;
}
#agiont-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
#agiont-footer .footer-brand-logo {
  height: 22px;
  opacity: 0.885;
  filter: brightness(0) invert(1);
}
#agiont-footer .footer-brand-name {
  font-size: 0.88125rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#agiont-footer .footer-tagline {
  font-size: 0.75rem;
  color: #BBA898;
  font-weight: 300;
}
#agiont-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
#agiont-footer .footer-right a {
  font-size: 0.75rem;
  color: #BBA898;
  text-decoration: none;
  transition: color 0.15s;
}
#agiont-footer .footer-right a:hover {
  color: var(--ac-accent, #F26419);
}

@media (max-width: 600px) {
  #agiont-footer .footer-tagline,
  #agiont-footer .footer-right a:not(:last-child) {
    display: none;
  }
  #agiont-footer { padding: 0 1rem; }
}

/* Footer-Logo: keine Filter, rundes Format */
#agiont-footer .footer-brand-logo {
  height: 28px !important;
  width: 28px !important;
  border-radius: 50%;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
}


/* ─────────────────────────────────────────────────────────
   AGIONT — Logo größer + Token-Eingabe-Seite
   ───────────────────────────────────────────────────────── */

/* ── Header für 75px hohes Logo erweitern ──────────────── */
:root {
  --ac-navbar-h: 95px;
}

body {
  padding-top: 95px !important;
}

#survey-nav.navbar {
  height: 95px !important;
  padding: 8px 1.5rem !important;
}

#survey-nav .logo-container .logo {
  max-height: 75px !important;
  max-width: 320px !important;
  width: auto !important;
  height: auto !important;
}

/* ── Alert-Boxen: lila → orange-light ──────────────────── */
.alert-info,
.alert-primary {
  background-color: var(--ac-accent-light, #FFF0E6) !important;
  border-color: var(--ac-accent, #F26419) !important;
  color: var(--ac-text, #1E1E1E) !important;
}

.alert-info p,
.alert-info,
.alert-primary {
  color: var(--ac-text, #1E1E1E) !important;
}

/* ── Token-Eingabe: Eye-Toggle ─────────────────────────── */
#ls-toggle-token-show.input-group-text,
.input-group .input-group-text {
  background: var(--ac-surface, #FFFFFF) !important;
  border: 1px solid var(--ac-border, #E8E0D8) !important;
  border-left: none !important;
  color: var(--ac-text-muted, #6B6B6B) !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#ls-toggle-token-show.input-group-text:hover,
.input-group .input-group-text:hover {
  background: var(--ac-accent-light, #FFF0E6) !important;
  color: var(--ac-accent, #F26419) !important;
}

/* Token-Input-Group sauber stylen */
.input-group.ls-important-field .form-control {
  border-right: none;
}
.input-group.ls-important-field .form-control:focus {
  z-index: 2;
}


.control-label {
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 24px;
}

.ls-answers label, .answer-item label, .control-label {
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 20px;
}