/* =========================================================================
   SIGNATURE BODY ASSESSMENT — Massage Miguel
   Marke wie massagemiguel.de: Tinte #0F0F0F, Creme #F7F6F3, Gold #C5A572
   (Goldtext #8A6A1F), Playfair Display für Titel, Montserrat für Text.
   Schriften liegen lokal in assets/fonts (kein Abruf bei Google).
   ========================================================================= */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --ink: #0F0F0F;
  --ink-soft: #4A4741;
  --ink-mute: #6F6A61;
  --cream: #F7F6F3;
  --card: #FFFFFF;
  --gold: #C5A572;
  --gold-text: #8A6A1F;
  --gold-soft: rgba(197, 165, 114, 0.14);
  --line: rgba(15, 15, 15, 0.12);
  --line-strong: rgba(15, 15, 15, 0.22);
  --sil: #E9E4DA;
  --error: #9B2C2C;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 380ms;
  --maxw: 540px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  min-height: 100vh;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
}

/* --- Kopf ---------------------------------------------------------------- */
.topbar { display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand a { display: block; line-height: 0; }
.brand img { height: 24px; width: auto; display: block; }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--ink-mute);
  min-width: 40px; min-height: 44px; padding: 0 6px;
}
.lang-switch button.on { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lang-switch .sep { color: var(--line-strong); font-size: 12px; }

.progress-row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.back {
  appearance: none; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  min-height: 44px; padding: 0 8px 0 0;
}
.back svg { width: 16px; height: 16px; }
.step-label { margin-left: auto; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-mute); }
.progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 300ms var(--ease); }
.progress.show { opacity: 1; }
.progress-fill { height: 100%; width: 0; background: var(--gold); transition: width var(--dur) var(--ease); }

/* --- Inhalt -------------------------------------------------------------- */
.screens { flex: 1; display: flex; flex-direction: column; padding: 22px 0 28px; }
.screen { animation: rise var(--dur) var(--ease) both; }
.screen[data-screen="intro"] { margin: auto 0; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.screen .card, .screen .chip, .screen .dur {
  animation: rise 380ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.18; color: var(--ink); outline: none; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); margin-bottom: 20px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 16px;
}
.center { text-align: center; }
.sub { color: var(--ink-soft); font-size: 0.95rem; margin: -10px 0 16px; }

.intro .lead { color: var(--ink-soft); font-size: 1.06rem; margin-top: 18px; max-width: 34ch; }
.intro .sign { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 14px 0 30px; color: var(--ink); }
.intro .sign::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.hint { color: var(--ink-mute); font-size: 0.84rem; margin-top: 14px; text-align: center; }

/* --- Auswahlkarten ------------------------------------------------------- */
.options { display: flex; flex-direction: column; gap: 10px; }
.card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; text-align: left;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 14px 18px;
  font-family: var(--sans); font-size: 1rem; cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 160ms var(--ease);
}
.card:active { transform: scale(0.985); }
.card .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card .t { font-weight: 500; line-height: 1.3; }
.card .d { font-size: 0.84rem; color: var(--ink-mute); line-height: 1.4; }
.tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: all 200ms var(--ease);
}
.tick svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(0.4); transition: all 200ms var(--ease); }
.card.selected, .dur.selected { border-color: var(--ink); background: var(--gold-soft); }
.selected .tick { background: var(--ink); border-color: var(--ink); }
.selected .tick svg { opacity: 1; transform: none; }

