/* ============================================================
   Dokumentation – Layout & Bausteine
   ============================================================ */

.docs-hero { background: var(--ink); color: #fff; }
.docs-hero .inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px; }
.docs-hero .back { color: #7fe3e8; font-size: 14px; font-weight: 600; text-decoration: none; }
.docs-hero h1 {
  font-family: var(--head); font-weight: 800; font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -1px; margin: 18px 0 0;
}
.docs-hero p.sub { font-size: 17px; color: #bfe0df; max-width: 640px; margin: 14px 0 0; }

.docs-layout {
  max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 88px;
  display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start;
}

/* ---- Sidebar ---- */
.docs-nav {
  position: sticky; top: 94px;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff;
}
.docs-nav p.group {
  font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted); margin: 16px 0 8px;
}
.docs-nav p.group:first-child { margin-top: 0; }
.docs-nav a {
  display: block; padding: 7px 10px; border-radius: 9px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: #23423f;
}
.docs-nav a:hover { background: var(--grey); color: var(--teal-text); }

/* ---- Inhalt ---- */
.docs-content { min-width: 0; }
.docs-content section { scroll-margin-top: 94px; }
.docs-content section + section { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 48px; }
.docs-content .ext-tag {
  display: inline-block; font-family: var(--head); font-weight: 800; font-size: 13px;
  color: #fff; background: var(--teal-btn); padding: 5px 12px; border-radius: 8px; margin-bottom: 12px;
}
.docs-content .ext-tag--warm { background: var(--warm); color: var(--ink); }
.docs-content .ext-tag--ink { background: var(--ink); }
.docs-content h2 {
  font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -.6px; color: var(--ink); margin: 0 0 10px;
}
.docs-content h3 {
  font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink);
  margin: 34px 0 10px;
}
.docs-content p { font-size: 15.5px; color: #34504d; line-height: 1.7; margin: 0 0 14px; }
.docs-content ul { margin: 0 0 14px; padding-left: 22px; }
.docs-content ul li { font-size: 15.5px; color: #34504d; line-height: 1.7; margin-bottom: 6px; }
.docs-content a { color: var(--teal-text); font-weight: 600; }

/* Schritt-für-Schritt-Liste */
.steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 18px 52px; counter-increment: step;
  font-size: 15.5px; color: #34504d; line-height: 1.65;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--ink); }

/* Hinweis-Boxen */
.note {
  border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px;
  background: var(--grey); padding: 14px 18px; margin: 0 0 14px;
  font-size: 14.5px; color: #34504d; line-height: 1.65;
}
.note.warn { border-left-color: var(--warm); }
.note strong { color: var(--ink); }

/* Funktions-Minikarten in der Doku */
.docs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 14px; }
.docs-cards .dc {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff;
}
.docs-cards .dc h4 {
  font-family: var(--head); font-weight: 700; font-size: 15.5px; color: var(--ink); margin: 0 0 5px;
}
.docs-cards .dc p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-nav { position: static; }
  .docs-cards { grid-template-columns: 1fr; }
}
