/* Praxis am Wienerberg – Birgit Zach-Schwarzel */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage: #799D97;
  --sage-soft: #E3EBE8;
  --sage-line: rgba(18, 22, 21, .18);
  --paper: #FAF8F2;
  --ink: #161917;
  --ink-soft: #3B403E;
  --accent: #933361;
  --accent-dark: #76284D;
  --radius-lg: 32px;
  --radius-md: 20px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 144px);
  --header-h: 72px;
  --font: "DM Sans", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, 1.05vw + 13px, 19px);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.35rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.surface :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.6em;
}
.lead { font-size: clamp(1.1rem, 1.3vw + .6rem, 1.4rem); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }

/* Buttons und Links */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px; background: var(--sage); color: var(--ink);
  font-weight: 500; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.button-light, .surface .button { background: var(--paper); }
.button:hover, .button-light:hover, .surface .button:hover {
  background: var(--accent); border-color: var(--accent); color: var(--paper); text-decoration: none;
}

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-decoration-color: var(--ink);
}
.text-link:hover { text-decoration-color: var(--accent); }

/* Kopfzeile */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(250, 248, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--sage-line); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.brand-place { font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-size: .95rem;
  transition: background-color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { background: var(--sage-soft); }

.header-call {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--paper);
  text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.header-call:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.call-icon { display: none; }

.nav-toggle {
  display: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--sage-line); background: transparent; color: var(--ink);
  font: inherit; font-size: .95rem; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--sage-line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { width: 100%; font-size: 1.1rem; padding: 0 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  .header-inner { gap: 10px; }
}

@media (max-width: 420px) {
  .brand-place { display: none; }
  .brand-name { font-size: .92rem; }
  .brand { gap: 8px; }
  .brand-mark { width: 22px; }
  .nav-toggle { padding: 0 14px; }
  .header-call { width: 44px; padding: 0; justify-content: center; }
  .call-icon { display: block; }
  .call-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Einstieg */

.hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  background: var(--sage); pointer-events: none;
}
.hero::before { width: clamp(320px, 46vw, 640px); aspect-ratio: 1; right: -12vw; top: -8vw; opacity: .16; }
.hero::after  { width: clamp(260px, 36vw, 500px); aspect-ratio: 1; right: 6vw; top: 14vw; opacity: .10; }

.hero-text { padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 12em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 2.2em; }

.hero-image { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage-soft); }
.hero-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 60%; }
@media (min-width: 760px) { .hero-image img { aspect-ratio: 21 / 10; } }

/* Abschnitte */

.section { padding: var(--section-y) 0; position: relative; }
.surface { background: var(--sage); color: var(--ink); }
.surface .lead { color: var(--ink); }
.tint { background: var(--sage-soft); }

.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 64px); }

.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

/* Schwerpunkte */

.topics {
  --topic-gap: clamp(12px, 1.6vw, 20px);
  list-style: none; margin: 0 0 clamp(56px, 8vw, 104px); padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--topic-gap);
}
.topic {
  flex: 0 1 100%;
  background: rgba(250, 248, 242, .8); border-radius: var(--radius-md);
  padding: clamp(22px, 2.4vw, 30px);
}
@media (min-width: 640px) { .topic { flex-basis: calc((100% - var(--topic-gap)) / 2); } }
@media (min-width: 1100px) { .topic { flex-basis: calc((100% - 3 * var(--topic-gap)) / 4); padding-inline: 24px; } }
.topic h3 {
  margin: 0 0 .7em; color: var(--accent);
  font-size: clamp(1.1rem, 1.3vw, 1.25rem); line-height: 1.3; letter-spacing: -.025em;
  overflow-wrap: break-word;
}
.topic p { margin: 0; font-size: .95rem; line-height: 1.6; }


.method h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.02em; }

/* Platzhalter für noch fehlende Bilder */

.placeholder {
  position: relative; display: flex; align-items: flex-end; min-height: 320px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(250, 248, 242, .35); padding: 24px;
  font-size: .85rem; color: var(--ink-soft);
}
.placeholder::before, .placeholder::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--paper);
}
.placeholder::before { width: 62%; aspect-ratio: 1; left: 12%; top: 10%; opacity: .5; }
.placeholder::after { width: 52%; aspect-ratio: 1; left: 34%; top: 32%; opacity: .32; }
.placeholder span { position: relative; z-index: 1; }

