/* Ablauf und Phasen: große rote Zahl läuft links mit, der Text scrollt normal (Ratgeber, Leistungen) */
.rg-phasen { --ph-akz: var(--static-maincolor); }
.rg-phasen { display: grid; grid-template-columns: clamp(140px, 24vw, 460px) minmax(0, 1fr); gap: clamp(16px, 3vw, 60px); margin-top: clamp(20px, 3vw, 44px); }
.rg-ph-kleb { position: sticky; top: clamp(110px, 16vh, 170px); }
.rg-ph-z { display: block; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; font-size: clamp(90px, 17vw, 330px); line-height: .84; letter-spacing: -.05em; color: var(--ph-akz); }
.rg-ph-z.neu { animation: rgZahl .34s cubic-bezier(.2,.9,.3,1); }
@keyframes rgZahl { from { opacity: .15; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rg-ph-ticks { display: flex; gap: 6px; margin-top: 18px; }
.rg-ph-ticks i { flex: 0 1 34px; height: 4px; background: rgba(var(--gridcolor-rgb),.22); transition: background-color .25s; }
.rg-ph-ticks i.an { background: var(--ph-akz); }
.rg-ph { padding: clamp(10px, 1.4vw, 20px) 0 clamp(40px, 6vw, 90px); opacity: .55; transition: opacity .3s; }
.rg-ph.an { opacity: 1; }
.rg-ph h3 { margin: 0 0 .45em; font-weight: 700; font-size: clamp(23px, 2.2vw, 40px); line-height: 1.1; letter-spacing: -.02em; } /* die große Zahl ist das Schauelement, der Titel bleibt unter der Abschnittsüberschrift */
.rg-ph-nr { display: none; }
.rg-ph p { max-width: 62ch; margin: 0 0 1em; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.5; color: var(--gridcolor-86); }
.rg-ph p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .rg-phasen { display: block; }
  .rg-ph-seite { display: none; }
  .rg-ph, .rg-ph.an { opacity: 1; padding-bottom: 34px; }
  .rg-ph-nr { display: block; margin-bottom: 8px; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; font-size: 74px; line-height: .9; letter-spacing: -.04em; color: var(--ph-akz); }
}
@media (prefers-reduced-motion: reduce) { .rg-ph-z.neu { animation: none; } }

/* AK86 2026 – Kapitelverzeichnis am Mauszeiger (assets/js/lesen.js): Der Zeiger selbst wird zur Bubble, der Ring außen zeigt den Lesefortschritt */
html.rgi-frei, html.rgi-frei * { cursor: none; }
.cur.rgi-zeiger { background: rgba(var(--bgcolor-rgb),.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: transparent; }
.cur.rgi-zeiger::before, .cur.rgi-zeiger::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; }
.cur.rgi-zeiger::before { border: 2px dashed rgba(var(--gridcolor-rgb),.55); animation: rgiDreh 14s linear infinite; }
.cur.rgi-zeiger::after { background: conic-gradient(var(--acc) calc(var(--rgi-fort, 0) * 360deg), transparent 0); -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
@keyframes rgiDreh { to { transform: rotate(360deg); } }
.rgi-cur { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 0 4px; opacity: 0; color: var(--gridcolor); font-family: var(--f-mono); pointer-events: none; transition: opacity .12s; }
.cur.rgi-zeiger .rgi-cur { opacity: 1; transition: opacity .22s .1s; }
.rgi-cur b { font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; font-size: 25px; line-height: 1; letter-spacing: -.03em; }
.rgi-cur i { align-self: flex-end; font-style: normal; font-size: 10px; line-height: 1.5; }
.rgi-cur small { flex: 0 0 100%; margin-top: 3px; font-size: 9.5px; line-height: 1; letter-spacing: .1em; text-align: center; text-transform: uppercase; }

.rgi { position: fixed; z-index: 52; box-sizing: border-box; width: clamp(310px, 25vw, 420px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: hidden auto; scrollbar-width: thin; scrollbar-color: rgba(var(--gridcolor-rgb),.3) transparent; overscroll-behavior: contain; padding: 16px 18px 8px; color: var(--gridcolor); background: rgba(var(--bgcolor-rgb),.66); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); box-shadow: 0 18px 60px rgba(0,0,0,.34), inset 0 0 0 1px rgba(var(--gridcolor-rgb),.16); }
.rgi[hidden] { display: none; }
.rgi.unten { left: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - var(--abh, 0px) - 170px); }
.rgi-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.rgi-kopf b { font-weight: 400; color: var(--acc); }
.rgi-fort { height: 3px; margin: 11px 0 0; background: rgba(var(--gridcolor-rgb),.16); }
.rgi-fort i { display: block; height: 100%; width: calc(var(--rgi-fort, 0) * 100%); background: var(--acc); }
.rgi ol { margin: 0; padding: 0; list-style: none; counter-reset: rgi; }
.rgi li { counter-increment: rgi; border-bottom: 1px solid var(--line); }
.rgi li:last-child { border-bottom: 0; }
.rgi a { display: flex; gap: 12px; padding: 12px 0; font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: none; color: inherit; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.rgi a::before { content: counter(rgi, decimal-leading-zero); flex: none; font: 400 12px/1.6 var(--f-mono); color: var(--acc); }
.rgi a:hover, .rgi a:focus-visible { transform: translateX(6px); }
.rgi a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.rgi li.an a { color: var(--rg-akz, inherit); }
.rgi li.an a::before { padding: 0 4px; margin-left: -4px; color: var(--ink); background: var(--acc); }

/* Ohne Maus oder bei schmalem Fenster: fester Knopf. Mit Maus nur sichtbar, wenn er per Tastatur den Fokus hat */
.rgi-knopf { position: fixed; z-index: 52; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 2px; width: 62px; height: 62px; padding: 0; color: var(--gridcolor); font-family: var(--f-mono); background: rgba(var(--bgcolor-rgb),.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 0; border-radius: 50%; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.rgi-knopf::before { content: ''; position: absolute; inset: 0; border: 2px dashed rgba(var(--gridcolor-rgb),.55); border-radius: 50%; }
.rgi-knopf::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--acc) calc(var(--rgi-fort, 0) * 360deg), transparent 0); -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.rgi-knopf b { font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; font-size: 19px; line-height: 1; letter-spacing: -.03em; }
.rgi-knopf i { align-self: center; margin-top: 5px; font-style: normal; font-size: 9.5px; }
.rgi-knopf.an { opacity: 1; pointer-events: auto; transform: none; }
.rgi-knopf.nur-fokus { opacity: 0; pointer-events: none; }
.rgi-knopf:focus-visible, .rgi-knopf.nur-fokus:focus-visible { opacity: 1; pointer-events: auto; transform: none; outline: 2px solid var(--acc); outline-offset: 3px; }
body.kov-in .rgi-knopf, body.mnu-in .rgi-knopf, body.kov-in .rgi, body.mnu-in .rgi { visibility: hidden; }
html.lui-an .rgi-knopf { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
html.lui-an .rgi.unten { bottom: calc(158px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .cur.rgi-zeiger::before { animation: none; } }
