/* ============================================================
   Privatpraxis für Psychotherapie – Elena Plastrotmann
   Design-System v2: editorial, ruhig, mit echter Tiefe & Bewegung
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,440;0,9..144,560;0,9..144,680;1,9..144,440;1,9..144,560&family=Karla:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --paper: #f3ede1;
  --paper-warm: #ece0cd;
  --ink: #2c241c;
  --ink-soft: #6d5c4a;
  --moss: #b5603c;
  --moss-deep: #7c3f27;
  --moss-light: #d99569;
  --clay: #a97a34;
  --clay-soft: #d7b483;
  --sage-pale: #e6d5b9;
  --leaf: #5f7d4f;
  --leaf-deep: #44603a;
  --leaf-pale: #eef2e5;
  --leaf-pale-2: #e7ede0;
  --line: rgba(44, 36, 28, 0.13);
  --glass: rgba(255, 252, 245, 0.55);
  --glass-border: rgba(255, 252, 245, 0.72);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;

  --measure: 40rem;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--moss-deep); text-decoration-color: var(--moss-light); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--moss-deep);
  line-height: 1.12;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  background: rgba(242, 241, 233, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  transition: background 0.3s var(--ease);
}
.site-nav .wordmark {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--moss-deep);
  text-decoration: none;
  font-weight: 560;
  line-height: 1.25;
}
.site-nav .wordmark em { font-style: italic; color: var(--clay); font-weight: 440; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--clay); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--clay); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .legal { color: var(--ink-soft); opacity: 0.65; font-size: 0.8rem; }

/* ---------- Ambient gradient field (replaces flat illustration) ---------- */
.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.field span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.field .b1 { width: 46rem; height: 46rem; top: -18rem; left: -12rem; background: radial-gradient(circle, var(--moss-light), transparent 70%); opacity: 0.18; animation: drift1 34s ease-in-out infinite; }
.field .b2 { width: 34rem; height: 34rem; top: 8rem; right: -10rem; background: radial-gradient(circle, var(--clay-soft), transparent 70%); opacity: 0.14; animation: drift2 40s ease-in-out infinite; }
.field .b3 { width: 40rem; height: 40rem; bottom: -20rem; left: 20%; background: radial-gradient(circle, var(--sage-pale), transparent 70%); opacity: 0.2; animation: drift3 48s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4%, 6%); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6%, 4%); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5%, -5%); } }

/* ---------- Layout shell ---------- */
main { display: block; }
section { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); position: relative; }
.wrap { max-width: var(--measure); margin: 0 auto; }
.wrap-wide { max-width: 64rem; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: min(46rem, 88vh);
  display: flex;
  align-items: center;
  padding-top: clamp(2rem, 8vw, 4rem);
}
.hero-inner { max-width: 46rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}
.hero .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--moss);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.32s forwards;
}
.hero p.intro {
  margin-top: 1.7rem;
  max-width: 36rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.48s forwards;
}
.notice {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--moss);
  border-radius: 10px;
  font-size: 0.95rem;
  max-width: 36rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.64s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px) scale(0.99); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Sections ---------- */
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.3rem); margin-top: 0.4rem; }

/* ---------- Zitat: luftig, ohne Farbband ---------- */
.quote-section {
  text-align: center;
  padding: clamp(4.5rem, 12vw, 8.5rem) var(--gutter);
}
.leaf-mark {
  width: 2.4rem;
  height: auto;
  display: block;
  margin: 0 auto 1.8rem;
}
.quote-section blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1.34;
  color: var(--moss-deep);
  margin: 0 auto;
  max-width: 24ch;
}
.quote-section .quote-label {
  margin: 1.7rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 600;
}

/* ---------- Weiche Panels statt randloser Farbbänder ---------- */
.panel {
  background: linear-gradient(168deg, var(--leaf-pale) 0%, var(--leaf-pale-2) 100%);
  border: 1px solid rgba(95, 125, 79, 0.16);
  border-radius: 28px;
  padding: clamp(2rem, 5.5vw, 3.6rem);
  box-shadow: 0 26px 64px -34px rgba(58, 74, 50, 0.4);
  position: relative;
  overflow: hidden;
}

