/* Ads Führung. Alles unter body.adsf, damit ohne das Plugin nichts davon greift. Nur Teal als Akzent. */
body.adsf {
  --f-grau: #f3f6f7;
  --f-rand: #dbe5e8;
  --f-akzent: #0f6e7b;
  --f-linie: #14808f;
  --f-ink: #0e1a22;
  --f-muted: #475763;
  --f-shadow: 0 1px 2px rgba(11, 58, 66, .05), 0 6px 20px rgba(11, 58, 66, .06);
}

/* ===== Abschnittsrhythmus ===== */
body.adsf main .sec.adsf-w:not(.dark) { background: #fff !important; }
body.adsf main .sec.adsf-g:not(.dark) { background: var(--f-grau) !important; }
body.adsf main .sec.tint:not(.adsf-w):not(.adsf-g):not(.dark) { background: var(--f-grau) !important; }
body.adsf main .sec:not(.dark):not(.slim) { padding-top: clamp(64px, 8vw, 108px); padding-bottom: clamp(64px, 8vw, 108px); }
body.adsf main .sec:not(.dark) .eyebrow { color: var(--f-akzent); }
body.adsf section[id], body.adsf h2[id] { scroll-margin-top: var(--adsf-off, 130px); }

/* ===== Karten und Boxen ===== */
body.adsf main .sec:not(.dark) .card,
body.adsf main .sec:not(.dark) .wi-card,
body.adsf main .sec:not(.dark) .adsr-card {
  border: 1px solid var(--f-rand);
  box-shadow: var(--f-shadow);
}
body.adsf main .sec:not(.dark) details {
  background: #fff;
  border: 1px solid var(--f-rand);
  border-radius: 14px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 10px;
  box-shadow: var(--f-shadow);
}
body.adsf main .sec:not(.dark) details + details { margin-top: 10px; }

/* ===== Abschnittsnummern (Kicker) ===== */
body.adsf .adsf-n { display: inline-block; margin-right: 14px; font-weight: 800; letter-spacing: .08em; color: var(--f-akzent); line-height: 1.1; }
body.adsf .adsf-n--solo { display: block; width: fit-content; margin: 0 auto 12px 0; font-size: 12px; letter-spacing: .14em; }

/* ===== "Als Nächstes" ===== */
body.adsf .adsf-next { grid-column: 1 / -1; margin: 44px 0 0; padding: 18px 0 0; border-top: 1px solid var(--f-rand); font-size: 15px; line-height: 1.4; text-align: left; }
body.adsf .adsf-next a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--f-muted); text-decoration: none; }
body.adsf .adsf-next__l { font-weight: 500; }
body.adsf .adsf-next b { color: var(--f-akzent); font-weight: 700; }
body.adsf .adsf-next i { font-style: normal; color: var(--f-akzent); transition: transform .2s; }
body.adsf .adsf-next a:hover b { text-decoration: underline; text-underline-offset: 3px; }
body.adsf .adsf-next a:hover i { transform: translateY(2px); }
body.adsf .adsf-next a:focus-visible { outline: 3px solid var(--f-akzent); outline-offset: 4px; border-radius: 4px; }
body.adsf .adsf-next--end { border-top-color: var(--f-linie); }
body.adsf .adsx-article .adsf-next { margin-top: 48px; margin-bottom: -20px; }

