/* =====================================================================
   Guides (/guides, /guides/:kategorie, /guides/:kategorie/:artikel), neu 19.11.2026.
   Vorlagen: views/guides-index.html, guide-category.html, guide.html; Daten: routes/guides.js;
   Verhalten (Suche, Inhaltsverzeichnis, Kopieren, Lesefortschritt): js/guides.js.
   Ruhig und flach wie die Startseite: keine Verlaeufe, kein Leuchten, je Kategorie ein Farbton (--kf, "r, g, b").
   ===================================================================== */

.gd { --kf: 9, 227, 220; --lese: 1.0625rem; }
.gd a { -webkit-tap-highlight-color: transparent; }
.gd-pfeil { width: 16px; height: 16px; flex: none; transition: transform 0.18s ease; }

/* ---------- Kopf (alle drei Ebenen) ---------- */
.gd-hero { margin-top: 70px; background: var(--bg-darker); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.gd-hero .container { max-width: var(--content); }
.gd-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 22px; font-size: 0.9rem; color: var(--text-muted); }
.gd-crumbs a, .gd-crumbs span { display: inline-flex; align-items: center; }
.gd-crumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.gd-crumbs a:hover { color: var(--text-bright); }
.gd-crumbs > * + *::before { content: ''; width: 5px; height: 5px; margin: 0 10px 0 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.45; }
.gd-crumbs span:last-child { color: var(--text); }
.gd-hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; color: var(--text-bright); }
.gd-lead { margin: 0; max-width: 60ch; font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); }
.gd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 20px 0 0; font-size: 0.92rem; color: var(--text-muted); }
.gd-meta > * { display: inline-flex; align-items: center; gap: 7px; }
.gd-meta svg { width: 16px; height: 16px; flex: none; opacity: 0.8; }
.gd-meta a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.gd-meta a:hover { color: var(--text-bright); border-color: var(--primary); }

