/* PURVIDUAL Hautanalyse. Stil nach der Göttinnenhaut-Seite: viel Weißraum, Haarlinien, Serife, Pill-Buttons. */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }

:root {
  --paper: #FBF9F4;
  --cream: #F8F5EE;
  --sage: #9CAA8C;
  --sage-deep: #5F6F52;
  --sage-soft: #E3E7DC;
  --sand: #D8C9AE;
  --bordeaux: #7A4A58;
  --dark: #3D2A2E;
  --muted: #6F6A5A;
  --line: rgba(90, 86, 72, 0.16);
  --error: #8A2F3B;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

.page { display: flex; min-height: 100vh; }

/* LINKE SPALTE */
.main {
  flex: 1.6 1 560px;
  min-width: 0;
  padding: 28px 72px 40px;
  display: flex;
  flex-direction: column;
}
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo-link { display: block; line-height: 0; }
.top-right { display: flex; align-items: center; gap: 32px; }
.brand-logo { height: 62px; width: auto; display: block; }
.logo {
  width: 280px;
  max-width: none;
  margin: -10px 0 -10px -49px;
  mix-blend-mode: multiply;
  filter: brightness(1.07);
}
.text-link {
  background: none;
  border: 0;
  padding: 0 0 3px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--dark);
  border-bottom: 1px solid var(--dark);
  text-decoration: none;
}

.view { max-width: 640px; width: 100%; margin-top: 36px; outline: none; }
.view > * + * { margin-top: 22px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--sage-deep);
}
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7; }

.segments { display: flex; gap: 6px; }
.segments span { flex: 1 1 0; height: 3px; background: var(--sand); }
.segments span.done { background: var(--sage); }
.segments span.current { background: var(--bordeaux); }

h1, h2.q-title, .big {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: 3.4rem; }
h1 em, h2 em { font-style: italic; color: var(--bordeaux); }
h2.q-title { font-size: 2.2rem; line-height: 1.12; }
.q-title.long { font-size: 2.3rem; line-height: 1.14; }

.lead { font-size: 0.95rem; line-height: 1.7; color: var(--muted); max-width: 560px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-deep); }
.facts span + span::before { content: "·"; margin: 0 14px; color: var(--sand); }

/* ANTWORTEN */
.q + .q { margin-top: 44px; }
.q-hint { font-size: 0.9rem; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.opts { margin-top: 22px; border-bottom: 1px solid var(--line); }
.opt {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.opt input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--bordeaux); cursor: pointer; }
.opt span { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--dark); }

.field { margin-top: 18px; }
.field label, .field .label { display: block; font-size: 0.85rem; line-height: 1.5; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"], .field input[type="number"], .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8C8776; }
.number-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.number-row input[type="number"] { width: 140px; font-family: var(--serif); font-size: 1.6rem; padding: 10px 16px; }
.number-row .unit { font-family: var(--serif); font-size: 1.45rem; }
.skip { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.95rem; cursor: pointer; }
.skip input { width: 20px; height: 20px; margin: 0; accent-color: var(--bordeaux); }

.product { margin-top: 26px; padding: 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.product legend { font-family: var(--serif); font-size: 1.5rem; padding: 18px 0 0; float: left; width: 100%; }
.product > * { clear: both; }
.product .row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.product .row label { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; cursor: pointer; }
.product .row input { width: 20px; height: 20px; margin: 0; accent-color: var(--bordeaux); }
.product .group-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); margin-top: 18px; }

.q-error { margin-top: 14px; font-size: 0.9rem; line-height: 1.5; color: var(--error); font-weight: 500; }

/* BUTTONS */
.actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.actions.end { justify-content: flex-end; }
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--paper);
  background: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  border-radius: 100px;
  padding: 19px 48px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.cta:hover { background: #6A3E4B; transform: translateY(-1px); }
.cta.secondary { background: transparent; color: var(--bordeaux); }
.cta.secondary:hover { background: rgba(122, 74, 88, 0.08); }
.cta:disabled { background: #D6D0C2; border-color: #D6D0C2; color: #5F5A4C; cursor: not-allowed; transform: none; }
.back-link {
  background: none;
  border: 0;
  padding: 0 0 3px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--dark);
  border-bottom: 1px solid var(--dark);
}

/* START */
.consent {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  cursor: pointer;
}
.consent + .consent { border-top: 0; padding-top: 0; margin-top: 14px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--bordeaux); cursor: pointer; }
.consent a { color: var(--dark); }

