/* =====================================================================
   Angelfreunde Stahl Hennigsdorf 1959 e.V. – Mitgliederumfrage 2026
   custom.css für das LimeSurvey-Theme "angelfreunde_modern"
   (Basis: fruity_twentythree, LimeSurvey 6)

   Farben wie auf der Beilage zum Jahresbrief. Schrift bleibt IBM Plex
   Sans, die LimeSurvey lokal mitliefert – keine externen Schriften,
   passend zum Datenschutzhinweis ("keine externen Dienste").
   Zum Zurücksetzen: Inhalt dieser Datei einfach leeren.
   ===================================================================== */

:root {
  --af-havel: #1f4e8c;        /* Vereinsblau, Buttons & Auswahl   */
  --af-tief: #13325c;         /* Überschriften, Schnur            */
  --af-ufer: #eaf1f9;         /* helle Flächen, Hinweise          */
  --af-grund: #f4f7fb;        /* Seitenhintergrund                */
  --af-linie: #cfdbea;        /* Rahmen                           */
  --af-text: #1d2633;
  --af-leise: #566579;        /* Hilfetexte                       */
  --af-pose: #e8792b;         /* Posen-Orange, nur im Fortschritt */
  --af-fehler: #b42318;

  --bs-primary: #1f4e8c;
  --bs-primary-rgb: 31, 78, 140;
}

/* ---------- Grundlayout ---------- */
html body {
  background: var(--af-grund);
  color: var(--af-text);
  font-size: 1.125rem;
  line-height: 1.55;
}
html body #survey-nav.navbar {
  background: #fff;
  border-bottom: 1px solid var(--af-linie);
}
html body .logo-container > img { max-height: 64px; }

html body a { color: var(--af-havel); }

/* ---------- Fortschritt: Schnur mit Pose ---------- */
html body .top-container { background: var(--af-grund); }
html body .top-container .ls-progress-container { padding: 18px 12px 10px; }
html body .top-container .progress {
  height: 2px;
  overflow: visible;
  background: var(--af-linie);
  border-radius: 0;
}
html body .top-container .progress-bar {
  position: relative;
  overflow: visible;
  min-width: 0;
  background: var(--af-tief);
}
/* Posenkörper */
html body .top-container .progress-bar::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(to bottom, var(--af-pose) 0 48%, #fff 48% 100%);
  border: 1.5px solid var(--af-tief);
  box-sizing: border-box;
}
/* Antenne */
html body .top-container .progress-bar::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -17px;
  width: 2px;
  height: 8px;
  background: var(--af-pose);
}

/* ---------- Begrüßungsseite ---------- */
html body .survey-name {
  color: var(--af-tief);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  margin-top: .5rem;
  margin-bottom: .25rem;
}
html body .survey-description {
  color: var(--af-leise);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--af-havel);
  max-width: 34rem;
}
html body .survey-welcome { max-width: 40rem; }
html body .survey-welcome,
html body .survey-welcome p { font-size: 1.125rem; line-height: 1.55; font-weight: 400; }
html body .survey-welcome p { margin-bottom: .9em; }

html body .survey-welcome p.af-lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--af-havel);
  margin-bottom: .75rem !important;
}
.af-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
}
.af-fact {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--af-linie);
  border-radius: 999px;
  font-size: 1rem;
  white-space: nowrap;
}
.af-note {
  background: var(--af-ufer);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 1rem;
  font-size: 1rem;
}
html body .survey-welcome .af-note p { font-size: 1rem; }
.af-note p:last-child { margin-bottom: 0; }

/* Datenschutz-Bestätigung */
html body .privacy {
  max-width: 40rem;
  margin-top: 1.5rem;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--af-linie);
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.45;
}
html body .privacy .checkbox-item label::before { border-color: var(--af-havel); }

