/* PT in Ontario – stylesheet
   Self-contained: no web fonts, no external requests. */

:root {
  --brand-950: #0b2a35;
  --brand-900: #0f3a49;
  --brand-800: #14505f;
  --brand-700: #17627a;
  --brand-600: #1f7d99;
  --brand-200: #c7e0e8;
  --brand-100: #e4f1f5;
  --tint: #f3f8fa;
  --accent-light: #ffb184;
  --ink: #172a33;
  --muted: #4a5f69;
  --line: #d6e4ea;
  --white: #ffffff;
  --accent: #c24510;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 42, 53, 0.06), 0 8px 24px rgba(11, 42, 53, 0.07);
  --shadow-hover: 0 2px 4px rgba(11, 42, 53, 0.08), 0 14px 32px rgba(11, 42, 53, 0.12);
  --max: 1120px;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--brand-900); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
a { color: var(--brand-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-900); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand-900); color: #fff; padding: 0.8em 1.2em; border-radius: 0 0 10px 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.alt { background: var(--tint); }
.eyebrow { font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--brand-600); margin-bottom: 0.7rem; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--brand-900); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 30rem) { .brand-name { font-size: 1rem; letter-spacing: 0.02em; } .brand img { width: 38px; height: 38px; } }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.85rem; font: inherit; font-size: 0.95rem; color: var(--brand-900); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; content: ""; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem 1.25rem 1rem; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.65rem 0.25rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--brand-700); }
.site-nav a[aria-current="page"] { color: var(--brand-700); font-weight: 700; }
.site-nav .sub a { padding-left: 1.2rem; font-weight: 400; font-size: 0.97rem; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
  .site-nav a { border: 0; padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.98rem; }
  .site-nav a:hover { background: var(--brand-100); }
  .site-nav a[aria-current="page"] { background: var(--brand-100); }
  .has-sub { position: relative; }
  .has-sub .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 18rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 0.4rem; z-index: 5; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .site-nav .sub a { padding: 0.6rem 0.8rem; border-radius: 10px; }
  .nav-cta a { background: var(--brand-700); color: #fff; font-weight: 600; margin-left: 0.4rem; }
  .nav-cta a:hover { background: var(--brand-900); color: #fff; }
  .nav-cta a[aria-current="page"] { background: var(--brand-900); color: #fff; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-light); color: var(--brand-950); }
.btn-primary:hover { background: #d8e86a; color: var(--brand-950); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #9c370b; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-outline { border-color: var(--brand-700); color: var(--brand-700); }
.btn-outline:hover { background: var(--brand-100); color: var(--brand-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */

.page-hero { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; right: -4rem; top: -3rem; width: 24rem; height: 24rem; z-index: -1; opacity: 0.16;
  background: radial-gradient(circle at 30% 30%, var(--accent-light), transparent 65%); border-radius: 50%; }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); margin: 0; max-width: 42rem; }
.crumbs { font-size: 0.9rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.8); }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent-light); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); transition: box-shadow 150ms ease, transform 150ms ease; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 1.1rem; font-weight: 600; color: var(--brand-700); }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li { background: var(--brand-100); color: var(--brand-900); padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.97rem; font-weight: 500; }
.alt .chips li { background: #fff; border: 1px solid var(--brand-200); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .split { grid-template-columns: 1.1fr 1fr; align-items: start; } .split-wide { grid-template-columns: 2fr 1fr; } }

.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist li { position: relative; padding: 0.35rem 0 0.35rem 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.72rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%2317627a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* ---------- Article pages ---------- */
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.checklist):not(.chips) { padding-left: 1.2rem; }
.pull { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.35; color: var(--brand-800); border-left: 4px solid var(--accent-light); padding: 0.2rem 0 0.2rem 1.2rem; margin: 1.6rem 0; font-style: italic; }
.aside-card { position: sticky; top: 6rem; background: var(--tint); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 1.6rem; }
.aside-card h2, .aside-card h3 { font-size: 1.25rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.aside-card li a { display: block; padding: 0.45rem 0; border-bottom: 1px solid var(--brand-200); text-decoration: none; }
.aside-card li a[aria-current="page"] { font-weight: 700; }

.cta-band { background: var(--brand-900); color: #fff; text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }
.cta-band a:not(.btn) { color: var(--accent-light); }
.cta-band .btn-row { justify-content: center; }

.steps { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; }
.steps strong { display: block; color: var(--brand-700); font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.2rem; }

/* ---------- Referenzen ---------- */
.ref-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ref-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: var(--brand-900); }
.ref-card .tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ref-card .tags li { font-size: 0.82rem; background: var(--brand-100); color: var(--brand-900); border-radius: 999px; padding: 0.15rem 0.7rem; }
.ref-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Publikationen ---------- */
.year-nav { margin-bottom: 2rem; }
.year-nav a { display: inline-block; text-decoration: none; background: var(--brand-100); color: var(--brand-900); padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.year-nav a:hover { background: var(--brand-700); color: #fff; }
.pub-year { margin-top: 2.4rem; scroll-margin-top: 6rem; display: grid; gap: 0.8rem 2rem; }
@media (min-width: 48rem) { .pub-year { grid-template-columns: 7rem 1fr; } }
.pub-year > h2 { font-size: 2rem; margin: 0; color: var(--brand-600); }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.pub-list li:first-child { padding-top: 0; }
.pub-title { font-weight: 600; color: var(--brand-900); }

/* ---------- Erste Hilfe ---------- */
.link-section { scroll-margin-top: 6rem; margin-top: 2.6rem; }
.link-section h2 { padding-bottom: 0.5rem; border-bottom: 2px solid var(--brand-200); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 62rem) { .link-list { grid-template-columns: 1fr 1fr; } }
.link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
@media (min-width: 62rem) { .gallery li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.7rem); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); padding: 0.45rem 0.2rem 0; }

/* ---------- Vita ---------- */
.portrait { width: min(100%, 320px); aspect-ratio: 3 / 4; border-radius: 28px; background: linear-gradient(150deg, var(--brand-700), var(--brand-600) 55%, var(--accent-light)); display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-size: 5rem; font-weight: 700; letter-spacing: 0.04em; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--brand-200); }
.timeline li { position: relative; padding: 0.35rem 0 1rem 0.4rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.4rem - 7px); top: 0.9rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-light); border: 2px solid var(--brand-700); }
.member { display: flex; align-items: center; gap: 1rem; background: var(--tint); border: 1px solid var(--brand-200); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.member img { width: 56px; height: auto; border-radius: 4px; flex: none; }

@media (min-width: 62rem) { .split-portrait { grid-template-columns: 20rem 1fr; gap: 3.5rem; } }
.abbr { display: inline-block; font-size: 0.8rem; font-weight: 700; background: var(--brand-100); padding: 0 0.55rem; border-radius: 6px; text-decoration: none; margin-left: 0.2rem; }
.abbr:hover { background: var(--brand-700); color: #fff; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: 0.1rem; }
.contact-list .label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--brand-600); }
.contact-list .value { font-size: 1.3rem; font-family: var(--font-serif); }
.notice { background: #fff8e1; border: 1px solid #ecd98a; border-left: 5px solid #d6b100; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; color: #5a4a00; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, 0.85); padding-block: 3rem 2rem; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.15rem 0; }
.footer-member { display: flex; gap: 1rem; align-items: flex-start; }
.footer-member img { width: 72px; border-radius: 4px; flex: none; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none; }
  .page-hero, .hero { background: none; color: #000; padding: 1rem 0; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* ---------- PT in Ontario specific ---------- */
.leaf-band { height: clamp(7.5rem, 16vw, 14.5rem); background: #fff center / cover no-repeat; border-bottom: 1px solid var(--line); }
.intro { padding-block: clamp(2.2rem, 6vw, 4rem) 0; }
.intro h1 { margin-bottom: 0.2rem; font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--brand-900); }
.intro .tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--accent); margin: 0 0 1.4rem; }
.topic-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.topic-grid .card { border-top: 4px solid var(--accent); }
.post-meta { font-size: 0.9rem; color: var(--muted); margin: -0.3rem 0 1.2rem; }

