/* Ratgeber-Artikel im Nachtgrün-Look (Neubau 15.11.2026, Website-Rolle). Ersetzt die Entwürfe A, B, C auf style.css.
   Baut auf ng.css, ng-seiten.css und ng-text.css auf, nur deren Variablen. Quelle: entwurf_ratgeber/rg/ratgeber.css,
   bau_b2b.py kopiert die Datei nach neubau/rg/. Farben nach der Übersetzungstabelle in Branding/ci-brand/tokens.css:
   Light-Set Blau/Cyan -> Jade (--forest), Dunkelgrund -> Nachtgrün, Verlauf entfällt.
   Kopf und Schluss dunkel (Headline Weiß, Text Salbei, ein Schlüsselwort Mint). Lesefläche hell und ruhig wie .prose:
   Text Nachtgrün und Grau, Links und Akzente Jade, Mint dort nie. */

/* Kopf: Brotkrumen, Kennzeile, H1, Kurzantwort, Angaben, Figur */
.hero.rg-hero h1{font-size:clamp(30px,6.4vw,46px);line-height:1.08;max-width:24ch;hyphens:manual;-webkit-hyphens:manual}
.rg-hero .htext{min-width:0}
.rg-nw{white-space:nowrap}
.rg-kurz{margin-top:24px;padding:20px 22px;border-radius:20px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px var(--nline);max-width:64ch}
.rg-kurz-label{display:block;margin-bottom:6px;color:var(--mint);font-size:12.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.rg-kurz p{color:var(--on);font-size:17px;line-height:1.6}
.rg-meta{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:20px;color:var(--on-2);font-size:13.5px;line-height:1.5}
.rg-meta span{display:inline-flex;align-items:center;gap:8px}
.rg-punkt{width:4px;height:4px;border-radius:50%;background:var(--mint);opacity:.7}
.rg-meta .rg-autor-link{color:#fff;text-decoration:underline;text-decoration-color:rgba(125,245,198,.5);text-underline-offset:3px}
.rg-meta .rg-autor-link:hover{text-decoration-color:var(--mint)}
.rg-hero .hero-fig{width:120px;margin-top:22px}
@media (min-width:1024px){
  .hero.rg-hero .wrap{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:48px}
  .rg-hero .hero-fig{width:100%;max-width:240px;margin:0 auto}
}

/* Lesefläche hell */
.rg-flaeche{background:var(--paper);color:var(--ink);padding-block:48px 72px}
.rg-flaeche :focus-visible{outline-color:var(--forest)}
.rg-raster{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}
.rg-text{min-width:0;width:100%;max-width:720px;margin-inline:auto;font-size:17px;line-height:1.75;color:var(--ink-2)}
.rg-text>section{margin-top:48px;scroll-margin-top:96px}
.rg-text h2{margin:0 0 14px;font-size:clamp(24px,4vw,30px);font-weight:800;line-height:1.2;color:var(--ink);hyphens:auto;-webkit-hyphens:auto}
.rg-text p{margin:0 0 16px}
.rg-text a{color:var(--forest);font-weight:600;text-decoration-color:rgba(31,122,94,.4);text-underline-offset:3px}
.rg-text a:hover{text-decoration-color:var(--forest)}
.rg-text b,.rg-text strong{color:var(--ink)}
.rg-text .rg-hoch{font-size:.68em;font-weight:700;line-height:0;vertical-align:super;margin-left:2px;text-decoration:none}

/* Das Wichtigste */
.rg-fakten{padding:22px 24px;border-radius:20px;background:var(--paper-2);box-shadow:inset 3px 0 0 var(--forest)}
.rg-fakten-titel{margin:0 0 12px!important;color:var(--forest);font-size:12.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.rg-fakten ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.rg-fakten li{display:grid;gap:2px;font-size:16px;line-height:1.55}

/* Schrittfolge: Zahl in Jade, keine Outline (die gehört den Abläufen der Verkaufsseiten) */
.rg-schritte{counter-reset:s;list-style:none;margin:20px 0 24px;padding:0;display:grid;gap:12px}
.rg-schritte li{counter-increment:s;position:relative;display:grid;gap:4px;padding:18px 20px 18px 64px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.rg-schritte li::before{content:counter(s);position:absolute;left:18px;top:17px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--forest);color:#fff;font-size:15px;font-weight:800;line-height:1}
.rg-schritte b{font-size:17px;line-height:1.4}
.rg-schritte span{font-size:16px;line-height:1.65}

/* Aufzählung */
.rg-text ul.rg-liste{margin:0 0 20px;padding-left:22px;display:grid;gap:8px}
.rg-text ul.rg-liste li{line-height:1.65;padding-left:2px}
.rg-text ul.rg-liste li::marker{color:var(--forest)}

/* Tabelle: scrollt nur in ihrem Rahmen, nie die Seite */
.rg-tabelle-wrap{overflow-x:auto;margin:20px 0 24px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line)}
.rg-tabelle{width:100%;min-width:560px;border-collapse:collapse;font-size:15px;line-height:1.5}
.rg-tabelle th,.rg-tabelle td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.rg-tabelle thead th{background:var(--paper-2);color:var(--ink-2);font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.rg-tabelle thead th:first-child{border-top-left-radius:16px}
.rg-tabelle thead th:last-child{border-top-right-radius:16px}
.rg-tabelle tbody th{color:var(--ink);font-weight:700}
.rg-tabelle td{color:var(--ink-2)}
.rg-tabelle tbody tr:last-child>*{border-bottom:0}

/* Häufige Fragen */
.rg-fragen{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.rg-frage{border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .2s}
.rg-frage[open]{box-shadow:inset 0 0 0 1.5px var(--forest)}
.rg-frage summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;color:var(--ink);font-size:16.5px;font-weight:700;line-height:1.4;border-radius:18px}
.rg-frage summary::-webkit-details-marker{display:none}
.rg-frage summary::after{content:"";flex:none;width:30px;height:30px;border-radius:50%;background:var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A5E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;transition:transform .2s}
.rg-frage[open] summary::after{transform:rotate(45deg)}
.rg-frage p{margin:0;padding:0 20px 18px;font-size:16px;line-height:1.7}

/* Quellen */
.rg-quellen{margin:0;padding-left:22px;font-size:14.5px;line-height:1.6}
.rg-quellen li{margin-bottom:8px;scroll-margin-top:96px}
.rg-quellen li:target{outline:2px solid var(--forest);outline-offset:4px;border-radius:4px}
.rg-quellen,.rg-quellen a{overflow-wrap:anywhere}
.rg-text .rg-quellen a{font-weight:500}

/* Autor */
.rg-autor{display:flex;gap:18px;align-items:center;margin-top:56px;padding:20px 22px;border-radius:20px;background:var(--paper-2)}
.rg-autor img{flex:none;width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:center 20%}
.rg-autor p{margin:0;font-size:15px;line-height:1.5}
.rg-autor .rg-autor-name{font-size:17px;font-weight:800;color:var(--ink)}
.rg-text .rg-autor-name a{color:var(--ink);font-weight:800}

/* Weiterlesen */
.rg-weiter{margin-top:48px}
.rg-text .rg-weiter h2{font-size:22px}
.rg-weiter-raster{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
.rg-text a.rg-weiter-karte{display:grid;gap:6px;padding:18px 20px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);text-decoration:none;transition:box-shadow .2s,transform .2s}
.rg-text a.rg-weiter-karte:hover{box-shadow:inset 0 0 0 1.5px var(--forest);transform:translateY(-2px)}
.rg-weiter-art{color:var(--forest);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.rg-weiter-karte strong{font-size:16px;line-height:1.4}

/* Inhaltsverzeichnis: Handy aufklappbar, ab 1100 px mitlaufend links */
.rg-toc{display:none}
.rg-toc-titel{margin:0 0 12px;color:var(--ink-2);font-size:12.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.rg-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rg-toc a{display:block;padding:7px 12px;border-left:2px solid var(--line);color:var(--ink-2);font-size:14px;line-height:1.4;text-decoration:none}
.rg-toc a:hover{color:var(--ink)}
.rg-toc a.is-aktiv{border-left-color:var(--forest);color:var(--forest);font-weight:700}
.rg-toc-mobil{margin-bottom:24px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.rg-toc-mobil summary{cursor:pointer;padding:14px 18px;color:var(--ink);font-weight:700;border-radius:18px}
.rg-toc-mobil ol{margin:0;padding:0 18px 14px 40px;font-size:15px;line-height:1.8}
@media (min-width:1100px){
  .rg-raster{grid-template-columns:230px minmax(0,720px);justify-content:center;gap:64px}
  .rg-text{margin-inline:0}
  .rg-toc{display:block;position:sticky;top:100px;align-self:start;max-height:calc(100vh - 120px);overflow:auto}
  .rg-toc-mobil{display:none}
}

/* Schluss: ein Schlüsselwort in Mint, auch wenn es im ersten Satz steht */
.final h2 .hl{color:var(--mint)}
.final h2{max-width:22ch;margin-inline:auto;font-size:clamp(30px,6.6vw,52px)}

/* Entwurfsband (nur bau_b2b.py --entwurf) */
.rg-entwurf{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between;padding:9px 16px;background:var(--mint);color:var(--night);font-size:12.5px;line-height:1.5}
.rg-entwurf a{color:var(--night)}

@media (prefers-reduced-motion:reduce){.rg-text a.rg-weiter-karte:hover{transform:none}}
@media print{.rg-toc,.rg-toc-mobil{display:none!important}}
