/* Yogininni Body Atlas - Gestaltung.
   Palette und Typografie nach den Marken-Guidelines v1.0 (Bau-Vertrag, Abschnitt 4).
   Mobil zuerst, Desktop danach. Gold trägt Linien, Rahmen und Akzente,
   niemals kleinen Fließtext: Gold auf Creme kommt nur auf rund 2:1 Kontrast.
   Für das kursive Akzentwort in den großen Überschriften gibt es
   --gold-text: derselbe Ton, nur tiefer. Er kommt auf Creme auf 3,43:1 und
   trägt ausschließlich Text ab 32 px, wo 3:1 genügen. Kleine Schrift setzt
   nie in Gold: die Etiketten schreiben in --ink und lassen das Goldsignal
   von Rahmen und Fläche tragen. */

/* ---------- Farben, Schriften, Maße ---------- */
:root {
  --blue:  #3A6FA0;
  --sky:   #A8C7E0;
  --gold:  #C9A961;
  --cream: #F4EFE4;
  --ink:   #1F1F1D;
  --mist:  #D8E5F2;

  /* abgeleitet: dieselbe Palette, nur in Deckkraft oder Tiefe variiert */
  --gold-line: rgba(201, 169, 97, 0.55);
  --gold-soft: rgba(201, 169, 97, 0.14);
  --gold-text: #9C7C33;   /* nur für .accent, siehe Kopf der Datei */
  --ink-soft:  rgba(31, 31, 29, 0.72);
  --ink-line:  rgba(31, 31, 29, 0.14);
  --blue-soft: rgba(58, 111, 160, 0.09);
  --paper:     rgba(255, 255, 255, 0.55);
  --paper-up:  rgba(255, 255, 255, 0.85);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --step: clamp(1rem, 0.955rem + 0.22vw, 1.0625rem);
  --wrap: 68rem;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 22.5rem) { .wrap { width: min(100% - 1.25rem, var(--wrap)); } }

.main { flex: 1 0 auto; padding: 2rem 0 3.5rem; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1rem; }
.para { white-space: pre-line; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Fokus: Gold führt, ein sehr zarter blauer Hof macht ihn auch auf Creme
   sicher sichtbar (Gold allein wäre zu schwach). */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(58, 111, 160, 0.16);
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--cream); color: var(--ink);
  padding: 0.7rem 1.1rem; border: 1px solid var(--gold); text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Ladezustand ---------- */
.boot, .loading { padding: 4rem 1rem; text-align: center; }
.loading-line {
  display: block; width: 3.5rem; height: 1px; background: var(--gold);
  margin: 0 auto 1.1rem; animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.25; transform: scaleX(0.5); }
  50%      { opacity: 1;    transform: scaleX(1); }
}
.loading-text {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  color: var(--ink-soft); margin: 0;
}

/* ---------- Kopfzeile ---------- */
.site-head { border-bottom: 1px solid var(--gold-line); }
.head-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1.4rem; padding: 0.9rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; object-fit: contain; flex: none; }
.brand-top {
  display: block; font-size: 0.62rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-soft); line-height: 1.4;
}
.brand-main { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.05; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.15rem; }
.nav a, .linklike {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink);
  text-decoration: none; padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.linklike { background: none; border-width: 0 0 1px; border-style: solid; border-color: transparent; font: inherit; font-size: 0.92rem; cursor: pointer; }
.nav a:hover, .linklike:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.lang { display: flex; align-items: center; gap: 0.3rem; }
.lang-btn {
  background: none; border: 0; font: inherit; font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--ink-soft); cursor: pointer; padding: 0.2rem 0.1rem;
  border-bottom: 1px solid transparent;
}
.lang-btn.is-on { color: var(--ink); border-bottom-color: var(--gold); }
.lang-sep { color: var(--gold); font-size: 0.78rem; }

