/* Kundenumfrage /umfrage/: eigenes, kleines Stylesheet (Markenfarben aus brand.css). */
:root {
  --ink: #1A1D24;
  --ink-soft: #2C2F37;
  --bone: #F5F1EA;
  --bone-warm: #EDE7DB;
  --champagne: #C9A961;
  --champagne-deep: #9C7F3F;
  --line: #DAD3C2;
  --muted: #6E6A60;
  --fehler: #9B3B2E;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--champagne-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

[hidden] { display: none !important; }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.kopf { margin-bottom: 28px; }
.logo { display: block; width: 186px; height: auto; }
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.wordmark-sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.karte {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: 30px; }
h2 { font-size: 23px; }

.lead { font-size: 18px; }
p { margin: 0 0 14px; }

.info, .datenschutz {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bone-warm);
  border-left: 3px solid var(--champagne);
  border-radius: 6px;
  font-size: 15px;
}
.info p:last-child, .datenschutz p:last-child { margin-bottom: 0; }
.datenschutz { font-size: 14px; color: var(--ink-soft); }

/* Fortschritt */
.fortschritt {
  height: 6px;
  background: var(--bone-warm);
  border-radius: 3px;
  overflow: hidden;
}
.fortschritt-balken {
  height: 100%;
  width: 0;
  background: var(--champagne);
  transition: width 0.3s ease;
}
.fortschritt-text {
  min-height: 22px;
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--muted);
}

#umfrage-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

.hinweis { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.untertitel { margin: -6px 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.klein {
  display: block;
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Auswahlkarten */
.optionen { display: grid; gap: 16px; margin-top: 20px; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 54px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bone);
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}
.option:hover { border-color: var(--champagne); }
.option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--champagne-deep);
}
.option:has(input:checked) {
  border-color: var(--champagne-deep);
  background: #FBF7EE;
  box-shadow: inset 0 0 0 1px var(--champagne-deep);
}
.option.gesperrt { opacity: 0.45; cursor: not-allowed; }
.option input:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 2px; }

/* Themenfrage: jede Gruppe als eigenes Panel */
.gruppen { display: grid; gap: 22px; margin-top: 22px; counter-reset: gruppe; }
.gruppe {
  --g-akzent: var(--champagne);
  --g-flaeche: #FAF5EA;
  --g-aktiv: #F6EDDA;
  counter-increment: gruppe;
  min-width: 0;
  margin: 0;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--g-akzent);
  border-radius: 12px;
  background: var(--g-flaeche);
}
/* Je Themenbereich ein eigener, gedeckter Farbton */
.gruppe:nth-of-type(2) { --g-akzent: #7E9C86; --g-flaeche: #EEF4EF; --g-aktiv: #E1EDE4; }
.gruppe:nth-of-type(3) { --g-akzent: #7F95AE; --g-flaeche: #EDF2F8; --g-aktiv: #DFE8F2; }
.gruppe:nth-of-type(4) { --g-akzent: #B98868; --g-flaeche: #F8EFE9; --g-aktiv: #F1E2D7; }
.gruppe:nth-of-type(5) { --g-akzent: #9C978C; --g-flaeche: #F3F1EC; --g-aktiv: #E8E5DE; }
.gruppe legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.gruppe legend::before {
  content: counter(gruppe);
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g-akzent);
  color: var(--ink);
  font-size: 15px;
  line-height: 28px;
  text-align: center;
}
.gruppe legend + .optionen { clear: both; }
.gruppe .option { background: #fff; }
.gruppe .option:has(input:checked) { background: var(--g-aktiv); border-color: var(--g-akzent); }

.thema {
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
}
.thema:first-of-type { border-top: 0; }
.thema-titel { font-weight: 600; margin-bottom: 4px; }
.thema .optionen { grid-template-columns: 1fr 1fr; margin-top: 0; }

textarea, input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea { resize: vertical; min-height: 130px; }
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--champagne-deep);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25);
}
.sonstiges { margin-top: 4px; }

.fehler {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #F6E7E3;
  color: var(--fehler);
  font-size: 15px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  appearance: none;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}
.btn:hover { background: var(--ink-soft); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  margin-left: 0;
}
.btn-ghost:hover { background: var(--bone-warm); }
.btn:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 3px; }

