/* reise.css — Zusatzstile für die Heilungsreise (baut auf style.css auf) */

/* --- Zugangscode-Schranke --- */

.gate-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gate-price {
  text-align: center;
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin: 4px 0 16px;
}

#gate-form label {
  display: block;
  margin: 18px 0 6px;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

#gate-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 163, 78, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

#gate-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.gate-buy {
  text-align: center;
  margin-top: 20px;
  color: var(--gold-soft);
}

.gate-buy.hidden { display: none; }

/* --- Reise-Kopf --- */

.journey-header {
  text-align: center;
  margin: 8px 0 24px;
}

.journey-progress-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Pfad & Stationen --- */

.journey-path {
  position: relative;
  margin-top: 8px;
}

/* Die goldene Linie, die alle Stationen verbindet */
.journey-path::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(201, 163, 78, 0.55),
    rgba(201, 163, 78, 0.15)
  );
}

.station {
  position: relative;
  padding-left: 76px;
  margin-bottom: 28px;
}

/* Stations-Licht (Knoten auf dem Pfad) */
.station-node {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 163, 78, 0.5);
  background: rgba(11, 11, 12, 0.85);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  transition: all 0.5s ease;
  z-index: 1;
}

.station.is-active .station-node {
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(201, 163, 78, 0.55);
}

.station.is-done .station-node {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--black);
  border-color: var(--gold-soft);
  box-shadow: 0 0 18px rgba(228, 205, 147, 0.7);
}

.station-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 163, 78, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.station.is-active .station-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 163, 78, 0.55);
}

.station.is-locked .station-card {
  opacity: 0.55;
}

.station-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 4px;
}

.station-card h3 {
  font-family: var(--serif);
  color: var(--cream);
  margin: 0;
  font-size: 1.25rem;
}

.station-locked-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.station-body {
  margin-top: 16px;
}

/* Abgeschlossene Stationen: einklappbar, ohne technisches Dreieck */
.station details summary {
  list-style: none;
  cursor: pointer;
}

.station details summary::-webkit-details-marker { display: none; }

.station details summary::after {
  content: "✦ Abgeschlossen — tippe, um zu dieser Journey zurückzukehren";
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.station details[open] summary::after {
  content: "✦ Abgeschlossen — tippe, um sie wieder zu schliessen";
}

.station-body h4 {
  font-family: var(--serif);
  color: var(--gold);
  margin: 24px 0 8px;
  border-top: 1px dashed rgba(201, 163, 78, 0.3);
  padding-top: 16px;
}

/* --- Bausteine innerhalb einer Station --- */

.affirmation {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold-soft);
  text-align: center;
  padding: 20px 16px;
  margin: 8px 0;
  border-top: 1px solid rgba(201, 163, 78, 0.35);
  border-bottom: 1px solid rgba(201, 163, 78, 0.35);
}

.journal-question {
  margin: 16px 0 6px;
  color: var(--cream);
}

.journal-input {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 163, 78, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

.journal-input:focus {
  outline: none;
  border-color: var(--gold);
}

.journal-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.station-closing {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  margin-top: 20px;
}

.oil-cta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.oil-cta a {
  color: var(--gold-soft);
}

/* Aktuelle Transite (grosse Planeten heute vs. Geburtschart) */
.transits-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 8px;
}

.transit-hit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 163, 78, 0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.transit-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin: 0 0 6px;
}

.transit-title {
  font-family: var(--serif);
  color: var(--cream);
  margin: 0 0 8px;
  border: none;
  padding: 0;
  font-size: 1.15rem;
}

/* "Frag zu dieser Journey" — kostenlose Suche in Sarahs eigenen Texten */
.journey-qa {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(201, 163, 78, 0.3);
}

.qa-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.qa-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.qa-example-btn {
  margin: 0;
  width: auto;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-family: var(--sans);
  background: rgba(201, 163, 78, 0.08);
  border: 1px solid rgba(201, 163, 78, 0.35);
  color: var(--gold-soft);
  font-weight: 400;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
}

