/* Osteopathie Ulm – schlankes Stylesheet, keine externen Fonts (DSGVO-freundlich) */
:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --sand: #efe7d8;
  --ink: #1f2b25;
  --muted: #5a6660;
  --line: #ddd6c8;
  --accent: #46685a;
  --accent-ink: #2f4a3f;
  --accent-soft: #e2ebe4;
  --radius: 14px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand span { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: .95rem;
}
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { border-radius: 10px; padding: 12px; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 20px 50px -30px rgba(31, 43, 37, .45); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 500;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--sand); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }

.welcome { max-width: 42em; font-size: 1.12rem; }
.signature { font-family: var(--serif); font-size: 1.15rem; margin-top: 1.4em; color: var(--accent-ink); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 500; }
.practice { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.practice img { width: 112px; height: 140px; object-fit: cover; border-radius: 10px; }
.practice .tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.practice h3 { margin: 4px 0 8px; }
.practice address { font-style: normal; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 420px) { .practice { grid-template-columns: 1fr; } }

.topic { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.topic:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(31, 43, 37, .5); color: inherit; }
.topic p { color: var(--muted); }

/* Article pages */
.page-head { padding: clamp(36px, 6vw, 72px) 0 8px; }
.page-head .lead { margin-top: -.2em; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .92rem; }
.toc p { font-weight: 600; margin-bottom: .5em; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--accent-ink); }
.prose { max-width: 42em; }
.prose h2:first-child { margin-top: .4em; }
.prose h2 { scroll-margin-top: 90px; }
.callout {
  background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1em 0 1.6em; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .92rem; }
.prose details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; padding: 0 18px;
}
.prose summary { cursor: pointer; padding: 14px 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-weight: 400; }
.prose details[open] summary::after { content: "–"; }
.prose details > :last-child { padding-bottom: 6px; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .toc a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
}

/* Practice pages */
.contact-card { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.contact-card img { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.contact-card .practice-name { color: var(--muted); margin-bottom: 1em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.contact-list span { color: var(--muted); font-size: .9rem; padding-top: .15em; }
.contact-list address { font-style: normal; }
@media (max-width: 640px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card img { width: 180px; }
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.empty-note { color: var(--muted); }

/* Legal */
.legal { max-width: 46em; padding-bottom: 72px; }
.legal h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.08rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.todo { background: #fff4d6; border: 1px dashed #c9a84a; padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* Footer */
.site-footer { background: var(--ink); color: #d7ddd9; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .6em; }
.site-footer address { font-style: normal; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

@media print {
  .site-header, .site-footer, .toc, .actions { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-layout { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
