/* kollagen-gelenke.de - Design orientiert an gesund.bund.de */
@font-face {
  font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/fira-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/fira-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/fira-sans-700.woff2') format('woff2');
}

:root {
  --ink: #141414;
  --gray: #555555;
  --berry: #87324c;
  --berry-dark: #641f36;
  --petrol: #156570;
  --yellow: #f8cc46;
  --line: #e0e0e0;
  --soft: #f5f5f5;
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Fira Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--berry-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text strong i { font-style: normal; color: var(--berry); }
.brand-text small { font-size: 0.74rem; color: var(--gray); font-weight: 400; }
.main-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.main-nav a.active { border-bottom-color: var(--berry); }

/* Breadcrumb + Eyebrow */
.breadcrumb { font-size: 0.85rem; color: var(--gray); }
.site-footer .breadcrumb { padding: 0 0 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--berry); text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; color: #b5b5b5; }
.eyebrow { color: var(--petrol); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; margin: 26px 0 0; }
.eyebrow a { color: var(--petrol); text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* Kopfbereich Artikel */
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 10px 0 18px; color: var(--ink); }
.meta-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.meta-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #cfcfcf; border-radius: 999px; padding: 6px 15px;
  font-size: 0.84rem; color: var(--ink); background: #fff;
}
.meta-pills svg { color: var(--berry); flex: 0 0 auto; }
.lede { font-size: 1.15rem; line-height: 1.65; color: var(--ink); max-width: 62ch; margin: 0 0 28px; }

.hero-photo { margin: 0 0 34px; }
.hero-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; }
.hero-photo figcaption { font-size: 0.78rem; color: #8b8b8b; margin-top: 8px; }

/* Auf einen Blick */
.glance {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 34px 26px; margin: 0 0 44px;
  background: #fff;
}
.glance h2 { margin: 0 0 12px; font-size: 1.55rem; scroll-margin-top: 110px; }
.glance p { margin: 0; max-width: 75ch; }
.glance-deco { position: absolute; top: 0; right: 0; width: 150px; height: 110px; pointer-events: none; }

/* Layout: Inhalt + Seitenleiste */
.layout { display: grid; grid-template-columns: minmax(0, 740px) 230px; gap: 70px; align-items: start; }
.toc-side { position: sticky; top: 100px; font-size: 0.95rem; }
.toc-side strong { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.toc-side ul { list-style: none; margin: 0; padding: 0; }
.toc-side li { margin: 0; }
.toc-side a {
  display: block; color: var(--ink); text-decoration: none;
  padding: 8px 0 8px 14px; border-left: 3px solid var(--line);
}
.toc-side a:hover { color: var(--berry); border-left-color: var(--berry); }

/* Artikel */
.article h2 { font-size: 1.7rem; font-weight: 700; line-height: 1.25; margin: 2.1em 0 0.6em; letter-spacing: -0.01em; scroll-margin-top: 110px; }
.article h3 { font-size: 1.18rem; font-weight: 700; margin: 1.6em 0 0.4em; }
.article ul, .article ol { padding-left: 1.35em; }
.article li { margin: 0.35em 0; }
.article > p:first-child { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 1.3em 0; }
.article table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.article th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 10px 14px 8px; }
.article td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }

.inline-figure { margin: 2.2em 0; }
.inline-figure img { border-radius: 8px; width: 100%; max-height: 380px; object-fit: cover; }
.inline-figure figcaption { font-size: 0.78rem; color: #8b8b8b; margin-top: 8px; }

/* FAQ als Akkordeon */
.faq-section { margin-top: 1em; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; padding: 16px 6px; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2.5px solid var(--berry); border-bottom: 2.5px solid var(--berry);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
details.faq[open] summary::after { transform: rotate(225deg); }
details.faq .faq-body { padding: 0 6px 16px; }
details.faq .faq-body p { margin-top: 0; }

/* Quellen */
.sources { border-top: 2px solid var(--ink); margin-top: 3em; padding-top: 0.4em; }
.sources h2 { font-size: 1.25rem; }
.sources ul { font-size: 0.87rem; color: var(--gray); }
.sources li { color: var(--gray); }
.stand-note { font-size: 0.85rem; color: var(--gray); background: var(--soft); border-radius: 8px; padding: 14px 18px; }

/* Themen-Karten */
.topics { border-top: 1px solid var(--line); padding: 52px 0 60px; margin-top: 56px; }
.topics h2 { font-size: 1.8rem; margin: 0 0 6px; }
.topics .sub { color: var(--gray); margin: 0 0 28px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card {
  display: flex; flex-direction: column; gap: 8px; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px;
  text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.topic-card:hover { border-color: var(--berry); box-shadow: 0 4px 16px rgba(20,20,20,0.08); color: var(--ink); }
.topic-card strong { font-size: 1.1rem; font-weight: 700; }
.topic-card span { font-size: 0.92rem; color: var(--gray); }
.topic-card .more { color: var(--berry); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 70px; font-size: 0.92rem; }
.site-footer .container { padding-top: 46px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.site-footer h4 { color: var(--ink); font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--gray); text-decoration: none; }
.site-footer a:hover { color: var(--berry); text-decoration: underline; }
.footer-note { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 0.8rem; color: var(--gray); }
.footer-note p { margin: 6px 0; }

/* Einfache Seiten */
.simple-page h1 { font-size: 2.2rem; margin-top: 30px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc-side { position: static; order: -1; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
  .topic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 14px; overflow-x: auto; }
  .brand-text small { display: none; }
  .hero-photo img { max-height: 260px; }
}

.page-body { padding: 4px 0 40px; }
