/* Praxis in der Aue - Annegret Dörr
   Plain CSS, no framework, no JS. Fonts are self-hosted (Fraunces + Jost, SIL OFL, see /fonts/OFL.txt).

   Design notes
   - Palette comes from the practice itself: the amber of the sand dollar (#EC9D0E), the warm sunlit curtains,
     and the deep blue of the spiral painting in the treatment room. The grey is the logo's wordmark grey.
   - The logo stays untouched. It only echoes in the rays (five hairline wedges around the hero picture)
     and in the small sand dollar used as divider.
   - Wide-tracked capitals for labels mirror the logo's lettering; Fraunces (soft serif) carries the voice. */

@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --sand: #fcf9f3;
  --sand-2: #f6efe3;
  --sand-3: #eadfca;
  --paper: #fffdf9;
  --ink: #2b2622;
  --ink-2: #5a5148;
  --grey: #666059;
  --amber: #ec9d0e;
  --amber-ink: #8f5500;
  --sea: #12354b;
  --sea-2: #1c4a66;
  --line: rgba(43, 38, 34, .14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 1.25rem;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --shadow: 0 1px 2px rgba(43, 38, 34, .05), 0 18px 40px -18px rgba(43, 38, 34, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 1.1875rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.15em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--sea); color: var(--sand); padding: .6rem 1rem; border-radius: 999px; z-index: 20; }
.skip:focus { left: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 380; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); line-height: 1.03; }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.4rem; line-height: 1.25; font-weight: 420; }
em { font-style: italic; }
h1 em, h2 em { color: var(--amber-ink); font-weight: 340; }
.band--sea h1 em, .band--sea h2 em, .site-footer h2 em { color: var(--amber); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  font: 500 .8rem/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--amber-ink); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.band--sea .eyebrow { color: var(--amber); }

.lede { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.prose { max-width: 38rem; }
.prose a, .lede a, .card a:not(.btn) { text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: color .2s; }
.prose a:hover, .lede a:hover, .card a:not(.btn):hover { color: var(--amber-ink); }

.pull {
  font: 340 clamp(1.5rem, 3vw, 2.15rem)/1.3 var(--serif);
  font-style: italic; color: var(--sea); margin: 2rem 0; padding-top: 1.5rem; max-width: 32rem; position: relative;
}
.pull::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 2px; background: var(--amber); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(252, 249, 243, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font: 500 1rem/1.15 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--grey); }
.brand span { display: block; font: 500 .66rem/1.5 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--amber-ink); }