.article-layout { display: grid; gap: 2rem; }
.article-layout .toc { grid-row: 1; }
@media (min-width: 62rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; align-items: start; }
  .article-layout .toc { grid-column: 2; position: sticky; top: 6rem; }
  .article-layout .prose { grid-column: 1; grid-row: 1; }
}
.toc { background: var(--tint); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 1.3rem 1.4rem; font-size: 0.97rem; }
.toc h2 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.toc .hint { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.88rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 0.4rem 0; border-bottom: 1px solid var(--brand-200); text-decoration: none; line-height: 1.35; }
.toc li:last-child a { border-bottom: 0; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.8rem; padding-top: 1.4rem; border-top: 2px solid var(--brand-200); scroll-margin-top: 6rem; color: var(--brand-800); }
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.9rem; color: var(--accent); scroll-margin-top: 6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose h2 + .part-date { margin-top: 0.2rem; }
.prose .part-date { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: var(--brand-700); padding: 0.15rem 0.8rem; border-radius: 999px; margin: 1.6rem 0 0; }
.prose img.float-left { float: left; margin: 0.3rem 1.6rem 1rem 0; border-radius: 14px; box-shadow: var(--shadow); max-width: min(50%, 21rem); height: auto; }
.prose::after { content: ""; display: block; clear: both; }
.cols { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 40rem) { .cols { grid-template-columns: 1fr 1fr; } }
.col { background: var(--tint); border: 1px solid var(--brand-200); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.1rem 1.3rem; }
.col ul { margin: 0.4rem 0 0; }

.book-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.book { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.book-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.book-meta { margin: 0.3rem 0 0.7rem; color: var(--muted); font-weight: 600; }
.book p:last-child { margin-bottom: 0; }
.book p { margin-bottom: 0.6rem; }

.page-hero.has-photo { background-image: linear-gradient(135deg, rgba(15, 58, 73, 0.93), rgba(23, 98, 122, 0.85)), var(--photo); background-size: cover; background-position: center; }
.nav-group { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-weight: 500; color: var(--ink); padding: 0.65rem 0.25rem; cursor: default; }
@media (min-width: 62rem) {
  .nav-group { width: auto; border: 0; border-radius: 999px; padding: 0.5rem 0.8rem; font-size: 0.98rem; cursor: pointer; }
  .nav-group::after { content: "▾"; margin-left: 0.35rem; font-size: 0.8em; }
  .has-sub:hover .nav-group, .has-sub:focus-within .nav-group { background: var(--brand-100); }
}

.card h3 { overflow-wrap: break-word; hyphens: auto; }
