/* Der Körperkompass — Inner Impact CI (Design-Bibel 02-brand/brand-design.md)
   Farben: Dunkelrot #902834 · Signalrot #B42C3A · Rosé #E1D4CF · Marmor #E8E7E7 · Schwarz #131318 · Anthrazit #2A2B33
   Schriften: Mansory (Headlines, CAPS) · Shortblack (einzelne Script-Wörter) */

@font-face { font-family: 'Mansory'; src: url('../fonts/Mansory-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mansory'; src: url('../fonts/Mansory-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mansory'; src: url('../fonts/Mansory-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Shortblack'; src: url('../fonts/Shortblack.otf') format('opentype'); font-weight: 400; font-display: swap; }

:root {
  --rot: #902834;
  --signal: #B42C3A;
  --rose: #E1D4CF;
  --marmor: #E8E7E7;
  --schwarz: #131318;
  --anthrazit: #2A2B33;
  --bg: #F6F2F0;
  --card: #FFFFFF;
  --mansory: 'Mansory', 'Iowan Old Style', Georgia, serif;
  --sans: 'Avenir Next', 'Avenir', 'Cerebri Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--schwarz);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar { display: flex; justify-content: center; padding: 22px 16px 6px; }
.logo { height: 44px; width: auto; }

#app {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 22px 32px;
}

.screen { display: none; }
.screen.aktiv { display: flex; flex-direction: column; align-items: center; text-align: center; animation: einblenden .45s ease; }
@keyframes einblenden { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Typo */
.script-akzent {
  font-family: 'Shortblack', cursive;
  color: var(--schwarz);
  font-size: 2.4rem;
  line-height: 1;
  margin: 18px 0 2px;
}
.hero {
  font-family: var(--mansory);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--rot);
  margin: 10px 0 16px;
}
.frage {
  font-family: var(--mansory);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--rot);
  margin: 18px 0 18px;
}
.satzzeichen { color: var(--schwarz); }
.intro, .karten-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--anthrazit);
  margin-bottom: 22px;
  max-width: 40ch;
}
.kontext {
  font-family: var(--mansory);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anthrazit);
  opacity: 0.65;
  margin-top: 16px;
}
.karten-titel {
  font-family: var(--mansory);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--rot);
  margin: 10px 0 14px;
}
.mini-hinweis { font-size: 0.82rem; color: var(--anthrazit); opacity: 0.65; margin-top: 12px; max-width: 34ch; }

/* Buttons */
.btn-primär {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--rot);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--mansory);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(144, 40, 52, 0.25);
}
.btn-primär:active { transform: scale(0.98); }
.btn-sub { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.btn-ghost {
  background: none;
  text-decoration: none;
  border: 1px solid var(--rose);
  color: var(--anthrazit);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 12px 24px;
  margin-top: 16px;
  cursor: pointer;
}

/* Figur (Stock-Silhouette S1, Pixabay #5509137) — Punkte exakt, Labels seitlich mit Linien */
.figur-wrap {
  position: relative;
  width: min(92vw, 380px);
  aspect-ratio: 1119 / 1280;
  margin: 8px auto 4px;
}
.figur-maske {
  position: absolute; inset: 0 11% 0 11%;
  background: var(--anthrazit);
  /* Maskenbild steht in css/silhouette.css als Data-URI (funktioniert auch lokal per file://) */
  opacity: 0.92;
  z-index: 2;
}
.linie {
  position: absolute;
  height: 1px;
  background: var(--anthrazit);
  opacity: 0.35;
  z-index: 1;
}
.punkt {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none; border: none;
  padding: 8px; cursor: pointer;
  z-index: 4;
  display: flex;
}
.punkt .dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--signal);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 0 rgba(180, 44, 58, 0.45);
  animation: pulsDot 2.6s ease-out infinite;
}
.punkt:nth-of-type(2) .dot { animation-delay: .3s; }
.punkt:nth-of-type(3) .dot { animation-delay: .6s; }
.punkt:nth-of-type(4) .dot { animation-delay: .9s; }
.punkt:nth-of-type(5) .dot { animation-delay: 1.2s; }
.punkt:nth-of-type(6) .dot { animation-delay: 1.5s; }
.punkt:nth-of-type(7) .dot { animation-delay: 1.8s; }
.punkt:nth-of-type(8) .dot { animation-delay: 2.1s; }
@keyframes pulsDot {
  0% { box-shadow: 0 0 0 0 rgba(180, 44, 58, 0.45); }
  60% { box-shadow: 0 0 0 11px rgba(180, 44, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 44, 58, 0); }
}
.seitlabel {
  position: absolute;
  transform: translateY(-50%);
  background: none; border: none;
  font-family: var(--mansory); font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--anthrazit);
  background: rgba(246, 242, 240, 0.92);
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
  white-space: nowrap;
}
.seitlabel.links { left: 0; text-align: left; }
.seitlabel.rechts { right: 0; text-align: right; }
.seitlabel:active { color: var(--rot); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 360px; }
.chip {
  background: var(--card);
  border: 1px solid var(--marmor);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--schwarz);
  padding: 12px 20px;
  cursor: pointer;
}
.chip:active { border-color: var(--rot); color: var(--rot); }

