/* naturheilkunde-buende.de — modern design
 * Brief (NEW-SERVER-PLAN.md 2.4): nature, wellbeing, expertise. Soft sage green, warm linen background,
 * dark green-grey text, one warm accent (terracotta). Serif headings, very readable body font,
 * handwriting only for the name. Self-hosted fonts, no external requests. Mobile first.
 */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bad Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bad-script-latin-400-normal.woff2") format("woff2"); }

:root {
  --linen: #faf7f1;
  --linen-dark: #f1ebe0;
  --white: #ffffff;
  --sage-50: #f0f3eb;
  --sage-100: #e2e9da;
  --sage-300: #b3c3a6;
  --sage-500: #6f8a63;
  --sage-700: #4a6340;
  --sage-900: #2c3b28;
  --ink: #283126;
  --muted: #566052;
  --accent: #a4502f;        /* terracotta: white text on it ≈ 5.6:1 */
  --accent-dark: #86401f;
  --honey: #d9a441;         /* decoration only */
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(44 59 40 / .06), 0 8px 24px rgb(44 59 40 / .08);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --script: "Bad Script", "Segoe Script", cursive;
  --content: 44rem;
  --wide: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; color: var(--sage-900); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--sage-900); line-height: 1.25; margin: 2.2em 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, blockquote, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
li::marker { color: var(--sage-500); }

.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--white); padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: .5rem; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--content { max-width: calc(var(--content) + 2 * var(--gutter)); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 247 241 / .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-100);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { text-decoration: none; color: var(--sage-900); display: flex; flex-direction: column; line-height: 1.1; padding-block: .5rem; }
.brand:hover { color: var(--sage-900); }
.brand__name { font-family: var(--script); font-size: 1.65rem; color: var(--sage-700); }
.brand__practice { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
@media (min-width: 30rem) { .brand__practice { font-size: .78rem; letter-spacing: .14em; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 1rem var(--sans); color: var(--sage-900);
  background: var(--white); border: 1px solid var(--sage-300); border-radius: 999px;
  padding: .5rem 1rem; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--linen); border-bottom: 1px solid var(--sage-100); box-shadow: var(--shadow); max-height: calc(100vh - 4.5rem); overflow-y: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { padding: .5rem var(--gutter) 1.25rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--sage-100); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-700); }
.site-nav .sub a { font-weight: 400; padding-left: 1rem; color: var(--muted); }
.site-nav .nav-cta a { color: var(--accent); }
/* without JavaScript the menu is simply always shown */
.no-js .site-nav { display: block; position: static; }
.no-js .nav-toggle { display: none; }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: .15rem; padding: 0; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a { padding: .5rem .7rem; border: 0; border-radius: 999px; font-size: 1rem; }
  .site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"] { background: var(--sage-50); }
  .site-nav .has-sub > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); opacity: .6; }
  .site-nav .sub { position: absolute; left: 0; top: 100%; min-width: 16rem; padding: .5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav .sub a { padding: .45rem .75rem; border: 0; border-radius: 8px; color: var(--ink); }
  .site-nav .sub a:hover { background: var(--sage-50); }
  .site-nav .nav-cta a { background: var(--accent); color: var(--white); padding-inline: 1rem; margin-left: .4rem; }
  .site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: var(--accent-dark); color: var(--white); }
}

/* ---------- buttons, small parts ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { border-color: var(--sage-700); color: var(--sage-900); background: rgb(255 255 255 / .6); }
.btn--ghost:hover { background: var(--sage-700); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.kicker { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-700); margin: 0 0 .75rem; }
.pill { display: inline-block; font-size: .95rem; background: var(--white); border: 1px solid var(--sage-300); border-radius: 999px; padding: .35rem .9rem; color: var(--sage-900); }
.pill::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--honey); border-radius: 50%; margin-right: .5rem; vertical-align: .05em; }
.lead { font-size: 1.22rem; color: var(--muted); }
.divider { width: 180px; margin: 0 auto; opacity: .9; }
/* long leaf line between front page sections, sitting on the boundary */
.section-divider { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-start; height: 0; }
/* 75% of the page width; the drawing is wider and cropped at the sides (leaves keep their size),
   with a soft fade at both ends so no leaf is cut off abruptly */