/* WARTEZEIT */
.wait-bar { height: 3px; background: var(--sage-soft); overflow: hidden; position: relative; }
.wait-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--sage); animation: slide 2.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .wait-bar::after { animation: none; width: 100%; opacity: 0.5; } html { scroll-behavior: auto; } }

/* FEHLER */
.error-box { border-top: 1px solid var(--line); padding-top: 22px; }
.error-box ul { margin: 12px 0 0; padding-left: 20px; font-size: 0.95rem; }

/* EMPFEHLUNG */
.result { font-size: 1rem; line-height: 1.8; color: var(--dark); }
.result > * + * { margin-top: 18px; }
.result h2 { font-family: var(--serif); font-weight: 500; font-size: 2.3rem; line-height: 1.12; margin-top: 52px; text-wrap: balance; }
.result h2:first-child { margin-top: 0; }
.result h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin-top: 30px; }
.result strong { font-weight: 600; }
.result a { color: var(--bordeaux); text-underline-offset: 3px; }
.result ul, .result ol { list-style: none; margin-left: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: n; }
.result li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; }
.result ul li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 12px; height: 1px; background: var(--bordeaux); }
.result ol li { counter-increment: n; }
.result ol li::before { content: counter(n); position: absolute; left: 4px; top: 13px; font-family: var(--serif); font-style: italic; color: var(--bordeaux); }
.result hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.ai-note { font-size: 0.82rem; line-height: 1.65; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

.followup { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--sand); }
.followup-q { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--bordeaux); margin-top: 36px; }
.followup-q + .result { margin-top: 12px; }
.followup form { margin-top: 18px; }
.followup .actions { margin-top: 16px; }
.followup .cta { padding: 16px 36px; }

/* RECHTSTEXT */
.legal { margin-top: auto; padding-top: 44px; max-width: 640px; font-size: 0.78rem; line-height: 1.7; color: var(--muted); }
.legal p + p { margin-top: 4px; }
.legal a { color: var(--muted); }

/* FOTO */
.photo {
  flex: 1 1 420px;
  min-width: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--sand);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; filter: saturate(0.8) sepia(0.16); }
.photo .tint { position: absolute; inset: 0; background: rgba(216, 201, 174, 0.28); mix-blend-mode: multiply; }
.note {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 40px;
  background: var(--paper);
  padding: 28px 32px 30px;
  box-shadow: 0 40px 80px -40px rgba(61, 42, 46, 0.55);
}
.tip-text { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--dark); }

.tipband { display: none; background: var(--sage-soft); margin: 40px -24px 0; padding: 26px 24px 28px; }
.tipband .tip-text { font-size: 1.25rem; margin-top: 10px; }

.noscript { padding: 24px; text-align: center; }

/* DRUCK UND PDF */
.print-only { display: none; }
@media print {
  @page { margin: 16mm; }
  body { background: #fff; }
  .photo, .tipband, .legal, #restart, .followup, .save-row, .actions { display: none !important; }
  .page { display: block; min-height: 0; }
  .main { padding: 0; display: block; }
  .view { max-width: none; margin-top: 10px; }
  .print-only { display: block; font-size: 0.8rem; color: var(--muted); }
  .result h2 { break-after: avoid; }
  .result li, .result p { break-inside: avoid; }
  .ai-note { break-inside: avoid; }
}

/* HANDY UND KLEINE FENSTER */
@media (max-width: 900px) {
  .top-right { gap: 18px; }
  .brand-logo { height: 46px; }
  .page { flex-direction: column; }
  .photo { display: none; }
  .main { flex: 1 1 auto; padding: 14px 24px 28px; }
  .tipband:not([hidden]) { display: block; }
  .facts { gap: 4px 22px; }
  .facts span + span::before { display: none; }
  .logo { width: 210px; margin: -6px 0 -6px -37px; }
  .view { margin-top: 24px; }
  .view > * + * { margin-top: 18px; }
  h1 { font-size: 2.4rem; }
  h2.q-title { font-size: 1.95rem; }
  .q-title.long { font-size: 1.85rem; }
  .opt { gap: 16px; padding: 14px 0; }
  .opt span { font-size: 1.3rem; }
  .cta { padding: 18px 20px; }
  .actions { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .actions .back-link { align-self: center; }
  .actions.end { flex-direction: column; }
  .result h2 { font-size: 1.9rem; }
  .legal { padding-top: 32px; }
}
