/* PaceKeeper Docs — adds layout on top of styles.css */
.docsShell{
  padding: 28px 0 64px;
}
.docsGrid{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items:start;
}
@media (max-width: 980px){
  .docsGrid{ grid-template-columns: 1fr; }

  .docsNav{
    position: static;
    top: auto;
  }

  .docsHeroSticky{
    position: static;
    top: auto;
  }
}

.docsNav{
  position: sticky;
  top: calc(var(--headerH, 0px) + 18px);
}

.docsNav .card{
  padding: 14px;
}

.docsNavTitle{
  font-weight: 800;
  letter-spacing: .15px;
  margin: 2px 0 10px;
}
.docsNavSection{
  margin-top: 12px;
}
.docsNavSectionLabel{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12px;
  margin: 0 0 8px;
}
.docsNav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--fg);
  transition: .16s ease;
  font-weight: 600;
  font-size: 13px;
}
.docsNav a:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(37,99,235,.18);
}
.docsNav a[aria-current="page"]{
  background: var(--primary-soft);
  border-color: rgba(37,99,235,.28);
}
.docsNavBadge{
  font-size: 12px;
  color: var(--muted2);
}

.docsHeader{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-bottom: 14px;
}

.docsHeader .h2{
  margin: 0;
}

.docsHero{
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow2);
}
.docsHero img {
  display: block;

  /* niemals größer als die native Bildgröße */
  width: auto;
  max-width: 100%;

  /* Höhe automatisch, Seitenverhältnis bleibt erhalten */
  height: auto;
  max-height: 420px;

  /* optional: zentrieren, falls Bild schmaler als Container */
  margin: 0 auto;
}

.docsPoint{
  scroll-margin-top: calc(var(--headerH, 0px) + 18px);
}
.docsPointNum {
  position: absolute;

  top: 0;
  left: 0;

  transform: translate(-50%, -50%); /* exakt ins Eck ziehen */

  width: 22px;
  height: 22px;

  border-radius: 50%;
  background: var(--help-accent);
  color: #fff;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 0 3px #fff; /* trennt Nummer sauber von der Border */
}
.docsKV {
  display: grid;
  margin-top: 10px;
  gap: 12px; /* Abstand zwischen den 3 Blöcken */
}

/* Nur die KV/Erklär-Icons */
.docsKVIcon{
  width: 14px;
  height: 14px;
  opacity: 0.55;
  color: var(--muted2); /* statt knalliger Akzentfarbe */
}

.docsKVIcon svg{
  width: 100%;
  height: 100%;
  display: none;
}

.docsKVRow:hover {
  box-shadow: 0 0 0 1px var(--help-accent-soft);
}

.docsKVText strong {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.docsKVText span {
  display: block;
  color: var(--fg);
  line-height: 1.4;
}
.docsWarn{
  border: 1px solid rgba(217,119,6,.22);
  background: var(--warn-soft);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--fg);
}

/* Sticky hero image while scrolling (right content column) */
.docsHeroSticky{
  position: sticky;
  top: calc(var(--headerH, 0px) + 14px);
  z-index: 2;
}

/* keep layout stable when image is sticky */
.docsHeroSticky + .panel{
  margin-top: 18px;
}

/* Help-Seite: globales section-padding aus styles.css neutralisieren */
.docsShell .docsGrid > section{
  padding: 0;
}

:root {
  --help-accent: #ef4444;        /* Screenshot-Rot */
  --help-accent-soft: rgba(239, 68, 68, 0.12);
}

.docsLinks {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.docsLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.docsLink:hover {
  border-color: rgba(239,68,68,.35);
}
.docsLinkArrow {
  color: var(--muted2);
}

.docsPointIcon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;  
}
.docsPointIcon svg{
  width: 100%;
  height: 100%;
}

.docsPoint {
  position: relative;
  padding-top: 12px;
  padding-left: 14px;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* Container für Titelzeile */
.docsPointHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  margin-left: 14px; /* Abstand von der Nummer */
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* === Dense mode für KV-Bereich (wenn Icons weg sind) === */

.docsKVRow{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;

  /* Kachel-Optik weg -> spart massiv Höhe */
  padding: 0;
  margin: 0;

  background: transparent;
  border-radius: 0;
}

/* Icon-Wrapper zentriert, keine Baseline-Effekte */
.docsTitleIcon,
.docsPointIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SVG/IMG dürfen NICHT inline-baseline sein */
.docsTitleIcon svg,
.docsTitleIcon img,
.docsPointIcon svg,
.docsPointIcon img{
  display: block;           /* <- entfernt Baseline-Versatz */
  width: 18px;
  height: 18px;
  transform: translateY(1px);
}
