/* ============================================================
   DER KOMPASS, Gestaltung
   Farben und Schriften folgen via-intentio.de und den
   Canva-Vorlagen. Wer eine Farbe ändern will, ändert sie
   hier oben in :root und nirgends sonst.
   ============================================================ */

:root {
  /* Marke */
  --petrol:        #0E4D4F;
  --petrol-tief:   #093639;
  --petrol-hell:   #1C6A6C;
  --salbei:        #8FA89C;
  --gold:          #B08D4F;
  --gold-schrift:  #87682F;
  --gold-hell:     #D8BE8B;
  --beige:         #F6F0E4;
  --beige-tief:    #EDE4D4;
  --creme:         #FCFAF5;
  --text:          #505866;
  --text-tief:     #2E3540;

  /* Maße */
  --breite:        42rem;
  --rand:          1rem;
  --radius:        2px;

  /* Schriften */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--beige);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* Die angeschnittenen Kreise aus der Bildsprache.
   Sie liegen hinter allem und bewegen sich nicht. */
body::before,
body::after {
  content: "";
  position: fixed;
  border: 1px solid rgba(176, 141, 79, 0.22);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 44rem; height: 44rem;
  top: -20rem; right: -18rem;
}
body::after {
  width: 32rem; height: 32rem;
  bottom: -17rem; left: -14rem;
  border-color: rgba(143, 168, 156, 0.3);
}

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

.kopf {
  position: relative;
  z-index: 2;
  padding: 1.75rem var(--rand) 0;
  display: flex;
  justify-content: center;
}
.kopf-innen {
  width: 100%;
  max-width: var(--breite);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kopf-logo { display: block; width: 34px; height: 34px; }
.kopf-innen .marke { margin-left: 0.1rem; }
.marke {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--petrol);
  letter-spacing: 0.01em;
}
.marke b { font-weight: 600; }
.marke .punkt { color: var(--gold); }
.marke-zusatz {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-schrift);
  font-weight: 500;
}

/* ---------- Bühne ---------- */

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem var(--rand) 3rem;
}
.buehne {
  width: 100%;
  max-width: var(--breite);
}

.szene { animation: auftritt 0.5s ease both; }
@keyframes auftritt {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--petrol);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 4.6vw, 1.95rem); }
h3 { font-size: 1.1rem; }

.rubrik {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-schrift);
  margin: 0 0 1.1rem;
}
.kursiv { font-family: var(--serif); font-style: italic; }
.leise { color: var(--salbei); font-size: 0.86rem; line-height: 1.6; }

/* ---------- Startbild ---------- */