/* ===== Fortschrittslinie ===== */
.adsf-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; pointer-events: none; }
.adsf-progress span { display: block; height: 100%; background: #14808f; transform-origin: 0 50%; transform: scaleX(0); }

/* ===== Leiste "Auf dieser Seite" ===== */
.adsf-bar {
  position: fixed; left: 0; right: 0; top: var(--adsf-top, 0px); z-index: 900;
  background: #fff; border-bottom: 1px solid #dbe5e8;
  box-shadow: 0 6px 18px rgba(11, 58, 66, .06);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility 0s .3s;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.adsf-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .3s ease, opacity .3s ease; }
.adsf-bar__in { position: relative; display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 0 clamp(20px, 4vw, 56px); max-width: 1400px; margin: 0 auto; }
.adsf-bar__l { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #475763; }
.adsf-bar__btn { display: none; }
.adsf-ol { display: flex; gap: 4px; margin: 0; padding: 6px 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; min-width: 0; }
.adsf-ol::-webkit-scrollbar { display: none; }
.adsf-ol li { flex: none; margin: 0; padding: 0; }
.adsf-ol a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; color: #475763; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.adsf-ol a .n { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #7f9199; }
.adsf-ol a:hover { background: #eef5f6; color: #0b3a42; }
.adsf-ol li.is-done a .n { color: #14808f; }
.adsf-ol li.is-active a { background: #dcedf0; color: #0b3a42; }
.adsf-ol li.is-active a .n { color: #0f6e7b; }
.adsf-ol a:focus-visible, .adsf-bar__btn:focus-visible { outline: 3px solid #0f6e7b; outline-offset: 2px; }

@media (max-width: 900px) {
  .adsf-bar__l { display: none; }
  .adsf-bar__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0; background: none; border: 0; font: inherit; color: #0e1a22; text-align: left; cursor: pointer; }
  .adsf-bar__cur { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 700; }
  .adsf-bar__cur b { font-size: 12px; letter-spacing: .08em; color: #0f6e7b; }
  .adsf-bar__cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adsf-bar__c { flex: none; font-size: 12.5px; font-weight: 600; color: #475763; }
  .adsf-bar__btn i { flex: none; width: 8px; height: 8px; border-right: 2px solid #0f6e7b; border-bottom: 2px solid #0f6e7b; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
  .adsf-bar.is-open .adsf-bar__btn i { transform: rotate(225deg); }
  .adsf-ol { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; max-height: min(60vh, 420px); overflow-y: auto; padding: 6px clamp(20px, 4vw, 56px) 12px; background: #fff; border-bottom: 1px solid #dbe5e8; box-shadow: 0 16px 30px rgba(11, 58, 66, .12); }
  .adsf-bar.is-open .adsf-ol { display: flex; }
  .adsf-ol a { min-height: 46px; border-radius: 10px; white-space: normal; font-size: 15px; }
}
/* Beiträge haben ab 1041 px ihr eigenes Inhaltsverzeichnis in der Seitenleiste */
@media (min-width: 1041px) { body.adsf-post .adsf-bar { display: none; } }
@media (min-width: 901px) and (max-width: 1040px) { body.adsf-post .adsf-bar__l { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .adsf-bar, .adsf-bar.is-on, .adsf-ol a, body.adsf .adsf-next i, .adsf-bar__btn i { transition: none; }
  .adsf-ol { scroll-behavior: auto; }
}

/* ===== Beitragstext: Zwischenüberschriften und Flächen ===== */
body.adsf .adsx article.adsx-article h2 { margin-top: 84px; }
body.adsf .adsx article.adsx-article > .adsx-note:first-child + h2,
body.adsf .adsx article.adsx-article > .adsx-tocm + h2 { margin-top: 68px; }
body.adsf .adsx-article .adsx-note,
body.adsf .adsx-article .adsx-vs,
body.adsf .adsx-article .adsx-tablewrap,
body.adsf .adsx-article .adsx-faq,
body.adsf .adsx-hint {
  border: 1px solid var(--f-rand);
  box-shadow: var(--f-shadow);
}
body.adsf .adsx-article .adsx-tablewrap,
body.adsf .adsx-article .adsx-faq { background: var(--f-grau); }

/* Die alte Sprungleiste der Lesehilfe entfällt, "Auf dieser Seite" kommt aus dieser Datei (nur eine Leiste). */
body.adsf .adsx-jump { display: none !important; }
body.adsf .adsx-article .adsf-next { border-top: 0; padding-top: 0; margin-top: 40px; margin-bottom: -28px; }
