/* eeziframes · Ratgeber, Seite für Fensterbauer und die Textfassung von Startseite und App.
   Lesbar ohne JavaScript, für Menschen, Suchmaschinen und KI-Assistenten (docs/SEO.md). Tokens aus gemeinsam.css.
   Schriftrollen: 40 Titel (32 am Telefon) · 24 Zwischentitel · 17 Text · 15 Nebentext · 13 Label. */
body.rg-seite { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased }
.rg-kopf { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line) }
.rg-kopf > div { max-width: 820px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.rg-marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 17px; letter-spacing: -.02em }
.rg-marke svg { width: 30px; height: 30px; flex: 0 0 auto }
.rg-nav { display: flex; align-items: center; gap: 4px }
.rg-nav .leise { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 700; border-radius: var(--r2) }
.rg-nav .btn { white-space: nowrap }
@media (hover: hover) { .rg-nav .leise:hover { background: var(--surface2) } }
@media (max-width: 640px) { .rg-nav .leise { display: none } }

.rg { max-width: 820px; margin: 0 auto; padding: 16px 16px 56px }
.rg-pfad { margin: 6px 0 14px; font-size: 13px; color: var(--muted) }
.rg-pfad a { color: var(--muted) }
.rg h1 { margin: 6px 0 14px; font-size: 40px; line-height: 1.08; font-weight: 900; letter-spacing: -.03em; text-wrap: balance }
.rg h2 { margin: 40px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; text-wrap: balance }
.rg h3 { margin: 22px 0 6px; font-size: 17px; line-height: 1.35; font-weight: 800 }
.rg p, .rg li, .rg td, .rg dd { color: var(--ink2) }
.rg p { margin: 0 0 12px }
.rg ul, .rg ol { margin: 0 0 14px; padding-left: 22px }
.rg li { margin-bottom: 6px }
.rg strong, .rg b { color: var(--ink) }
.rg a { color: var(--accent); text-underline-offset: 2px }
.rg sub, .rg sup { font-size: 13px; line-height: 0 }
.rg .eyebrow { margin-top: 8px }
.rg-klein { font-size: 15px; color: var(--muted) }

/* Die Antwort zuerst */
.rg-kurz { margin: 16px 0 18px; padding: 16px 18px; background: var(--surface); border-radius: var(--r3); box-shadow: var(--ring) }
.rg-kurz p { margin: 0 }
.rg-kurz p + p { margin-top: 8px }
.rg-kurz .eyebrow { margin: 0 0 6px }

.rg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px }
.rg-cta .btn { text-decoration: none; color: var(--ink) }
.rg-cta .btn.primary { color: var(--on-primary) }

/* Schritte */
.rg .rg-schritte { list-style: none; counter-reset: schritt; padding: 0 }
.rg-schritte li { counter-increment: schritt; position: relative; margin: 0 0 16px; padding-left: 46px }
.rg-schritte li::before { content: counter(schritt); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: 15px; font-weight: 900; display: flex; align-items: center; justify-content: center }
.rg-schritte b { display: block; color: var(--ink) }

/* Tabellen: umbrechen statt querscrollen */
.rg-tab { width: 100%; margin: 6px 0 16px; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r2); box-shadow: var(--ring); font-size: 15px; overflow: hidden }
.rg-tab th, .rg-tab td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
.rg-tab tr:last-child td { border-bottom: 0 }
.rg-tab th { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.rg-tab td:first-child { color: var(--ink); font-weight: 700 }
/* Begriffe in der ersten Spalte nicht mitten im Wort trennen (anywhere machte die Spalte am Schreibtisch zu schmal) */
.rg-tab td:first-child { overflow-wrap: break-word; hyphens: auto }
/* Telefon: Tabellen als Karten untereinander (Spaltentitel aus data-k) */
@media (max-width: 600px) {
  .rg-tab, .rg-tab tbody, .rg-tab tr, .rg-tab td { display: block }
  .rg-tab thead { display: none }
  .rg-tab tr { padding: 12px 14px; border-bottom: 1px solid var(--line) }
  .rg-tab tr:last-child { border-bottom: 0 }
  .rg-tab td { padding: 0; border: 0 }
  .rg-tab td + td { margin-top: 4px }
  .rg-tab td[data-k]::before { content: attr(data-k); display: block; margin-top: 4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
}

/* Abbildungen: Zeichnung als Datei aus /bilder/ (darf in die Bildersuche), auf weißer Karte, auch im dunklen Modus */
.rg-bild { margin: 8px 0 18px }
.rg-bild img { display: block; width: 100%; max-width: 560px; height: auto; border-radius: var(--r3); box-shadow: var(--ring) }
.rg-bild figcaption { margin-top: 8px; font-size: 15px; color: var(--muted) }

/* Fragen */
.rg-frage { margin: 0 0 10px; background: var(--surface); border-radius: var(--r2); box-shadow: var(--ring) }
.rg-frage summary { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; list-style: none; cursor: pointer; font-weight: 800; color: var(--ink) }
.rg-frage summary::-webkit-details-marker { display: none }
.rg-frage summary::after { content: '+'; margin-left: auto; padding-left: 12px; font-size: 24px; line-height: 1; color: var(--muted) }
.rg-frage[open] summary::after { content: '–' }
.rg-frage > div { padding: 0 16px 14px }
.rg-frage > div p:last-child { margin-bottom: 0 }

/* Karten zu weiteren Seiten */
.rg-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 10px 0 18px }
.rg-karte { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 16px 18px; background: var(--surface); border-radius: var(--r3); box-shadow: var(--ring); color: var(--ink); text-decoration: none }
.rg .rg-karte { color: var(--ink) }
.rg-karte b { font-size: 17px }
.rg-karte span { font-size: 15px; color: var(--ink2) }
@media (hover: hover) { .rg-karte:hover { box-shadow: var(--lift) } }

.rg-quellen { font-size: 15px }
.rg-quellen li { margin-bottom: 6px; overflow-wrap: anywhere }
.rg-stand { margin-top: 28px; font-size: 13px; color: var(--muted) }

.rg-fuss { border-top: 1px solid var(--line) }
.rg-fuss > div { max-width: 820px; margin: 0 auto; padding: 14px 16px 36px; display: flex; flex-wrap: wrap; gap: 0 16px }
.rg-fuss a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ink2); font-size: 15px; text-decoration: none }
@media (hover: hover) { .rg-fuss a:hover { color: var(--ink) } }
/* „Vertrag widerrufen“ hervorgehoben (Widerrufsfunktion, § 356a BGB): Knopf mit Rand statt einfachem Textlink */
.rg-fuss a.rg-widerruf { padding: 0 16px; border-radius: 999px; color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink) }

@media (max-width: 600px) {
  .rg h1 { font-size: 32px }
  .rg h2 { margin-top: 32px }
}
/* Drucken: nur der Text der Seite */
@media print {
  .rg-kopf, .rg-fuss, .rg-cta, .rg-pfad { display: none }
  body.rg-seite { background: #fff; color: #000 }
  .rg-tab, .rg-kurz, .rg-frage { box-shadow: 0 0 0 1px #999 }
}

/* Textfassung von Startseite und App (ohne JavaScript): eigener Bereich über die ganze Breite der App-Hülle */
.app > .vorab { grid-column: 1 / -1; height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.6 }
