/* ==========================================================================
   inDir – Praxis für Psychotherapie, Nadin Büschl
   Fonts: Fraunces (Display) selbst gehostet, Karla (Text) selbst gehostet
   Bewusst ohne externe Requests (Fonts, Karten, Tracking) –
   passend zur Datenschutzerklärung der Praxis.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/karla-latin.woff2') format('woff2');
}

/* ---- Tokens -------------------------------------------------------- */
:root {
  --bg: #eef0e8;
  --surface: #f8f9f3;
  --surface-alt: #e2e6d9;
  --text: #232b22;
  --text-muted: #57604e;
  --accent: #4f6b52;
  --accent-strong: #33472f;
  --accent-tint: #dfe6da;
  --accent-secondary: #6d7999;
  --gold: #a97f42;
  --gold-strong: #8a6733;
  --gold-tint: #ecdfc7;
  --border: #d1d6c3;
  --shadow: 0 1px 2px rgba(35, 43, 34, 0.06), 0 8px 24px -12px rgba(35, 43, 34, 0.18);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 74rem;
  --measure: 40rem;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161c15;
    --surface: #1e251c;
    --surface-alt: #262f22;
    --text: #e9ede3;
    --text-muted: #a7b19c;
    --accent: #93b590;
    --accent-strong: #bcd8b8;
    --accent-tint: #2a3527;
    --accent-secondary: #a2ade0;
    --gold: #d3ab6c;
    --gold-strong: #e8c890;
    --gold-tint: #3a3120;
    --border: #384033;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Reset ----------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; color: var(--text); margin: 0; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; }
.stack { display: flex; flex-direction: column; }
.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section-alt { background: var(--surface-alt); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.lede { font-size: 1.15rem; color: var(--text-muted); }

/* ---- Sonnenblume (Bildquelle: siehe Impressum) ------------------------
   Dezenter Hintergrund-Akzent unten rechts, in echten Blumenfarben.
   Auf der Startseite sitzt sie hinter dem Porträt-Kreis und lugt dort
   hervor, statt als eigenständiges Element daneben zu stehen. Auf den
   Unterseiten eine ruhige Ecken-Variante im Seitenkopf. An den jeweiligen
   Abschnitt gebunden (nicht an den Viewport), damit nichts beim Scrollen
   flackert. */
.hero, .page-head {
  position: relative;
  overflow: hidden;
}
.bg-sunflower {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(30rem, 62%);
  aspect-ratio: 1600 / 1043;
  background-image: url('images/sonnenblume.jpg');
  background-size: cover;
  background-position: right bottom;
  opacity: 0.24;
  -webkit-mask-image: radial-gradient(ellipse at 85% 100%, black 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 85% 100%, black 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  .bg-sunflower { opacity: 0.4; }
}
@media (max-width: 700px) {
  .bg-sunflower { width: 78%; }
}
.hero > .wrap, .page-head > .wrap { position: relative; z-index: 1; }

/* Variante auf der Startseite: sitzt am Porträt-Kreis, lugt unten rechts
   dahinter hervor statt in der Ecke des ganzen Hero-Bereichs zu sitzen. */
.bg-sunflower-hero {
  right: -20%;
  bottom: -14%;
  width: 105%;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(ellipse at 78% 82%, black 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at 78% 82%, black 0%, transparent 68%);
}
@media (prefers-color-scheme: dark) {
  .bg-sunflower-hero { opacity: 0.5; }
}

/* Seitenkopf mit kleinem Begleitfoto, das mit der Sonnenblume verschmilzt
   (gleiches Prinzip wie beim Hero-Porträt auf der Startseite, nur kompakter). */
.page-head-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.page-head-photo-wrap {
  position: relative;
  max-width: 15rem;
  margin-left: auto;
}
.page-head-photo-wrap .photo-real {
  aspect-ratio: 3/4;
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-photo-wrap { order: -1; max-width: 11rem; margin-inline: auto; }
}

/* ---- Header / Nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-strong);
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }

.main-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-muted);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 20rem; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1.5rem; }
  .main-nav a { display: block; padding-block: 0.7rem; border-bottom: 1px solid var(--border); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--border); }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: #2a2013; }
.btn-primary:hover { background: var(--gold-strong); color: #1c1509; }
.btn-secondary { border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---- Hero --------------------------------------------------------------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: 16rem; max-width: 100%; margin-inline: auto; }
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--accent-strong); font-weight: 500; }

/* breathing circle – ambient, referenziert die Entspannungsübungen der Praxis */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.breathe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.35;
  animation: breathe 7s ease-in-out infinite;
}
.breathe-ring.r2 { inset: 10%; animation-delay: -1.6s; border-color: var(--accent-secondary); }
.breathe-ring.r3 { inset: 20%; animation-delay: -3.2s; }
@keyframes breathe {
  0%, 100% { transform: scale(0.86); opacity: 0.15; }
  50% { transform: scale(1); opacity: 0.5; }
}
.hero-portrait {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent-tint), var(--surface-alt));
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-portrait:has(span) {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}
.hero-portrait span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* ---- Quote -------------------------------------------------------------- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
  max-width: 42rem;
  margin: 0;
}

/* ---- Content blocks / editorial list ------------------------------------ */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }

.method {
  padding-block: 2.4rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem 2.5rem;
}
.method:first-of-type { border-top: none; padding-top: 0.5rem; }
.method-side { display: flex; flex-direction: column; gap: 0.9rem; }
.method-icon { width: 2.75rem; height: 2.75rem; color: var(--accent-secondary); }
.method-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}
.method h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.6rem; }
@media (max-width: 700px) {
  .method { grid-template-columns: 1fr; gap: 0.5rem; }
}

.praxis-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
@media (max-width: 700px) {
  .praxis-grid { grid-template-columns: 1fr; }
}

.info-block { border-top: 1px solid var(--border); padding-block: 2.2rem; }
.info-block:first-of-type { border-top: none; padding-top: 0; }
.info-block h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.7rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding-block: 0.35rem; }
.contact-list a { text-decoration: none; font-weight: 700; }

/* placeholder image panel – wird durch echtes Foto ersetzt */
.photo-frame {
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background:
    repeating-linear-gradient(135deg, var(--surface-alt) 0 14px, var(--surface) 14px 28px);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.photo-real {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.photo-real img { width: 100%; height: 100%; object-fit: cover; }

.photo-frame span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  /* bewusst fest dunkel in beiden Themes, kein flippendes Token (Kontrast-Bug: der Footer wurde im Dark Mode unlesbar hellgrün) */
  background: #2c3a26;
  color: #d7ddc9;
  padding-block: 3rem 2rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cdd9c6;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #f3f4ec; }
.site-footer p { color: #d7ddc9; max-width: none; }
.site-footer .wordmark { color: #f3f4ec; }
.site-footer .wordmark em { color: #cdd9c6; }
.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.2rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #c1c9b6;
}
.footer-bottom a { color: #e7ebdc; }
.footer-bottom ul { list-style: none; display: flex; gap: 1.3rem; padding: 0; margin: 0; }
