/* ============================================================
   Julian Wille — Systemischer Coach
   Editorial, warm-paper palette. Mobile-first.
   ============================================================ */

/* ---- Palette: Pergament (default) ---- */
:root,
:root[data-palette="pergament"] {
  --paper:   #FAF8F4;
  --paper-2: #F1EBE1;   /* soft alternating section */
  --ink:     #1F1D1A;
  --ink-2:   #6B5B4A;   /* warm brown — secondary text / labels */
  --tan:     #D6CFC2;   /* hairlines / soft fills */
  --dark:    #2A2620;   /* deep section bg */
  --dark-ink:#EFE9DF;   /* text on dark */
  --accent:  #6B5B4A;
}

/* ---- Palette: Sandstein ---- */
:root[data-palette="sandstein"] {
  --paper:   #F4EFE8;
  --paper-2: #EBE2D5;
  --ink:     #332E27;
  --ink-2:   #9C7C5B;
  --tan:     #C2B6A3;
  --dark:    #332E27;
  --dark-ink:#EDE4D6;
  --accent:  #9C7C5B;
}

/* ---- Type pairings (headline font swapped via data-type) ---- */
:root { --serif: "Newsreader", Georgia, serif; --sans: "Hanken Grotesk", system-ui, sans-serif; }
:root[data-type="cormorant"] { --serif: "Cormorant Garamond", Georgia, serif; }
:root[data-type="spectral"]  { --serif: "Spectral", Georgia, serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

section { position: relative; }

/* eyebrow / label */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(120%) blur(12px);
  padding: 14px 24px;
  box-shadow: 0 1px 0 var(--tan);
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--ink-2); }
.nav { display: none; align-items: center; gap: 34px; }
.nav a {
  font-size: 13.5px; letter-spacing: 0.04em; color: var(--ink);
  text-decoration: none; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .35s ease;
}
.nav a:hover::after { width: 100%; }
.nav .nav-cta {
  border: 1px solid var(--ink); border-radius: 100px;
  padding: 9px 20px; font-weight: 500;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* mobile menu button */
.menu-btn {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin: -8px;
}
.menu-btn span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .4s ease, transform .4s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.drawer a {
  font-family: var(--serif); font-size: clamp(34px, 11vw, 52px);
  color: var(--ink); text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--tan);
}
.drawer a:last-child { border-bottom: none; }
.drawer .drawer-mail { font-family: var(--sans); font-size: 16px; margin-top: 32px; color: var(--ink-2); letter-spacing: 0.02em; }

/* ---------- Hero ---------- */
.hero { padding: 132px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(40px, 11vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 12ch;
}
.hero h1 em { font-style: italic; color: var(--ink-2); }
.hero-lede {
  margin-top: 28px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.65;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* portrait */
.portrait {
  position: relative;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-cap {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 14px; display: flex; justify-content: space-between;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: none;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .25s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn-primary .arrow { transition: transform .3s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--tan); padding-bottom: 3px;
}
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Generic section rhythm ---------- */
.section { padding: 88px 0; }
.section-head { margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(30px, 6.2vw, 46px); max-width: 18ch; line-height: 1.1; }

/* Was mich ausmacht — prose + pull quote */
.prose p { margin-bottom: 22px; font-size: clamp(17px, 2.2vw, 19px); color: color-mix(in srgb, var(--ink) 90%, var(--paper)); }
.prose p:last-child { margin-bottom: 0; }

.pullquote {
  margin: 56px 0;
  font-family: var(--serif);
  font-size: clamp(26px, 5.6vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote .q-accent { color: var(--ink-2); font-style: italic; }

/* divider rule */
.rule { height: 1px; background: var(--tan); border: none; width: 100%; }

/* ---------- Dark section (Warum) ---------- */
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .eyebrow { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }
.section-dark .eyebrow::before { background: color-mix(in srgb, var(--dark-ink) 55%, transparent); }
.section-dark h2 { color: var(--dark-ink); }
.section-dark .prose p { color: color-mix(in srgb, var(--dark-ink) 88%, transparent); }
.warum-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

/* image placeholder (striped) */
.imgslot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--dark-ink) 8%, var(--dark));
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0, transparent 11px,
    color-mix(in srgb, var(--dark-ink) 9%, transparent) 11px,
    color-mix(in srgb, var(--dark-ink) 9%, transparent) 12px
  );
  display: flex; align-items: flex-end;
  border: 1px solid color-mix(in srgb, var(--dark-ink) 16%, transparent);
}
.imgslot.on-paper {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    135deg, transparent 0, transparent 11px,
    color-mix(in srgb, var(--ink) 6%, transparent) 11px,
    color-mix(in srgb, var(--ink) 6%, transparent) 12px
  );
  border-color: var(--tan);
}
.imgslot .slot-label {
  font-family: "Hanken Grotesk", monospace;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 16px; padding: 7px 12px;
  background: color-mix(in srgb, var(--dark) 70%, transparent);
  color: var(--dark-ink);
  border-radius: 100px;
}
.imgslot.on-paper .slot-label { background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--ink-2); }