.start {
  background: linear-gradient(158deg, var(--petrol) 0%, var(--petrol-tief) 100%);
  color: var(--beige);
  padding: clamp(2rem, 7vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.start h1 { color: #fff; }
.start .rubrik { color: var(--gold-hell); }
.start p { color: rgba(246, 240, 228, 0.86); max-width: 30rem; }
.start .leise { color: rgba(143, 168, 156, 0.95); }
.start-inhalt { position: relative; z-index: 1; }

.start-kompass,
.ergebnis-kompass,
.uebergang-kompass {
  display: block;
  color: #B08D4F;            /* färbt den weichen Hof um den Ring */
  width: 9.5rem; height: 9.5rem;
  margin: 0 0 1.4rem;
}
.start-kompass { width: 11rem; height: 11rem; }
.uebergang-kompass { width: 12rem; height: 12rem; margin: 0 auto 1.75rem; }

/* Auf dem hellen Grund braucht die Nadel das dunklere Gold,
   sonst verschwindet sie im Beige. */
.uebergang-kompass .nadel path { fill: #87682F; }
.uebergang-kompass .nadel circle { fill: #87682F; }
.uebergang-kompass .raumpunkt { fill: #7C8F84; }
.ergebnis-kompass { width: 8.5rem; height: 8.5rem; margin-bottom: 1.2rem; }

/* Auf dem Startbild dreht die Nadel ruhig hin und her, damit der
   Kompass lebt, bevor die erste Frage kommt. */
.start-kompass .nadel {
  animation: suchen 9s ease-in-out infinite;
  transform-origin: 120px 120px;
}
@keyframes suchen {
  0%, 100% { transform: rotate(-11deg); }
  50%      { transform: rotate(13deg); }
}

@media (min-width: 44rem) {
  .start-inhalt {
    display: grid;
    grid-template-columns: 11rem 1fr;
    column-gap: 2.75rem;
    align-items: start;
  }
  .start-kompass {
    grid-column: 1;
    grid-row: 1 / span 7;
    align-self: center;
    margin-bottom: 0;
  }
  .ergebnis-kopf-inhalt {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    column-gap: 2.25rem;
    align-items: start;
  }
  .ergebnis-kompass {
    grid-column: 1;
    grid-row: 1 / span 5;
    align-self: center;
    margin-bottom: 0;
  }
}

/* ---------- Fortschritt ---------- */

.fortschritt { margin-bottom: 2.25rem; }
.fortschritt-zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-schrift);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.fortschritt-abschnitt { color: var(--salbei); font-weight: 500; }
.fortschritt-bahn {
  height: 1px;
  background: rgba(176, 141, 79, 0.28);
  position: relative;
}
.fortschritt-fuell {
  position: absolute;
  inset: 0 auto 0 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.fortschritt-fuell::after {
  content: "";
  position: absolute;
  right: -2.5px; top: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Frage ---------- */

.frage-hinweis {
  font-size: 0.82rem;
  color: var(--salbei);
  margin: -0.25rem 0 1.5rem;
  font-style: italic;
  font-family: var(--serif);
}

.antworten {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.antwort {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text-tief);
  background: var(--creme);
  border: 1px solid rgba(176, 141, 79, 0.3);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem 1.05rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, transform 0.22s, box-shadow 0.22s;
  line-height: 1.55;
}
.antwort::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  background: var(--gold);
  transform: translateY(-50%);
  transition: height 0.25s ease;
}
.antwort:hover,
.antwort:focus-visible {
  border-color: var(--gold);
  background: #fff;
  transform: translateX(3px);
  box-shadow: 0 6px 22px rgba(14, 77, 79, 0.07);
  outline: none;
}
.antwort:hover::before,
.antwort:focus-visible::before { height: 62%; }
.antwort.gewaehlt {
  border-color: var(--petrol);
  background: #fff;
}
.antwort.gewaehlt::before { height: 100%; background: var(--petrol); }

.zurueck {
  margin-top: 1.75rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--salbei);
  cursor: pointer;
  font-weight: 600;
}
.zurueck:hover { color: var(--petrol); }
.zurueck[hidden] { display: none; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}
.knopf:hover { background: var(--gold-schrift); border-color: var(--gold-schrift); transform: translateY(-1px); }
.knopf-hell { background: transparent; color: var(--gold-hell); border-color: var(--gold-hell); }
.knopf-hell:hover { background: var(--gold-hell); color: var(--petrol-tief); border-color: var(--gold-hell); }
.knopf-linie {
  background: transparent;
  color: var(--petrol);
  border-color: rgba(14, 77, 79, 0.35);
}
.knopf-linie:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }

/* ---------- Übergang zu den Tiefenfragen ---------- */

.uebergang {
  text-align: center;
  padding: clamp(2rem, 8vw, 4rem) 0;
}
.uebergang-kompass { margin: 0 auto 1.75rem; display: block; }
.uebergang p { max-width: 26rem; margin: 0 auto 2rem; }
.uebergang-raum {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.9rem);
  color: var(--petrol);
  display: block;
  margin: 0.2rem 0 0.4rem;
}

/* ---------- Ergebnis ---------- */

.ergebnis-kopf {
  background: linear-gradient(158deg, var(--petrol) 0%, var(--petrol-tief) 100%);
  color: var(--beige);
  padding: clamp(1.9rem, 6vw, 3rem);
  position: relative;
  overflow: hidden;
}
.ergebnis-kopf .rubrik { color: var(--gold-hell); }
.ergebnis-kopf h1 { color: #fff; margin-bottom: 0.4rem; }
.ergebnis-satz {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  color: var(--gold-hell);
  margin: 0 0 1.4rem;
}
.ergebnis-kopf p { color: rgba(246, 240, 228, 0.88); margin: 0; max-width: 32rem; }
.ergebnis-kopf p.ergebnis-satz { margin: 0 0 1.4rem; }
.ergebnis-kopf-inhalt { position: relative; z-index: 1; }

.block {
  background: var(--creme);
  border: 1px solid rgba(176, 141, 79, 0.26);
  border-top: none;
  padding: clamp(1.6rem, 5vw, 2.4rem);
}
.block + .block { border-top: 1px solid rgba(176, 141, 79, 0.26); }

.thema-titel {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--petrol);
  margin: 0 0 0.6rem;
}
.block p { margin: 0 0 0.9rem; }
.block p:last-child { margin-bottom: 0; }

.empfehlung-titel {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--petrol);
  margin: 0 0 0.6rem;
}
.empfehlung-aktion { margin-top: 1.4rem; }

.einstieg {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(176, 141, 79, 0.26);
}
.einstieg .rubrik { margin-bottom: 0.5rem; }
.einstieg-titel { font-family: var(--serif); font-size: 1.05rem; color: var(--petrol); margin: 0 0 0.2rem; }
.einstieg a {
  color: var(--gold-schrift);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 79, 0.45);
  font-size: 0.86rem;
  font-weight: 500;
}
.einstieg a:hover { color: var(--petrol); border-color: var(--petrol); }

/* Verteilung über die vier Räume */
.verteilung { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.balken-zeile {}
.balken-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.balken-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--petrol);
}
.balken-zeile.fuehrend .balken-name { font-weight: 600; }
.balken-wert {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--salbei);
  font-weight: 600;
}
.balken-bahn {
  height: 3px;
  background: rgba(143, 168, 156, 0.26);
  position: relative;
  overflow: hidden;
}
.balken-fuell {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--salbei);
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.balken-zeile.fuehrend .balken-fuell { background: var(--gold); }
.balken-satz { font-size: 0.84rem; color: var(--salbei); margin-top: 0.3rem; font-family: var(--serif); font-style: italic; }

