/* Michael Schaaf – Physiotherapie & Taijiquan (lokaler Entwurf) */

/* Lokal eingebundene Schriften (kein Abruf bei Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700.woff2") format("woff2"); }

:root {
  --blue: #1d3f9c;          /* Praxisblau (Banner, Liegen) */
  --blue-dark: #142c70;
  --blue-soft: #e8edf9;
  --wood: #c99a5b;          /* Parkett */
  --wood-dark: #a37738;
  --wood-soft: #f3e8d6;
  --paper: #fbf8f2;
  --white: #ffffff;
  --ink: #1e2633;
  --muted: #55606e;
  --line: #ddd6c8;
  --radius: 14px;
  --shadow: 0 12px 32px -16px rgba(20, 44, 112, 0.35);
  --maxw: 1120px;
  --header-h: 72px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--blue-dark);
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--blue-dark); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--wood);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  object-fit: cover; background: #0000dd; border: 2px solid var(--wood);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Poppins", sans-serif; font-size: 1.05rem; font-weight: 700; }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wood); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.35); color: var(--white);
  font-size: 1rem; cursor: pointer; padding: 8px 14px; border-radius: 8px; font-family: inherit;
}
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 8px; display: inline-block; text-decoration: none;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.main-nav a[aria-current] { color: var(--white); background: rgba(255,255,255,0.14); box-shadow: inset 0 -3px 0 var(--wood); }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background: linear-gradient(180deg, var(--wood-soft) 0%, var(--paper) 100%); }
.hero::before {            /* Enso-Kreis als ruhiges Motiv */
  content: ""; position: absolute; right: -140px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  border: 44px solid rgba(29, 63, 156, 0.07);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-photo { justify-self: end; max-width: 400px; width: 100%; }
.hero-photo img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); border: 6px solid var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: var(--white); }

/* ---------- Seiten-Kopf (Unterseiten) ---------- */
.page-header { background: var(--white); border-bottom: 1px solid var(--line); padding: 44px 0 0; }
.page-header h1 { margin-bottom: 8px; }
.page-header .sub { color: var(--muted); margin: 0 0 24px; max-width: 680px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.subnav a {
  display: block; padding: 10px 16px; border-radius: 10px 10px 0 0; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  border: 1px solid transparent; border-bottom: 0;
}
.subnav a:hover { color: var(--blue-dark); background: var(--blue-soft); }
.subnav a[aria-current] { color: var(--blue-dark); background: var(--paper); border-color: var(--line); font-weight: 600; box-shadow: 0 3px 0 var(--paper); margin-bottom: -1px; }
.page-header .container > :last-child { margin-bottom: 0; }
.page-header.no-subnav { padding-bottom: 32px; }

/* ---------- Abschnitte ---------- */
section.section { padding: 64px 0; }
section.section.alt { background: var(--wood-soft); }
section.section.tight { padding: 40px 0; }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; }
.card .tag {
  width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .tag svg { width: 24px; height: 24px; }

.info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-box h3 { margin-bottom: 12px; }
.info-box address { font-style: normal; line-height: 1.7; margin-bottom: 1em; }
.info-box > :last-child { margin-bottom: 0; }

.notice {
  background: var(--wood-soft); border-left: 5px solid var(--wood); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 0 0 1.5em;
}
.notice > :last-child { margin-bottom: 0; }
.notice strong { color: var(--blue-dark); }

/* ---------- Fliesstext ---------- */
.prose { max-width: 760px; }
.container.prose { max-width: var(--maxw); }      /* Container bleibt bündig zur Überschrift, nur der Text wird schmal */
.container.prose > * { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--wood-dark); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.split .aside-photo img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); border: 5px solid var(--white); }
.split .aside-photo { position: sticky; top: calc(var(--header-h) + 24px); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.checklist li { position: relative; padding-left: 26px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--wood); }
.checklist.single { grid-template-columns: 1fr; }

.wctag {
  display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 32px; max-width: 640px;
}
.wctag img { width: 100px; flex-shrink: 0; }
.wctag p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); border: 1px solid var(--line); }
table.grades { width: 100%; border-collapse: collapse; min-width: 640px; }
table.grades th, table.grades td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.grades th { background: var(--blue-dark); color: var(--white); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; }
table.grades tr:last-child td { border-bottom: 0; }
table.grades td:first-child { font-weight: 600; color: var(--blue-dark); white-space: nowrap; }
table.grades th:nth-child(2), table.grades td:nth-child(2) { white-space: nowrap; }
table.grades ul { margin: 0; padding-left: 1.1em; }
table.grades li { margin-bottom: 2px; }

/* ---------- Körperhaltung ---------- */
.fig { margin: 1.5em 0; }
.fig img { border-radius: 10px; border: 1px solid var(--line); background: var(--white); max-height: 560px; width: auto; max-width: 100%; }
.fig-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 1.5em 0; }
.fig-row img { border-radius: 10px; border: 1px solid var(--line); background: var(--white); max-height: 420px; width: auto; max-width: 100%; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.5em 0; }
.compare > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.compare h3 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wood-dark); margin: 0 0 8px; }
.compare p { margin: 0; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
a.gallery-tile {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.gallery-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.gallery-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.gallery-section + .gallery-section { margin-top: 56px; }
.gallery-section h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gallery-section h2 small { font-family: "Inter", sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--muted); }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%;
  color: var(--white);
}
dialog.lightbox::backdrop { background: rgba(10, 18, 40, 0.92); }
.lightbox-inner { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox-inner img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button {
  position: fixed; background: rgba(255,255,255,0.14); color: var(--white); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1; font-family: inherit;
}
.lightbox button:hover { background: rgba(255,255,255,0.28); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Downloads ---------- */
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 760px; }
.download-list a.download {
  display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.download-list a.download:hover { border-color: var(--blue); }
.download .ico { width: 44px; height: 52px; flex-shrink: 0; color: var(--blue); }
.download strong { display: block; color: var(--blue-dark); font-family: "Poppins", sans-serif; }
.download span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Recht ---------- */
.legal { max-width: 820px; }
.legal h3 { margin-top: 28px; }
.legal h3:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.legal address { font-style: normal; margin: 0 0 1em; line-height: 1.7; }
.legal-stand { font-size: 0.85rem; color: var(--muted); margin-top: 0; }

.sitemap-list, .sitemap-list ul { line-height: 2; padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,0.72); padding: 48px 0 28px; margin-top: 40px; font-size: 0.92rem; border-top: 3px solid var(--wood); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h2 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid p { margin: 0; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { justify-self: start; max-width: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .aside-photo { position: static; order: -1; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--blue-dark);
    border-top: 1px solid rgba(255,255,255,0.12); max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; border-bottom: 3px solid var(--wood); }
  .main-nav ul { flex-direction: column; padding: 12px; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .grid-3, .grid-2, .compare, .checklist { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  section.section { padding: 48px 0; }
  .hero { padding: 48px 0 56px; }
  .lightbox-inner { padding: 64px 12px; }
  .wctag { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
