/* =========================================================
   Alexandra | Persönlichkeitscoaching — ruhig, reduziert
   ========================================================= */

:root {
  --bg: #F7F4EF;
  --sand: #E6DCCE;
  --fg: #2B2927;
  --muted: #6F6862;
  --accent: #7A6352;
  --line: rgba(43, 41, 39, .12);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1180px;
  --section: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--sand); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typografie ---------- */
.label {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.01em;
  text-wrap: balance;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }
p + p { margin-top: 1.1em; }

.ph { color: var(--accent); font-size: .85em; border-bottom: 1px dotted currentColor; }
p.ph { display: inline-block; margin-top: 1.25rem; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg);
  font-size: .9rem; text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--fg); }
.link {
  font-size: .9rem; text-decoration: underline; text-underline-offset: .35em;
  text-decoration-thickness: 1px; text-decoration-color: var(--line);
  transition: text-decoration-color .3s;
}
.link:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s, box-shadow .4s; }
.header.is-scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.header__inner {
  max-width: var(--max); margin-inline: auto; padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; line-height: 1; position: relative; z-index: 2; }

.nav { display: none; }
.nav__list { display: flex; gap: 2.25rem; }
.nav__list a { font-size: .875rem; text-decoration: none; color: var(--muted); transition: color .3s; }
.nav__list a:hover, .nav__list a.is-active { color: var(--fg); }

.menu-toggle {
  background: none; border: 0; padding: .5rem 0; cursor: pointer;
  font-size: .875rem; position: relative; z-index: 2;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 1; background: var(--bg);
  padding: 7rem var(--gutter) 2rem;
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list a {
  display: block; padding: .6rem 0; text-decoration: none;
  font-family: var(--serif); font-size: 2.25rem; line-height: 1.2;
}
body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; box-shadow: none; }

@media (min-width: 860px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Foto-Platzhalter ---------- */
.photo {
  aspect-ratio: 4 / 5;
  background: var(--sand);
  display: flex; align-items: flex-end;
}
.photo--wide { aspect-ratio: 3 / 2; }
.photo__note { padding: 1rem 1.25rem; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: 8rem; padding-bottom: 4rem;
  display: grid; gap: 3.5rem; align-content: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.08; letter-spacing: -.015em;
}
.hero__title em { color: var(--accent); }
.hero__lead { max-width: 30rem; margin-top: 2rem; color: var(--muted); }
.hero__photo { max-width: 22rem; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 7fr 4fr; gap: 4rem; align-items: center; }
  .hero__photo { max-width: none; }
}

/* ---------- Leitsatz ---------- */
.motto {
  padding-block: var(--section);
  text-align: center;
  border-top: 1px solid var(--line);
}
.motto__quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; gap: .35em;
}
/* Zwei Kreise, die sich beim Erscheinen annähern und überlappen */
.motto__circles { display: flex; }
.motto__circles i {
  display: block; width: .6em; height: .6em; border-radius: 50%;
  border: 1px solid var(--accent);
  transition: transform 1.6s var(--ease) .3s;
}
.motto__circles i:first-child { transform: translateX(-.5em); }
.motto__circles i:last-child { transform: translateX(.5em); }
.motto__quote.is-in .motto__circles i:first-child { transform: translateX(.15em); }
.motto__quote.is-in .motto__circles i:last-child { transform: translateX(-.15em); }
@media (min-width: 640px) {
  .motto__quote { flex-direction: row; justify-content: center; gap: .6em; }
}
.motto__text { max-width: 32rem; margin: 1.75rem auto 0; color: var(--muted); }

