/* ============================================================
   THEEQUEST PROGRAMM-SEITEN (Wahrfährte, Schwellenretreat,
   Wahrheits-Kompass) · baut auf theequest-core.css auf.
   Header/Footer: bewährtes Unterseiten-Muster (In-App-Browser-
   gehärtet). Sektionen: Atelier-Muster der Startseite.
   ============================================================ */

/* Basis dieser Seiten: Cream-Body (Tokens kommen aus theequest-core.css) */
body.programm-seite { background: var(--paper); }

/* Skip-Link (WCAG) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: rgba(13, 22, 40, 0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hairline-gold);
  transition: background 0.4s ease;
}

/* Durchscheinender Header wie Startseite: transparenter, sobald Blur unterstützt wird */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: rgba(8, 16, 32, 0.78); }
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-header .brand img {
  height: 42px;
  width: auto;
}

.site-header .brand .wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.24em;
  color: var(--paper);
  text-transform: uppercase;
}

.site-header .nav {
  display: flex;
  gap: 38px;
  align-items: center;
}

.site-header .nav a {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  position: relative;
}

.site-header .nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.site-header .nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 12px 22px;
  background: var(--gold);
  color: var(--paper) !important;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.nav-cta:hover { background: var(--gold-deep); }

/* ===== Hamburger-Toggle (nur Mobile sichtbar) ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--paper);
  transition: all 0.3s ease;
}

/* ===== Mobile-Overlay-Menu ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--midnight);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.mobile-menu-close span {
  position: absolute;
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--paper);
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child { transform: rotate(-45deg); }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.mobile-menu-nav a {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-nav a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .site-header { padding: 14px 22px; }
  .site-header .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header .brand img { height: 36px; }
  .site-header .brand .wordmark { display: none; }
  .kg-hero { padding: 80px 24px 20px; }
}


/* ===== FOOTER (verkürzt für Unterseite) ===== */
footer {
  background: var(--deep-night);
  color: var(--paper);
  padding: 90px 40px 50px;
  border-top: 1px solid rgba(208, 168, 98, 0.25);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand img {
  height: 42px;
  width: auto;
  margin-bottom: 24px;
}

.footer-brand p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(244, 239, 227, 0.85);
  max-width: 340px;
}

.footer-brand .claim {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-top: 14px;
}

footer h4 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

footer a {
  display: block;
  color: rgba(244, 239, 227, 0.85);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  font-weight: 400;
}

footer a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(208, 168, 98, 0.35);
  border-radius: 50%;
  color: var(--gold-light);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  max-width: 1280px;
  margin: 50px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(208, 168, 98, 0.18);
  text-align: center;
}

.footer-bottom p {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.7);
  margin-bottom: 6px;
}

@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Newsletter im Footer */
.footer-newsletter {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 50px;
  border-top: 1px solid rgba(208, 168, 98, 0.18);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-newsletter-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--gold-light);
  margin: 0;
}

.footer-newsletter-eyebrow {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--gold-light);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
}

.footer-newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(208, 168, 98, 0.4);
  background: rgba(244, 239, 227, 0.04);
  min-width: 380px;
}

.footer-newsletter-form input[type="email"],
.footer-newsletter-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: transparent;
  border: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: var(--paper);
  font-weight: 400;
}

.footer-newsletter-form input[type="email"]::placeholder,
.footer-newsletter-form input[type="text"]::placeholder {
  color: rgba(244, 239, 227, 0.5);
}

.footer-newsletter-form input[type="email"]:focus,
.footer-newsletter-form input[type="text"]:focus {
  outline: none;
  background: rgba(244, 239, 227, 0.08);
}

.footer-newsletter-form input[type="text"][name="VORNAME"] {
  flex: 0.6;
  border-right: 1px solid rgba(184, 145, 74, 0.5);
}

.footer-newsletter-form input[type="email"][name="EMAIL"] {
  flex: 1.4;
}