/* Fuss */
.fuss {
  background: var(--ink);
  color: #B9B4A8;
  font-size: 13px;
}
.fuss-innen {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.fuss-links { display: flex; gap: 18px; }
.fuss a { color: #E4DCC8; text-decoration: none; }
.fuss a:hover { color: var(--champagne); }

/* Teilnahmebedingungen */
.platzhalter {
  background: #FFF3C4;
  border: 1px dashed var(--champagne-deep);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.bedingungen h2 { font-size: 19px; margin-top: 24px; }
.bedingungen ol { padding-left: 20px; }
.bedingungen li { margin-bottom: 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 28px 16px 40px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .karte, #umfrage-form { padding: 22px 16px; border-radius: 12px; }
  .thema .optionen { grid-template-columns: 1fr; }
  .btn { padding: 0 20px; }
  .gruppe { padding: 16px 14px 18px; }
  .gruppe legend { font-size: 18px; }
  .option { padding: 16px 16px; }
}

/* Willkommensseite: persoenlicher Brief + zwei Nutzen-Karten */
.brief { max-width: 720px; margin: 0 auto; }
.brief .lead { font-size: 19px; }
/* Briefschluss: wie handschriftlich unter den Brief gesetzt, normaler Fliesstext */
.briefschluss {
  margin: 24px 0 0;
}
.briefschluss-name { display: inline-block; margin-top: 2px; }
/* Absenderzeile: kompakte Visitenkarte, dezent */
.unterschrift {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.unterschrift-bild {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.unterschrift-text { min-width: 0; }
.unterschrift-text p { margin: 0; }
.unterschrift-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.unterschrift-rolle { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 1px !important; }
.unterschrift-link { font-size: 13px; line-height: 1.4; margin-top: 1px !important; }
.unterschrift-link a { color: var(--muted); }
.unterschrift-link a:hover { color: var(--champagne-deep); }
.trenner { border: 0; border-top: 1px solid var(--line); margin: 36px 0 32px; }
.nutzen-ueberschrift {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}
.nutzen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 8px;
}
.nutzen-kachel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bone-warm);
  border-radius: 16px;
  padding: 28px;
}
.nutzen-bildrahmen {
  flex: none;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
}
.nutzen-bildrahmen-weiss { background: #fff; padding: 8px; box-sizing: border-box; }
.nutzen-bild { display: block; width: 100%; height: 100%; border-radius: 14px; }
.nutzen-bild-contain { object-fit: contain; }
.nutzen-bild-cover { object-fit: cover; }
.nutzen-zeile { display: flex; align-items: flex-start; gap: 14px; }
.nutzen-zeile > div { flex: 1 1 0; min-width: 0; }
.nutzen-nr {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}
.nutzen-kachel h3 {
  margin: 3px 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.nutzen-kachel p { margin: 0; font-size: 17px; line-height: 1.55; }
@media (max-width: 820px) {
  .nutzen { grid-template-columns: 1fr; }
}
.hinweis-leise {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.gewinn-hinweis {
  background: var(--bone-warm);
  border-left: 3px solid var(--champagne);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 30px 0 16px;
  font-size: 15px;
}
@media (max-width: 520px) {
  .nutzen-kachel { padding: 20px 18px; }
  .nutzen-ueberschrift { font-size: 26px; }
  .logo { width: 160px; }
}
.danke-liste { padding-left: 20px; margin: 0 0 16px; }
.danke-liste li { margin-bottom: 6px; }

/* Erklaerzeile unter einer Auswahloption */
.opt-hint {
  display: block;
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
}

/* Inline-Zeitwahl unter einem gewaehlten Thema */
.thema-eintrag .wann { margin: 6px 0 4px 32px; }
.thema-eintrag .wann .optionen { grid-template-columns: 1fr 1fr; gap: 8px; }
.thema-eintrag .wann .option { min-height: 42px; padding: 9px 12px; font-size: 14px; }
.gruppe > .optionen { gap: 12px; margin-top: 0; }
.optionen + .sonstiges, .gruppen + .sonstiges { margin-top: 18px; }
.thema-eintrag .wann .optionen { margin-top: 0; }
@media (max-width: 520px) {
  .thema-eintrag .wann { margin-left: 8px; }
  .thema-eintrag .wann .optionen { grid-template-columns: 1fr; }
}

/* Zwischenseite Halbzeit */
.halbzeit { text-align: center; padding: 8px 0 4px; }
.halbzeit .waili { display: block; width: 200px; height: auto; margin: 0 auto 12px; }
.halbzeit h2 { margin-top: 0; }

/* Mindestumfang-Zaehler (Frage mit Freitext) */
.textzaehler {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.textzaehler.ok { color: #2F6B3F; font-weight: 600; }

/* Letzte Frage: grosser Absenden-Button */
.navigation-absenden { flex-direction: column-reverse; align-items: stretch; }
.btn-gross {
  width: 100%;
  min-height: 62px;
  font-size: 19px;
  margin-left: 0;
}
/* Letzte Frage: "Zurueck" dezent als Textlink unter dem Absenden-Button */
.navigation-absenden { gap: 6px; }
.navigation-absenden .btn-ghost {
  align-self: center;
  min-height: 40px;
  padding: 0 12px;
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.navigation-absenden .btn-ghost:hover { background: none; color: var(--ink); }
/* Datenschutz als kleine Zeile unter den Buttons */
.datenschutz-zeile {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}
.datenschutz-zeile a { color: var(--muted); }
.datenschutz-zeile a:hover { color: var(--ink); }

/* Frage f5: Achse und vier Karten */
.f5-achse {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.f5-achse-linie {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #7F95AE, #7E9C86, #B98868, #C9A961);
}
.f5-karten { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 0; }
.f5-karte {
  --k-akzent: var(--champagne);
  --k-flaeche: #FAF5EA;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--k-akzent);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.f5-befaehigen { --k-akzent: #7F95AE; --k-flaeche: #EDF2F8; }
.f5-sparring { --k-akzent: #7E9C86; --k-flaeche: #EEF4EF; }
.f5-umsetzen { --k-akzent: #B98868; --k-flaeche: #F8EFE9; }
.f5-betrieb { --k-akzent: #C9A961; --k-flaeche: #FAF5EA; }
.f5-karte:hover { border-color: var(--k-akzent); }
.f5-karte:has(input:checked) { background: var(--k-flaeche); border-color: var(--k-akzent); box-shadow: inset 0 0 0 1px var(--k-akzent); }
.f5-karte:has(input:focus-visible) { outline: 2px solid var(--champagne-deep); outline-offset: 2px; }
.f5-kennung {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-akzent);
  filter: brightness(0.8);
}
.f5-kopf { display: flex; align-items: center; gap: 10px; }
.f5-icon { flex: none; color: var(--k-akzent); filter: brightness(0.85); }
.f5-titel { flex: 1 1 auto; min-width: 0; font-weight: 600; line-height: 1.3; }
.f5-kopf input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--champagne-deep);
}
.f5-text { font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 520px) {
  .f5-karten { grid-template-columns: 1fr; }
}

/* Gewinnhinweis auf der letzten Frage: schmale Box mit Geschenk-Icon */
.gewinn-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 0;
  padding: 12px 14px;
  background: #FAF5EA;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.gewinn-box p { margin: 0; }
.gewinn-icon { flex: none; margin-top: 1px; color: #9C7F3F; }
.ueberspringen { margin: 14px 0 0; text-align: center; }
.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px;
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* Willkommensseite: breit auf Desktop, Absender mit Portrait */
.wrap-breit { max-width: 1040px; }
.wrap-breit .fortschritt, .wrap-breit .fortschritt-text { display: none; }
@media (min-width: 900px) {
  .wrap-breit #umfrage-form { padding: 44px 48px; }
  .wrap-breit h1 { font-size: 36px; }
  .wrap-breit .lead { font-size: 19px; }
}

.hinweis-mitte { text-align: center; max-width: 620px; margin: 28px auto 0; }
body:has(.wrap-breit) .fuss-innen { max-width: 1040px; }

/* Vorschau fuers Team (/umfrage/vorschau/): dezentes Band, immer sichtbar. */
.vorschau-band {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 16px;
  background: #FAF5EA;
  border-bottom: 1px solid #C9A961;
  color: #6B5420;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.vorschau-hinweis {
  margin-top: 20px;
  padding: 10px 14px;
  background: #FAF5EA;
  border-left: 3px solid #C9A961;
  font-size: 14px;
  color: var(--ink-soft);
}