/* Kompasssatz */
.kompass-satz {
  text-align: center;
  padding: clamp(2rem, 6vw, 2.8rem) var(--rand);
  background: var(--beige-tief);
  border: 1px solid rgba(176, 141, 79, 0.26);
  border-top: none;
}
.kompass-satz p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  color: var(--petrol);
  margin: 0 auto;
  max-width: 24rem;
  line-height: 1.5;
}

/* ---------- Wissenschaftsbrief ---------- */

.brief {
  background: var(--creme);
  border: 1px solid rgba(176, 141, 79, 0.26);
  border-top: none;
  padding: clamp(1.6rem, 5vw, 2.4rem);
}
.brief-titel { font-family: var(--serif); font-size: 1.45rem; color: var(--petrol); margin: 0 0 0.7rem; }
.feld { margin-top: 1.4rem; }
.feld label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-schrift);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.feld input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--text-tief);
  background: #fff;
  border: 1px solid rgba(176, 141, 79, 0.4);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.feld input[type="email"]:focus { outline: none; border-color: var(--petrol); }

.einwilligung {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  font-size: 0.83rem;
  line-height: 1.55;
  cursor: pointer;
}
.einwilligung input {
  appearance: none;
  flex: 0 0 auto;
  width: 1.05rem; height: 1.05rem;
  margin-top: 0.2rem;
  border: 1px solid rgba(176, 141, 79, 0.6);
  border-radius: 1px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.einwilligung input:checked { background: var(--petrol); border-color: var(--petrol); }
.einwilligung input:checked::after {
  content: "";
  position: absolute;
  left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
.einwilligung a { color: var(--gold-schrift); text-decoration: underline; }

.brief-aktion { margin-top: 1.5rem; }
.brief-fehler {
  margin-top: 0.8rem;
  font-size: 0.83rem;
  color: #9A3B32;
}
.brief-fehler[hidden] { display: none; }
.brief-dank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--petrol);
  margin: 0;
}

/* ---------- Abschluss ---------- */

.abschluss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2rem;
}

.fuss {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--rand) 2.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--salbei);
  font-weight: 500;
}
.fuss a { color: inherit; text-decoration: none; }
.fuss a:hover { color: var(--gold-schrift); }

/* ---------- Kompassnadel ---------- */

.nadel {
  transform-origin: 120px 120px;
  transition: transform 1.5s cubic-bezier(0.22, 1.05, 0.3, 1);
}

/* ---------- kleine Schirme ---------- */