.footer-newsletter-form button {
  background: var(--gold);
  color: var(--paper);
  border: none;
  padding: 14px 24px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.footer-newsletter-form button:hover {
  background: var(--gold-deep);
}

.footer-newsletter-note {
  grid-column: 1 / -1;
  margin-top: 18px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(244, 239, 227, 0.85);
  line-height: 1.6;
}

.footer-newsletter-note a {
  display: inline;
  padding: 0;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-newsletter-form {
    min-width: 0;
    width: 100%;
    flex-direction: column;
  }
  .footer-newsletter-form input[type="email"],
.footer-newsletter-form input[type="text"] {
    font-size: 16px;
    padding: 18px 20px;
  }
  .footer-newsletter-form input[type="text"][name="VORNAME"] {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid rgba(184, 145, 74, 0.35);
  }
  .footer-newsletter-form input[type="email"][name="EMAIL"] {
    flex: 0 0 auto;
  }
  .footer-newsletter-form button {
    width: 100%;
    padding: 18px 24px;
    font-size: 12px;
    min-height: 54px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Form-Success · Hintergrund-Submit-Pattern für Brevo-Forms (Phase C)
   Wird sichtbar erst nach erfolgreicher Submission, sonst display:none.
   ═══════════════════════════════════════════════════════════════ */
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 22px;
  background: rgba(184, 145, 74, 0.12);
  border-left: 2px solid var(--gold);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  text-align: left;
}

form.is-submitted {
  flex-wrap: wrap;
}

form.is-submitted .form-success {
  display: block;
  width: 100%;
  flex-basis: 100%;
  margin-top: 0;
  animation: form-success-in 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Felder durch die Erfolgsmeldung ersetzen statt sie zu behalten — kein Layout-Sprung */
form.is-submitted > *:not(.form-success) {
  display: none;
}

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Erfolgs-Box im dunklen Footer + dunkler CTA-Sektion: heller Text statt Ink, sonst unlesbar */
.footer-newsletter-form .form-success,
.bs-cta-form .form-success {
  background: rgba(244, 239, 227, 0.08);
  border-left-color: var(--gold-light);
  color: var(--paper);
}
/* ============================================================
   PROGRAMM-SEKTIONEN (pw- = Programm-Weg)
   ============================================================ */

/* ===== AKT 1 · HERO (dunkel, Voll-Bild) ===== */
.pw-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  padding: 0;
  overflow: hidden;
  background: var(--deep-night);
  display: flex;
  align-items: flex-end;
}
.pw-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pw-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.pw-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 16, 32, 0.5) 0%,
    rgba(8, 16, 32, 0.35) 40%,
    rgba(8, 16, 32, 0.62) 75%,
    rgba(5, 8, 16, 0.96) 100%);
}
.pw-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 160px 8vw 72px;
}
.pw-hero .eyebrow {
  color: var(--gold-light);
  margin-bottom: 20px;
  text-shadow: 0 1px 24px rgba(0,0,0,0.55);
}
.pw-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
  max-width: 16ch;
  margin-bottom: 26px;
}
.pw-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
  font-size: 1em;
}
.pw-hero-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.96;
  max-width: 620px;
  margin-bottom: 34px;
  text-shadow: 0 1px 30px rgba(0,0,0,0.4);
}
.pw-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.pw-hero-meta {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.75);
  padding-top: 22px;
  border-top: 1px solid rgba(244, 239, 227, 0.18);
  max-width: 620px;
}

/* ===== AKT 2 · BEWEIS (großes Zitat, cream) ===== */
.pw-quote {
  background: var(--paper);
  padding: 110px 24px;
}
.pw-quote figure { max-width: 880px; margin: 0 auto; text-align: center; }
.pw-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.45;
  color: var(--ink);
}
.pw-quote blockquote::before { content: '„'; color: var(--gold); }
.pw-quote blockquote::after { content: '“'; color: var(--gold); }
.pw-quote figcaption {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.pw-quote figcaption .role {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-mute);
}