/* Über mich */

.about { align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 5fr 7fr; } }
.portrait { margin: 0; max-width: 420px; }
.portrait img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--sage-soft);
}
.portrait figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sage-line); }
.portrait-name { display: block; font-weight: 500; font-size: 1.1rem; letter-spacing: -.01em; }
.portrait-designation { display: block; margin-top: 4px; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 860px) { .portrait { position: sticky; top: calc(var(--header-h) + 32px); } }

.about h3 { margin-top: 2em; }
.facts { list-style: none; padding: 0; margin: 0 0 1.4em; }
.facts li { font-size: .95em; line-height: 1.55; }
.facts li + li { margin-top: .55em; }

/* Kosten */

.cost-layout {
  display: grid; gap: clamp(36px, 5vw, 64px); align-items: start;
  margin-bottom: clamp(40px, 6vw, 64px);
}
@media (min-width: 860px) { .cost-layout { grid-template-columns: 7fr 5fr; } }
.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; gap: clamp(24px, 3vw, 32px);
}
.steps li { counter-increment: step; padding-left: 44px; }
.steps li p:last-child { margin-bottom: 0; }
.steps h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 .5em -44px; }
.steps h3::before {
  content: counter(step); display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--paper);
  font-size: .85rem; font-weight: 500; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums;
}
.price { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.02em; }

.note {
  background: var(--paper); border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
}
.note p:last-child { margin-bottom: 0; }
.note a { color: var(--accent); }

/* Fragen */

.faq { border-top: 1px solid var(--sage-line); margin-top: clamp(28px, 4vw, 48px); }
.faq details { border-bottom: 1px solid var(--sage-line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: clamp(1.05rem, 1.2vw, 1.2rem); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  --faq-line: var(--ink);
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--ink);
  background:
    linear-gradient(var(--faq-line), var(--faq-line)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--faq-line), var(--faq-line)) center / 1.5px 10px no-repeat;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.faq details[open] summary::after {
  --faq-line: var(--paper);
  transform: rotate(45deg); background-color: var(--accent); border-color: var(--accent);
}
.faq details p { padding: 0 0 22px; max-width: 40em; color: var(--ink-soft); }
.faq-cta { margin-top: 28px; }

/* Kontakt */

.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: clamp(280px, 40vw, 560px); aspect-ratio: 1;
  right: -10vw; bottom: -14vw; border-radius: 50%; background: var(--paper); opacity: .18;
}
.contact .wrap { position: relative; }
.contact-list { margin: 0 0 20px; border-top: 1px solid var(--sage-line); }
.contact-list div {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--sage-line);
}
@media (max-width: 480px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }
.contact-list dt { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .2em; }
.contact-list dd { margin: 0; }
.contact-list a { display: inline-block; min-height: 24px; }

/* Fußzeile */

.site-footer { padding: 40px 0 48px; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Unterseiten (Impressum, Datenschutz) */

.legal { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 var(--section-y); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.legal h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-top: 2.2em; letter-spacing: -.015em; }
.legal address { font-style: normal; margin-bottom: 1.1em; }
.legal a { color: var(--accent); }
.legal ul { padding-left: 1.2em; }
.back-link { margin-bottom: 2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Prüfmodus: ?pruefen hebt alle noch nicht freigegebenen Inhalte hervor */

.review-mode [data-pending] {
  outline: 2px dashed var(--accent); outline-offset: 6px; position: relative;
}
.review-mode [data-pending]::after {
  content: "Offen: " attr(data-pending);
  display: block; margin-top: 8px; font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  color: var(--paper); background: var(--accent); padding: 4px 10px; border-radius: 14px; width: fit-content; max-width: 100%; white-space: normal;
}

@media print {
  .site-header, .nav-toggle, .header-call { display: none; }
  .hero { padding-top: 0; }
  .surface, .tint { background: none; }
}
