/* Entwurf 3 – Der Weg zur Therapie. System: design/3.md */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/be-vietnam-pro-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/be-vietnam-pro-normal-500.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/be-vietnam-pro-normal-600.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/literata-italic-400.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/literata-normal-400.woff2") format("woff2"); }

:root {
  --c-page: #eceef1;
  --c-panel: #ffffff;
  --c-ink: #1d1f24;
  --c-muted: #4f5560;
  --c-wine: #8c0209;
  --c-rose: #f6e9ea;
  --c-line: rgb(from var(--c-ink) r g b / .12);
  color-scheme: light;

  --font-sans: "Be Vietnam Pro", system-ui, sans-serif;
  --font-serif: "Literata", Georgia, serif;

  --fs--1: .885rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.275rem;
  --fs-2: 1.53rem;
  --fs-3: 1.836rem;
  --fs-4: 2.203rem;
  --fs-5: clamp(2.203rem, 4.6vw, 3.807rem);
  --track-tight: -.02em;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  --radius-l: 1.75rem;
  --radius-s: .5rem;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: var(--fs-0); line-height: 1.6; color: var(--c-ink); background: var(--c-page); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-wine); text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 var(--space-3); }
figure { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--c-wine); outline-offset: 3px; }
[id] { scroll-margin-top: var(--space-5); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: calc(var(--space-6) * -2); z-index: 20; padding: var(--space-2) var(--space-3); background: var(--c-panel); }
.skip:focus { top: var(--space-3); }
.muted { color: var(--c-muted); }

.head, main, .footer { width: min(80rem, 100% - var(--space-3) * 2); margin-inline: auto; }

/* Buttons (component 4) */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--c-wine);
  border-radius: var(--radius-pill);
  background: var(--c-wine); color: var(--c-panel);
  font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--c-ink); border-color: var(--c-ink); }
