/* ============================================================
   GoByrdie Umfrage – Look: Hell & Frisch (Warmweiß, Fairway-Grün)
   Mobile-first, optimiert für Touch (Ziele ≥ 48px)
   ============================================================ */

:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --border: #dcded8;
  --ink: #1c211d;
  --ink-soft: #5b615c;
  --ink-faint: #7c827d;
  --green: #2e7d4f;
  --green-dark: #256641;
  --green-tint: #e9f2ec;
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, .brand, .brand-btn, .choice-title, .question-title {
  font-family: 'Sora', 'Helvetica Neue', Arial, sans-serif;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

main#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen { display: flex; flex-direction: column; flex: 1; }
[hidden] { display: none !important; }

/* ===== Kopfzeile mit Fortschritt ===== */
.survey-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 14px 20px 12px;
}

.survey-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand-btn {
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
}

.step-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

.progress-track {
  height: 4px;
  background: #e4e6df;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.35s ease;
}

/* ===== Startscreen ===== */
.hero { padding: 20px 20px 0; }

.brand {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.start-body {
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.lead {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.choice-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.choice-card:active { transform: scale(0.98); }

.choice-card-primary { background: var(--green); border-color: var(--green); }
.choice-card-primary .choice-title { color: #ffffff; }
.choice-card-primary .choice-meta { color: rgba(255, 255, 255, 0.8); }

.choice-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.choice-meta { font-size: 13px; font-weight: 600; color: var(--ink-faint); }

.privacy-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== Fragescreen ===== */
.screen-question { padding: 8px 20px 28px; }

.question-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.question-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin: 10px 0 0;
}

.question-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.question-hint {
  margin: -8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.question-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.question-img-auto { height: auto; }

/* Antwort-Optionen */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 52px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.option input { position: absolute; opacity: 0; pointer-events: none; }

.option .mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c3c7bf;
  display: grid;
  place-items: center;
  transition: border-color 0.12s ease;
}

.option.multi .mark { border-radius: 6px; }

.option .mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.option.multi .mark::after { border-radius: 2px; }

.option.selected {
  border-color: var(--green);
  background: var(--green-tint);
}

.option.selected .mark { border-color: var(--green); }
.option.selected .mark::after { transform: scale(1); }

/* Freitextfeld für "anderes" */
.other-input {
  width: 100%;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  margin-top: 2px;
}

.other-input:focus { outline: 2px solid var(--green-tint); }

/* Skala 1–5 */
.scale-row { display: flex; gap: 8px; }

.scale-btn {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.scale-btn.selected {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: -8px;
}

/* Freitext */
.textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--card);
}

.textarea:focus, .contact-input:focus { outline: none; border-color: var(--green); }

.contact-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
}

.optional-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

/* Navigation */
.nav-row {
  display: flex;
  gap: 12px;
  padding-top: 22px;
  margin-top: auto;
}

.btn {
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  flex: 1;
  background: var(--green);
  color: #ffffff;
  transition: background 0.12s ease, opacity 0.12s ease;
}

.btn-primary:active { background: var(--green-dark); }

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  font-weight: 600;
}

/* ===== Danke / Fehler ===== */
.screen-thanks, .screen-error { justify-content: center; padding: 40px 20px; }

.thanks-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.thanks-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.thanks-check-error { background: #b3552e; }

.screen-thanks h2, .screen-error h2 {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
}

.screen-thanks .btn, .screen-error .btn { width: 100%; max-width: 320px; }

/* Sanfter Übergang zwischen Fragen */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-body.animate { animation: stepIn 0.25s ease; }

/* Größere Screens: Karte mittig */
@media (min-width: 560px) {
  body { padding: 32px 0; }
  main#app {
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg);
  }
  .survey-header { position: static; }
}