/* ===== EDITORIAL-SEKTIONEN (cream) ===== */
.pw-section { padding: 110px 24px; }
.pw-section.soft { background: var(--paper-soft); }
.pw-section-inner { max-width: 760px; margin: 0 auto; }
.pw-section .eyebrow { display: block; text-align: center; margin-bottom: 18px; }
.pw-section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 44px;
}
.pw-section h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); font-size: 1em; }
.pw-section p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.pw-section p:last-child { margin-bottom: 0; }
.pw-ehre {
  margin-top: 34px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  text-align: center;
}

/* ===== AKT 4 · DER WEG (Bogen, wie Startseiten-Muster) ===== */
.pw-weg-bogen { max-width: 680px; margin: 54px auto 0; }
.pw-weg-bogen p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 30px;
}
.pw-weg-bogen .bogen-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
}
.pw-weg-schluss {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  text-align: center;
  margin-top: 44px;
}

/* ===== AKT 5 · DER TAKT (dunkel, Rad) ===== */
.pw-takt {
  background: var(--midnight);
  padding: 130px 24px;
  position: relative;
  overflow: hidden;
}
.pw-takt-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.pw-takt .eyebrow { color: var(--gold-light); display: block; margin-bottom: 18px; }
.pw-takt h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.18;
  color: var(--paper);
  margin-bottom: 40px;
}
.pw-takt h2 em { font-style: italic; font-weight: 400; color: var(--gold-light); font-size: 1em; }
.pw-takt p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 239, 227, 0.92);
  text-align: left;
}
.pw-rad {
  width: clamp(180px, 24vw, 260px);
  height: auto;
  margin: 0 auto 44px;
  display: block;
}
.pw-rad-turn {
  animation: pwRadDrehung 180s linear infinite;
  transform-origin: 150px 150px;
}
@keyframes pwRadDrehung { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pw-rad-turn { animation: none; } }

/* ===== AKT 7 · INVESTITION (FAQ-Muster der Unterseiten, hell) ===== */
.pw-faq { background: var(--paper-soft); padding: 90px 24px; }
.pw-faq-inner { max-width: 720px; margin: 0 auto; }
.pw-faq-item { border-bottom: 1px solid var(--hairline-gold); }
.pw-faq-item:first-of-type { border-top: 1px solid var(--hairline-gold); }
.pw-faq-item summary {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  padding: 22px 36px 22px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.pw-faq-item summary::-webkit-details-marker { display: none; }
.pw-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 22px;
  font-weight: 300;
}
.pw-faq-item[open] summary::after { content: '−'; }
.pw-faq-item .answer {
  padding: 0 0 26px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ===== AKT 8 · DAS TOR (dunkel, glühender Gold-Button) ===== */
.pw-tor {
  background: var(--midnight);
  padding: 140px 24px 150px;
  text-align: center;
}
.pw-tor-inner { max-width: 720px; margin: 0 auto; }
.pw-tor h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  color: var(--paper);
  margin-bottom: 32px;
}
.pw-tor h2 em { font-style: italic; font-weight: 400; color: var(--gold-light); font-size: 1em; }
.pw-tor p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.92);
  margin-bottom: 44px;
}
.pw-tor-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 26px 52px;
  background: var(--gold);
  color: var(--deep-night);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  box-shadow: 0 0 46px rgba(184, 145, 74, 0.45);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pw-tor-button .arrow { font-family: var(--font-serif); font-size: 20px; }
.pw-tor-button:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 0 60px rgba(208, 168, 98, 0.6); }
.pw-tor-safety {
  display: block;
  margin-top: 26px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.65);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .pw-hero { min-height: 92svh; }
  .pw-hero-content { padding: 130px 24px 56px; }
  .pw-quote, .pw-section { padding: 72px 24px; }
  .pw-takt { padding: 90px 24px; }
  .pw-tor { padding: 100px 24px; }
  .pw-section h2, .pw-takt h2 { margin-bottom: 32px; }
}
