/* Schriften lokal eingebunden – keine Verbindung zu Google Fonts (DSGVO) */
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ebe3d5;      /* ungebleichtes Reispapier – Grundfläche */
  --surface: #f5f0e6;    /* helle Flächen */
  --ink: #2c241f;        /* Umbra-Schwarz – Text */
  --muted: #6a5d51;      /* Nebentext */
  --clay: #87552f;       /* gebrannte Erde – Akzent */
  --clay-deep: #66401f;
  --olive: #6d6b3f;      /* Olivgrün – zweiter Akzent */
  --sand: #cdb896;       /* Lehm */
  --cinnabar: #9a3b27;   /* Siegelrot, nur für das Siegel */
  --line: #d4c6b0;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 6.5vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

a { color: var(--clay-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--surface); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -0.015em; font-variation-settings: "opsz" 72; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
h3 { font-size: var(--step-1); font-weight: 500; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Kopf ---------- */
.site-head { position: relative; border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; text-decoration: none; color: var(--ink); line-height: 1.2; padding: 0.75rem 0; }
.brand strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.brand-sub { display: block; font-size: var(--step--1); color: var(--muted); }
.seal {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 0.3rem; background: var(--cinnabar);
  color: #f5ebe0; display: grid; place-items: center; font-family: var(--serif); font-size: 1rem;
  letter-spacing: 0.04em; transform: rotate(-3deg);
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.975rem; padding: 0.4rem 0; display: block; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }
.nav li.extra { display: none; }
.menu-toggle { display: none; }

@media (max-width: 52rem) {
  .brand-sub { display: none; }
  .seal { width: 2.2rem; height: 2.2rem; font-size: 0.9rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem; flex: none;
    font: inherit; font-size: 0.95rem; color: var(--ink); background: transparent;
    border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer;
  }
  .menu-toggle svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

  .nav.full ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem var(--gutter) 0.75rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(44,36,31,.35);
  }
  .nav.full ul.open { display: flex; }
  .nav.full li.extra { display: block; }
  .nav.full li.desk-only { display: none; }
  .nav.full ul a { padding: 0.8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav.full ul li:last-child a { border-bottom: 0; }

  /* ohne JavaScript: Liste normal unter dem Kopf zeigen */
  .no-js .menu-toggle { display: none; }
  .no-js .site-head .wrap { flex-wrap: wrap; }
  .no-js .nav.full { width: 100%; }
  .no-js .nav.full ul { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0.5rem; background: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 32rem; margin: 1.5rem 0 2rem; }
.hero .place { font-size: var(--step--1); color: var(--muted); margin: 0 0 1.25rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; text-decoration: none;
  background: var(--ink); color: var(--surface); padding: 0.85rem 1.4rem; border-radius: 999px;
}
.btn:hover { background: var(--clay-deep); color: var(--surface); }
.btn.quiet { background: transparent; color: var(--ink); padding: 0.85rem 0.25rem; text-decoration: underline; }
.btn.quiet:hover { color: var(--clay-deep); }

/* Ensō – das eine bewegte Element der Seite */
.enso {
  position: absolute; right: clamp(-3rem, 2vw, 4rem); top: calc(50% + 6vw); transform: translateY(-50%);
  width: min(31rem, 46vw); height: auto; z-index: 0; pointer-events: none;
}
.enso .ink { fill: var(--ink); opacity: 0.86; }
.enso .fiber { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0.45; stroke-linecap: round; }
.enso .reveal { fill: none; stroke: #fff; stroke-width: 70; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .enso .reveal { stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: brush 2.2s cubic-bezier(.55,.1,.35,1) .3s forwards; }
  .enso .fiber { opacity: 0; animation: fade .6s ease-out 2.3s forwards; }
}
@keyframes brush { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 0.45; } }
@media (max-width: 52rem) {
  .enso { right: -7rem; top: auto; bottom: -5rem; transform: none; width: 22rem; opacity: 0.16; }
}

/* Blütenzweig (Asiatischer Blüten-Hartriegel) – wird nach dem Ensō gemalt */
.blossoms {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  z-index: 0; pointer-events: none; overflow: visible;
}
.blossoms .branch { fill: var(--ink); opacity: 0.88; }
.blossoms .reveal { fill: none; stroke: #fff; stroke-width: 36; stroke-linecap: round; }
.blossoms .leaf { fill: var(--olive); opacity: 0.8; }
.blossoms .bract { fill: url(#bract-wash); stroke: var(--ink); stroke-width: 1; stroke-opacity: 0.5; }
.blossoms .vein { fill: none; stroke: var(--clay); stroke-width: 0.8; opacity: 0.35; }
.blossoms .core { fill: #87843f; }
.blossoms .leaf, .blossoms .bract { transform-box: fill-box; transform-origin: 50% 100%; }
.blossoms .core { transform-box: fill-box; transform-origin: 50% 50%; }
/* Platz über der Überschrift für den Zweig (Höhe der Zeichnung = 14,2 % der Breite) */
.hero { padding-top: calc(14.2vw + 1.5rem); }
@media (prefers-reduced-motion: no-preference) {
  .blossoms .reveal { animation: brush 8s linear forwards; }
  .blossoms .leaf { opacity: 0; transform: scale(.2); animation: unfold .9s ease-out forwards; }
  .blossoms .bract { opacity: 0; transform: scale(.15) rotate(-6deg); animation: open 1.1s cubic-bezier(.3,.6,.3,1) forwards; }
  .blossoms .vein { opacity: 0; animation: vein .6s ease-out forwards; }
  .blossoms .core { opacity: 0; transform: scale(.3); animation: unfold-core .6s ease-out forwards; }
}
@keyframes unfold { to { opacity: 0.8; transform: scale(1); } }
@keyframes open { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes vein { to { opacity: 0.35; } }
@keyframes unfold-core { to { opacity: 1; transform: scale(1); } }

/* Symbole (selbst gezeichnet) */
.icon { width: 2.75rem; height: 2.75rem; fill: none; stroke: var(--clay); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 1.75rem; height: 1.75rem; stroke-width: 1.7; }
.icon-row { display: flex; align-items: center; gap: 0.6rem; }

/* Tuschberge */
.mountains { display: block; width: 100%; height: clamp(5rem, 12vw, 10rem); }
.mountains path:nth-child(1) { fill: var(--sand); opacity: .55; }
.mountains path:nth-child(2) { fill: var(--olive); opacity: .45; }
.mountains path:nth-child(3) { fill: var(--ink); }

/* Figur Übung */
.practice { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; align-items: start; margin-top: 2.5rem; }
.figure { width: 7rem; height: auto; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.figure .head { fill: var(--ink); }
.figure .ground { stroke: var(--clay); stroke-width: 1.4; opacity: .7; }
@media (max-width: 30rem) { .practice { grid-template-columns: 5rem 1fr; } .figure { width: 5rem; } }

/* ---------- Abschnitte ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section + section { border-top: 1px solid var(--line); }
section.contact-block, .mountain-band + section { border-top: 0; }
.mountain-band { padding: 0; background: var(--paper); line-height: 0; }
.surface { background: var(--surface); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 6vw, 5rem); }
.split > header h2 { max-width: 12ch; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.quiet-list { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--measure); }
.quiet-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.quiet-list li:first-child { border-top: 1px solid var(--line); }

/* Behandlungen */
.treatments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 0.5rem; }
.treatments article { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.treatments .icon { margin-bottom: 0.75rem; }
.treatments h3 { margin-bottom: 0.5rem; }
.treatments p { color: var(--muted); margin: 0; }
@media (max-width: 40rem) { .treatments { grid-template-columns: 1fr; } }

/* Ablauf – echte Reihenfolge, daher nummeriert */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step); font-family: var(--serif); font-size: var(--step-2); line-height: 1; color: var(--clay);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }

/* Therapeut */
.timeline { margin: 1.5rem 0 0; padding: 0; }
.timeline div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.timeline dt { font-family: var(--serif); color: var(--clay-deep); }
.timeline dd { margin: 0; }
@media (max-width: 30rem) { .timeline div { grid-template-columns: 1fr; gap: 0.1rem; } }

.portrait { aspect-ratio: 4 / 5; }

/* Bilder & Platzhalter */
.photo {
  background: var(--sand); border-radius: 0.25rem; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 12rem;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(30,43,39,.06) 14px 15px),
    var(--sand);
}
.photo.placeholder span { padding: 0.75rem 1rem; font-size: var(--step--1); color: var(--ink); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 14rem 14rem; gap: 0.75rem; margin-top: 2.5rem; }
.gallery .photo:first-child { grid-row: span 2; }
@media (max-width: 40rem) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 10rem; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: auto; min-height: 14rem; }
}

/* Offene Punkte für die Vorschau – vor Livegang entfernen */
.open-point {
  border: 1.5px dashed #4a6d8c; background: #e7edf1; color: #243a4e;
  padding: 0.9rem 1.1rem; border-radius: 0.25rem; max-width: var(--measure); margin: 1rem 0;
  font-size: 0.95rem;
}
.open-point strong { font-weight: 700; }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 1.5rem 0; max-width: var(--measure); }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads li:first-child { border-top: 1px solid var(--line); }
.downloads a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.downloads a:hover strong { text-decoration: underline; }
.downloads small { color: var(--muted); white-space: nowrap; }

/* Anfahrt & Kontakt */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 2rem 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.facts h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.facts .icon { margin-bottom: 0.4rem; }
.facts p { margin: 0; color: var(--muted); }
@media (max-width: 40rem) { .facts { grid-template-columns: 1fr; } }

address { font-style: normal; font-family: var(--serif); font-size: var(--step-1); line-height: 1.45; }

.contact-block {
  background: var(--ink); color: var(--surface);
}
.contact-block a { color: var(--surface); }
.contact-block .muted { color: #cbbba6; }
.contact-block { padding-top: 0; }
.contact-block .wrap { padding-top: clamp(2.5rem, 6vw, 4rem); }
.contact-lines .icon { stroke: var(--sand); }
.contact-block h2 { max-width: 16ch; }
.contact-lines { margin: 2rem 0 0; display: grid; gap: 0.5rem; }
.contact-lines a { font-family: var(--serif); font-size: var(--step-2); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; }

/* ---------- Fuß ---------- */
.site-foot { padding: 2rem 0 3rem; font-size: var(--step--1); color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-foot a { color: var(--muted); }

.preview-bar {
  background: var(--sand); color: var(--ink); text-align: center; font-size: var(--step--1);
  padding: 0.45rem var(--gutter);
}

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: var(--step-3); margin-bottom: 2rem; }
.legal h2 { font-size: var(--step-1); font-family: var(--serif); font-weight: 500; margin: 2.25rem 0 0.5rem; }
.legal p, .legal ul { max-width: var(--measure); }
.legal ul { padding-left: 1.2rem; }
@media (prefers-reduced-motion: reduce) {
  .blossoms .reveal { stroke-dashoffset: 0 !important; }
}

/* ---------- Unterseite Tai Chi & Qigong ---------- */
.hero.sub-hero { padding-top: clamp(3rem, 8vw, 5.5rem); }
.sub-hero .place a { color: var(--muted); }
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.25rem 2.5rem; margin-top: 2.5rem; }
.evidence article { border-top: 1px solid var(--line); padding-top: 1rem; }
.evidence h3 { margin-bottom: 0.5rem; }
.evidence p { margin: 0; color: var(--muted); }
.ref { font-size: 0.85em; text-decoration: none; white-space: nowrap; }
.ref:hover { text-decoration: underline; }
.sources { margin: 0; padding-left: 1.6rem; max-width: var(--measure); font-size: 0.925rem; color: var(--muted); }
.sources li { padding: 0.4rem 0; overflow-wrap: anywhere; }
.sources li:target { background: var(--surface); outline: 1px solid var(--line); }
.site-foot ul { flex-wrap: wrap; }

/* Themen-Navigation auf den Wissensseiten */
.topic-nav { margin-top: 2rem; }
.topic-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-nav a {
  display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem; background: var(--surface);
}
.topic-nav a:hover { border-color: var(--clay); }
.topic-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.treatments .more { margin-top: 0.6rem; }
.treatments .more a { font-size: 0.95rem; }

/* ---------- Neuigkeiten ---------- */
.news-banner { background: var(--ink); color: var(--surface); }
.news-banner .wrap { display: flex; align-items: center; gap: 0.6rem 1.1rem; flex-wrap: wrap; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.news-banner p { margin: 0; max-width: none; flex: 1 1 13rem; }
.news-banner a { color: var(--surface); font-weight: 600; text-underline-offset: 0.2em; white-space: nowrap; }
.news-banner a:hover { color: var(--sand); }
.news-banner :focus-visible { outline-color: var(--sand); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: .02em; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--cinnabar); color: #f5ebe0; }
.news-list .news { max-width: 46rem; }
.news + .news { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.news-meta { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: var(--step--1); margin-bottom: 0.8rem; }
.news h2 { margin-bottom: 1.5rem; }
.news h3 { margin: 2rem 0 0.5rem; }
.price-box { display: flex; align-items: center; gap: 1.5rem; background: var(--paper); border-left: 3px solid var(--clay); padding: 1.25rem 1.5rem; border-radius: 0 0.4rem 0.4rem 0; margin-bottom: 2rem; }
.price-box .amount { font-family: var(--serif); font-size: clamp(2.25rem, 6vw, 3rem); color: var(--clay); line-height: 1; white-space: nowrap; }
.price-box p { margin: 0 0 0.3rem; }
.price-box .muted { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 30rem) { .price-box { flex-direction: column; align-items: flex-start; gap: 0.6rem; } }
.news .sig { font-family: var(--serif); font-size: var(--step-1); margin-top: 1.5rem; }
.ph { background: #f6e3b8; border: 1px dashed #a77a2b; color: #5b3f12; padding: 0 0.35rem; border-radius: 0.2rem; font-weight: 600; }

/* Logo im Tuschestil (ersetzt den Ensō) – zwei Figuren, Blattzweige, Wirbelsäule */
.logo-mark .lm-ink { fill: var(--ink); opacity: 0.86; }
.logo-mark .lm-fiber { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.4; stroke-linecap: round; }
.logo-mark .lm-reveal { fill: none; stroke: #fff; stroke-linecap: round; }
.logo-mark .lm-dot { fill: var(--cinnabar); opacity: 0.78; }
.logo-mark .lm-leaf { fill: var(--olive); opacity: 0.85; }
.logo-mark .lm-vein { fill: none; stroke: var(--paper); stroke-width: 1.3; opacity: 0.55; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .logo-mark .lm-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; animation: brush .7s cubic-bezier(.55,.1,.35,1) forwards; }
  .logo-mark .lm-pop { animation: lm-pop .55s cubic-bezier(.3,.7,.4,1) both; }
  .logo-mark .lm-fiber { animation: lm-fade .6s ease-out both; }
}
@media (min-width: 52.01rem) { .logo-mark { right: clamp(-5rem, -2vw, 2rem); } }
@keyframes lm-pop { from { opacity: 0; transform: scale(.35); } }
@keyframes lm-fade { from { opacity: 0; } }