.nav { display: flex; align-items: center; gap: .15rem; font: 500 1rem/1 var(--sans); }
.nav a { text-decoration: none; padding: .7rem .85rem; border-radius: 999px; color: var(--ink-2); position: relative; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sand-2); }
.nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--amber); border-radius: 2px; }
.nav .nav__cta { background: var(--sea); color: var(--sand); margin-left: .5rem; padding-inline: 1.2rem; }
.nav .nav__cta:hover { background: var(--sea-2); color: #fff; }
.nav .nav__cta[aria-current] { color: var(--sand); }
.nav .nav__cta[aria-current]::after { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; font: 500 1.02rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; padding: 1.05rem 1.7rem; border-radius: 999px; background: var(--sea); color: var(--sand); border: 1px solid var(--sea); transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--sea-2); box-shadow: 0 10px 24px -12px rgba(18, 53, 75, .6); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(43, 38, 34, .3); }
.btn--ghost:hover { background: var(--sand-2); box-shadow: none; }
.band--sea .btn { background: var(--amber); border-color: var(--amber); color: #2b1b00; }
.band--sea .btn:hover { background: #f5ad2f; }
.band--sea .btn--ghost { background: transparent; color: var(--sand); border-color: rgba(252, 249, 243, .4); }
.band--sea .btn--ghost:hover { background: rgba(252, 249, 243, .1); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- bands ---------- */
.band { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; }
.band--tint { background: var(--sand-2); }
.band--sea { background: var(--sea); color: #f4ede0; }
.band--sea h1, .band--sea h2, .band--sea h3 { color: #fbf6ec; }
.band--sea .lede, .band--sea p { color: #d9d2c4; }
.band--sea a { text-decoration-color: var(--amber); }
.band--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); background:
  radial-gradient(60rem 36rem at 88% 8%, rgba(236, 157, 14, .16), transparent 62%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero__art { position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 27rem; }
/* five hairline wedges: a quiet nod to the five petals of the sand dollar */
.hero__art::before, .pagehead__rays {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 12deg at 50% 50%, rgba(236, 157, 14, .75) 0 .7deg, transparent .7deg 72deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 30%, #000 36%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, transparent 0 30%, #000 36%, transparent 70%);
}
.hero__art::before { inset: -22% -34% -16% -34%; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--sand-3); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero .arch { aspect-ratio: 4 / 5; }
.hero .arch img { object-position: 78% 50%; }
.badge { position: absolute; left: -2.2rem; bottom: 2.2rem; display: flex; align-items: center; gap: .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1.2rem .9rem 1rem; box-shadow: var(--shadow); font-size: .98rem; line-height: 1.35; }
.badge img { width: 38px; height: 38px; flex: none; }
.badge strong { display: block; font-weight: 500; letter-spacing: .02em; }
.badge span { color: var(--ink-2); font-size: .92rem; }

.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin: 2.75rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 1rem; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: .65rem; }
.facts li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------- inner page head ---------- */
.pagehead { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(48rem 26rem at 95% 0%, rgba(236, 157, 14, .14), transparent 62%); }
.pagehead .wrap { position: relative; }
.pagehead h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: .35em; }
.pagehead__rays { right: calc(var(--pad) * -1); top: 50%; width: 26rem; height: 26rem; transform: translateY(-50%); opacity: .8; }
.pagehead .lede { margin-bottom: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tabs a { text-decoration: none; padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; font: 500 .98rem/1 var(--sans); color: var(--ink-2); background: var(--paper); transition: all .2s; }
.tabs a:hover { border-color: var(--ink-2); color: var(--ink); }
.tabs a[aria-current] { background: var(--sea); color: var(--sand); border-color: var(--sea); }

/* ---------- layout helpers ---------- */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--top { align-items: start; }
.split__media { max-width: 24rem; width: 100%; justify-self: center; }
.split__media .arch { aspect-ratio: 3 / 4; }
.portrait img { object-position: 50% 20%; }
.cols { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.rule { display: flex; align-items: center; gap: 1.25rem; margin: 0 auto; max-width: var(--wrap); padding-inline: var(--pad); color: var(--line); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule img { width: 30px; height: 30px; opacity: .9; }

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand-3); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--arch { border-radius: 999px 999px var(--radius) var(--radius); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); }
.gallery .photo { aspect-ratio: 4 / 3; }
.g-a { grid-column: span 7; }
.g-b { grid-column: span 5; }
.gallery .g-b, .gallery .g-c { aspect-ratio: auto; position: relative; min-height: 14rem; }
.gallery .g-b img, .gallery .g-c img { position: absolute; inset: 0; }
.g-c { grid-column: span 5; }
.g-d { grid-column: span 7; }
.gallery .g-b img { object-position: 30% 50%; }
.gallery .g-c img { object-position: 55% 50%; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card--sand { background: var(--sand-2); border-color: transparent; }
.card .eyebrow { margin-bottom: .9rem; }
.icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sand-2); display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--amber-ink); }
.icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.price { font: 340 clamp(4.2rem, 11vw, 7rem)/1 var(--serif); color: var(--sea); letter-spacing: -.03em; margin: 0 0 .15em; }
.price small { font-size: .45em; letter-spacing: 0; margin-left: .12em; color: var(--amber-ink); }

/* timeline */
.timeline { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr)); gap: 2rem 1.5rem; }
.timeline li { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; top: -.32rem; left: 0; width: .62rem; height: .62rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px var(--sand-2); }
.timeline b { display: block; font: 340 2.3rem/1.1 var(--serif); color: var(--sea); margin-bottom: .3rem; }

/* principles */
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem); }
.principles li { counter-increment: p; position: relative; padding-left: 4.2rem; line-height: 1.55; }
.principles li::before { content: counter(p); position: absolute; left: 0; top: -.35rem; width: 3rem; font: italic 340 3.2rem/1 var(--serif); color: var(--amber-ink); }
.band--sea .principles li::before { color: var(--amber); }
.principles--teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.principles--teaser li { padding-left: 0; padding-top: 4.8rem; border-top: 1px solid rgba(252, 249, 243, .2); }
.principles--teaser li::before { top: 1.1rem; }