/* ---------- Gruppen (Seiten) ---------- */
html body .group-container .group-title {
  color: var(--af-tief);
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-top: .75em;
  margin-bottom: .6em;
}
html body .group-container .group-description {
  max-width: 44rem;
  background: var(--af-ufer);
  border-left: 4px solid var(--af-havel);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
html body .group-container .group-description p:last-child { margin-bottom: 0; }

/* ---------- Fragen ---------- */
html body .question-container {
  background: #fff;
  border: 1px solid var(--af-linie);
  border-radius: 14px;
  padding: 22px 8px 12px;
  margin: 0 0 20px;
}
html body .question-container .ls-label-question {
  color: var(--af-tief);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}
html body .question-container .asterisk { display: none; } /* fast alles ist Pflicht – Sternchen lenkt nur ab */
html body .question-help-container .ls-questionhelp {
  color: var(--af-leise);
  font-size: 1rem;
}
html body .question-container .question-valid-container { margin: 6px 0 12px; }

/* Fehlerzustand: Frage nicht beantwortet */
html body .question-container.input-error {
  border-color: var(--af-fehler);
  box-shadow: inset 4px 0 0 var(--af-fehler);
}
html body .question-container.input-error .ls-questionhelp,
html body .question-container .ls-em-error { color: var(--af-fehler); }

/* ---------- Antwortkacheln (Einfach- und Mehrfachauswahl) ---------- */
html body .answer-container ul.list-unstyled > li.answer-item {
  position: relative;
  display: block;
  margin: 0 0 10px;
  padding: 0;
  background: #fff;
  border: 1.5px solid var(--af-linie);
  border-radius: 10px;
  transition: border-color .12s, background-color .12s;
}
html body .answer-container ul.list-unstyled > li.answer-item:hover {
  border-color: #9fb6d3;
}
html body .answer-container ul.list-unstyled > li.answer-item:has(input:checked) {
  border-color: var(--af-havel);
  background: var(--af-ufer);
}
html body .answer-container ul.list-unstyled > li.answer-item:has(input:focus-visible) {
  outline: 3px solid rgba(31, 78, 140, .35);
  outline-offset: 2px;
}
/* Ausschließliche Antworten ("bitte allein auswählen") */
html body .answer-container ul.list-unstyled > li.answer-item:has(.af-solo) {
  border-style: dashed;
  margin-top: 16px;
}
html body .answer-container .af-solo {
  display: block;
  font-size: .9rem;
  color: var(--af-leise) !important;
}

/* Bootstrap-Raster in den Kacheln neutralisieren */
html body .answer-container li.answer-item > .row { margin: 0; }
html body .answer-container li.answer-item > .row > [class*="col"] {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  padding: 0;
}
html body .answer-container li.answer-item.checkbox-item,
html body .answer-container li.answer-item .checkbox-item { padding-left: 0; }
html body .answer-container li.answer-item .othertext-label-checkox-container {
  width: 100%;
  margin: 0;
}

/* Ganze Kachel ist klickbar */
html body .answer-container li.answer-item label.radio-label,
html body .answer-container li.answer-item label.checkbox-label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px 14px 52px;
  min-height: 52px;
  line-height: 1.4;
  color: var(--af-text);
  cursor: pointer;
}
html body .answer-container li.answer-item input:checked + label.radio-label,
html body .answer-container li.answer-item input:checked + label.checkbox-label {
  color: var(--af-tief);
  font-weight: 500;
}

