/* /de/ratgeber/<slug>: article */

/* reading progress: CSS scroll-driven animation, no scroll listener */
.a-progress { position: fixed; left: 0; right: 0; top: var(--head-h); height: 3px; z-index: 41; pointer-events: none; }
.a-progress span { display: block; height: 100%; background: var(--rot); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .4s var(--ease); }
@supports (animation-timeline: scroll()) {
  .a-progress span { transition: none; animation: a-read linear both; animation-timeline: scroll(root block); }
}
@keyframes a-read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.photo-top .a-progress { opacity: 0; transition: opacity .3s; }
body.photo-top:has(.site-head.scrolled) .a-progress { opacity: 1; }

/* hero */
.a-hero { min-height: min(78vh, 760px); }
.a-hero h1 { max-width: 22ch; font-size: clamp(34px, 4.8vw, 70px); }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; color: rgba(255, 255, 255, .86); font-size: 15px; }
.a-meta span { display: inline-flex; align-items: center; gap: 8px; }
.a-meta .ph { font-size: 18px; color: #fff; }

/* body grid: table of contents left, text right */
.a-grid { display: grid; grid-template-columns: minmax(220px, 3fr) 9fr; gap: clamp(28px, 5vw, 80px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 120px); align-items: start; }
.a-toc { position: sticky; top: calc(var(--head-h) + 28px); border-top: 2px solid var(--tinte); padding-top: 14px; max-height: calc(100vh - var(--head-h) - 56px); overflow-y: auto; }
.a-toc summary { list-style: none; font-weight: 700; font-size: 15px; cursor: pointer; }
.a-toc summary::-webkit-details-marker { display: none; }
.a-toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: t; }
.a-toc li { counter-increment: t; }
.a-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 0; text-decoration: none; font-size: 15px; line-height: 1.35; color: var(--granit); border-left: 0; transition: color .2s; }
.a-toc a::before { content: counter(t, decimal-leading-zero); font-stretch: 68%; font-weight: 700; color: var(--linie); transition: color .2s; }
.a-toc a:hover { color: var(--tinte); }
.a-toc a[aria-current="true"] { color: var(--tinte); font-weight: 700; }
.a-toc a[aria-current="true"]::before { color: var(--rot); }
@media (min-width: 1001px) { .a-toc summary { display: none; } }
@media (max-width: 1000px) {
  .a-grid { grid-template-columns: 1fr; gap: 28px; }
  .a-toc { position: static; max-height: none; border: 2px solid var(--tinte); border-radius: var(--r); padding: 14px 16px; }
  .a-toc summary { display: flex; justify-content: space-between; align-items: center; }
  .a-toc summary::after { content: ""; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
  .a-toc[open] summary::after { transform: rotate(45deg); }
}

.a-main { min-width: 0; max-width: 760px; }
.a-body > :first-child { font-size: 1.12em; color: var(--tinte); }
.a-body h2 { scroll-margin-top: calc(var(--head-h) + 24px); }
.a-body a.p-link { text-decoration-color: var(--rot); }
.a-body table { font-size: 15.5px; }
.a-cta { margin: 32px 0 0; }

/* matching providers */
.a-fit { margin-top: clamp(48px, 6vw, 72px); background: var(--nacht); color: #fff; border-radius: var(--r); padding: clamp(22px, 3.4vw, 40px); }
.a-fit:empty { display: none; }
.a-fit h2 { font-size: clamp(26px, 2.8vw, 36px); }
.a-fit .lead { margin: 10px 0 0; font-size: 16px; }
.fit-list { list-style: none; margin: 24px 0 0; padding: 0; }
.fit-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fit-row:first-child { border-top: 2px solid #fff; }
.fit-row .who a { font-weight: 800; font-stretch: 108%; font-size: 19px; text-decoration: none; }
.fit-row .who a:hover { color: var(--rot); }
.fit-row .who .zone { color: var(--nebel); margin-left: 10px; font-weight: 500; }
.fit-row .price { font-size: clamp(24px, 2.4vw, 32px); text-align: right; line-height: 1; white-space: nowrap; }
.fit-row .price small { display: block; margin: 4px 0 0; font-size: 12.5px; }
.fit-row:first-child .price { color: #fff; }
.fit-row .cmp { color: #fff; }
.fit-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 22px; }
.fit-foot .small { color: var(--nebel); margin: 0; max-width: 48ch; }
@media (max-width: 640px) {
  .fit-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .fit-row .logo-tile { width: 40px; height: 40px; }
  .fit-row .who .zone { display: flex; margin: 2px 0 0; }
  .fit-row .cmp { grid-column: 2 / -1; justify-self: start; margin-left: -8px; }
}

/* related */
.a-related .head { max-width: none; }
.a-rel-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 28px clamp(24px, 3.4vw, 48px); align-items: start; }
.a-rel-grid .wide { grid-row: span 2; }
.a-rel-grid .line { padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .a-rel-grid { grid-template-columns: 1fr; } .a-rel-grid .wide { grid-row: auto; } }

.a-missing { padding: clamp(48px, 8vw, 120px) 0; }
.fit-row .price small.ab { display: inline; margin: 0 6px 0 0; font-size: 14px; }
