/* Gemeinsames Artikellayout für Ratgeber und News. */
.sp-magazine-body.sp-editorial-layout {
  --sp-editorial-ink: #203e65;
  --sp-editorial-blue: #326dc7;
  display: grid;
  grid-template-columns: minmax(0, 800px) 250px;
  grid-template-areas: "content rail" "author rail";
  column-gap: 42px;
  row-gap: 0;
  justify-content: center;
  align-items: start;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.sp-editorial-layout > .entry-content {
  grid-area: content;
  min-width: 0;
  width: 100%;
  max-width: none;
}
.sp-editorial-layout > .sp-magazine-author {
  grid-area: author;
  min-width: 0;
}
.sp-editorial-layout > .sp-editorial-rail {
  grid-area: rail;
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b8cae2 transparent;
}
.sp-editorial-layout .sp-editorial-toc {
  box-sizing: border-box;
  color: var(--sp-editorial-ink);
  border: 0;
  border-left: 1px solid #dce7f4;
  border-radius: 0;
  background: #fff;
}
.sp-editorial-toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 24px 0 18px 18px;
  color: var(--sp-editorial-ink);
  cursor: pointer;
}
.sp-editorial-toc > summary::-webkit-details-marker { display: none; }
.sp-editorial-toc > summary strong {
  display: block;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.5;
  letter-spacing: -.3px;
}
.sp-editorial-toc > summary small {
  display: block;
  margin-top: 4px;
  color: #8b9fb7;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.sp-editorial-toc > summary > span:last-child:not(:first-child),
.sp-editorial-toc .sp-editorial-toc-caret {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: var(--sp-editorial-blue);
  background: #f2f7fd;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.sp-editorial-toc > summary > span:last-child:not(:first-child)::after,
.sp-editorial-toc .sp-editorial-toc-caret::after { content: "+"; }
.sp-editorial-toc[open] > summary > span:last-child:not(:first-child)::after,
.sp-editorial-toc[open] .sp-editorial-toc-caret::after { content: "−"; }
.sp-editorial-toc > nav { padding: 0 0 18px 8px; }
.sp-editorial-toc ol {
  display: grid;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-editorial-toc li { margin: 0; padding: 0; }
.sp-editorial-toc a.sp-editorial-toc-link {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 11px 10px;
  border-radius: 8px;
  color: #6c89ab;
  font-size: 11px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: break-word;
}
.sp-editorial-toc-link .sp-editorial-toc-number {
  flex: 0 0 auto;
  color: #94adca;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.sp-editorial-toc-link b { min-width: 0; font-weight: 500; }
.sp-editorial-toc a.sp-editorial-toc-link:hover,
.sp-editorial-toc a.sp-editorial-toc-link[aria-current="location"] {
  color: var(--sp-editorial-ink);
  background: #e3edfa;
}
.sp-editorial-toc-link[aria-current="location"] b { font-weight: 750; }
.sp-editorial-toc-link[aria-current="location"] .sp-editorial-toc-number {
  color: var(--sp-editorial-blue);
}
.sp-editorial-toc :is(summary, a):focus-visible {
  outline: 3px solid var(--sp-editorial-blue);
  outline-offset: 3px;
}
.sp-magazine-body.sp-editorial-layout .entry-content .sp-editorial-lead {
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  color: #405d7f;
  font-size: 20px;
  line-height: 1.85;
}
.sp-magazine-body.sp-editorial-layout .entry-content .sp-editorial-lead strong {
  color: var(--sp-editorial-ink);
  font-weight: 780;
}
.sp-magazine-body.sp-editorial-layout .entry-content .sp-editorial-intro-text {
  max-width: none;
  margin: 0 0 32px;
  color: #5b7594;
  font-size: 16px;
  line-height: 1.9;
}
.sp-editorial-layout .entry-content .sp-editorial-summary {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px 30px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 0 48px !important;
  padding: 30px !important;
  border: 0 !important;
  border-top: 2px solid var(--sp-editorial-blue) !important;
  border-radius: 0 0 17px 17px !important;
  color: var(--sp-editorial-ink);
  background: #f2f7fd !important;
}
.sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-label {
  display: block;
  grid-column: 1 / -1;
  color: var(--sp-editorial-blue);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
}
.sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-heading,
.sp-editorial-layout .entry-content .sp-editorial-summary > :is(h2, h3) {
  display: block;
  margin: 0;
  color: var(--sp-editorial-ink);
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -.8px;
  font-weight: 780;
  scroll-margin-top: 0;
}
.sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-list,
.sp-editorial-layout .entry-content .sp-editorial-summary > ul { display: block; grid-template-columns: none; list-style: none; margin: 0; padding: 0; }
.sp-editorial-layout .sp-editorial-summary :is(.sp-editorial-summary-list, ul) > li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 20px;
  color: #5b7594;
  font-size: 13px;
  line-height: 1.9;
}
.sp-editorial-summary :is(.sp-editorial-summary-list, ul) > li:last-child { margin-bottom: 0; }
.sp-editorial-summary :is(.sp-editorial-summary-list, ul) > li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--sp-editorial-blue);
  font-weight: 800;
}
.sp-editorial-summary strong { color: var(--sp-editorial-ink); }

.sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-body {
  margin: 0;
  color: #5b7594;
  font-size: 13px;
  line-height: 1.9;
}
.sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-heading strong {
  color: inherit;
  font: inherit;
}

@media (max-width: 1000px) {
  .sp-magazine-body.sp-editorial-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "rail" "content" "author";
    gap: 0;
    max-width: 800px;
  }
  .sp-editorial-layout > .sp-editorial-rail {
    position: static;
    top: auto;
    width: 100%;
    max-height: none;
    margin-bottom: 25px;
    overflow: visible;
  }
  .sp-editorial-layout .sp-editorial-toc {
    border: 1px solid #dce7f4;
    border-radius: 11px;
  }
  .sp-editorial-toc > summary { padding: 10px 16px; }
  .sp-editorial-toc > summary > span:last-child:not(:first-child),
  .sp-editorial-toc .sp-editorial-toc-caret { flex-basis: 22px; width: 22px; height: 22px; font-size: 16px; }
  .sp-editorial-toc > summary strong { font-size: 13px; }
  .sp-editorial-toc > summary small { display: none; }
  .sp-editorial-toc > nav { padding: 5px 12px 15px; border-top: 1px solid #dbe7f5; }
  .sp-editorial-toc a.sp-editorial-toc-link { font-size: 12px; }
  .sp-editorial-layout .entry-content .sp-editorial-summary {
    padding: 27px !important;
    margin-bottom: 36px !important;
  }
  .sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-heading,
  .sp-editorial-layout .entry-content .sp-editorial-summary > :is(h2, h3) { font-size: 25px; }
}
@media (max-width: 600px) {
  .sp-magazine-body.sp-editorial-layout .entry-content .sp-editorial-lead {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.8;
  }
  .sp-magazine-body.sp-editorial-layout .entry-content .sp-editorial-intro-text {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.85;
  }
  .sp-editorial-layout .entry-content .sp-editorial-summary {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 23px 21px !important;
  }
  .sp-editorial-layout .entry-content .sp-editorial-summary .sp-editorial-summary-heading,
  .sp-editorial-layout .entry-content .sp-editorial-summary > :is(h2, h3) {
    margin-bottom: 3px;
    font-size: 25px;
    line-height: 1.4;
  }
  .sp-editorial-summary .sp-editorial-summary-heading br { display: none; }
  .sp-editorial-layout .sp-editorial-summary :is(.sp-editorial-summary-list, ul) > li { font-size: 12px; }
  .sp-editorial-toc > summary { padding: 10px 16px; }
}