/* ---------- Rankender Keim: entfaltet sich beim Einblenden ---------- */
.vine {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: clamp(5rem, 18vw, 10rem);
  height: auto;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
  overflow: visible;
}
.vine path {
  fill: none;
  stroke: #5f7d4f;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vine .stem {
  stroke-width: 1.6px;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 2.4s var(--ease) 0.2s;
}
.vine .leaf {
  stroke-width: 1.3px;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.vine .bud path {
  stroke-width: 1.2px;
}
.vine .bud {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 68px 4px;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible .vine .stem { stroke-dashoffset: 0; }
.reveal.is-visible .vine .leaf-a { stroke-dashoffset: 0; transition-delay: 0.9s; }
.reveal.is-visible .vine .leaf-b { stroke-dashoffset: 0; transition-delay: 1.3s; }
.reveal.is-visible .vine .leaf-c { stroke-dashoffset: 0; transition-delay: 1.7s; }
.reveal.is-visible .vine .leaf-d { stroke-dashoffset: 0; transition-delay: 2.0s; }
.reveal.is-visible .vine .bud { opacity: 1; transform: scale(1); transition-delay: 2.5s; }
#behandlung { padding-top: clamp(1rem, 3vw, 2rem); }
#behandlung .section-head h2 { color: var(--leaf-deep); }
#behandlung .eyebrow { color: var(--leaf); }

#ueber-mich .eyebrow, #kontakt .eyebrow { color: var(--leaf); }

.divider {
  height: 1px;
  max-width: 64rem;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.prose p { margin: 0 0 1.15em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Glass cards ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 20px;
  box-shadow: 0 20px 50px -24px rgba(35, 38, 31, 0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 28px 64px -22px rgba(35, 38, 31, 0.3); }

/* ---------- Portrait ---------- */
.portrait-layout {
  display: grid;
  grid-template-columns: 15.5rem 1fr;
  gap: clamp(2.2rem, 5vw, 3.8rem);
  align-items: start;
}
@media (max-width: 42rem) {
  .portrait-layout { grid-template-columns: 1fr; }
  .portrait-frame { margin: 0 auto; }
}
.portrait-frame {
  width: 15.5rem;
  height: 15.5rem;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: var(--leaf-pale);
  border: 1.5px solid rgba(95, 125, 79, 0.5);
  box-shadow: 0 0 0 8px rgba(95, 125, 79, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame .tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- Werdegang: Fineline-Zeitlinie ---------- */
.timeline-list {
  position: relative;
  padding-left: 1.9rem;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1.4px;
  background: var(--leaf);
  opacity: 0.3;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease) 0.1s;
}
.reveal.is-visible .timeline-list::before { transform: scaleY(1); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf-pale);
  border: 1.6px solid var(--leaf);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible .timeline-item:nth-of-type(1)::before { opacity: 1; transform: scale(1); transition-delay: 0.35s; }
.reveal.is-visible .timeline-item:nth-of-type(2)::before { opacity: 1; transform: scale(1); transition-delay: 0.8s; }
.reveal.is-visible .timeline-item:nth-of-type(3)::before { opacity: 1; transform: scale(1); transition-delay: 1.25s; }
.reveal.is-visible .timeline-item:nth-of-type(4)::before { opacity: 1; transform: scale(1); transition-delay: 1.7s; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 40rem) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 2.1rem;
  background: linear-gradient(160deg, #fdfbf6 0%, #f7f1e6 100%);
  border: 1px solid rgba(124, 63, 39, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 20px;
  box-shadow: 0 18px 44px -22px rgba(89, 66, 41, 0.28);
}
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); margin-top: 1.15rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.2rem 0 0; font-size: 1.06rem; }
.contact-card .parking { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--moss);
  color: var(--paper);
  border: none; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.94rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 24px -10px rgba(76, 95, 67, 0.6);
}
.btn:hover { background: var(--moss-deep); color: var(--paper); transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 32px -10px rgba(76, 95, 67, 0.7); }

.map-box {
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1.8rem;
}
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; border-radius: 16px; }
.map-box .map-hint { color: var(--ink-soft); font-size: 0.9rem; max-width: 22rem; }

/* ---------- Footer ---------- */
footer {
  padding: 2.4rem var(--gutter) 3.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
footer a { color: var(--ink-soft); }
footer .legal-links { display: flex; gap: 1.2rem; }

/* ---------- Legal pages ---------- */
.legal-page section { padding-top: clamp(2.8rem, 6vw, 4rem); }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 1.9rem; }
.legal-page h3 { font-size: 1.05rem; color: var(--moss-deep); margin-top: 2.1rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; }
.legal-page p, .legal-page address { color: var(--ink-soft); font-style: normal; margin: 0 0 1em; }

/* ---------- Photo hero (subtle duotone forest, monochrome tint) ---------- */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1771396308175-d099dd9755bd?fm=jpg&q=60&w=2400&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.28;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--moss-deep);
  mix-blend-mode: color;
  opacity: 0.9;
}
.hero::after, .hero::before { z-index: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(242,241,233,0.55) 0%, rgba(242,241,233,0.82) 65%, var(--paper) 100%);
}
.hero .eyebrow { color: var(--clay); }
.hero h1 { color: var(--moss-deep); text-shadow: none; }
.hero .lede { color: var(--moss); }
.hero p.intro { color: var(--ink-soft); }
.hero .notice { background: var(--glass); border-color: var(--glass-border); color: var(--ink); }
.hero .notice a { color: var(--moss-deep); }

.hero-art-wrap {
  max-width: 22rem;
  margin: 0 auto 1.5rem;
  opacity: 0;
  transform: scale(0.94);
  animation: emblemIn 1.1s var(--ease) 0.05s forwards;
}
.hero-art-wrap svg, .hero-art-wrap img { width: 100%; height: auto; display: block; }
@keyframes emblemIn { to { opacity: 1; transform: scale(1); } }

.photo-credit {
  font-size: 0.72rem;
  color: var(--ink-soft);
  opacity: 0.6;
}
.photo-credit a { color: var(--ink-soft); }

/* ---------- Logo ---------- */
.site-nav .wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-nav .logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px -3px rgba(35, 38, 31, 0.35);
}
.footer-mark {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.7;
  vertical-align: middle;
  margin-right: 0.4rem;
  border-radius: 50%;
}
.logo-round {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 34px -12px rgba(35, 38, 31, 0.45);
  background: var(--paper-warm);
}

/* ---------- Mobile fixes: horizontal overflow + nav + portrait ---------- */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.nav-links {
  flex-wrap: wrap;
  row-gap: 0.4rem;
  justify-content: flex-end;
}

@media (max-width: 40rem) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav-links {
    justify-content: flex-start;
    width: 100%;
    gap: 1rem 1.1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 26rem) {
  .portrait-frame {
    width: 10.5rem;
    height: 10.5rem;
  }
  .portrait-frame .tag {
    font-size: 0.62rem;
  }
}