/* Ergebnis */
.pruef-box {
  background: var(--rose);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 4px 0 20px;
  max-width: 40ch;
}
.pruef-box p { font-size: 0.9rem; line-height: 1.55; color: var(--rot); }

/* Timer */
.ring-wrap { position: relative; width: 220px; height: 220px; margin: 24px auto 8px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--marmor); stroke-width: 10; }
.ring-fill {
  fill: none;
  stroke: var(--rot);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 603.2;
  stroke-dashoffset: 603.2;
}
.ring-mitte {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mansory); font-weight: 600; font-size: 1.6rem; color: var(--schwarz);
}
.timer-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--anthrazit);
  max-width: 36ch;
  min-height: 4.4em;
  margin: 14px 0 6px;
  transition: opacity .4s ease;
}

.fuss {
  text-align: center;
  padding: 14px;
  font-family: var(--mansory);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--anthrazit);
  opacity: 0.55;
}

@media (min-width: 480px) {
  .hero { font-size: 1.7rem; }
  .frage { font-size: 1.45rem; }
}

/* Ergebnis-Screen: Burgund-Modus (Julia-Wunsch 19.08.2026) */
body.rot { background: var(--rot); }
body.rot .karten-titel { color: var(--schwarz); }
body.rot .satzzeichen { color: #FFFFFF; }
body.rot .kontext { color: #FFFFFF; opacity: 0.95; font-size: 0.7rem; }
body.rot .karten-text { color: #FFFFFF; }
body.rot .pruef-box { background: #FFFFFF; }
body.rot .pruef-box p { color: var(--rot); }
body.rot .btn-primär { background: var(--rose); color: var(--rot); box-shadow: 0 6px 20px rgba(19, 19, 24, 0.3); }
body.rot .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #FFFFFF; }
body.rot .fuss { color: #FFFFFF; opacity: 0.7; }

/* Mansory = immer GROSS (Julia 19.08.2026) */
.hero, .frage, .karten-titel, .kontext, .btn-primär, .fuss, .ring-mitte { text-transform: uppercase; }

/* Zurück-Button (Julia 19.08.2026) */
.btn-zurueck {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--anthrazit);
  opacity: 0.7;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 10px 0 0;
  cursor: pointer;
}

/* Footer-Links Impressum/Datenschutz */
.fuss { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.fuss-links { display: flex; gap: 8px; font-family: var(--sans); letter-spacing: 0.02em; text-transform: none; }
.fuss-links a { color: inherit; text-decoration: none; }

/* Timer: Vorlese-Effekt + Phasen-Einblendung */
.timer-text span { color: var(--anthrazit); opacity: 0.55; transition: color .5s ease, opacity .5s ease; }
.timer-text span.gelesen { color: var(--rot); opacity: 1; }
.timer-text.phase-neu { animation: einblenden .6s ease; }

/* Entzerrung Ergebnis-Screen (Julia 19.08.2026) */
#screen-ergebnis .kontext { margin-top: 30px; }
#screen-ergebnis .karten-titel { margin: 20px 0 22px; line-height: 1.5; }
#screen-ergebnis .karten-text { line-height: 1.75; margin-bottom: 28px; }
#screen-ergebnis .pruef-box { margin: 6px 0 26px; padding: 16px 20px; }
#screen-ergebnis .btn-ghost { margin-top: 20px; margin-bottom: 16px; }

/* ODER-Trenner (Mansory, Signalrot) */
.oder {
  font-family: var(--mansory);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--signal);
  margin: 22px 0 2px;
  text-transform: uppercase;
}

/* Tiefer-Block auf dem E-Mail-Screen */
.tiefer-block {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rose);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.script-akzent.klein { font-size: 1.7rem; margin: 0 0 2px; }
.tiefer-titel {
  font-family: var(--mansory);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  line-height: 1.45;
  color: var(--rot);
  margin: 6px 0 12px;
  text-transform: uppercase;
}

#btn-nichts { font-weight: 600; color: var(--schwarz); }
.karten-text p { margin-bottom: 15px; }
.karten-text p:last-child { margin-bottom: 0; }

/* Fortschritt „Frage 3 von 5" (01.10.2026) */
.fortschritt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rot);
  opacity: 0.6;
  margin: 0 0 6px;
  text-align: center;
}

/* „Ich will jetzt nicht fühlen" — leiser Text-Link (01.10.2026) */
.btn-text {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  color: inherit;
  margin-bottom: 10px;
}
body.rot .btn-text { color: #FFFFFF; opacity: 0.85; }

/* X zum Abbrechen im Timer (01.10.2026) */
#screen-timer { position: relative; }
.btn-schliessen {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--rot);
  cursor: pointer;
}
#btn-pause { margin-bottom: 0; }

/* Kleiner gefüllter Button „Ich will jetzt nicht fühlen" (01.10.2026) */
.btn-primär.klein {
  font-size: 0.66rem;
  padding: 12px 22px;
  margin-top: 4px;
  width: auto;
  max-width: 290px;
  align-self: center;
  line-height: 1.5;
}

/* Musik-Schalter im Timer (01.10.2026) */
.btn-musik {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  color: var(--rot);
  opacity: 0.75;
  margin-top: 18px;
  cursor: pointer;
}
.btn-musik[aria-pressed="false"] { opacity: 0.45; }

/* Glückwunsch-Screen: mehr Luft unter dem Logo, Herzlichen Glückwunsch präsenter (01.10.2026) */
#screen-danach { padding-top: 56px; }
#screen-danach .script-akzent { font-size: 2.6rem; margin-bottom: 28px; }
#screen-danach .karten-titel { margin-bottom: 28px; }

/* Timer-Kopf: SIT WITH IT groß + Unterzeile (01.10.2026) */
.timer-titel { margin: 8px 0 4px; font-size: 1.5rem; }
.timer-sub { font-family: 'Shortblack', cursive; font-size: 1.9rem; color: var(--schwarz); margin: 0 0 18px; line-height: 1.1; }

/* Variante C: „Gerade keine 3 Minuten?" als eigene Karte mit Pfeil-Knopf (01.10.2026) */
.btn-karte {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  margin: 18px auto 10px;
  padding: 16px 18px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.btn-karte-text { flex: 1; font-family: var(--sans); font-size: 0.9rem; line-height: 1.45; }
.btn-karte-caps { display: block; margin-top: 3px; font-family: var(--mansory); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; }
.btn-karte-pfeil { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: var(--rot); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.btn-karte:active { transform: scale(0.98); }
body.rot .btn-karte .satzzeichen { color: var(--schwarz); }
#screen-timer .timer-titel { margin-top: 34px; }

/* Eintragsformular im Mail-Screen (01.10.2026) */
.optin { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 340px; margin: 6px auto 0; }
.optin input {
  font: inherit;
  font-size: 1rem;
  padding: 14px 18px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--anthrazit);
}
.optin input:focus { outline: none; border-color: var(--rot); }
.optin .btn-primär { margin-top: 6px; }
.optin .mini-hinweis a { color: inherit; }
.optin-fehler { color: var(--rot); font-size: 0.85rem; margin: 0; text-align: center; }
#screen-bestaetigen { padding-top: 40px; }

/* Mail-Screen: zwei Geschenke 01/02 (01.10.2026) */
.geschenke { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin: 4px auto 18px; }
.geschenk { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border: 1px solid var(--rose); border-radius: 18px; padding: 14px 18px; text-align: left; font-size: 0.88rem; line-height: 1.4; color: var(--anthrazit); }
.geschenk-nr { font-family: var(--mansory); font-weight: 600; font-size: 1.6rem; color: var(--rot); flex: none; width: 34px; }
.geschenk-titel { display: block; font-family: var(--mansory); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--schwarz); margin-bottom: 2px; }
#screen-bestaetigt { padding-top: 40px; }
