/* ============================================================
   Der Wegbegleiter — Design System
   Systembegleitung nach dem VIBE-Prinzip
   ============================================================ */

:root {
  /* Primärpalette */
  --color-terracotta: #C66B3D;
  --color-terracotta-dark: #A85529;
  --color-terracotta-light: #FBEAE0;

  --color-tuerkis: #3FA8BE;
  --color-tuerkis-dark: #2A8499;
  --color-tuerkis-light: #E8F4F7;

  --color-grasgruen: #2E5D4F;
  --color-grasgruen-dark: #1F4438;
  --color-grasgruen-light: #E4EFE9;

  /* Neutraltöne */
  --color-sand: #FAF6F0;
  --color-sand-darker: #F4EEE6;
  --color-erde: #6B3A24;
  --color-erde-soft: #E8C9A8;

  /* Text */
  --color-text: #2A3A33;
  --color-text-muted: rgba(42, 58, 51, 0.75);
  --color-text-subtle: rgba(42, 58, 51, 0.55);

  /* Funnel-Tokens */
  --color-trust-bg: #F0EBE2;
  --color-tuerkis-trust: #2A8499;

  --shadow-sticky: 0 -8px 24px -8px rgba(46, 93, 79, 0.12);
  --shadow-card: 0 1px 0 0 rgba(46, 93, 79, 0.04);

  /* Akzent (Tweak-steuerbar) — wird auf terracotta gemappt */
  --accent: var(--color-terracotta);
  --accent-dark: var(--color-terracotta-dark);

  /* Fonts (Tweak-steuerbar) */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --border-soft: 1px solid rgba(46, 93, 79, 0.12);
  --border-faint: 1px solid rgba(46, 93, 79, 0.1);
  --nav-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--color-erde-soft); color: var(--color-erde); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-sand), 0 0 0 4px var(--accent);
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: balance;
}
.h1, h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.1; }
.h2, h2 { font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.25rem); line-height: 1.2; }
.h3, h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.3; }
p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--color-erde-soft); }

.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }
.serif { font-family: var(--font-serif); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }

.container-narrow { max-width: 48rem; }
.container-tight { max-width: 40rem; }

.section { padding-block: clamp(4.5rem, 3rem + 7vw, 8rem); }
.section-sm { padding-block: clamp(3.5rem, 2.5rem + 5vw, 5rem); }

.bg-white { background: #fff; }
.bg-sand { background: var(--color-sand); }
.bg-sand-darker { background: var(--color-sand-darker); }
.bg-gruen { background: var(--color-grasgruen); color: var(--color-sand-darker); }
.bg-gruen-dark { background: var(--color-grasgruen-dark); color: var(--color-sand-darker); }
.bg-terracotta { background: var(--accent); color: var(--color-sand); }

.bg-gruen h1, .bg-gruen h2, .bg-gruen h3,
.bg-terracotta h1, .bg-terracotta h2, .bg-terracotta h3 { color: inherit; }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.625rem 1.25rem; }