/* ---------- Was ich biete — format cards ---------- */
.formate-intro { max-width: 56ch; font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-2); margin-top: 22px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 56px; background: var(--tan); border: 1px solid var(--tan); border-radius: 4px; overflow: hidden; }
.card {
  background: var(--paper);
  padding: 38px 32px 42px;
  display: flex; flex-direction: column;
  transition: background .35s ease;
  min-height: 280px;
}
.card:hover { background: var(--paper-2); }
.card-num { font-family: var(--serif); font-size: 15px; color: var(--ink-2); letter-spacing: 0.05em; }
.card h3 { font-size: clamp(24px, 4vw, 29px); margin: 22px 0 14px; line-height: 1.12; }
.card p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; margin-top: auto; }
.card .card-tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }

.formate-close {
  margin-top: 64px;
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.24;
  max-width: 20ch;
  text-wrap: balance;
}
.formate-close em { font-style: italic; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { padding: 104px 0 96px; text-align: center; }
.contact .eyebrow { justify-content: center; margin-bottom: 28px; }
.contact h2 { font-size: clamp(32px, 7vw, 58px); max-width: 16ch; margin: 0 auto 18px; line-height: 1.08; }
.contact p { color: var(--ink-2); max-width: 42ch; margin: 0 auto 40px; font-size: clamp(16px, 2.2vw, 18px); }
.mail-link {
  font-family: var(--serif);
  font-size: clamp(22px, 5.4vw, 38px);
  color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--tan);
  padding-bottom: 6px; display: inline-block;
  transition: border-color .3s ease, letter-spacing .4s ease;
  word-break: break-word;
}
.mail-link:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--tan);
  padding: 40px 0 48px;
}
.footer-row { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-brand { font-family: var(--serif); font-size: 19px; }
.footer-meta { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; line-height: 1.8; }
.footer-meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--tan); }
.footer-meta a:hover { color: var(--ink); }
.footer-legal { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; letter-spacing: 0.02em; }
.footer-legal a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer-legal a:hover { color: var(--ink); border-bottom-color: var(--tan); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { padding: 140px 0 96px; }
.legal h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 52px); line-height: 1.08; margin-bottom: 14px; }
.legal .legal-updated { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; margin-bottom: 56px; }
.legal h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 48px 0 18px; line-height: 1.2; }
.legal h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0.01em; margin: 30px 0 8px; }
.legal p { font-size: clamp(16px, 2vw, 18px); line-height: 1.75; color: color-mix(in srgb, var(--ink) 90%, var(--paper)); margin-bottom: 18px; }
.legal a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--tan); }
.legal a:hover { border-bottom-color: var(--ink); }
.legal .placeholder { color: var(--ink-2); background: var(--paper-2); padding: 1px 7px; border-radius: 4px; font-size: 0.92em; }
.legal address { font-style: normal; line-height: 1.9; font-size: clamp(16px, 2vw, 18px); margin-bottom: 18px; }
.legal .legal-note { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--tan); padding: 6px 0 6px 18px; margin: 24px 0; line-height: 1.7; }
.legal ul { margin: 0 0 18px 0; padding-left: 22px; }
.legal li { font-size: clamp(16px, 2vw, 18px); line-height: 1.7; margin-bottom: 8px; color: color-mix(in srgb, var(--ink) 90%, var(--paper)); }
.legal .back-link { display: inline-block; margin-top: 48px; font-size: 14px; }
.legal .back-top { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.legal .back-top:hover { color: var(--ink); border-bottom-color: var(--tan); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .warum-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .section { padding: 120px 0; }
}

@media (min-width: 920px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .hero { padding: 168px 0 96px; }
  .hero-grid { grid-template-columns: 1.25fr 0.85fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: clamp(56px, 6vw, 82px); }
  .section { padding: 132px 0; }
}