@media (hover: hover) {
  .card:hover, .dur:hover, .chip:hover { border-color: var(--line-strong); }
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1:focus-visible, h2:focus-visible { outline: none; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  appearance: none; border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 22px; border-radius: 14px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 160ms var(--ease), opacity 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:active { transform: scale(0.99); }
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: 0 14px 28px -16px rgba(15, 15, 15, 0.55); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }

.text-link {
  appearance: none; background: none; border: none; cursor: pointer;
  display: block; width: 100%; text-align: center;
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px;
  padding: 12px 8px; min-height: 44px;
}

/* --- Körperkarte --------------------------------------------------------- */
.zone-layout { display: grid; grid-template-columns: minmax(0, 130px) 1fr; gap: 16px; align-items: center; }
.bodywrap { display: flex; justify-content: center; }
.body-svg { width: 100%; height: auto; max-height: 46vh; overflow: visible; }
.body-silhouette * { fill: var(--sil); }
.zone { fill: rgba(15, 15, 15, 0.07); cursor: pointer; transition: fill 260ms var(--ease); }
.zone.on { fill: var(--gold); }
.zone:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.zone-legend { display: flex; flex-direction: column; gap: 8px; }
.chip {
  appearance: none; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  min-height: 44px; padding: 9px 14px;
  transition: all 200ms var(--ease);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.sticky-action {
  position: sticky; bottom: 0; margin-top: 18px;
  padding: 12px 0 max(4px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 70%, rgba(247, 246, 243, 0));
}

/* --- Ergebnis ------------------------------------------------------------ */
.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 22px 22px; position: relative; overflow: hidden;
  box-shadow: 0 24px 50px -34px rgba(15, 15, 15, 0.35);
}
.result-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.rec-name { font-size: clamp(1.6rem, 6.8vw, 2.05rem); margin-bottom: 6px; }
.rec-place { font-size: 0.86rem; color: var(--gold-text); font-weight: 500; margin-bottom: 14px; }
.summary { color: var(--ink-soft); font-size: 1rem; }
.section-title {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); margin: 24px 0 8px; padding-top: 20px; border-top: 1px solid var(--line);
}
.dur-why { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 14px; }
.durs { display: flex; flex-direction: column; gap: 8px; }
.dur {
  appearance: none; cursor: pointer; width: 100%; text-align: left;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  min-height: 60px; padding: 10px 14px;
  font-family: var(--sans); color: var(--ink);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.dur-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dur-min { font-size: 1.02rem; font-weight: 600; }
.badge {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-text);
}
.dur-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.dur-price .now { font-size: 1.02rem; font-weight: 600; }
.dur-price .was { font-size: 0.76rem; color: var(--ink-mute); }
.note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 14px; padding: 12px 14px; background: var(--gold-soft); border-radius: 10px; }

.cta-sticky {
  position: sticky; bottom: 0; z-index: 2; margin-top: 8px;
  padding: 14px 0 max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 78%, rgba(247, 246, 243, 0));
}
.btn-book { justify-content: space-between; padding: 10px 22px; min-height: 62px; }
.btn-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; text-align: left; }
.btn-lines small { font-size: 0.8rem; font-weight: 500; color: var(--gold); letter-spacing: 0.02em; }
.cta-sub { font-size: 0.82rem; color: var(--ink-mute); text-align: center; margin-top: 2px; }
.package-hint, .day-note { font-size: 0.92rem; color: var(--ink-soft); text-align: center; margin-top: 18px; }
.package-hint { padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.package-hint a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; white-space: nowrap; }
.day-note { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--ink); padding: 0 6px; }

/* --- Antworten an Miguel senden ------------------------------------------ */
.lead-box { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-box summary {
  cursor: pointer; list-style: none; min-height: 56px; padding: 14px 28px 14px 0;
  display: flex; align-items: center; position: relative;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.lead-box summary::-webkit-details-marker { display: none; }
.lead-box summary::after { content: "+"; position: absolute; right: 4px; font-size: 1.3rem; font-weight: 400; color: var(--gold-text); }
.lead-box[open] summary::after { content: "−"; }
.lead-box form { display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px; }
.lead-intro { font-size: 0.9rem; color: var(--ink-soft); }
.field {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 12px;
  font-family: var(--sans); font-size: 16px; outline: none;
}
.field::placeholder { color: var(--ink-mute); }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.field.invalid { border-color: var(--error); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; padding: 4px 0; }
.consent input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.field-error { color: var(--error); font-size: 0.84rem; }
.lead-done { margin-top: 22px; padding: 16px; text-align: center; background: var(--gold-soft); border-radius: 14px; font-size: 0.95rem; }
.restart { margin-top: 10px; color: var(--ink-mute); font-size: 0.84rem; }

/* --- Fuß ----------------------------------------------------------------- */
.footer { font-size: 0.72rem; color: var(--ink-mute); text-align: center; line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ink-mute); text-underline-offset: 3px; display: inline-block; padding: 6px 2px; }

@media (min-width: 520px) {
  .stage { padding-left: 28px; padding-right: 28px; }
  .zone-layout { grid-template-columns: minmax(0, 170px) 1fr; gap: 24px; }
  .brand img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