.btn-primary { background: var(--accent); color: var(--color-sand); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { border: 1px solid rgba(42, 58, 51, 0.2); color: var(--color-text); }
.btn-ghost:hover { background: var(--color-sand-darker); }

.btn-invert { background: var(--color-sand); color: var(--accent); }
.btn-invert:hover { background: #fff; }

.btn-ghost-light { border: 1px solid rgba(250, 246, 240, 0.35); color: var(--color-sand); }
.btn-ghost-light:hover { background: rgba(250, 246, 240, 0.1); }

.arrow { transition: transform 0.25s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--color-grasgruen);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.link-arrow:hover { opacity: 0.7; }
.link-arrow.on-dark { color: var(--color-erde-soft); }
.link-arrow.on-terracotta { color: var(--color-sand); }

/* ---------- Trust chip ---------- */
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-trust-bg);
  color: var(--color-erde);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(107, 58, 36, 0.1);
}
.trust-chip svg { color: var(--accent); }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stars { display: inline-flex; gap: 1px; color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-sand);
  border-radius: 16px;
  padding: 2rem;
  border: var(--border-faint);
}
.card-white { background: #fff; }
.card-pad-lg { padding: 2.5rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ---------- Placeholder imagery (striped) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--color-sand-darker);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(107, 58, 36, 0.05) 0px,
    rgba(107, 58, 36, 0.05) 1px,
    transparent 1px,
    transparent 11px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(107, 58, 36, 0.22);
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(107, 58, 36, 0.55);
  text-align: center;
  padding: 0.5rem 1rem;
  max-width: 80%;
  line-height: 1.5;
}
.ph-tuerkis {
  background-color: var(--color-tuerkis-light);
  background-image: repeating-linear-gradient(-45deg, rgba(42,132,153,0.07) 0px, rgba(42,132,153,0.07) 1px, transparent 1px, transparent 11px);
  border-color: rgba(42,132,153,0.25);
}
.ph-tuerkis::after { color: var(--color-tuerkis-dark); }
.ph-dark {
  background-color: rgba(255,255,255,0.04);
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 11px);
  border-color: rgba(232,201,168,0.3);
}
.ph-dark::after { color: rgba(232,201,168,0.7); }

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 30%;
  display: block;
}
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.rounded-3xl { border-radius: 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-sand) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 58, 51, 0.08);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-lockup { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-mark { height: 44px; width: auto; display: block; }
.brand-word { height: 32px; width: auto; aspect-ratio: 1322 / 209; display: block; padding: 4px 0 0 4px; }
@media (max-width: 480px) { .brand-mark { height: 38px; } .brand-word { height: 27px; } }
.nav-brand .brand-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.active { color: var(--color-text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta { display: none; }
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 9999px;
  color: var(--color-text);
}
@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-sand);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-top {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2rem;
  flex: 1;
}
.mobile-menu-links a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  padding: 0.65rem 0;
  color: var(--color-text);
  border-bottom: 1px solid rgba(42,58,51,0.08);
}
.mobile-menu-links a.active { color: var(--accent); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 1rem; }
@media (min-width: 1040px) { .mobile-menu { display: none; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  background: var(--color-sand);
  box-shadow: var(--shadow-sticky);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (min-width: 1040px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--color-grasgruen-dark); color: rgba(244, 238, 230, 0.85); }
.footer-inner {
  padding-block: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer .brand-text { color: var(--color-sand); }
.footer .brand-mark, .footer .brand-word { filter: brightness(0) invert(1); opacity: 0.92; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(244,238,230,0.85); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-rule { height: 1px; background: rgba(244,238,230,0.15); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8125rem; color: rgba(244,238,230,0.6); transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-copy { font-size: 0.8125rem; color: rgba(244,238,230,0.6); }

/* ---------- Hero scroll animation ---------- */
.scroll-hero { position: relative; }
.scroll-hero-track { position: relative; }
.scroll-hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.scroll-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .scroll-hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.scroll-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
}
.scroll-pose {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(1.03);
}
.scroll-pose.active { opacity: 1; transform: scale(1); }
.scroll-pose img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }

.scroll-text-wrap { position: relative; display: grid; align-items: start; }
.scroll-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.scroll-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-letter {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 2rem + 7vw, 6rem);
  line-height: 1;
  font-weight: 400;
}

/* progress rail */
.scroll-rail {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 320px;
  width: 3px;
  background: rgba(46, 93, 79, 0.14);
  border-radius: 2px;
  z-index: 3;
}
.scroll-rail-fill {
  position: absolute;
  left: 0; top: 0; width: 100%;
  background: var(--accent);
  border-radius: 2px;
  height: 0%;
  transition: height 0.3s ease;
}
.scroll-rail-dot {
  position: absolute;
  left: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  background: var(--color-sand);
  border-radius: 9999px;
  border: 1px solid rgba(46,93,79,0.18);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.scroll-rail-dot.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 899px) { .scroll-rail { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-pose, .scroll-slide { transition: opacity 0.01s linear; transform: none; }
  .scroll-slide { transform: none; }
}

/* ---------- VIBE cards grid ---------- */
.vibe-card .vibe-letter {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
}
.vibe-card .step-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* ---------- For-whom section ---------- */
.fw-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.fw-item svg { flex-shrink: 0; margin-top: 0.35rem; }
.fw-yes svg { color: var(--color-grasgruen); }
.fw-no svg { color: var(--color-text-subtle); }
.fw-item p { color: var(--color-text-muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid rgba(46,93,79,0.12); }
.faq details { border-bottom: 1px solid rgba(46,93,79,0.12); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 0 1.75rem;
  max-width: 52ch;
  color: var(--color-text-muted);
}

/* ---------- Pricing table ---------- */
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(46,93,79,0.12);
}
.price-row:last-child { border-bottom: none; }
.price-name { font-family: var(--font-serif); font-size: 1.25rem; }
.price-val { font-weight: 500; white-space: nowrap; }
.price-free { color: var(--color-grasgruen); }
.price-note { font-size: 0.875rem; color: var(--color-text-subtle); }

/* ---------- Misc ---------- */
.eyebrow-row { display: flex; align-items: center; gap: 0.75rem; }
.divider-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-text-subtle); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: var(--color-erde-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  color: var(--color-erde);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--accent);
}
.placeholder-note {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--color-text-subtle);
  background: rgba(107,58,36,0.05);
  border: 1px dashed rgba(107,58,36,0.2);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  display: inline-block;
}

.note-inline { color: var(--accent); font-weight: 500; }

/* blob background for hero */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}