/* Symbol-Kachel einer Kategorie (oder Bild bei Spielen) */
.gd-marke { width: 40px; height: 40px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--kf), 0.12); color: rgb(var(--kf)); box-shadow: inset 0 0 0 1px rgba(var(--kf), 0.18); }
.gd-marke svg { width: 20px; height: 20px; }
.gd-marke.gross { width: 56px; height: 56px; border-radius: 15px; margin-bottom: 22px; }
.gd-marke.gross svg { width: 27px; height: 27px; }
.gd-marke-bild { overflow: hidden; background: var(--bg-elevated); box-shadow: inset 0 0 0 1px var(--line); }
.gd-marke-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Suche ---------- */
.gd-suche { position: relative; display: flex; align-items: center; max-width: 580px; height: 58px; margin-top: 30px; padding: 0 7px 0 18px; border-radius: 15px; background: var(--bg-card); border: 1px solid var(--line-strong); transition: border-color 0.18s, background-color 0.18s; }
.gd-suche:focus-within { border-color: rgba(var(--primary-rgb), 0.7); background: var(--bg-elevated); }
.gd-suche > svg { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.gd-suche input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--text-bright); font: inherit; font-size: 1.05rem; }
.gd-suche input::placeholder { color: var(--text-muted); }
.gd-suche input::-webkit-search-cancel-button { display: none; }
.gd-suche kbd { flex: none; min-width: 26px; height: 26px; margin-right: 8px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--text-muted); font: 600 0.8rem/1 inherit; font-family: inherit; }
.gd-suche:focus-within kbd { display: none; }
.gd-suche-los { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background-color 0.15s, transform 0.12s; }
.gd-suche-los:hover { background: var(--primary-hover); }
.gd-suche-los:active { transform: scale(0.97); }
.gd-vorschlaege { position: absolute; z-index: 30; left: -1px; right: -1px; top: calc(100% + 8px); padding: 6px; border-radius: 15px; background: var(--bg-elevated); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); max-height: min(440px, 60vh); overflow-y: auto; transform-origin: top center; animation: gdAuf 0.16s ease both; }
.gd-vorschlaege[hidden] { display: none; }
.gd-vorschlaege a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.gd-vorschlaege a span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-vorschlaege a b { color: var(--text-bright); font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-vorschlaege a small { color: var(--text-muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-vorschlaege a .gd-marke { width: 32px; height: 32px; border-radius: 9px; }
.gd-vorschlaege a .gd-marke svg { width: 16px; height: 16px; }
.gd-vorschlaege a[aria-selected="true"], .gd-vorschlaege a:hover { background: rgba(255, 255, 255, 0.05); }
.gd-vorschlaege mark { background: none; color: var(--primary); }
.gd-vorschlaege p { margin: 0; padding: 14px 12px; color: var(--text-muted); font-size: 0.92rem; }
@keyframes gdAuf { from { opacity: 0; transform: translateY(-4px) scale(0.99); } to { opacity: 1; transform: none; } }

.gd-schnell { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gd-schnell a { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s, color 0.15s, transform 0.15s; }
.gd-schnell a:hover { border-color: var(--line-strong); color: var(--text-bright); transform: translateY(-1px); }
.gd-schnell img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.gd-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 16px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.gd-stats a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.gd-stats a:hover { color: var(--text-bright); border-color: var(--primary); }

/* Meistgelesen (rechts im Kopf der Uebersicht) */
.gd-beliebt { padding: 22px 22px 14px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--line); }
.gd-beliebt h2 { margin: 0 0 8px; padding: 0 8px; font-size: 1rem; font-weight: 700; color: var(--text-bright); letter-spacing: -0.01em; }
.gd-beliebt ol { list-style: none; margin: 0; padding: 0; }
.gd-beliebt a { display: flex; align-items: center; gap: 14px; padding: 11px 8px; border-radius: 11px; color: var(--text); text-decoration: none; transition: background-color 0.15s; }
.gd-beliebt li + li a { box-shadow: 0 -1px 0 var(--line); }
.gd-beliebt li + li a:hover, .gd-beliebt a:hover { box-shadow: none; background: rgba(255, 255, 255, 0.04); }
.gd-beliebt a:hover + * { box-shadow: none; }
.gd-beliebt i { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-elevated); color: var(--text-muted); font-style: normal; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color 0.15s, color 0.15s; }
.gd-beliebt a:hover i { background: var(--primary); color: var(--on-primary); }
.gd-beliebt span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gd-beliebt b { color: var(--text-bright); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.gd-beliebt small { color: var(--text-muted); font-size: 0.82rem; }
.gd-beliebt .gd-pfeil { color: var(--text-muted); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.18s; }
.gd-beliebt a:hover .gd-pfeil { opacity: 1; transform: none; color: var(--primary); }

/* ---------- Abschnitte ---------- */
.gd-sek { padding: clamp(48px, 7vw, 88px) 0; }
.gd-sek .container { max-width: var(--content); }
.gd-gruppe + .gd-gruppe { margin-top: clamp(56px, 8vw, 96px); }
.gd-gruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gd-gruppe-kopf h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; color: var(--text-bright); }
.gd-gruppe-kopf p { margin: 0; max-width: 52ch; color: var(--text-muted); font-size: 0.98rem; }

/* Kategorien mit Symbol: Kopf + drei Artikel + "Alle" */
.gd-cats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gd-cats > .gd-cat { grid-column: span 4; }
.gd-gruppe-basis .gd-cat:nth-child(n+4) { grid-column: span 6; }
.gd-gruppe-praxis .gd-cat:nth-child(-n+4) { grid-column: span 3; }
.gd-gruppe-praxis .gd-cat:nth-child(n+5) { grid-column: span 4; }
.gd-cat { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gd-cat:hover { border-color: rgba(var(--kf), 0.45); }
.gd-cat-kopf { display: flex; gap: 14px; padding: 14px 14px 16px; border-radius: 12px; color: var(--text); text-decoration: none; }
.gd-cat-kopf > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gd-cat-kopf b { color: var(--text-bright); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.gd-cat-kopf small { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-cat-kopf:hover b { color: rgb(var(--kf)); }
.gd-cat-liste { list-style: none; margin: 0 6px; padding: 6px 0; border-top: 1px solid var(--line); flex: 1; }
.gd-cat-liste a { display: block; padding: 8px 8px; border-radius: 8px; color: var(--text); font-size: 0.92rem; line-height: 1.4; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.gd-cat-liste a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-bright); }
.gd-cat-alle { display: inline-flex; align-items: center; gap: 7px; margin: 2px 6px 6px; padding: 8px 8px; border-radius: 8px; color: rgb(var(--kf)); font-size: 0.9rem; font-weight: 600; text-decoration: none; align-self: flex-start; }
.gd-cat-alle:hover .gd-pfeil { transform: translateX(3px); }

/* Spiele mit Bild */
.gd-spiele { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gd-spiel { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gd-spiel-bild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elevated); }
.gd-spiel-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gd-spiel-text { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.gd-spiel-text b { color: var(--text-bright); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.gd-spiel-text em { flex: none; font-style: normal; color: var(--text-muted); font-size: 0.84rem; }
.gd-spiel:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.gd-spiel:hover img { transform: scale(1.045); }
.gd-spiel:hover b { color: var(--primary); }

/* Suchergebnisse */
.gd-sek-treffer { padding-bottom: 0; }
.gd-treffer-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gd-treffer-kopf h2 { margin: 0; font-size: 1.35rem; color: var(--text-bright); letter-spacing: -0.02em; }
.gd-treffer-kopf a { color: var(--text-muted); font-size: 0.92rem; }
.gd-treffer { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--line); }
.gd-treffer a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 11px; color: var(--text); text-decoration: none; transition: background-color 0.15s; }
.gd-treffer li + li a { box-shadow: 0 -1px 0 var(--line); }
.gd-treffer a:hover { background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.gd-treffer a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-treffer b { color: var(--text-bright); font-weight: 600; }
.gd-treffer small { color: var(--text-muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-treffer .gd-pfeil { color: var(--text-muted); }
.gd-treffer a:hover .gd-pfeil { color: var(--primary); transform: translateX(3px); }
.gd-leer { margin: 0; padding: 22px; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); color: var(--text-muted); }

/* Hilfe (Kowalski + Ticket) */
.gd-hilfe { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--line); }
.gd-hilfe img { width: 64px; height: 64px; flex: none; }
.gd-hilfe > div { flex: 1; min-width: 0; }
.gd-hilfe b { display: block; margin-bottom: 4px; color: var(--text-bright); font-size: 1.1rem; letter-spacing: -0.01em; }
.gd-hilfe p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; }
.gd-hilfe-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-hilfe-band { padding: 0 0 clamp(56px, 8vw, 96px); }
.gd-hilfe-band .container { max-width: var(--content); }

/* ---------- Kategorie-Seite ---------- */
.gd-hero-bild { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-elevated); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.gd-hero-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-kat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gd-artikel { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gd-artikel li { border-bottom: 1px solid var(--line); }
.gd-artikel a { display: flex; align-items: center; gap: 20px; padding: 22px 14px 22px 10px; margin: 0 -10px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background-color 0.15s; }
.gd-artikel a:hover { background: rgba(255, 255, 255, 0.03); }
.gd-artikel i { flex: none; width: 34px; font-style: normal; font-size: 0.95rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; transition: color 0.15s; }
.gd-artikel a:hover i { color: rgb(var(--kf)); }
.gd-artikel span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gd-artikel b { color: var(--text-bright); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; }
.gd-artikel small { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.gd-artikel em { flex: none; font-style: normal; color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.gd-artikel .gd-pfeil { color: var(--text-muted); }
.gd-artikel a:hover .gd-pfeil { color: rgb(var(--kf)); transform: translateX(4px); }
.gd-kat-seite { display: flex; flex-direction: column; gap: 26px; }
.gd-kat-seite h2 { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--text-bright); }
.gd-kat-seite .gd-hilfe { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
.gd-kat-seite .gd-hilfe img { width: 48px; height: 48px; }
.gd-kat-seite .gd-hilfe p { font-size: 0.9rem; }
.gd-seitenkats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-seitenkats a { display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 10px; color: var(--text); font-size: 0.92rem; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.gd-seitenkats a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-bright); }
.gd-seitenkats .gd-marke { width: 28px; height: 28px; border-radius: 8px; }
.gd-seitenkats .gd-marke svg { width: 15px; height: 15px; }

/* ---------- Artikel ---------- */
.gd-fortschritt { position: fixed; z-index: 999; left: 0; right: 0; top: 70px; height: 2px; pointer-events: none; }
.gd-fortschritt i { display: block; height: 100%; width: 100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }
.gd-hero-artikel { padding-bottom: clamp(30px, 4vw, 44px); }
.gd-artikel-kopf { max-width: var(--content); }
.gd-artikel-kopf h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 3rem); }

.gd-lese-grid { max-width: 1320px; display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: clamp(28px, 3.4vw, 56px); align-items: start; padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); }

/* Kapitel (links) */
.gd-kapitel { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.gd-kapitel-kat { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.gd-kapitel-kat > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.gd-kapitel-kat b { color: var(--text-bright); font-size: 0.95rem; line-height: 1.3; }
.gd-kapitel-kat small { color: var(--text-muted); font-size: 0.8rem; }
.gd-kapitel-kat .gd-marke { width: 36px; height: 36px; border-radius: 10px; }
.gd-kapitel-kat:hover b { color: rgb(var(--kf)); }
.gd-kapitel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.gd-kapitel ol a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.gd-kapitel ol a i { flex: none; width: 16px; font-style: normal; font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.7; padding-top: 1px; }
.gd-kapitel ol a:hover { color: var(--text-bright); background: rgba(255, 255, 255, 0.035); }
.gd-kapitel ol a[aria-current="page"] { color: var(--text-bright); background: rgba(var(--kf), 0.1); font-weight: 600; }
.gd-kapitel ol a[aria-current="page"] i { color: rgb(var(--kf)); opacity: 1; }

/* Inhaltsverzeichnis (rechts) */
.gd-toc { position: sticky; top: 96px; font-size: 0.88rem; }
.gd-toc > b { display: block; margin: 0 0 12px; color: var(--text-bright); font-size: 0.88rem; font-weight: 700; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.gd-toc li { margin: 0; }
.gd-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--text-muted); line-height: 1.4; text-decoration: none; transition: color 0.15s, border-color 0.2s; }
.gd-toc a:hover { color: var(--text-bright); }
.gd-toc a.an { color: var(--text-bright); border-left-color: var(--primary); }
.gd-nachoben { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.gd-nachoben:hover { color: var(--text-bright); }
.gd-nachoben svg { width: 14px; height: 14px; }
.gd-toc-mobil { display: none; }

/* Der Text */
.gd-text { min-width: 0; max-width: 740px; }
.gd-inhalt { font-size: var(--lese); line-height: 1.75; color: var(--text); }
.gd-inhalt > :first-child { margin-top: 0; }
.gd-inhalt p { margin: 0 0 1.15em; }
.gd-inhalt strong { color: var(--text-bright); font-weight: 650; }
.gd-inhalt a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.15s; }
.gd-inhalt a:hover { text-decoration-color: var(--primary); }
.gd-inhalt h2 { position: relative; margin: 2.3em 0 0.75em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.022em; line-height: 1.25; color: var(--text-bright); scroll-margin-top: 96px; }
.gd-inhalt > h2:first-child { padding-top: 0; border-top: 0; }
.gd-inhalt h3, .gd-inhalt h4 { margin: 1.8em 0 0.5em; font-size: 1.15rem; color: var(--text-bright); scroll-margin-top: 96px; }
.gd-anker { position: absolute; left: -30px; bottom: 0.05em; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; padding: 0; background: transparent; color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s, background-color 0.15s; }
.gd-anker svg { width: 15px; height: 15px; }
.gd-inhalt h2:hover .gd-anker, .gd-anker:focus-visible { opacity: 1; }
.gd-anker:hover { color: var(--primary); background: rgba(255, 255, 255, 0.05); }
.gd-anker.ok { color: var(--primary); opacity: 1; }

.gd-inhalt ul { list-style: none; margin: 0 0 1.25em; padding: 0; }
.gd-inhalt ul > li { position: relative; margin: 0.45em 0; padding-left: 1.45em; }
.gd-inhalt ul > li::before { content: ''; position: absolute; left: 0.3em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--kf), 0.85); }
.gd-inhalt li ul { margin: 0.35em 0 0.2em; }
.gd-inhalt li ul > li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-muted); }
.gd-inhalt ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.gd-inhalt ol > li { margin: 0.45em 0; padding-left: 0.3em; }
.gd-inhalt ol > li::marker { color: var(--text-muted); font-weight: 600; }