.section-divider .leaves { width: 75%; height: 150px; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--sage-50); }
.section--linen { background: var(--linen-dark); }
/* Marble backgrounds from the old site, softly faded into the page colour at top and bottom (like before) */
.marble-1, .marble-2 { background-color: var(--linen); background-size: cover; background-position: center; }
.marble-1 { background-image: linear-gradient(to bottom, var(--linen), rgb(250 247 241 / 0) 18%, rgb(250 247 241 / 0) 82%, var(--linen)), url("marble-1.jpg"); }
.marble-2 { background-image: linear-gradient(to bottom, var(--linen), rgb(250 247 241 / 0) 18%, rgb(250 247 241 / 0) 82%, var(--linen)), url("marble-2.jpg"); }
.page-head.marble-1, .page-head.marble-2 { background-image: linear-gradient(to bottom, rgb(250 247 241 / 0) 70%, var(--linen)), url("marble-1.jpg"); }
.section__head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.section__head h2 { margin-top: .4rem; }

/* ---------- hero (front page) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sage-900); min-height: clamp(22rem, 72vh, 48rem); display: flex; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -1; }
/* Parallax: while scrolling down, the photo moves slower than the page and zooms in a touch.
   Browsers with scroll-driven animations do it in CSS (smooth, on the GPU); others get it from menu.js. */
@media (prefers-reduced-motion: no-preference) {
  .hero__img { will-change: transform; }
  @supports (animation-timeline: scroll()) {
    .hero__img { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes hero-parallax { to { transform: translateY(40vh) scale(1.05); } }
.hero .wrap { display: flex; justify-content: flex-end; align-items: flex-start; }
/* Title as on the old site: handwriting font, white with a dark shadow, top right */
.hero__title { margin: clamp(2rem, 7vw, 4.5rem) 0 0; text-align: right; font-family: var(--script); font-weight: 400; color: var(--white); text-shadow: -4px 0px 4px black, -2px 0px 4px black, 4px 0px 4px black; line-height: 1.1; letter-spacing: .02em; }
.hero__title span { display: block; }
.hero__practice { font-size: clamp(1.9rem, 1rem + 4.4vw, 4.4rem); text-transform: uppercase; }
.hero__name { font-size: clamp(1.7rem, .9rem + 3.6vw, 3.6rem); margin-top: .15em; }

/* ---------- front page sections ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.1fr .9fr; } .split--reverse > :first-child { order: 2; } }
.portrait { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.portrait-wrap { max-width: 26rem; margin: 0 auto; }
.portrait-frame { position: relative; isolation: isolate; }
.portrait-frame::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 2px solid var(--sage-300); border-radius: var(--radius-lg); z-index: -1; }
.portrait-wrap .credit { margin-top: 1.8rem; }
.credit { font-size: .8rem; color: var(--muted); margin-top: .6rem; text-align: right; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(44 59 40 / .08), 0 16px 36px rgb(44 59 40 / .12); color: var(--ink); }
.card__media { aspect-ratio: 4 / 3; background: var(--sage-50); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 1.1rem; overflow: hidden; }
.card__media img { max-height: 82%; max-width: 82%; object-fit: contain; }
.card h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; }
.card__more { margin-top: auto; font-weight: 600; color: var(--accent); }
.card__more::after { content: " →"; }

.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.facts li { background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.25rem; border-left: 4px solid var(--sage-500); margin: 0; }
.facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.12rem; }
.facts span { color: var(--muted); font-size: 1rem; }
.logos { display: flex; justify-content: center; margin-top: 2rem; }
.logos img { height: 90px; width: auto; }

.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card a[href^="mailto"] { overflow-wrap: anywhere; }
.note + .contact-grid { margin-top: 1.25rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.contact-card :is(h2, h3) { margin: 0 0 .6rem; font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.contact-card svg { width: 1.4rem; height: 1.4rem; color: var(--sage-500); flex: none; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .big { font-size: 1.3rem; font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .3rem 0; vertical-align: top; font-weight: 400; }
.hours th { padding-right: 1rem; color: var(--sage-900); font-weight: 600; white-space: nowrap; }
.note { background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .98rem; color: var(--muted); }
.note--center { max-width: 48rem; margin: 2.5rem auto 0; text-align: center; }

/* ---------- inner pages ---------- */
.page-head { background: var(--sage-50); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); position: relative; overflow: hidden; }
.page-head h1 { margin-bottom: .3rem; }
.page-head .meta { color: var(--muted); margin: 0; }
.page-body { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toc a { display: inline-block; background: var(--white); border: 1px solid var(--sage-300); border-radius: 999px; padding: .3rem .85rem; text-decoration: none; font-size: .98rem; color: var(--sage-900); }
.toc a:hover { background: var(--sage-700); color: var(--white); border-color: var(--sage-700); }

.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .anchor { scroll-margin-top: 6rem; }
.prose h2 { padding-top: .2rem; }
.prose h2::before { content: ""; display: block; width: 3rem; height: 3px; background: var(--sage-300); border-radius: 2px; margin-bottom: .9rem; }
.prose figure img { border-radius: var(--radius); }
.prose figure.is-art img { border-radius: 0; }
.prose figure.is-art { background: var(--sage-50); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; place-items: center; }
.prose figure.is-art img { max-height: 320px; width: auto; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; background: var(--white); border-left: 4px solid var(--honey); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--sage-900); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; font: normal .95rem var(--sans); color: var(--muted); margin-top: .5rem; }
.prose .cols { display: grid; gap: 1.5rem; margin-bottom: 1.1em; }
@media (min-width: 44rem) {
  .prose .cols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); align-items: start; }
  /* a column that only holds a picture gets less room than the text next to it */
  .prose .cols:has(> .col--media) { grid-template-columns: 1.7fr 1fr; }
  .prose .cols > .col--media:first-child { order: 2; }
  .prose .col--media { position: sticky; top: 6rem; }
}
.prose .cols > div > :last-child { margin-bottom: 0; }
.prose .media-text { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 1.5em; }
@media (min-width: 44rem) {
  .prose .media-text { grid-template-columns: 2fr 1fr; }
  .prose .media-text--media-left { grid-template-columns: 1fr 2fr; }
}
.prose .media-text--media-left > figure { order: -1; }
.prose .media-text h2:first-child { margin-top: 0; }
.prose .logo-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.prose .logo-row img { width: 120px; }
.prose a[href^="http"] { word-break: break-word; }

