/* Gemeinsame Gestaltung der vorhandenen Abschluss- und Rücknavigation. */
body main a.zim-end-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 18px 22px;
  color: #35452e;
  background: linear-gradient(115deg,#edf3e3,#f8faf5);
  border: 1px solid #d2dfc4;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s,border-color .2s,box-shadow .2s;
}
body main a.zim-end-link svg { width: 20px; height: 20px; flex: 0 0 20px; stroke-width: 1.7; }
body main a.zim-end-link span { text-decoration: none; }
body main a.zim-end-link:hover { color: #2f4028; background: linear-gradient(115deg,#e3edda,#f1f6e9); border-color: #9db489; box-shadow: 0 5px 14px #35452e0c; }
body main a.zim-end-link:focus-visible { outline: 3px solid #607b35; outline-offset: 4px; }
body main .costs-more { gap: 16px; }
body .sozo-main .sozo-vaccine-note { background: radial-gradient(ellipse at 0 0,#dbe7c6 0,transparent 65%),linear-gradient(120deg,#e9f0dc,#f7faf1 65%,#e3ece1); }
body .sozo-path .path-number { background: linear-gradient(140deg,#6d8456,#354c2d); box-shadow: 0 3px 8px #2e432d18,inset 0 1px 0 #ffffff38; }
body .sozo-main a[href="#vertraeglichkeit"] .shortcut-icon { background: linear-gradient(135deg,#586d47,#303e29); }
body .sozo-main a[href="#vertraeglichkeit"] .shortcut-icon svg { stroke-width: 1.7; }
@media(max-width:600px){body main a.zim-end-link{padding:16px 18px;gap:12px;font-size:14px;min-height:56px}}
@media(prefers-reduced-motion:reduce){body main a.zim-end-link{transition:none}}
body main a.back-link.zim-end-link svg{transform:none!important}

/* Sekundäre Abschlussbereiche: kleinere Überschriften, eindeutiger Gruppenabstand. */
body main :is(.diag-related,.osteo-reading,.praxis-related,.cic-related,.library-next,.article-next)>h2,
body main section:has(>.team-links)>h2,
body main .reading-section>h2:has(+.article-crosslinks) {
  font-size: clamp(28px,2.15vw,34px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em;
  margin: 0 0 26px !important;
  max-width: 100%;
}
body main .diag-related { padding-block: 44px 48px; }
body main .diag-related>nav { display:flex;flex-wrap:wrap;gap:12px;margin:0; }
body main .diag-related>nav a { margin:0; }
body main :is(.library-next,.article-next) { align-items:start;gap:32px 48px; }
body main :is(.library-next,.article-next)>nav { display:grid;gap:12px;margin:0; }
body main :is(.osteo-reading,.cic-related) .reading-grid,
body main .praxis-related .praxis-links,
body main .team-links { gap:16px;margin-top:0;align-items:stretch; }
body main .reading-section>h2+.article-crosslinks { margin-top:0;gap:12px; }
body main :is(.library-next,.article-next)>h2 { margin-bottom:0!important; }
@media(max-width:750px) {
  body main :is(.library-next,.article-next) { grid-template-columns:1fr;gap:24px; }
  body main .diag-related { padding-block:32px 36px; }
  body main .diag-related>nav { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  body main .diag-related>nav a:first-child { grid-column:1/-1; }
}
@media(max-width:450px) {
  body main .diag-related>nav { grid-template-columns:1fr; }
  body main :is(.diag-related,.osteo-reading,.praxis-related,.cic-related)>h2,
  body main section:has(>.team-links)>h2,
  body main .reading-section>h2:has(+.article-crosslinks) { margin-bottom:22px!important; }
}
body main#inhalt section:has(>.team-links)>h2.ux-heading-ink{font-size:clamp(28px,2.15vw,34px)!important;line-height:1.2!important;margin-bottom:26px!important}
@media(max-width:750px){body main :is(.library-next,.article-next){display:grid!important;grid-template-columns:1fr!important;gap:24px!important}}
body main#inhalt section:has(>.team-links) .team-heading h2.ux-heading-ink{font-size:clamp(28px,2.15vw,34px)!important;line-height:1.2!important}

/* Einheitlicher eigener Abschlussbereich statt anliegendem Rücklink. */
body main > .zim-return-nav { padding: 44px 0; }
body main > .zim-return-nav > a.back-link.zim-end-link { margin: 0 auto !important; }
body main > :has(+ .zim-return-nav) { margin-bottom: 0 !important; }
body main:has(> .zim-return-nav:last-child) { padding-bottom: 0 !important; }
@media (max-width: 600px) { body main > .zim-return-nav { padding-block: 32px; } }
