/* =========================================================
   Corporate Design — Psychotherapie Theresa Klammer-Krizaj
   Transaktionsanalyse · Graz
   Farbwelt: ruhiges Salbeigrün, warmes Creme, Ton (Clay)
   Typografie: "Fraunces" (Serif, warm/editorial) + "Inter"
   ========================================================= */

:root {
  /* Farbpalette */
  --cream:        #F7F3EC;
  --cream-deep:   #EFE8DC;
  --paper:        #FCFAF6;
  --sage:         #8AA290;
  --sage-soft:    #B8C7B9;
  --forest:       #33413A;
  --forest-deep:  #26302A;
  --clay:         #C58A6A;
  --clay-deep:    #B0724F;
  --ink:          #33352F;
  --muted:        #6E7168;
  --line:         #E2DACB;

  /* Typografie */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Maße */
  --maxw: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(38, 48, 42, 0.06);
  --shadow-md: 0 18px 50px rgba(38, 48, 42, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--clay-deep); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--forest); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay-deep);
  margin-bottom: 1rem;
}
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: #4a4d45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem;
  padding: .85em 1.7em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--forest); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--sage); }
.btn-ghost:hover { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-2px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(38,48,42,.05); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: var(--cream);
  font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.06rem; color: var(--forest); font-weight: 600; }
.brand-sub { font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: .5em .9em; border-radius: 100px;
  position: relative;
}
.nav-links a:hover { color: var(--forest); background: rgba(138,162,144,.16); }
.nav-links a.active { color: var(--forest); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--clay);
}
.nav-links .nav-cta { margin-left: .5rem; }
.nav-links .nav-cta a { background: var(--forest); color: #fff; padding: .55em 1.3em; }
.nav-links .nav-cta a:hover { background: var(--forest-deep); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--forest); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(138,162,144,.28), transparent 70%),
    radial-gradient(55% 50% at 12% 85%, rgba(197,138,106,.16), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-title { margin: 0 0 .4em; }
.hero-title .script { display: block; color: var(--clay-deep); font-style: italic; font-weight: 400; }
.hero-text { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait .frame {
  position: relative; width: min(360px, 78vw); aspect-ratio: 1/1.06;
  border-radius: 50% 50% 46% 46% / 46% 46% 50% 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--paper);
}
.hero-portrait .frame img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Sections & shapes
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 46rem; margin: 0 auto 3rem; }
.section-head.left { margin-left: 0; }
.bg-paper { background: var(--paper); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }

.divider-wave { display: block; width: 100%; height: auto; }

/* Quote band */
.quote-band { text-align: center; padding: clamp(3rem,7vw,5rem) 0; }
.quote-band blockquote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35;
  color: var(--cream); margin: 0 auto; max-width: 22ch;
}
.quote-band cite { display: block; margin-top: 1.3rem; font-family: var(--font-body); font-style: normal; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-soft); }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sage-soft); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(138,162,144,.18); color: var(--forest); margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card p:last-child { margin-bottom: 0; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split .media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4/5; background: linear-gradient(160deg, var(--sage-soft), var(--sage));
}
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 2.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--sage);
}
.timeline .year { font-family: var(--font-head); font-size: 1.15rem; color: var(--clay-deep); font-weight: 600; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; max-width: 760px; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.1rem 1.8rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--sage); }
.price-card.featured::before {
  content: "Beliebt"; position: absolute; top: 14px; right: -34px;
  background: var(--clay); color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3em 2.6em; transform: rotate(45deg); font-weight: 700;
}
.price-card h3 { font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.price-card .amount { font-family: var(--font-head); font-size: 2.9rem; color: var(--forest); line-height: 1; margin: .3rem 0 .1rem; }
.price-card .amount span { font-size: 1rem; color: var(--muted); }
.price-card .dur { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.price-card p { font-size: .94rem; margin-bottom: 0; }

/* Info list (notes) */
.note-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.note-list li { display: flex; gap: .8rem; align-items: flex-start; }
.note-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(138,162,144,.2);
  color: var(--forest); display: grid; place-items: center; margin-top: 2px;
}
.note-list .tick svg { width: 14px; height: 14px; }

/* Prose (long text pages) */
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose { max-width: 44rem; }
.prose p { color: #45483f; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.4rem; align-items: start; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-sm);
}
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(138,162,144,.18);
  color: var(--forest); display: grid; place-items: center;
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-item .value { font-size: 1.08rem; color: var(--forest); font-weight: 500; }
.contact-item a.value { color: var(--forest); }
.contact-item a.value:hover { color: var(--clay-deep); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  height: 420px; padding: 2rem; text-align: center; background: var(--paper);
}
.map-placeholder p { max-width: 34ch; margin: 0; color: var(--muted); font-size: .92rem; }

/* Page header (subpages) */
.page-hero { padding: clamp(3rem,7vw,5rem) 0 clamp(2rem,4vw,3rem); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 85% 0%, rgba(138,162,144,.22), transparent 70%);
}
.page-hero .eyebrow { margin-bottom: .6rem; }
.page-hero p { max-width: 42rem; }
.page-hero-intro {
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--forest);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.conditions-image { width: min(100%, 460px); justify-self: end; }
.conditions-image img { width: 100%; height: auto; border-radius: var(--radius-lg); }

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--forest), var(--forest-deep));
  border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem);
  text-align: center; color: var(--cream); position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(197,138,106,.4), transparent 70%);
}
.cta h2 { color: var(--cream); }
.cta p { color: rgba(247,243,236,.82); max-width: 40ch; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: var(--cream); color: var(--forest); }
.cta .btn-primary:hover { background: #fff; color: var(--forest-deep); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--forest-deep); color: var(--cream); padding: 3.5rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-soft); margin: 0 0 1.1rem; }
.site-footer p { color: rgba(247,243,236,.78); font-size: .95rem; }
.site-footer a { color: rgba(247,243,236,.88); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-brand .brand-mark { background: var(--cream); color: var(--forest); }
.footer-brand .brand-name, .footer-brand { color: var(--cream); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(247,243,236,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .82rem; color: rgba(247,243,236,.6);
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.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 (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-portrait { order: -1; margin-bottom: 1rem; }
  .split, .contact-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .conditions-image { justify-self: center; }
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--paper); padding: 1rem 1.2rem 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .4s var(--ease);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8em 1em; border-radius: 12px; }
  .nav-links .nav-cta { margin: .4rem 0 0; }
  .nav-links .nav-cta a { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
