/* ============================================================
   Customer Validation Survey — markenneutral, klar, lesbar
   ============================================================ */

:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #767676;
  --line: #E2E2DE;
  --line-strong: #C8C8C0;
  --accent: #2A4D3E;     /* gedecktes Dunkelgrün — vertraut, neutral, nicht-Brand */
  --accent-hover: #1F3A2E;
  --accent-soft: #EEF2EF;
  --error: #B8362A;
  --radius: 12px;
  --max-w: 720px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

.hidden { display: none !important; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-line {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.lang-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ============================================================
   Main
   ============================================================ */

.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 24px;
}

/* ============================================================
   Intro card
   ============================================================ */

.intro-card h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.intro-card .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.intro-facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-facts li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.privacy-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 20px 0 0;
  line-height: 1.5;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary, .btn-secondary {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  background: var(--line-strong);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Progress
   ============================================================ */

.progress {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 0 0 40px;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-label {
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Survey form
   ============================================================ */

.survey {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.question {
  border: none;
  padding: 0;
  margin: 0;
}

.question legend {
  padding: 0;
  margin: 0 0 24px;
  width: 100%;
}

.q-num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.q-text {
  display: block;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.q-text strong {
  font-weight: 700;
}

.q-hint {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 8px;
  font-style: italic;
}

/* ============================================================
   Options (radio/checkbox)
   ============================================================ */

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 0;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
}

.opt:hover {
  border-color: var(--line-strong);
  background: #FAFAF8;
}

.opt input[type="radio"], .opt input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.opt span {
  flex: 1;
  line-height: 1.4;
}

/* ============================================================
   Email block
   ============================================================ */

.email-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

#email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

#email-input:focus {
  outline: none;
  border-color: var(--accent);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ============================================================
   Nav bar
   ============================================================ */

.nav-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.nav-bar .btn-primary {
  margin-left: auto;
}

/* ============================================================
   Other input (Sonstiges-Textfeld)
   ============================================================ */

.other-input {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.other-input:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.opt.has-other:has(input:checked) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

/* ============================================================
   Open feedback textarea
   ============================================================ */

#open-feedback, textarea {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease;
}

#open-feedback:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ============================================================
   Restart button on thanks page
   ============================================================ */

.thanks-restart {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.thanks-restart .btn-secondary {
  font-size: 14px;
  padding: 10px 18px;
}

/* ============================================================
   Teaser slide
   ============================================================ */

.teaser-slide .q-num {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.teaser-body {
  margin-top: 16px;
}

.teaser-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.teaser-link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.teaser-pw {
  margin-top: 20px !important;
  font-size: 14px !important;
  color: var(--ink-mute) !important;
}

.teaser-pw code {
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
}

/* ============================================================
   Thanks + Error
   ============================================================ */

.thanks-cta {
  margin: 28px 0;
  padding: 24px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.thanks-cta p {
  margin: 0 0 16px !important;
  font-size: 15px;
  color: var(--ink) !important;
}

.thanks-cta a.btn-primary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.thanks-pw {
  margin-top: 16px !important;
  font-size: 13px !important;
  color: var(--ink-mute) !important;
}

.thanks-pw code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--accent);
}

.thanks-card h2, .error-card h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.thanks-card p, .error-card p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.thanks-followup {
  font-size: 15px;
  color: var(--ink-mute) !important;
}

.error-card {
  border-color: var(--error);
}

.error-card h2 {
  color: var(--error);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 600px) {
  .main { padding: 24px 16px 60px; }
  .card, .survey { padding: 28px 20px; border-radius: 10px; }
  .intro-card h1 { font-size: 24px; }
  .q-text { font-size: 19px; }
  .opt { padding: 12px 14px; font-size: 15px; }
  .nav-bar { flex-direction: column-reverse; }
  .nav-bar .btn-primary, .nav-bar .btn-secondary { width: 100%; margin-left: 0; }
}

/* ============================================================
   Accessibility — keyboard focus
   ============================================================ */

button:focus-visible, input:focus-visible, .opt:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