/* Schritte (nummerierte Listen in Guides) */
.gd-inhalt ol.gd-steps { list-style: none; padding: 0; counter-reset: gdschritt; margin: 0.4em 0 1.5em; }
.gd-inhalt ol.gd-steps > li { position: relative; counter-increment: gdschritt; margin: 0; padding: 0 0 1.05em 46px; min-height: 30px; }
.gd-inhalt ol.gd-steps > li::before { content: counter(gdschritt); position: absolute; left: 0; top: 0.05em; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-bright); font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.gd-inhalt ol.gd-steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: calc(0.05em + 34px); bottom: 4px; width: 1px; background: var(--line-strong); }
.gd-inhalt ol.gd-steps > li:last-child { padding-bottom: 0.2em; }

.gd-inhalt code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; padding: 0.12em 0.42em; border-radius: 6px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-bright); overflow-wrap: anywhere; }
.gd-inhalt hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.gd-inhalt img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.gd-inhalt blockquote { margin: 0 0 1.4em; padding: 2px 0 2px 18px; border-left: 2px solid var(--line-strong); color: var(--text-muted); }
.gd-inhalt blockquote p:last-child { margin-bottom: 0; }

/* Code-Bloecke mit Kopfzeile */
.gd-code { margin: 0.4em 0 1.6em; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-darker); overflow: hidden; }
.gd-code-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.gd-code-kopf span { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.gd-kopieren { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s, transform 0.12s; }
.gd-kopieren svg { width: 14px; height: 14px; }
.gd-kopieren:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-bright); }
.gd-kopieren:active { transform: scale(0.96); }
.gd-kopieren.ok { color: var(--primary); }
.gd-code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.7; color: var(--text); tab-size: 2; scrollbar-width: thin; }
.gd-code pre code { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: inherit; color: inherit; overflow-wrap: normal; }
.gd-code .k { color: var(--text-bright); }
.gd-code .v { color: #7fd8d4; }
.gd-code .s { color: var(--warning); }
.gd-code .c { color: var(--text-muted); font-style: italic; }
.gd-code[data-art="console"] code { color: var(--text-bright); }

/* Hinweisboxen */
.gd-call { position: relative; margin: 0.2em 0 1.5em; padding: 16px 18px 16px 52px; border-radius: 14px; background: rgba(var(--c), 0.07); border: 1px solid rgba(var(--c), 0.22); --c: 9, 227, 220; }
.gd-call::before { content: ''; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; background: rgb(var(--c)); -webkit-mask: var(--sym) center / contain no-repeat; mask: var(--sym) center / contain no-repeat; }
.gd-call p { margin: 0 0 0.6em; }
.gd-call p:last-child { margin-bottom: 0; }
.gd-call strong:first-child { color: rgb(var(--c)); }
.gd-call-tip { --c: 9, 227, 220; --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.gd-call-note { --c: 122, 162, 255; --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.gd-call-warn { --c: 230, 181, 102; --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }

/* Tabellen */
.gd-inhalt .gd-table { margin: 0.4em 0 1.6em; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-card); scrollbar-width: thin; }
.gd-inhalt .gd-table table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.93rem; line-height: 1.55; }
.gd-inhalt .gd-table th, .gd-inhalt .gd-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.gd-inhalt .gd-table th { background: rgba(255, 255, 255, 0.03); color: var(--text-bright); font-weight: 650; font-size: 0.86rem; white-space: nowrap; }
.gd-inhalt .gd-table td:first-child { color: var(--text-bright); font-weight: 550; }
.gd-inhalt .gd-table tr:last-child td { border-bottom: 0; }
.gd-inhalt .gd-table tbody tr { transition: background-color 0.12s; }
.gd-inhalt .gd-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Blaettern + Hilfe unter dem Text */
.gd-blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: clamp(40px, 6vw, 64px) 0 18px; }
.gd-blatt { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 15px; border: 1px solid var(--line); background: var(--bg-card); color: var(--text); text-decoration: none; transition: border-color 0.18s, transform 0.18s, background-color 0.18s; }
.gd-blatt small { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.gd-blatt b { color: var(--text-bright); font-size: 1.02rem; font-weight: 650; line-height: 1.4; letter-spacing: -0.01em; }
.gd-blatt.weiter { text-align: right; align-items: flex-end; }
.gd-blatt:hover { border-color: rgba(var(--kf), 0.5); background: var(--bg-elevated); }
.gd-blatt.weiter:hover .gd-pfeil { transform: translateX(3px); }
.gd-blatt.zurueck:hover .gd-pfeil { transform: translateX(-3px); }
.gd-blatt.leer { border: 0; background: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
    .gd-spiel, .gd-spiel img, .gd-cat, .gd-pfeil, .gd-blatt, .gd-vorschlaege { transition: none; animation: none; }
    .gd-spiel:hover, .gd-spiel:hover img { transform: none; }
}

/* ---------- Schmaler ---------- */
@media (max-width: 1180px) {
    .gd-lese-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .gd-toc { display: none; }
    .gd-toc-mobil { display: block; }
    .gd-spiele { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Inhaltsverzeichnis zum Aufklappen (schmale Fenster) */
.gd-toc-mobil { margin: 0 0 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-card); }
.gd-toc-mobil summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; list-style: none; cursor: pointer; color: var(--text-bright); font-weight: 650; font-size: 0.95rem; -webkit-tap-highlight-color: transparent; }
.gd-toc-mobil summary::-webkit-details-marker { display: none; }
.gd-toc-mobil summary span { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--bg-elevated); color: var(--text-muted); font-size: 0.78rem; }
.gd-toc-mobil summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.gd-toc-mobil[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.gd-toc-mobil ol { list-style: none; margin: 0; padding: 4px 8px 10px; border-top: 1px solid var(--line); counter-reset: gdtoc; }
.gd-toc-mobil li { counter-increment: gdtoc; }
.gd-toc-mobil a { display: flex; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: 0.93rem; text-decoration: none; }
.gd-toc-mobil a::before { content: counter(gdtoc); width: 16px; flex: none; color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.gd-toc-mobil a:hover { background: rgba(255, 255, 255, 0.04); }
@media (min-width: 1181px) { .gd-toc-mobil { display: none; } }
@media (max-width: 1000px) {
    .gd-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .gd-beliebt { max-width: 580px; }
    .gd-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gd-cats > .gd-cat, .gd-gruppe-basis .gd-cat:nth-child(n+4), .gd-gruppe-praxis .gd-cat:nth-child(n) { grid-column: auto; }
    .gd-cats > .gd-cat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .gd-kat-grid { grid-template-columns: minmax(0, 1fr); }
    .gd-kat-seite { position: static; }
    .gd-hero-bild { max-width: 580px; aspect-ratio: 16 / 8; }
}
@media (max-width: 900px) {
    .gd-lese-grid { grid-template-columns: minmax(0, 1fr); }
    .gd-kapitel { position: static; max-height: none; order: 3; margin-top: 8px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-card); }
    .gd-text { max-width: none; }
    .gd-anker { display: none; }
}
@media (max-width: 760px) {
    .gd-spiele { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gd-spiel-text { flex-direction: column; gap: 2px; padding: 11px 13px 13px; }
    .gd-spiel-text b { font-size: 0.93rem; }
}
@media (max-width: 640px) {
    .gd-hero { padding: 34px 0 32px; }
    .gd-hero .container, .gd-sek .container, .gd-lese-grid, .gd-hilfe-band .container { padding-left: 18px; padding-right: 18px; }
    .gd-crumbs { margin-bottom: 16px; font-size: 0.86rem; }
    .gd-lead { font-size: 1.02rem; }
    .gd-suche { height: 54px; padding-left: 15px; margin-top: 24px; }
    .gd-suche kbd { display: none; }
    .gd-suche-los { padding: 0 14px; height: 40px; }
    .gd-cats { grid-template-columns: minmax(0, 1fr); }
    .gd-cats > .gd-cat:last-child:nth-child(odd) { grid-column: auto; }
    .gd-gruppe-kopf { flex-direction: column; }
    .gd-artikel a { gap: 14px; padding: 18px 8px 18px 8px; margin: 0 -8px; }
    .gd-artikel i { width: 24px; font-size: 0.85rem; }
    .gd-artikel em, .gd-artikel .gd-pfeil { display: none; }
    .gd-artikel b { font-size: 1.03rem; }
    .gd-artikel small { font-size: 0.9rem; }
    .gd-inhalt { --lese: 1.02rem; }
    .gd-inhalt h2 { font-size: 1.35rem; }
    .gd-code { margin-left: -4px; margin-right: -4px; border-radius: 12px; }
    .gd-code pre { font-size: 0.82rem; padding: 14px; }
    .gd-call { padding: 14px 14px 14px 46px; }
    .gd-call::before { left: 15px; top: 16px; }
    .gd-blaettern { grid-template-columns: minmax(0, 1fr); }
    .gd-blatt.leer { display: none; }
    .gd-blatt.weiter { order: -1; }
    .gd-hilfe { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
    .gd-hilfe img { width: 52px; height: 52px; }
    .gd-hilfe-knoepfe { width: 100%; }
    .gd-hilfe-knoepfe a { flex: 1 1 auto; justify-content: center; }
}