.qa-example-btn:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.qa-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qa-input {
  flex: 1;
  min-width: 200px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 163, 78, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.qa-input:focus {
  outline: none;
  border-color: var(--gold);
}

.qa-submit-btn {
  margin: 0;
  width: auto;
  padding: 12px 20px;
  flex-shrink: 0;
}

.qa-result {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-hit {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
}

.qa-hit-label {
  font-family: var(--serif);
  color: var(--gold-soft);
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.qa-hit-text {
  margin: 0;
  font-size: 0.95rem;
}

.qa-empty {
  color: var(--text-muted);
  font-style: italic;
}

.qa-empty-link a {
  color: var(--gold-soft);
}

/* Fürsorge-Hinweis bei intensiven Stationen (Chiron, Pluto) */
.care-note {
  background: rgba(201, 163, 78, 0.08);
  border: 1px solid rgba(201, 163, 78, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.95rem;
}

.care-note a {
  color: var(--gold-soft);
}

.station-complete-btn {
  margin-top: 20px;
}

.ritual {
  background: rgba(201, 163, 78, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-style: italic;
  color: var(--cream);
}

/* Rückblick am Ende: alle 8 Affirmationen */
.affirmation-review {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.affirmation-review li {
  font-family: var(--serif);
  color: var(--gold-soft);
  padding: 10px 0;
  border-bottom: 1px dashed rgba(201, 163, 78, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Kleiner Speichern-Button neben jeder Affirmation (übersteuert den
   globalen Vollbreite-Button-Stil) */
.card-save-btn {
  margin: 0;
  width: auto;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-family: var(--sans);
  background: none;
  border: 1px solid rgba(201, 163, 78, 0.5);
  color: var(--gold-soft);
  font-weight: 400;
}

.card-save-btn:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.journey-reset {
  background: none;
  border: 1px solid rgba(201, 163, 78, 0.35);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.journey-reset:hover {
  color: var(--cream);
  border-color: var(--gold);
}

/* --- Das Reisebuch (Druck / PDF-Export) --- */

/* Auf dem Bildschirm nie sichtbar */
#reisebuch { display: none; }

@media print {
  /* Nur wenn der Reisebuch-Export ausgelöst wurde, das Buch statt der Seite drucken */
  body.print-book #starfield,
  body.print-book #cursor-light,
  body.print-book .page,
  body.print-book .chart-tooltip {
    display: none !important;
  }

  body.print-book {
    background: #ffffff;
  }

  body.print-book #reisebuch {
    display: block;
    color: #1c1c1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11.5pt;
    line-height: 1.55;
  }

  #reisebuch .book-cover {
    text-align: center;
    padding-top: 35vh;
    page-break-after: always;
  }

  #reisebuch .book-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 8.5pt;
    color: #9a7c3c;
  }

  #reisebuch h1 {
    font-size: 26pt;
    font-weight: 400;
    color: #0e3d3a;
    margin: 12pt 0 6pt;
  }

  #reisebuch .book-subtitle {
    font-style: italic;
    color: #555;
  }

  #reisebuch .book-owner {
    font-size: 15pt;
    margin-top: 24pt;
    color: #0e3d3a;
  }

  #reisebuch .book-date {
    font-size: 9.5pt;
    color: #777;
  }

  #reisebuch .book-station {
    page-break-before: always;
  }

  #reisebuch .book-station:first-of-type { page-break-before: avoid; }

  #reisebuch h2 {
    font-size: 17pt;
    font-weight: 400;
    color: #0e3d3a;
    margin: 6pt 0 12pt;
  }

  #reisebuch h3 {
    font-size: 12.5pt;
    color: #9a7c3c;
    margin: 18pt 0 6pt;
    font-weight: 600;
  }

  #reisebuch .book-question {
    font-style: italic;
    color: #0e3d3a;
    margin: 10pt 0 4pt;
  }

  #reisebuch .book-answer {
    margin: 0 0 8pt;
    padding: 6pt 10pt;
    border-left: 2pt solid #d8c493;
    background: #faf6ec;
  }

  #reisebuch .book-answer-empty {
    color: #999;
    font-style: italic;
  }

  #reisebuch .book-affirmation {
    text-align: center;
    font-size: 13.5pt;
    font-style: italic;
    color: #0e3d3a;
    padding: 10pt 0;
    border-top: 0.5pt solid #d8c493;
    border-bottom: 0.5pt solid #d8c493;
  }

  #reisebuch .book-affirmation-list {
    list-style: none;
    padding: 0;
  }

  #reisebuch .book-affirmation-list li {
    font-style: italic;
    color: #0e3d3a;
    padding: 6pt 0;
    border-bottom: 0.5pt dotted #d8c493;
  }

  #reisebuch .book-closing {
    font-style: italic;
    color: #9a7c3c;
    margin-top: 14pt;
  }

  #reisebuch .transits-block {
    margin-top: 6pt;
  }

  #reisebuch .transit-hit {
    padding: 8pt 10pt;
    margin-bottom: 8pt;
    border-left: 2pt solid #d8c493;
    background: #faf6ec;
  }

  #reisebuch .transit-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 8pt;
    color: #9a7c3c;
    margin: 0 0 3pt;
  }

  #reisebuch .transit-title {
    font-size: 12pt;
    font-weight: 600;
    color: #0e3d3a;
    margin: 0 0 4pt;
  }

  #reisebuch .book-footer {
    margin-top: 28pt;
    font-size: 9pt;
    color: #777;
    text-align: center;
  }
}

/* Schmale Bildschirme: Pfad kompakter, mehr Platz für den Text */
@media (max-width: 520px) {
  .journey-path::before {
    left: 15px;
  }

  .station {
    padding-left: 44px;
  }

  .station-node {
    left: 0;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .station-card {
    padding: 16px 18px;
  }
}