/* ---------- Seitenkopf und Fließtext ---------- */
.page-head { max-width: 44rem; margin: 0 0 2.2rem; }
.page-title { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.1rem); font-weight: 400; margin-bottom: 0.5rem; }
.accent { font-style: italic; color: var(--gold-text); }
.lead { font-family: var(--serif); font-size: 1.28rem; line-height: 1.45; color: var(--ink); }
.lead p:last-child, .prose p:last-child { margin-bottom: 0; }
.prose { max-width: 44rem; }
.content { max-width: 52rem; }
.backline { margin: 0 0 1.2rem; }
.back-link { font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.back-link:hover { border-bottom-color: var(--gold); }
.meta { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.price { font-family: var(--serif); font-size: 1.2rem; }

.soft-note {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--ink-soft); margin: 0 0 1rem;
}

/* ---------- Knöpfe ---------- */
.button {
  display: inline-block; font: inherit; font-size: 0.95rem; line-height: 1.2;
  padding: 0.72rem 1.4rem; border: 1px solid var(--blue); background: var(--blue);
  color: var(--cream); text-decoration: none; cursor: pointer; border-radius: 2px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.button:hover { background: transparent; color: var(--blue); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--gold-line); }
.button-quiet:hover { background: var(--gold-soft); color: var(--ink); border-color: var(--gold); }
.button[disabled] { opacity: 0.5; cursor: default; }
.button[disabled]:hover { background: var(--blue); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.2rem 0 0; }

/* ---------- Meldungen ---------- */
.notice {
  border-left: 2px solid var(--blue); background: var(--blue-soft);
  padding: 0.85rem 1.1rem; margin: 0 0 1.8rem;
}
.notice-good { border-left-color: var(--gold); background: var(--gold-soft); }
.notice p:last-child { margin-bottom: 0; }
.form-error {
  border-left: 2px solid var(--gold); background: var(--gold-soft);
  color: var(--ink); padding: 0.65rem 0.9rem; margin: 0 0 1rem; font-size: 0.95rem;
}
.panel-card {
  background: var(--paper); border: 1px solid var(--ink-line); border-top: 2px solid var(--gold-line);
  padding: 1.4rem 1.25rem; margin: 0 0 1.6rem; border-radius: 3px; max-width: 44rem;
}
.panel-card > :last-child { margin-bottom: 0; }

/* ---------- Startseite ---------- */
.hero { padding: 1rem 0 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif); font-size: 1.15rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink-line); border-bottom-color: var(--gold-line);
  padding: 0.45rem 0.9rem; border-radius: 2px; background: var(--paper);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.chip:hover { border-color: var(--gold); background: var(--paper-up); }
.section-head {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue); margin: 2.5rem 0 1rem;
  padding-top: 1.2rem; border-top: 1px solid var(--gold-line);
}

/* ---------- Atlas ---------- */
.atlas-grid { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 56rem) {
  .atlas-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
}
.figure-wrap { width: 100%; max-width: 21rem; margin: 0 auto; }
.body-figure svg { display: block; width: 100%; height: auto; }

/* Hotspots: in Ruhe nur eine zarte Goldkontur, bei Hover und Fokus eine
   weiche Goldfüllung. Ohne passende Region sind sie weg und nicht bedienbar. */
.hotspot {
  cursor: pointer; fill: transparent; stroke: var(--gold); stroke-width: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease, fill 0.3s ease, stroke-width 0.3s ease;
}
.hotspot.is-live:hover,
.hotspot.is-live.is-hover,
.hotspot.is-live:focus-visible {
  opacity: 1; fill: rgba(201, 169, 97, 0.18); stroke-width: 1.8;
}
.hotspot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hotspot.is-off, .hotspot[hidden], [data-region][hidden] { display: none; pointer-events: none; }
.figure-wrap.is-waiting .hotspot { pointer-events: none; opacity: 0.25; }

.region-nav ul { list-style: none; display: grid; gap: 0.55rem; }
.region-link {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  padding: 0.85rem 1rem; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink-line); border-left: 2px solid var(--gold-line);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.region-link:hover, .region-link:focus-visible { border-left-color: var(--gold); background: var(--paper-up); }
.region-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin-right: auto; }

/* ---------- Etiketten ---------- */
/* Die Schrift ist hier rund 10 px klein, also gilt 4,5:1. Das Gold sitzt
   deshalb im Rahmen und in der Fläche, der Text steht in --ink: 13,2:1 auf
   Creme, 14,1:1 auf einer Karte. */