/* ---------- articles ---------- */
.article-list { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .article-list { grid-template-columns: repeat(2, 1fr); } }
.article-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.article-card time { font-size: .9rem; color: var(--muted); }
.article-card h2, .article-card h3 { font-size: 1.35rem; margin: .3rem 0 .6rem; }
.article-card h2 a, .article-card h3 a { text-decoration: none; color: var(--sage-900); }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--accent); }
.article-card p { color: var(--muted); }
.article-card .card__more { text-decoration: none; }
.article-nav { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sage-100); }
@media (min-width: 44rem) { .article-nav { grid-template-columns: 1fr 1fr; } .article-nav .next { text-align: right; grid-column: 2; } }
.article-nav a { text-decoration: none; display: block; }
.article-nav span { display: block; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.tags li { background: var(--sage-50); border-radius: 999px; padding: .15rem .75rem; font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--sage-900); color: #dfe6d8; padding-block: 3.5rem 2rem; font-size: 1rem; }
.site-footer a { color: #f4efe4; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--honey); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-300); margin: 0 0 .8rem; font-weight: 600; }
.site-footer .brand__name { color: #f4efe4; font-size: 1.9rem; }
.site-footer p { margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .3rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; color: var(--sage-300); }
.footer-bottom a { color: var(--sage-300); }

/* ---------- gentle fade-in (CSS only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { animation: rise 1s ease both; }
  .hero__title span + span { animation-delay: .15s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media print {
  .site-header, .site-footer, .nav-toggle, .hero__img { display: none; }
  body { background: #fff; font-size: 11pt; }
}
