:root {
  --bg: #FBF6EF;
  --bg-card: #FFFFFF;
  --ink: #6B4429;
  --ink-soft: #8D7360;
  --ink-faint: #B7A492;
  --accent: #BE7C46;
  --accent-ink: #4E2F14;
  --accent-soft: #F0DDC4;
  --sage: #83805F;
  --sage-soft: #E8E6D6;
  --line: #E7DDCE;
  --danger: #B3543F;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(107,68,41,0.06), 0 8px 24px rgba(107,68,41,0.06);
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #221A13;
    --bg-card: #2E241A;
    --ink: #F4EAE0;
    --ink-soft: #CBB6A2;
    --ink-faint: #957F6C;
    --accent: #DD9A5F;
    --accent-ink: #2B1B0D;
    --accent-soft: #4A331E;
    --sage: #A6A283;
    --sage-soft: #3B3A29;
    --line: #453728;
    --danger: #D3806B;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #221A13;
  --bg-card: #2E241A;
  --ink: #F4EAE0;
  --ink-soft: #CBB6A2;
  --ink-faint: #957F6C;
  --accent: #DD9A5F;
  --accent-ink: #2B1B0D;
  --accent-soft: #4A331E;
  --sage: #A6A283;
  --sage-soft: #3B3A29;
  --line: #453728;
  --danger: #D3806B;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--accent); }
.logo-icon { height: 34px; width: auto; display: block; }

.tagline-pill {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 100px;
}

.hero { margin-bottom: 64px; }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 15ch;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

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

/* ---- Prose (Impressum / Datenschutz) ---- */
.prose h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 28px;
}
.prose h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 36px 0 12px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-ink); }

.prose h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--ink);
}

.callout {
  background: var(--sage-soft);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 0.94rem;
  color: var(--ink);
}
.callout strong { display: block; margin-bottom: 4px; }

.prose details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.prose details p { margin-top: 10px; margin-bottom: 0; }

.guide-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.cta-box {
  margin-top: 40px;
  padding: 24px;
  background: var(--accent-soft);
  border-radius: 12px;
  text-align: left;
}
.cta-box p { color: var(--ink); margin-bottom: 14px; }
.cta-box a.cta-link {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 0.94rem;
}
.cta-box a.cta-link:hover { background: var(--accent-ink); }
.progress { display: flex; gap: 8px; margin-bottom: 28px; }
.progress .seg { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background 0.3s ease; }
.progress .seg.done { background: var(--sage); }
.progress .seg.active { background: var(--accent); }

.step-label { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 6px; }

.step-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 24px;
}

.options { display: grid; gap: 12px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--sage); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option .emoji { font-size: 1.3rem; line-height: 1.2; }
.option .otext strong { display: block; font-weight: 600; margin-bottom: 2px; }
.option .otext span { color: var(--ink-soft); font-size: 0.88rem; }

.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

button.ghost {
  background: none; border: none; color: var(--ink-soft);
  font-family: inherit; font-size: 0.92rem; cursor: pointer; padding: 8px 4px;
}
button.ghost:hover { color: var(--ink); }
button.ghost:disabled { opacity: 0.35; cursor: default; }

button.primary {
  background: var(--ink); color: var(--bg); border: none;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 9px; cursor: pointer;
}
button.primary:hover { background: var(--accent-ink); }
button.primary:disabled { opacity: 0.35; cursor: default; }

.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.result-head h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.6rem; margin: 0; }
.result-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 28px; }

.category { margin-bottom: 28px; }
.category:last-of-type { margin-bottom: 0; }
.category h3 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-faint); margin: 0 0 12px; font-weight: 600;
}

.product-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.category .product-row:last-child { border-bottom: none; }
.product-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--sage); flex-shrink: 0; }
.thumb { font-size: 1.3rem; flex-shrink: 0; }

.product-name { flex: 1; font-size: 0.96rem; }
.product-name .note { display: block; color: var(--ink-faint); font-size: 0.82rem; margin-top: 2px; }
.rating { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }
.rating .stars { color: var(--accent); letter-spacing: 1px; }

.qty { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.88rem; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-card); cursor: pointer; font-size: 0.9rem; line-height: 1; color: var(--ink); }

.summary-bar {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 16px;
}
.summary-count { font-size: 0.92rem; color: var(--ink-soft); }
.summary-count strong { color: var(--ink); }

.cta-group { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
@media (max-width: 560px) {
  .cta-group { align-items: stretch; width: 100%; }
  .cta-group .cta-amazon { width: 100%; }
}

.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.ad-label-inline {
  display: block;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--accent-ink);
  font-weight: 600;
}

.cta-amazon {
  background: var(--accent); color: var(--accent-ink); border: none;
  font-family: inherit; font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.cta-amazon:hover { filter: brightness(1.05); }
.cta-amazon:disabled { opacity: 0.4; cursor: default; }

.restart-link { display: inline-block; margin-top: 18px; font-size: 0.88rem; color: var(--ink-faint); cursor: pointer; text-decoration: underline; }

.disclosure { margin-top: 40px; font-size: 0.82rem; color: var(--ink-faint); max-width: 55ch; }

/* ---- Site footer ---- */
footer.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
footer.site a { color: var(--ink-faint); text-decoration: underline; }
footer.site a:hover { color: var(--ink); }
