/* traum-ziel-sieg.de — shared styles */
/* Bewusst keine externen Web-Fonts (z.B. Google Fonts) eingebunden:
   so lädt die Seite ohne jede externe Anfrage und ohne IP-Übertragung
   an Dritte — datenschutzfreundlich per Voreinstellung. */

:root {
  --bg: #F1F3EF;
  --paper: #FFFFFF;
  --ink: #142838;
  --ink-soft: #48586A;
  --gold: #C89B3C;
  --gold-deep: #A87F2B;
  --berry: #8B3A5E;
  --sage: #4F7A5B;
  --line: #DEE4DA;
  --radius: 4px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--berry); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 28px 0 0;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.brand span { color: var(--gold-deep); }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 20px;
  max-width: 15ch;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.meta-row .dot::before {
  content: "•";
  margin-right: 8px;
  color: var(--gold-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #0B1A28; transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }

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

/* ---------- Quiz card ---------- */

.quiz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 64px;
}

@media (max-width: 560px) {
  .quiz-card { padding: 28px 20px; }
}

.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.35s ease;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.topic-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--berry);
  border: 1px solid var(--berry);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 18px;
}

.question h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 26px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover { border-color: var(--gold); }

.option.selected {
  border-color: var(--gold-deep);
  background: #FBF3E1;
}

.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ---------- Intro screen within card ---------- */

.intro-block p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.intro-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 26px 0 30px;
}

.intro-facts div {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
}

.intro-facts span {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Result screen ---------- */

.result-badge {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.result-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0 0 16px;
}

.result-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.score-line {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.email-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 8px;
}

.email-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.email-block p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0 0 18px;
}

.email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-form input[type="email"] {
  flex: 1 1 220px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.consent-line input { margin-top: 3px; }

.restart-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
}

.thanks-msg {
  color: var(--sage);
  font-weight: 600;
  margin-top: 14px;
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0 60px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink-soft); }

/* ---------- Legal pages ---------- */

.legal h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-top: 40px;
}

.legal p, .legal li { color: var(--ink-soft); }

.legal .updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

/* ---------- Survey form ---------- */

.survey-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .survey-block { padding: 28px 20px; }
}

.survey-field {
  margin-bottom: 30px;
}

.survey-field:last-child { margin-bottom: 0; }

.survey-field label.q-label,
.survey-field legend.q-label {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding: 0;
  color: var(--ink);
}

.survey-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  font-family: var(--sans);
  font-size: 1rem;
  resize: vertical;
  background: var(--bg);
}

.survey-field textarea:focus { border-color: var(--gold-deep); }

fieldset.survey-field {
  border: none;
  margin: 0 0 30px;
  padding: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.98rem;
}

.radio-option:has(input:checked) {
  border-color: var(--gold-deep);
  background: #FBF3E1;
}

.radio-option input { margin-top: 3px; }

.optional-tag {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