.tag {
  display: inline-block; font-family: var(--sans); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  padding: 0.22rem 0.5rem; border-radius: 2px;
  border: 1px solid var(--gold); color: var(--ink); background: var(--gold-soft);
}
.tag-lock, .tag-plain { border-color: var(--ink-line); color: var(--ink-soft); background: transparent; }

/* ---------- Reiter ---------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0 1.6rem;
  border-bottom: 1px solid var(--gold-line); margin: 0 0 1.8rem;
}
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: inherit; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3;
  color: var(--ink-soft); padding: 0.45rem 0; cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--gold); }
.panel:focus-visible { outline-offset: 6px; }

/* ---------- Inhaltsblöcke ---------- */
.block { padding: 1.9rem 0; border-top: 1px solid var(--gold-line); }
.block:first-child { border-top: 0; padding-top: 0.5rem; }
.block-title {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 1.1rem;
}
.oil-name, .special-title { font-size: 1.5rem; margin: 0 0 0.5rem; }

.fields { display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; margin: 0 0 1.2rem; }
.field-label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0.9rem 0 0.15rem;
}
.field-value { margin: 0; }
.field-value p:last-child, .field-value .soft-note:last-child { margin-bottom: 0; }
@media (min-width: 44rem) {
  .fields { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .field-label { margin-top: 0.3rem; }
  .field-value { margin-top: 0.3rem; }
}

.note { background: var(--blue-soft); border-left: 2px solid var(--gold); padding: 0.85rem 1.05rem; margin: 0 0 1.2rem; }
.note-label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.3rem;
}
.note > :last-child { margin-bottom: 0; }

.cards { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  background: var(--paper); border: 1px solid var(--ink-line); border-radius: 3px;
  padding: 1.15rem 1.2rem;
}
.card > :last-child { margin-bottom: 0; }
.card-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.55rem;
  font-size: 1.4rem; margin: 0 0 0.15rem;
}
.sanskrit { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 0 0 0.8rem; }
.audio { width: 100%; margin: 0.4rem 0 0.9rem; }

/* ---------- Formulare ---------- */
.form { max-width: 26rem; }
.field-row { margin: 0 0 1.15rem; }
.input-label {
  display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.35rem;
}
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.7rem 0.8rem; border-radius: 2px;
  background: var(--paper-up); border: 1px solid var(--ink-line);
  transition: border-color 0.25s ease;
}
input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover { border-color: var(--gold-line); }
.input-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 0.35rem 0 0; }
.form-switch { margin: 1.6rem 0 0; font-size: 0.92rem; }

.check { display: flex; align-items: flex-start; gap: 0.7rem; margin: 1.4rem 0 0.6rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.28rem 0 0; accent-color: var(--blue); flex: none; }

/* ---------- Sicherheits-Modal ---------- */
body.has-modal { overflow: hidden; }
.modal-veil {
  position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center;
  align-items: flex-end; background: rgba(31, 31, 29, 0.5); overflow-y: auto;
}
@media (min-width: 40rem) { .modal-veil { align-items: center; padding: 2rem 1rem; } }
.modal {
  width: 100%; max-width: 36rem; background: var(--cream); border-top: 2px solid var(--gold);
  padding: 1.4rem 1.15rem 1.8rem; max-height: 100vh; max-height: 100dvh; overflow-y: auto;
}
@media (min-width: 40rem) { .modal { border: 1px solid var(--ink-line); border-top: 2px solid var(--gold); padding: 2rem 2.2rem 2.2rem; } }
.modal:focus-visible { outline-offset: -4px; }
.modal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue); margin: 0 auto 0 0;
}
.modal-title { font-size: 1.9rem; margin: 0 0 0.8rem; }

/* ---------- Fußzeile ---------- */
.site-foot { border-top: 1px solid var(--gold-line); padding: 2rem 0 3rem; margin-top: 2.5rem; font-size: 0.92rem; }
.disclaimer { max-width: 46rem; color: var(--ink-soft); }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer + .meta { margin-top: 0.9rem; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.5rem; margin-top: 1.4rem; }
.foot-nav a, .foot-nav .linklike { font-size: 0.88rem; line-height: 1.5; padding: 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.foot-nav a:hover, .foot-nav .linklike:hover { border-bottom-color: var(--gold); }

/* ---------- Ruhige Übergänge abschalten, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loading-line { opacity: 0.7; transform: none; }
}