/* etymology */
.word { text-align: center; }
.word .term { font: 340 clamp(2.4rem, 5vw, 3.6rem)/1.1 var(--serif); color: var(--sea); margin: 0 0 .3em; }
.word .term i { color: var(--amber-ink); }
.word p { color: var(--ink-2); margin: 0; }
.equals { text-align: center; font: italic 340 clamp(1.6rem, 3.4vw, 2.4rem)/1.3 var(--serif); color: var(--sea); margin: 2.5rem auto 0; max-width: 30rem; }
.equals::before { content: ""; display: block; width: 3rem; height: 2px; background: var(--amber); margin: 0 auto 1.25rem; }

/* contact */
.contact { display: grid; gap: 0; margin: 0; }
.contact div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact div:last-child { border-bottom: 1px solid var(--line); }
.contact dt { font: 500 .78rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber-ink); }
.contact dd { margin: 0; font: 360 clamp(1.3rem, 2.6vw, 1.7rem)/1.3 var(--serif); }
.contact a { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 100% 2px no-repeat; transition: background-size .25s, color .2s; padding-bottom: 2px; }
.contact a:hover { background-size: 100% 100%; color: #2b1b00; }
.address { font: 360 1.5rem/1.45 var(--serif); font-style: normal; }

.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; margin: 1.6rem 0 .3rem; }
.legal p, .legal li { font-size: 1.05rem; color: var(--ink-2); }
.legal { max-width: 46rem; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--sea); color: #d9d2c4; padding-block: clamp(3rem, 7vw, 5rem) 2rem; font-size: 1.02rem; line-height: 1.6; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand b { color: #efe8da; }
.site-footer .brand span { color: var(--amber); }
.site-footer p { margin: 1.25rem 0 0; max-width: 20rem; }
.site-footer h2 { font: 500 .78rem/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin: .35rem 0 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.site-footer address { font-style: normal; }
.site-footer .fine { grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(252, 249, 243, .16); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .92rem; color: #aaa294; }
.site-footer .fine p { margin: 0; max-width: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > *, .pagehead .wrap > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .wrap > *:nth-child(2) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:first-child { margin-left: -.85rem; }
  .site-header .wrap { padding-block: .7rem .35rem; }
}
@media (max-width: 52rem) {
  body { font-size: 1.125rem; }
  .hero .wrap, .split, .split--wide { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 22rem; margin-top: 1rem; }
  .badge { left: -.5rem; }
  .hero__art::before { inset: -14% -20%; }
  .principles, .principles--teaser { grid-template-columns: 1fr; }
  .principles--teaser li { padding-top: 3.6rem; }
  .gallery > * { grid-column: span 12; }
  .gallery .g-b, .gallery .g-c { aspect-ratio: 4 / 3; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .pagehead__rays { opacity: .4; width: 18rem; height: 18rem; }
  .contact div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 30rem) {
  .brand b { font-size: .9rem; letter-spacing: .2em; }
  .brand img { width: 40px; height: 40px; }
  .btn { width: 100%; justify-content: center; }
}

@media print {
  .site-header, .site-footer .fine, .hero__art::before, .pagehead__rays, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .band--sea, .site-footer { background: #fff; color: #000; }
}

.center { text-align: center; }

/* ---------- small utilities (no inline styles anywhere: the CSP forbids them) ---------- */
.jc { justify-content: center; }
.nodeco { text-decoration: none; }
.m0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-sec { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.bg-paper { background: var(--paper); }
.cols--18 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cols--18.stretch { align-items: stretch; }
.cols--words { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 46rem; margin-inline: auto; }
.price-card { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.muted0 { margin: 0; color: var(--ink-2); }
.photo--wide { margin-top: 1.25rem; aspect-ratio: 16 / 10; }
.minh-14 { min-height: 14rem; }
.ar-43 { aspect-ratio: 4 / 3; }
.band--full { min-height: 60vh; display: grid; align-items: center; }
.logo-404 { margin: 0 auto 1.5rem; }
.p3 { counter-set: p 3; }
.p4 { counter-set: p 4; }
