
/*
  Seriöses Redesign für versorgungsmedizinische-grundsaetze.de
  Unterseite: Autismus GdB Tabelle
  Keine externen Abhängigkeiten außer bestehendem Bootstrap 5.
*/
:root {
  --vg-bg: #f6f4ef;
  --vg-paper: #fffdf9;
  --vg-ink: #182132;
  --vg-muted: #5f6878;
  --vg-border: #d7d0c4;
  --vg-soft: #ebe6dc;
  --vg-soft-2: #f2eee7;
  --vg-blue: #263f66;
  --vg-blue-2: #1f314e;
  --vg-accent: #8c6d3f;
  --vg-accent-soft: #f4ead8;
  --vg-danger-soft: #fbf1ec;
  --vg-radius: 14px;
  --vg-shadow: 0 18px 45px rgba(24, 33, 50, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vg-ink);
  background: var(--vg-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--vg-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--vg-blue-2); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: .6rem .8rem;
  background: var(--vg-blue);
  color: #fff;
  z-index: 1000;
}
.skip-link:focus { left: 10px; }

.site-header {
  border-bottom: 1px solid var(--vg-border);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(12px);
}
.site-branding {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem .85rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}
.project-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .01em;
}
.project-subtitle {
  margin: .1rem 0 0;
  color: var(--vg-muted);
  font-size: .94rem;
}
.header-meta {
  color: var(--vg-muted);
  font-size: .9rem;
  text-align: right;
}
.main-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .35rem .65rem;
  border: 1px solid var(--vg-border);
  border-radius: 999px;
  background: var(--vg-soft-2);
  color: var(--vg-blue-2);
  font-size: .9rem;
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  background: var(--vg-blue);
  color: #fff;
  border-color: var(--vg-blue);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.breadcrumbs {
  margin: 0 0 1rem;
  color: var(--vg-muted);
  font-size: .92rem;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: #8b8790; }

.article-head {
  background: var(--vg-paper);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  box-shadow: var(--vg-shadow);
  padding: clamp(1.35rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.kicker {
  margin: 0 0 .7rem;
  color: var(--vg-accent);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.lead {
  margin: 1rem 0 0;
  max-width: 900px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: #354158;
}
.head-note {
  margin-top: 1.25rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  color: var(--vg-muted);
  font-size: .92rem;
}
.head-note span {
  padding: .25rem .55rem;
  border: 1px solid var(--vg-border);
  border-radius: 999px;
  background: var(--vg-soft-2);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 1rem;
  background: var(--vg-paper);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  padding: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.toc h2 {
  font-size: .95rem;
  margin: 0 0 .65rem;
  color: var(--vg-blue-2);
}
.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: .9rem;
  line-height: 1.45;
}
.toc li { margin: .42rem 0; }
.toc a { text-decoration: none; color: #38445d; }
.toc a:hover { text-decoration: underline; }

.article {
  min-width: 0;
}
.section {
  background: var(--vg-paper);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  box-shadow: 0 10px 30px rgba(24, 33, 50, .045);
  padding: clamp(1.15rem, 2.6vw, 2rem);
  margin-bottom: 1.15rem;
}
.section h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--vg-blue-2);
}
.section h3 {
  margin: 1.45rem 0 .6rem;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  color: #26364f;
}
.section p { margin: .72rem 0; }
.section ul, .section ol { padding-left: 1.35rem; }
.section li { margin: .35rem 0; }

.note-box,
.case-box,
.source-box,
.deadline-box,
.contact-box {
  border: 1px solid var(--vg-border);
  border-left: 4px solid var(--vg-blue);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--vg-soft-2);
  margin: 1rem 0;
}
.case-box { background: #fbfaf6; border-left-color: var(--vg-accent); }
.deadline-box { background: var(--vg-danger-soft); border-left-color: #9b523f; }
.contact-box { background: var(--vg-accent-soft); border-left-color: var(--vg-accent); }
.note-box strong,
.case-box strong,
.deadline-box strong { color: var(--vg-blue-2); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--vg-border);
  border-radius: 12px;
  margin: 1rem 0;
  background: #fff;
}
table.gdb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.gdb-table th,
.gdb-table td {
  padding: .9rem .95rem;
  border-bottom: 1px solid var(--vg-border);
  vertical-align: top;
}
.gdb-table th {
  background: var(--vg-blue);
  color: #fff;
  font-weight: 700;
  text-align: left;
}
.gdb-table tr:last-child td { border-bottom: 0; }
.gdb-table td:last-child { font-weight: 700; color: var(--vg-blue-2); white-space: nowrap; }

.decision-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}
.decision-list li {
  padding: .7rem 0;
  border-top: 1px solid var(--vg-border);
}
.decision-list li:first-child { border-top: 0; }
.decision-meta {
  display: block;
  color: var(--vg-muted);
  font-size: .92rem;
}

.faq details {
  border-top: 1px solid var(--vg-border);
  padding: .85rem 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--vg-blue-2);
}
.faq summary + p { margin-top: .55rem; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--vg-border);
  background: #20293a;
  color: #f9f5ed;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: .9rem;
  grid-template-columns: 1.5fr 1fr;
}
.site-footer a { color: #fff; }
.footer-small { color: #d7d0c4; font-size: .92rem; }

@media (max-width: 900px) {
  .site-branding { display: block; }
  .header-meta { text-align: left; margin-top: .45rem; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; }
  .site-header, .toc, .site-footer { display: none; }
  .page { max-width: none; padding: 0; }
  .article-head, .section { box-shadow: none; border-color: #aaa; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