@media (max-width: 30rem) {
  .antwort { padding: 0.95rem 1rem 0.95rem 1.25rem; font-size: 0.95rem; }
  .knopf { width: 100%; text-align: center; }
  .abschluss .knopf { width: 100%; }

  .start-kompass { width: 9rem; height: 9rem; }
  .ergebnis-kompass { width: 7.5rem; height: 7.5rem; }
  .uebergang-kompass { width: 10rem; height: 10rem; }

  /* Die angeschnittenen Kreise im Hintergrund werden kleiner,
     sonst liegen sie auf dem Text statt hinter ihm. */
  body::before { width: 26rem; height: 26rem; top: -13rem; right: -11rem; }
  body::after  { width: 20rem; height: 20rem; bottom: -11rem; left: -9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   DAS BLATT ZUM MITNEHMEN
   Wird nur zum Fotografieren gebaut und liegt dabei weit außerhalb
   des Bildschirms. A4 bei 96 Punkten je Zoll, also 794 auf 1123.
   ============================================================ */

.pdf-blatt {
  position: fixed;
  left: -20000px;
  top: 0;
  width: 794px;
  height: 1123px;
  padding: 58px 64px 44px;
  background: linear-gradient(158deg, #0E4D4F 0%, #093639 100%);
  color: rgba(246, 240, 228, 0.88);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  overflow: hidden;
  box-sizing: border-box;
}

.pdf-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pdf-logo { width: 182px; height: auto; display: block; }
.pdf-stand {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-hell);
  font-weight: 500;
}

.pdf-titel {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Kompass mit den vier Räumen ringsum */
.pdf-kranz {
  position: relative;
  height: 200px;
  margin: 12px 0 8px;
}
/* Ohne Verschiebung zentriert. Eine Transformation würde das
   Bild bei der Aufnahme aus dem Blatt schieben. */
.pdf-kompass {
  position: absolute;
  left: 50%;
  margin-left: -82px;
  top: 18px;
  width: 164px;
  height: 164px;
  color: #B08D4F;
}
.pdf-schild {
  position: absolute;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(143, 168, 156, 0.85);
  white-space: nowrap;
}
.pdf-schild-aktiv { color: #C9A362; font-weight: 600; }
.pdf-schild-verstehen    { top: 0;    left: 0; right: 0; text-align: center; }
.pdf-schild-entwickeln   { top: 188px; left: 0; right: 0; text-align: center; }
.pdf-schild-reflektieren { top: 94px; left: calc(50% + 96px); }
.pdf-schild-verbinden    { top: 94px; right: calc(50% + 96px); }

.pdf-rubrik {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-hell);
  margin-bottom: 5px;
}
.pdf-raum {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
  color: #fff;
}
.pdf-raumsatz {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-hell);
  margin: 2px 0 8px;
}
.pdf-zwischen {
  font-family: var(--serif);
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.pdf-text { max-width: 600px; }
.pdf-adresse {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold-hell);
  font-weight: 500;
}
.pdf-trenner {
  height: 1px;
  background: rgba(176, 141, 79, 0.3);
  margin: 12px 0 11px;
}

.pdf-verteilung { margin-top: 10px; }
.pdf-balken {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.pdf-balken-name {
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(246, 240, 228, 0.8);
  width: 108px;
  flex: 0 0 auto;
}
.pdf-balken-aktiv .pdf-balken-name { color: #fff; }
.pdf-balken-bahn {
  flex: 1;
  height: 3px;
  background: rgba(143, 168, 156, 0.26);
  position: relative;
}
.pdf-balken-fuell {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--salbei);
}
.pdf-balken-aktiv .pdf-balken-fuell { background: #C9A362; }
.pdf-balken-wert {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--salbei);
  width: 36px;
  text-align: right;
  flex: 0 0 auto;
  font-weight: 600;
}
.pdf-balken-aktiv .pdf-balken-wert { color: #C9A362; }

.pdf-schluss {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #fff;
  text-align: center;
  margin: 16px auto 7px;
  max-width: 420px;
  line-height: 1.45;
}
.pdf-wieder {
  font-size: 11px;
  color: rgba(143, 168, 156, 0.95);
  text-align: center;
  margin: 0 auto 26px;
  max-width: 440px;
  line-height: 1.55;
}
.pdf-fuss {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(143, 168, 156, 0.75);
  font-weight: 500;
}
