/* AK86 2026 – Ratgeber-Übersicht (page-ratgeber.php, Alex 09.11.2026: Aufbau „Überrasch mich!“).
   Inhaltsverzeichnis eines Buchs: links das feste Verzeichnis der Themen, rechts ein Kapitel je Thema.
   Einträge: Nummer · Titel und Unterzeile · Punktlinie · Lesezeit. Eckig wie alles bei AK86. */

/* Akzent wie in den einzelnen Ratgebern: Türkis, im hellen Modus dunkler (sonst zu blass auf Weiß) */
.rgu-hero, .rgu { --acc: #50BBB8; }
html.lightmode .rgu-hero, html.lightmode .rgu { --acc: #1d7f7c; }

/* ---------- Kopf: ohne Bild, reine Typo ---------- */
.rgu-hero { min-height: 88vh; min-height: 88svh; }
.rgu-sub { color: var(--acc, var(--sec)); } /* Türkis wie im Kopf der einzelnen Ratgeber; Rot ging im roten Licht unter */
.rgu-intro { max-width: 44ch; margin-top: clamp(22px, 3.4vh, 40px); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.45; color: rgba(var(--gridcolor-rgb), .86); }
.rgu-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 1100px; }
/* „Überrasch mich“ steht nicht auf einem Foto: im hellen Modus dunkel wie auf der Startseite */
html.lightmode .rgu-hero .rb.quick { color: var(--textcolor); }
html.lightmode .rgu-hero .rb.quick::before { border-color: currentColor; mix-blend-mode: normal; }
html.lightmode .rgu-hero .rb.quick span { text-shadow: none; }

/* ---------- Inhalt: Verzeichnis + Kapitel ---------- */
.rgu { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(190px, 21%) minmax(0, 1fr); gap: clamp(30px, 5vw, 110px); padding: clamp(70px, 11vh, 140px) var(--gut) clamp(40px, 8vh, 100px); }
.rgu-leer { grid-column: 1 / -1; font: 13px var(--f-mono); color: rgba(var(--gridcolor-rgb), .7); }

.rgu-nav { position: sticky; top: 150px; align-self: start; }
.rgu-nh { display: block; padding-bottom: 12px; font: 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc, var(--sec)); }
.rgu-nav ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rgu-nav li { border-bottom: 1px solid var(--line); }
.rgu-nav a { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; font-size: 15px; line-height: 1.3; text-decoration: none; color: rgba(var(--gridcolor-rgb), .62); box-shadow: inset 0 0 var(--static-maincolor); transition: color .3s, padding .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1); }
.rgu-nav a:hover { color: var(--textcolor); }
.rgu-nav a.on { color: var(--textcolor); padding-left: 14px; box-shadow: inset 3px 0 var(--static-maincolor); }
.rgu-nn { flex: none; font: 12px/1.6 var(--f-mono); color: var(--acc, var(--sec)); }
.rgu-nav i { margin-left: auto; font: normal 12px var(--f-mono); opacity: .55; }

/* Kapitel je Thema */
.rgu-kap { padding-bottom: clamp(80px, 13vh, 160px); scroll-margin-top: 130px; }
.rgu-kap:last-child { padding-bottom: 0; }
.rgu-kh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rgu-kn { font: 13px var(--f-mono); color: var(--acc, var(--sec)); }
.rgu-kt { margin: 0; font-size: clamp(40px, 5.2vw, 100px); } /* Abschnittsüberschrift 100 px wie überall (Alex 02.11.) */
.rgu-kc { margin-left: auto; font: 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--gridcolor-rgb), .6); }

/* Einträge */
.rgu-liste { margin: 0; padding: 0; list-style: none; }
.rgu-a { position: relative; display: grid; grid-template-columns: clamp(46px, 4vw, 70px) minmax(0, max-content) minmax(40px, 1fr) auto; align-items: baseline; column-gap: clamp(12px, 1.4vw, 22px); padding: clamp(18px, 2.4vh, 28px) 0; border-bottom: 1px solid var(--line); color: var(--textcolor); text-decoration: none; transition: opacity .4s; }
.rgu-nr { font: 13px var(--f-mono); color: var(--acc, var(--sec)); }
.rgu-txt { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.rgu-t { display: block; font-family: var(--f-body); font-weight: 700; font-size: clamp(22px, 2vw, 38px); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: none; transition: color .3s; max-width: 21ch; } /* Höchstbreite: rechts bleibt Platz für das schwebende Bild */
.rgu-s { display: block; margin-top: 6px; max-width: 46ch; font-size: clamp(15px, 1vw, 18px); line-height: 1.4; color: rgba(var(--gridcolor-rgb), .65); }
/* Punktlinie: steht auf der Grundlinie des Titels und läuft bis zur Lesezeit */
.rgu-pkt { display: inline-block; height: .7em; background: radial-gradient(circle, rgba(var(--gridcolor-rgb), .5) 1.1px, transparent 1.6px) left bottom / 9px 4px repeat-x; }
.rgu-min { font: 13px/1.4 var(--f-mono); white-space: nowrap; text-align: right; }
.rgu-min small { display: block; font-size: 12px; color: rgba(var(--gridcolor-rgb), .55); }
.rgu-ew { position: absolute; right: 0; top: 4px; font: normal 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--static-maincolor); }
.rgu-fig { display: none; }

/* Mit Maus: der Eintrag unter dem Zeiger rückt ein, die anderen treten zurück (wie die Projektliste der Startseite) */
@media (hover: hover) {
  .rgu-liste:hover .rgu-a { opacity: .42; }
  .rgu-liste:hover .rgu-a:hover, .rgu-a:focus-visible { opacity: 1; }
  .rgu-a:hover .rgu-txt, .rgu-a:focus-visible .rgu-txt { transform: translateX(1.2vw); }
  .rgu-a:hover .rgu-t, .rgu-a:focus-visible .rgu-t { color: var(--acc, var(--sec)); }
}
.rgu-a:focus-visible { outline: 2px solid var(--static-seccolor); outline-offset: 4px; }

/* Schwebendes Bild neben dem Zeiger (ratgeber-uebersicht.js) */
.rgu-flo { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 19vw, 380px); aspect-ratio: 3 / 2; margin: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; background: var(--surface, #1e1e1d); }
.rgu-flo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .rgu { grid-template-columns: minmax(160px, 24%) minmax(0, 1fr); }
  .rgu-a { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .rgu-pkt { display: none; }
}

/* ---------- Handy: Verzeichnis als Kacheln, Bild über jedem Eintrag ---------- */
@media (max-width: 760px) {
  .rgu-hero { min-height: 0; padding-top: 170px; }
  .rgu { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 50px; }
  .rgu-nav { position: static; margin-bottom: 60px; }
  .rgu-nav ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .rgu-nav li { border: 0; }
  .rgu-nav a { gap: 8px; padding: 11px 14px; font-weight: 600; color: var(--textcolor); border: 1px solid rgba(var(--gridcolor-rgb), .35); }
  .rgu-nav a.on { padding-left: 14px; box-shadow: none; border-color: var(--gridcolor); }
  .rgu-nn { display: none; }
  .rgu-nav i { margin-left: 0; }
  .rgu-kc { margin-left: 0; width: 100%; }
  .rgu-a { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 30px 0 26px; }
  .rgu-fig { display: block; grid-column: 1 / -1; aspect-ratio: 3 / 2; margin: 0 0 18px; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); }
  .rgu-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rgu-nr, .rgu-pkt { display: none; }
  .rgu-ew { top: 40px; right: 10px; padding: 4px 7px; background: var(--static-maincolor); color: var(--static-white); }
}
