/* ============================================================================
   GEOPHORA — Umfrage-Stylesheet (gemeinsam für /umfrage/ und
   /waermeplanung/umfrage/)  ·  Stand 2026-08-11
   Ersetzt die beiden byte-identischen styles.css-Duplikate. Farben nach dem
   Familien-Design (Untermarken-Beschluss 2026-08-11): Boden, Tinte und
   Haarlinie = „Kühle Kreide" von robertrettig.de; Akzent bleibt das
   GEOPHORA-Blau. Schrift: Inter (Einbindung über assets/fonts/fonts.css
   im jeweiligen HTML-Kopf). Selektoren und Markup unverändert — die
   laufende, token-basierte Befragung bleibt funktional unangetastet.
   ========================================================================== */
:root {
  --bg: #f2f2ef;            /* Kreide — Seitengrund, kein reines Weiß */
  --surface: #f8f8f5;       /* Kartenfläche */
  --ink: #24262a;           /* Tinte */
  --ink-soft: #585c60;      /* Sekundärtext */
  --ink-inv: #f2f2ef;       /* Kreide auf Akzentflächen — statt Reinweiß */
  --line: #dad9d3;          /* Haarlinie */
  --accent: #437d9f;        /* GEOPHORA-Blau (Familien-Akzent) */
  --accent-ink: #2f6d93;    /* Akzent-tief — Textlinks/Lesbares auf Kreide (AA) */
  --accent-soft: #e7eff5;   /* Akzent-Wash — gewählte Zustände, Hinweisbox */
  --accent-line: #cfe0ec;   /* Akzent-Haarlinie — beantwortete Karten, Hinweisbox */
  --err: #b23b3b;           /* Fehlerrot (semantisch, bleibt) */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(36, 38, 42, 0.04), 0 8px 24px rgba(36, 38, 42, 0.06);
  --maxw: 660px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 96px; }

/* --- Intro --- */
.intro { margin-bottom: 28px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem;
  font-weight: 700; color: var(--accent); margin: 0 0 8px;
}
.intro h1 { font-size: clamp(1.55rem, 4vw, 2.05rem); line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.01em; }
.lead { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
.intro-note {
  margin-top: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 15px;
  font-size: 0.95rem; color: var(--ink);
}
.intro-note strong { color: var(--accent-ink); }
.intro-note a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
/* Fußzeilen-Links (Impressum/Datenschutz) — Familien-Akzent statt Browser-Blau */
.privacy a { color: var(--accent-ink); text-decoration: underline; }
.privacy a:hover { color: var(--ink); }

/* --- Fortschritt --- */
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.35s ease; }
.progress__label { font-size: 0.85rem; color: var(--ink-soft); margin: 8px 0 24px; }

/* --- Sektionen --- */
.section { margin-bottom: 8px; }
.section__title {
  font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-ink); margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.section__intro { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 14px; }

/* --- Frage-Karte --- */
.question {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 20px 16px; margin-bottom: 14px; transition: border-color 0.2s ease;
}
.question.is-answered { border-color: var(--accent-line); }
.question.has-error { border-color: var(--err); box-shadow: 0 0 0 3px rgba(178, 59, 59, 0.08); }
.question__text { display: block; font-size: 1.04rem; font-weight: 500; margin-bottom: 16px; }
.question__num { color: var(--accent); font-weight: 700; margin-right: 8px; font-size: 0.85em; }
.req { color: var(--err); font-weight: 700; }
.q-note { font-size: 0.8rem; color: var(--ink-soft); margin: 8px 0 0; }

/* --- Likert-Skala --- */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale__option { position: relative; }
.scale__option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale__box {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; height: 100%;
  transition: all 0.15s ease; background: var(--surface);
}
.scale__symbol { font-size: 1.5rem; line-height: 1; color: var(--ink-soft); transition: color 0.15s ease; }
.scale__label { font-size: 0.72rem; color: var(--ink-soft); line-height: 1.25; }
.scale__option input:hover + .scale__box { border-color: var(--accent); }
.scale__option input:focus-visible + .scale__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.scale__option input:checked + .scale__box { border-color: var(--accent); background: var(--accent-soft); }
.scale__option input:checked + .scale__box .scale__symbol { color: var(--accent-ink); }
.scale__option input:checked + .scale__box .scale__label { color: var(--accent-ink); font-weight: 600; }
.scale__na { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.scale__na input { accent-color: var(--accent); }

/* --- Choice (single / multi) --- */
.choice { display: grid; gap: 8px; }
.choice__row {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice__row:hover { border-color: var(--accent); }
.choice__row input { margin-top: 3px; accent-color: var(--accent); }
.choice__row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice__row input:disabled { opacity: 0.4; }
.other-input {
  margin-top: 2px; width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit;
}

/* --- NPS 0..10 --- */
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.nps__opt { position: relative; }
.nps__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nps__opt span {
  display: flex; align-items: center; justify-content: center; padding: 10px 0;
  border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s ease;
}
.nps__opt input:hover + span { border-color: var(--accent); }
.nps__opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink-inv); }

/* --- Text / Textarea / Consent --- */
.textfield, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--surface); resize: vertical;
}
.textfield:focus, .textarea:focus, .other-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* --- Honeypot (unsichtbar) --- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Absenden --- */
.privacy { font-size: 0.875rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin: 26px 0 0; }
.submit-btn {
  display: block; width: 100%; margin-top: 20px; padding: 16px; font-size: 1.05rem; font-weight: 600;
  color: var(--ink-inv); background: var(--accent); border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}
.submit-btn:hover { background: var(--accent-ink); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.submit-hint { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 0; }
.form-error { color: var(--err); font-size: 0.92rem; margin: 16px 0 0; text-align: center; }

/* --- Inline-Danke (Fallback) --- */
.thanks {
  margin-top: 32px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px;
}

@media (max-width: 480px) {
  .scale__label { display: none; }
  .scale__box { padding: 14px 6px; }
  .scale__symbol { font-size: 1.7rem; }
  .nps { grid-template-columns: repeat(11, 1fr); gap: 3px; }
  .nps__opt span { padding: 8px 0; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