/* ---------- Zweispaltige Sektionen ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.split { display: grid; gap: 2.5rem; }
.split__head .muted { margin-top: 1.25rem; max-width: 22rem; }
.split__body { max-width: 40rem; }
@media (min-width: 860px) {
  .split { grid-template-columns: 4fr 7fr; gap: 4rem; }
  .split__head { position: sticky; top: 7rem; align-self: start; }
}

.about__photo { margin-bottom: 2.5rem; }
.facts { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.facts div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .25rem; }
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .facts div { grid-template-columns: 9rem 1fr; gap: 1.5rem; } }

/* Schwerpunkte */
.topics { border-top: 1px solid var(--line); }
.topic {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.topic__no { font-size: .8rem; color: var(--muted); padding-top: .55rem; }
.topic__title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.topic p { margin-top: .4rem; color: var(--muted); }

/* Ablauf */
.steps li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li > span { font-size: .8rem; color: var(--muted); padding-top: .35rem; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.3; }
.steps p { color: var(--muted); margin-top: .2rem; }

/* ---------- Kontakt ---------- */
.contact__direct { margin-top: 2rem; line-height: 2; }

.form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: .3rem; }
.field > label { font-size: .8rem; color: var(--muted); }
.opt { opacity: .7; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(43,41,39,.25);
  padding: .5rem 0; font-size: 1rem; border-radius: 0; appearance: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #A4553A; }
.field__error { font-size: .8rem; color: #A4553A; }
.field__error:empty { display: none; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .85rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input {
  appearance: none; flex: none; width: 1rem; height: 1rem; margin: .15rem 0 0;
  border: 1px solid rgba(43,41,39,.4); display: grid; place-items: center; cursor: pointer;
}
.consent input::after { content: ""; width: .5rem; height: .5rem; background: var(--fg); transform: scale(0); transition: transform .2s; }
.consent input:checked::after { transform: scale(1); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending .btn { opacity: .5; pointer-events: none; }
.form__status:empty { display: none; }
.form__status { font-size: .95rem; padding-top: .5rem; }
.form__status.is-error { color: #A4553A; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 2.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* =========================================================
   Bewegung — langsam, weich, nie laut
   ========================================================= */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Hero: Zeilen steigen nacheinander aus einer Maske auf */
.hero__title .mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .mask > * { display: inline-block; }
.js .intro {
  opacity: 0; transform: translateY(1rem);
  animation: intro 1.3s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 200ms);
}
.js .hero__title .intro { opacity: 1; transform: translateY(110%); }
@keyframes intro { to { opacity: 1; transform: none; } }

/* Bilder: werden von unten nach oben aufgedeckt */
.js .reveal-img .photo {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease-out);
}
.js .reveal-img .photo__note { opacity: 0; transition: opacity 1s var(--ease) .9s; }
.js .reveal-img.is-in .photo { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in .photo__note { opacity: 1; }
.js .intro-img .photo { transition-delay: .5s; }

/* Allgemeines Einblenden */
.js .fade {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .fade.is-in { opacity: 1; transform: none; }

/* Trennlinien zeichnen sich beim Erscheinen von links */
.section, .motto { border-top: 0; position: relative; }
.section::before, .motto::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s var(--ease-out);
}
.section.is-drawn::before, .motto.is-drawn::before { transform: scaleX(1); }
html:not(.js) .section::before, html:not(.js) .motto::before { transform: none; }

/* Listen-Linien in den Schwerpunkten und im Ablauf */
.topics, .steps li:first-child { border-top: 0; }
.topic, .steps li { border-bottom: 0; position: relative; }
.topics::before, .topic::after, .steps::before, .steps li::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
}
.topics, .steps { position: relative; }
.topics::before, .steps::before { top: 0; }
.topic::after, .steps li::after {
  bottom: 0; transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out);
  transition-delay: inherit;
}
.js .topic.is-in::after, .js .steps li.is-in::after, html:not(.js) .topic::after, html:not(.js) .steps li::after { transform: scaleX(1); }

/* Schwerpunkte: ruhiger Hover */
.topic__no, .topic__title { transition: color .5s var(--ease), transform .7s var(--ease-out); }
@media (hover: hover) {
  .topic:hover .topic__title { transform: translateX(.4rem); }
  .topic:hover .topic__no { color: var(--accent); }
}

/* Navigation: feine Unterstreichung */
.nav__list a { position: relative; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Button: Fläche zieht sich beim Hover zurück */
.btn { position: relative; overflow: hidden; isolation: isolate; background: transparent; color: var(--bg); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform-origin: right; transition: transform .7s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--fg); }
.btn:hover::before { transform: scaleX(0); }
.btn { transition: color .5s var(--ease); }

/* Leitsatz: Text folgt, nachdem sich die Kreise gefunden haben */
.js .motto__text.fade { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade, .js .intro, .js .hero__title .intro { opacity: 1; transform: none; transition: none; animation: none; }
  .js .reveal-img .photo { clip-path: none; transition: none; }
  .js .reveal-img .photo__note { opacity: 1; }
  .section::before, .motto::before, .topic::after, .steps li::after { transform: none; transition: none; }
  .motto__circles i { transition: none; }
}