/* Kreis / Kästchen */
html body .answer-container li.answer-item label.radio-label::before,
html body .answer-container li.answer-item label.checkbox-label::before {
  left: 16px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  border: 2px solid #7488a3;
  background: #fff;
}
html body .answer-container li.answer-item label.radio-label::before {
  width: 22px;
  height: 22px;
}
html body .answer-container li.answer-item label.checkbox-label::before {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
html body .answer-container li.answer-item label.radio-label::after {
  left: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: 0;
  transform: translateY(-50%) scale(0);
  background: var(--af-havel);
}
html body .answer-container li.answer-item input[type=radio]:checked + label.radio-label::after {
  transform: translateY(-50%) scale(1);
}
html body .answer-container li.answer-item input[type=radio]:checked + label.radio-label::before,
html body .answer-container li.answer-item input[type=checkbox]:checked + label.checkbox-label::before {
  border-color: var(--af-havel);
}
html body .answer-container li.answer-item input[type=checkbox]:checked + label.checkbox-label::before {
  background: var(--af-havel);
}
html body .answer-container li.answer-item input[type=checkbox] + label.checkbox-label::after {
  left: 17px;
  top: 50%;
  margin: 0;
  width: 20px;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 20px;
  text-align: center;
  color: #fff;
}

/* "Etwas anderes" mit Textfeld */
html body .answer-container li.checkbox-text-item label.checkbox-label { padding-bottom: 8px; }
html body .answer-container li.checkbox-text-item .other-text-item {
  padding: 0 16px 14px 52px;
}
html body .answer-container li.checkbox-text-item .other-text-item .form-control {
  margin-top: 0 !important;
}

/* ---------- Matrix-Fragen (z. B. "Wie oft nimmst du teil?") ---------- */
html body table.ls-answers { background: #fff; }
html body table.ls-answers .ls-heading th {
  color: var(--af-leise);
  font-size: .95rem;
  font-weight: 600;
}
html body table.ls-answers tbody tr.ls-odd { background: var(--af-grund); }
html body table.ls-answers tbody th.answertext {
  color: var(--af-tief);
  font-weight: 600;
  padding: 12px 10px;
}
html body table.ls-answers .radio-item input[type=radio]:checked + label::before { border-color: var(--af-havel); }
html body table.ls-answers .radio-item label::after,
html body table.ls-answers .radio-item input[type=radio] + label::after { background-color: var(--af-havel); }

/* ---------- Textfelder ---------- */
html body .question-container .form-control {
  border: 1.5px solid var(--af-linie);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1.05rem;
}
html body .question-container .form-control:focus {
  border-color: var(--af-havel);
  box-shadow: 0 0 0 3px rgba(31, 78, 140, .2);
}
html body .question-container textarea.form-control { min-height: 9rem; }

/* ---------- Navigation ---------- */
html body .navigator { margin-top: 8px; margin-bottom: 32px; }
html body .navigator .btn {
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}
html body .navigator .btn-primary {
  background: var(--af-havel);
  border-color: var(--af-havel);
  color: #fff;
}
html body .navigator .btn-primary:hover,
html body .navigator .btn-primary:focus {
  background: var(--af-tief);
  border-color: var(--af-tief);
}
html body .navigator .btn-outline-secondary {
  background: #fff;
  border: 1.5px solid var(--af-linie);
  color: var(--af-tief);
}
@media (max-width: 575px) {
  html body .navigator .btn { width: 100%; padding: 12px 10px; }
}

/* ---------- Abschlussseite ---------- */
html body .completed-text { max-width: 40rem; margin: 0 auto; }
.af-end {
  text-align: center;
  background: #fff;
  border: 1px solid var(--af-linie);
  border-radius: 14px;
  padding: 32px 22px 26px;
  margin-top: 1.5rem;
}
.af-end-icon { font-size: 2.6rem; line-height: 1; margin-bottom: .5rem; }
.af-end h2 {
  color: var(--af-tief);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 .75rem;
}
.af-end p { margin: 0 auto .8em; max-width: 32rem; }
.af-end .af-sign {
  margin-top: 1.25rem;
  color: var(--af-havel);
  font-weight: 600;
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 575px) {
  html body { font-size: 1.0625rem; }
  html body .question-container { padding: 18px 2px 8px; border-radius: 12px; }
  html body .survey-welcome,
  html body .survey-welcome p { font-size: 1.0625rem; }
  html body .question-container .ls-label-question { font-size: 1.18rem; }
  html body .group-container .group-description { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html body .answer-container ul.list-unstyled > li.answer-item { transition: none; }
}
/* Vereinslogo größer */
html body #survey-nav .logo-container > img {
  height: 72px;
  max-height: none;
  width: auto;
  padding: 6px 0;
}
@media (max-width: 575px) {
  html body #survey-nav .logo-container > img { height: 56px; }
}