.btn--line { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--line:hover { background: var(--c-ink); color: var(--c-panel); }
.btn--small { padding: var(--space-2) var(--space-3); font-size: var(--fs--1); }

/* Header */
.head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; }
.logo { display: flex; flex-direction: column; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: var(--fs-0); line-height: 1.1; letter-spacing: var(--track-tight); }
.logo em { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs--1); color: var(--c-muted); letter-spacing: 0; }
.nav { display: none; gap: var(--space-4); margin-left: auto; }
.nav a { color: var(--c-ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.head .btn { margin-left: auto; }

/* Hero */
.hero { display: grid; gap: var(--space-5); padding: var(--space-5) 0 var(--space-6); }
.hero h1 { font-size: var(--fs-5); letter-spacing: var(--track-tight); line-height: 1.08; }
.hero h1 span { display: block; margin-top: var(--space-3); font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: var(--fs-2); line-height: 1.3; letter-spacing: 0; color: var(--c-muted); }
.lead { margin: var(--space-4) 0 var(--space-5); max-width: 34rem; color: var(--c-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.hero-credit { position: absolute; top: var(--space-3); left: var(--space-3); margin: 0; font-size: var(--fs--1); }

/* Price card pinned to the image (component 3) */
.price-card {
  position: relative;
  margin: calc(var(--space-7) * -1) var(--space-3) 0;
  padding: var(--space-4);
  background: var(--c-panel);
  border-radius: var(--radius-l);
  box-shadow: 0 10px 30px -18px var(--c-ink);
}
.price-card h2 { font-size: var(--fs-0); font-weight: 600; margin-bottom: var(--space-2); }
.price-card dl { margin: 0 0 var(--space-3); }
.price-card div { display: flex; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--c-line); }
.price-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-card a { font-weight: 500; font-size: var(--fs--1); }

/* Panels (component 1) */
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5);
  margin-bottom: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: var(--c-panel);
  border-radius: var(--radius-l);
}
.panel > * { min-width: 0; }
.panel-head h2 { font-size: var(--fs-3); hyphens: auto; letter-spacing: var(--track-tight); margin-bottom: var(--space-3); }
.note { font-family: var(--font-serif); font-style: italic; color: var(--c-muted); max-width: 22rem; margin: 0; }
.panel h3 { font-size: var(--fs-1); margin-bottom: var(--space-2); }
.panel--quiet { background: transparent; padding-block: var(--space-4); }

/* Path steps (component 2) */
.steps { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; padding: var(--space-4); background: var(--c-page); border-radius: var(--radius-s); }
.steps p { color: var(--c-muted); font-size: var(--fs--1); }
.steps a { margin-top: auto; font-weight: 500; font-size: var(--fs--1); }
.tag { align-self: flex-start; margin-bottom: var(--space-3); padding: var(--space-1) var(--space-2); font-size: var(--fs--1); font-weight: 600; color: var(--c-wine); background: var(--c-rose); border-radius: var(--radius-s); }

/* Treatment */
.services { display: grid; gap: var(--space-4); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.services li { padding-top: var(--space-3); border-top: 1px solid var(--c-line); }
.services p { color: var(--c-muted); margin: 0; }
.panel h3.sub { font-size: var(--fs-2); }
.groups { border-top: 1px solid var(--c-line); }
.group { border-bottom: 1px solid var(--c-line); }
.group summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group-title { font-size: var(--fs-1); }
.count { flex: none; font-size: var(--fs--1); color: var(--c-muted); }
.count::after { content: " +"; color: var(--c-wine); font-weight: 600; }
.group[open] .count::after { content: " –"; }
.indications { columns: 1; column-gap: var(--space-5); margin: 0; padding: 0 0 var(--space-4); list-style: none; }
.indications li { break-inside: avoid; padding: var(--space-1) 0; }
.lay { color: var(--c-muted); }

/* Practice */
.rooms { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.rooms img { width: 100%; max-width: 448px; border-radius: var(--radius-s); }
.rooms figcaption { margin-top: var(--space-2); font-size: var(--fs--1); color: var(--c-muted); }
.rooms strong { color: var(--c-ink); }
.homevisit { padding: var(--space-4); background: var(--c-rose); border-radius: var(--radius-s); }
.homevisit p { max-width: 40rem; }
.homevisit-neuro { color: var(--c-muted); }

/* Team */
.people { display: grid; gap: var(--space-5); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.people li { display: grid; gap: var(--space-3); align-items: start; }
.avatar { display: grid; place-items: center; width: 4.5rem; aspect-ratio: 1; border-radius: var(--radius-pill); background: var(--c-rose); color: var(--c-wine); font-weight: 600; font-size: var(--fs-1); }
.role { color: var(--c-wine); font-weight: 500; margin-bottom: var(--space-2); }
.people p { max-width: 40rem; }
.avatar-note { font-size: var(--fs--1); margin: 0; }
.hiring { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--c-line); }

/* Prices */
.prices { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: var(--space-4); font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: var(--space-3) var(--space-2) var(--space-3) 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: baseline; }
.prices thead th { font-size: var(--fs--1); font-weight: 500; color: var(--c-muted); padding-top: 0; }
.prices tbody th { font-weight: 400; overflow-wrap: break-word; }
.prices thead th:last-child { width: 6.5rem; }
.prices td { padding-left: var(--space-3); }
.dur { display: block; font-size: var(--fs--1); color: var(--c-muted); }
.prices td:last-child, .prices thead th:last-child { text-align: right; padding-right: 0; color: var(--c-ink); font-weight: 600; }
.refund { margin-top: var(--space-5); padding: var(--space-4); background: var(--c-page); border-radius: var(--radius-s); }
.refund ol { margin: var(--space-3) 0; padding-left: var(--space-4); }
.refund li { padding-left: var(--space-2); margin-bottom: var(--space-2); }
.refund li::marker { color: var(--c-wine); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; gap: var(--space-5); }
.contact h3 { font-size: var(--fs-0); font-weight: 600; margin: 0 0 var(--space-2); }
.contact h3:not(:first-child) { margin-top: var(--space-4); }
.big-link { font-size: var(--fs-2); font-weight: 500; margin-bottom: var(--space-2); }
.big-link a { color: var(--c-ink); text-decoration: none; }
.big-link a:hover { color: var(--c-wine); text-decoration: underline; }
address { font-style: normal; margin-bottom: var(--space-3); }
.transit { margin: 0; padding-left: var(--space-4); }
.map { margin: var(--space-4) 0 0; padding: var(--space-6) var(--space-3); background: var(--c-page); border-radius: var(--radius-s); text-align: center; }

/* Footer */
.footer { display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-4) var(--space-7); font-size: var(--fs--1); color: var(--c-muted); }
.footer h2 { font-size: var(--fs-1); color: var(--c-ink); margin-bottom: var(--space-3); }
.footer dl { display: grid; grid-template-columns: 1fr; margin: 0 0 var(--space-3); }
.footer dt { font-weight: 600; color: var(--c-ink); }
.footer dd { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }

@media (min-width: 40rem) {
  .people li { grid-template-columns: auto 1fr; gap: var(--space-4); }
  .logo { font-size: var(--fs-1); }
  .steps { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
  .indications { columns: 2; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: var(--space-6) var(--space-5); }
  .panel > * { min-width: 0; }
.panel-head h2 { font-size: var(--fs-4); }
  .price-card { position: absolute; right: var(--space-4); bottom: var(--space-4); width: 19rem; margin: 0; }
  .footer dl { grid-template-columns: max-content 1fr; gap: var(--space-1) var(--space-4); }
  .footer dd { margin: 0; }
}

@media (min-width: 64rem) {
  .nav { display: flex; }
  .head .btn { margin-left: 0; }
  .hero { grid-template-columns: 5fr 6fr; align-items: center; gap: var(--space-7); padding-bottom: var(--space-7); }
  .panel { grid-template-columns: 4fr 8fr; gap: var(--space-6); padding: var(--space-7); }
  .path { grid-template-columns: 1fr; }
  .path .panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-5); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .panel--quiet { padding-block: var(--space-4); }
  .footer { grid-template-columns: 8fr 4fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
