/* ===================================================================
   QORA · Ratgeber IPTV-Box (/iptv-box/)
   Nur auf Seiten vom Typ "ratgeber" geladen. Tokens aus qora.css, keine
   freien Farben ausser --warnung (Abraten). Bewegung nur Farbe/Rahmen, 150 ms.
   ========================================================================== */
:root { --warnung: #E0705E; --bild-grund: #F2F2F2; }

/* ---- Erfahrungsbox ------------------------------------------------------ */
.inhalt-text .erfahrung {
  margin: 1.8em 0; padding: 22px 24px; border-radius: 16px;
  background: var(--panel); border-left: 3px solid var(--akzent);
}
.inhalt-text .erfahrung p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.inhalt-text .erfahrung footer { margin-top: 12px; font-size: 14px; color: var(--text-dim); }

/* ---- Werbehinweis ------------------------------------------------------- */
.inhalt-text .werbehinweis {
  display: flex; gap: 12px; align-items: flex-start; margin: 1.6em 0;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
}
.inhalt-text .werbehinweis svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--text-dim); }
.inhalt-text .werbehinweis p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }

/* ---- Ruckelfrei-Kette --------------------------------------------------- */
.inhalt-text .kette { margin: 2em 0; }
.inhalt-text .kette__titel {
  margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent);
}
.inhalt-text .kette__titel span { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.inhalt-text .kette ol {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  margin: 0; counter-reset: none;
}
.inhalt-text .kette ol > li { padding: 0; border: 0; position: relative; counter-increment: none; }
.inhalt-text .kette ol > li::before { content: none; }
/* Verbindungslinie zwischen den Gliedern */
.inhalt-text .kette ol > li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--panel-2);
}
.inhalt-text .kette a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 2px;
  text-align: center; text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 600; line-height: 1.3; hyphens: auto;
  transition: color 150ms ease-out;
}
.inhalt-text .kette__nr {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--panel-2); color: var(--akzent); font-size: 15px; font-weight: 700;
  transition: border-color 150ms ease-out;
}
.inhalt-text .kette a:hover { color: var(--text); }
.inhalt-text .kette a:hover .kette__nr { border-color: var(--akzent); }
.inhalt-text .kette li:last-child .kette__nr { background: var(--akzent); border-color: var(--akzent); color: var(--bg); }

/* ---- Geraetekarten ------------------------------------------------------ */
.inhalt-text .geraete-raster { display: flex; flex-direction: column; gap: 14px; margin: 1.4em 0 1.6em; }
.geraet-karte {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  scroll-margin-top: 100px;
}
/* Hervorhebung ohne Goldrahmen (design.md: Akzent nie als duenner Rahmen), goldener Strich oben */
.geraet-karte--geprueft { box-shadow: inset 0 3px 0 var(--akzent); }
.geraet-karte:target { outline: 2px solid var(--akzent); outline-offset: 2px; }
.geraet-karte__bild {
  display: grid; place-items: center; background: var(--panel-2); color: var(--text-dim); padding: 18px;
}
.geraet-karte__bild svg { width: 64px; height: 64px; }
.geraet-karte__bild.hat-foto { background: var(--bild-grund); padding: 12px; }
.geraet-karte__bild img { width: 100%; height: auto; object-fit: contain; }
/* Namensnennung bei frei lizenzierten Fotos: klein, dezent, auf dem hellen Bildgrund lesbar. */
.inhalt-text .geraet-karte__quelle { margin: 6px 0 0; justify-self: end; font-size: 11px; line-height: 1.3; color: #5c5c5c; }
.inhalt-text .geraet-karte__quelle a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.geraet-karte__rumpf { padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.inhalt-text .geraet-karte__name { margin: 10px 0 2px; font-size: 19px; line-height: 1.3; }
.inhalt-text .geraet-karte__typ { margin: 0; font-size: 14px; color: var(--text-dim); }
.inhalt-text .geraet-karte__fazit { margin: 12px 0 0; font-size: 15.5px; line-height: 1.55; }

.siegel {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  border: 1px solid var(--panel-2); color: var(--text-muted);
}
.siegel--geprueft { background: var(--akzent); border-color: var(--akzent); color: var(--bg); }
.siegel--erfahrung { border-color: rgba(232, 163, 61, 0.55); color: var(--akzent); }

.inhalt-text .geraet-karte__fakten {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 16px;
  width: 100%; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border);
}
.geraet-karte__fakten dt { font-size: 12px; color: var(--text-dim); line-height: 1.3; }
.geraet-karte__fakten dd { margin: 2px 0 0; font-size: 14px; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }

.geraet-karte__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.inhalt-text .knopf-haendler {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--akzent); color: var(--akzent); background: transparent;
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.inhalt-text .knopf-haendler:hover { background: var(--akzent); color: var(--bg); }
.inhalt-text .geraet-karte--geprueft .knopf-haendler:first-child { background: var(--akzent); color: var(--bg); }
.inhalt-text .geraet-karte--geprueft .knopf-haendler:first-child:hover { background: var(--akzent-hover); border-color: var(--akzent-hover); }
.inhalt-text .knopf-haendler.ist-platzhalter { border-style: dashed; opacity: 0.6; cursor: not-allowed; }

/* ---- Nicht empfohlen ---------------------------------------------------- */
.inhalt-text .abraten-liste {
  margin: 1.2em 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.inhalt-text .abraten-liste > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start;
  margin: 0; padding: 18px 20px 18px 52px; border-top: 1px solid var(--border); scroll-margin-top: 100px;
}
.inhalt-text .abraten-liste > li:first-child { border-top: 0; }
.inhalt-text .abraten-liste > li::before {
  /* durchgestrichener Kreis statt Aufzaehlungspunkt */
  content: ""; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  background: none; border: 2px solid var(--warnung);
  background-image: linear-gradient(45deg, transparent calc(50% - 1px), var(--warnung) calc(50% - 1px), var(--warnung) calc(50% + 1px), transparent calc(50% + 1px));
}
.inhalt-text .abraten__name { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.inhalt-text .abraten__text p { margin: 0; font-size: 15px; line-height: 1.55; }
.abraten__aktion { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.inhalt-text .abraten__statt { margin: 0; font-size: 14.5px; white-space: nowrap; color: var(--text-muted); }
.abraten__aktion .geraet-karte__knoepfe { margin-top: 0; }
.abraten__aktion .knopf-haendler { min-height: 36px; padding: 0 12px; font-size: 13px; border-color: var(--panel-2); color: var(--text-muted); }

/* ---- Einwilligung (Phase 2, nur mit Amazon-Bildern) --------------------- */
.einwilligung {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 560px;
  padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-2); box-shadow: var(--schatten);
}
.einwilligung[hidden] { display: none; }
.einwilligung__text { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.einwilligung__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.einwilligung__knopf {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--panel-2); background: var(--panel-2);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color 150ms ease-out;
}
.einwilligung__knopf:hover { background: #383838; }

/* ---- Handy -------------------------------------------------------------- */
@media (max-width: 560px) {
  .geraet-karte { grid-template-columns: 1fr; }
  .geraet-karte__bild { padding: 14px; justify-items: start; }
  .geraet-karte__bild svg { width: 44px; height: 44px; }
  .geraet-karte__bild.hat-foto { justify-items: center; }
  .geraet-karte__bild.hat-foto img { max-height: 160px; width: auto; }
  .geraet-karte__knoepfe { width: 100%; }
  .inhalt-text .geraet-karte__rumpf .knopf-haendler { flex: 1 1 100%; justify-content: center; }
  .inhalt-text .abraten-liste > li { grid-template-columns: 1fr; padding-left: 48px; }
  .abraten__aktion { align-items: flex-start; }
  .inhalt-text .abraten__statt { white-space: normal; }
  .inhalt-text .kette a { font-size: 12.5px; }
  .inhalt-text .kette__nr { width: 36px; height: 36px; font-size: 14px; }
  .inhalt-text .kette ol > li:not(:last-child)::after { top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .inhalt-text .kette a, .inhalt-text .kette__nr, .inhalt-text .knopf-haendler, .einwilligung__knopf { transition: none; }
}

/* ---- Ratgeber-Layout aus dem Claude-Design-Entwurf (23.10.2026) ----
   rg-Klassen fuer volle Breite: Kopf mit Empfehlung, Checkliste, Kette, Karten,
   Aufklapper. Uebernommen aus der Mobil-Vorschau (gleiches CSS wie Desktop). */
.rg-wert, .rg-fakten dd, .rg-chips li { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
.rg-abschnitt { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); scroll-margin-top: 100px; }
.rg-abschnitt__kopf { display: flex; flex-direction: column; gap: 12px; max-width: 68ch; }
.rg-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }
.rg-h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; scroll-margin-top: 100px; }
.rg-h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; scroll-margin-top: 100px; }
.rg-text { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 68ch; text-wrap: pretty; }
.rg-text strong { color: var(--text); font-weight: 600; }
.rg-gruppe { display: flex; flex-direction: column; gap: 18px; }
.rg-kopf { display: grid; grid-template-columns: minmax(0px, 1.1fr) minmax(0px, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (max-width: 980px) {
  .rg-kopf { grid-template-columns: minmax(0px, 1fr); }
}
.rg-kopf__text { display: flex; flex-direction: column; gap: 24px; }
.rg-titel { font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.rg-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-muted); max-width: 54ch; text-wrap: pretty; }
.rg-check__titel { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px !important; }
.rg-check { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.rg-check li { display: grid; grid-template-columns: 24px minmax(0px, 1fr); gap: 14px; align-items: start; padding: 15px 0px; border-bottom: 1px solid var(--border); font-size: 17px; line-height: 1.45; color: var(--text-muted); }
.rg-check strong { color: var(--text); font-weight: 600; }
.rg-check__haken { width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); color: var(--akzent); display: grid; place-items: center; }
.rg-check__haken svg { width: 12px; height: 12px; }
.rg-kopf__seite { display: flex; flex-direction: column; gap: 14px; }
.rg-empfehlung { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; box-shadow: inset 0 3px 0 var(--akzent), var(--schatten); }
.rg-empfehlung__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rg-empfehlung__name { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.rg-empfehlung__typ { font-size: 15px; color: var(--text-muted); margin-top: 6px !important; }
.rg-empfehlung__fazit { font-size: 16.5px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.rg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-chips li { padding: 6px 12px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 13px; }
.rg-zitat { margin: 0px; padding-top: 18px; border-top: 1px solid var(--border); }
.rg-zitat p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.rg-zitat footer { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.rg-zitat footer strong { color: var(--text); font-weight: 600; }
.rg-werbehinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.rg-werbehinweis svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--text-muted); }
.rg-werbehinweis p { font-size: 14px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rg-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0px 22px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; transition: background-color 150ms ease-out; }
.rg-knopf:hover { background: rgb(56, 56, 56); color: var(--text); }
.rg-knopf--akzent { background: var(--akzent); color: var(--bg); font-weight: 700; }
.rg-knopf--akzent:hover { background: var(--akzent-hover); color: var(--bg); }
.rg-knopf--leise { background: transparent; box-shadow: inset 0 0 0 1px var(--panel-2); }
.rg-knopf--leise:hover { background: var(--panel-2); }
@media (max-width: 560px) {
  .rg-knoepfe .rg-knopf { flex: 1 1 100%; }
}
.rg-sprung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 18px 0px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: calc(-0.5 * clamp(64px, 8vw, 112px)); }
.rg-sprung__titel { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.rg-sprung ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rg-sprung a { display: inline-flex; align-items: center; min-height: 44px; padding: 0px 18px; border-radius: 999px; background: var(--panel); color: var(--text-muted); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out; }
.rg-sprung a:hover { background: var(--panel-2); color: var(--text); }
.rg-kette { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0px, 1fr)); gap: 14px; }
.rg-glied { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px 18px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.rg-glied:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -15px; width: 16px; height: 2px; background: var(--akzent); }
.rg-glied__kopf { display: flex; align-items: center; gap: 12px; }
.rg-nr { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); color: var(--akzent); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rg-glied:last-child .rg-nr { background: var(--akzent); color: var(--bg); }
.rg-glied__name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.rg-glied dl { margin: 0px; display: flex; flex-direction: column; gap: 12px; }
.rg-glied dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.rg-glied dd { margin: 3px 0px 0px; font-size: 15px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; }
.rg-glied dd.ist-empfohlen { color: var(--text); font-weight: 600; }
.rg-glied__mehr { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
@media (max-width: 1100px) {
  .rg-kette { grid-template-columns: minmax(0px, 1fr); gap: 12px; }
  .rg-glied { display: grid; grid-template-columns: minmax(0px, 180px) minmax(0px, 1fr) auto; align-items: center; gap: 12px 24px; padding: 16px 20px; }
  .rg-glied dl { flex-direction: row; gap: 24px; }
  .rg-glied dl > div { flex: 1 1 0px; min-width: 0px; }
  .rg-glied__mehr { margin-top: 0px; }
  .rg-glied:not(:last-child)::after { inset: auto auto -13px 41px; width: 2px; height: 14px; }
}
@media (max-width: 820px) {
  .rg-glied { grid-template-columns: minmax(0px, 1fr); align-items: start; }
  .rg-glied dl { flex-direction: column; gap: 10px; }
  .rg-glied__mehr { min-height: 32px; }
}
.rg-hinweis { padding: 18px 22px; border-radius: 14px; background: var(--panel); max-width: 820px; }
.rg-hinweis p { font-size: 16.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rg-hinweis strong { color: var(--text); font-weight: 600; }
.rg-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.rg-raster--fest { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rg-karte { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; scroll-margin-top: 100px; min-width: 0px; }
.rg-karte--empfohlen { box-shadow: inset 0 3px 0 var(--akzent), var(--schatten); }
.rg-karte:target { outline: 2px solid var(--akzent); outline-offset: 2px; }
.rg-karte__oben { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.rg-karte__preis { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.rg-karte__name { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.rg-karte__typ { font-size: 14.5px; color: var(--text-muted); margin-top: 4px !important; }
.rg-karte__fuer { font-size: 15.5px; line-height: 1.5; color: var(--text); }
.rg-karte__fuer span { color: var(--text-muted); }
.rg-karte__fazit { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rg-karte .rg-knoepfe { margin-top: auto; padding-top: 4px; }
.rg-fakten { margin: 0px; display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.rg-fakten--drei { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
@media (max-width: 420px) {
  .rg-fakten--drei { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
.rg-fakten dt { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
.rg-fakten dd { margin: 2px 0px 0px; font-size: 13.5px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.rg-dreier { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 32px; }
.rg-dreier > div { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.rg-dreier h4 { font-size: 17px; font-weight: 600; }
.rg-dreier p { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rg-details { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); scroll-margin-top: 100px; }
.rg-details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 24px; border-radius: 16px; }
.rg-details > summary h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.rg-details__unter { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; color: var(--text-muted); }
.rg-plus { flex: 0 0 auto; color: var(--akzent); font-size: 26px; font-weight: 400; line-height: 1; transition: transform 180ms ease-out; }
.rg-details[open] .rg-plus { transform: rotate(45deg); }
.rg-details[open] > summary { border-bottom: 1px solid var(--border); border-radius: 16px 16px 0px 0px; }
.rg-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rg-tabelle th, .rg-tabelle td { padding: 14px 20px 14px 0px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.rg-tabelle tr > :first-child { padding-left: 24px; }
.rg-tabelle thead th { border-top: 0px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.rg-tabelle tbody th { color: var(--text); font-weight: 600; width: 18%; }
.rg-tabelle td { color: var(--text-muted); }
.rg-tabelle td.ist-betont { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .rg-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); }
  .rg-tabelle, .rg-tabelle tbody, .rg-tabelle tr, .rg-tabelle th, .rg-tabelle td { display: block; width: auto !important; }
  .rg-tabelle tr { padding: 16px 20px; border-top: 1px solid var(--border); }
  .rg-tabelle tbody tr:first-child { border-top: 0px; }
  .rg-tabelle th, .rg-tabelle td, .rg-tabelle tr > :first-child { padding: 3px 0px; border: 0px; }
  .rg-tabelle tbody th { font-size: 17px; margin-bottom: 4px; }
  .rg-tabelle td::before { content: attr(data-label) ": "; color: var(--text-muted); font-weight: 400; }
}
.rg-werte { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 12px; max-width: 620px; }
.rg-wertkarte { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 14px; background: var(--panel); }
.rg-wertkarte--empfohlen { background: var(--panel-2); }
.rg-wertkarte__zahl { font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.rg-wertkarte--empfohlen .rg-wertkarte__zahl { color: var(--akzent); }
.rg-wertkarte__label { font-size: 14.5px; line-height: 1.4; color: var(--text-muted); }
@media (max-width: 400px) {
  .rg-wertkarte { padding: 16px; }
}
.rg-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-tabs[hidden] { display: none; }
.rg-tab { min-height: 44px; padding: 0px 20px; border-radius: 999px; border: 1px solid var(--panel-2); background: transparent; color: var(--text-muted); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out; }
.rg-tab:hover { color: var(--text); background: var(--panel); }
.rg-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.rg-tabpanel { display: flex; flex-direction: column; gap: 12px; }
.rg-tabpanel[hidden] { display: none; }
.rg-tabpanel__titel { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
[data-tabs].ist-aktiv .rg-tabpanel__titel { display: none; }
.rg-rang { list-style: none; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.rg-rang > li { display: grid; grid-template-columns: 44px minmax(0px, 1fr) minmax(0px, 320px); gap: 14px 24px; align-items: start; padding: 22px 24px; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.rg-rang > li:first-child { border-top: 0px; }
.rg-rang > li:target { outline: 2px solid var(--akzent); outline-offset: -2px; }
.rg-rang__text { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.rg-rang__titel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.rg-rang__text p { font-size: 16px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rg-rang__produkt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--bg); }
.rg-rang__produkt strong { font-size: 15.5px; font-weight: 600; color: var(--text); }
.rg-rang__produkt p { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.rg-rang__produkt .rg-knoepfe { margin-top: 6px; }
@media (max-width: 820px) {
  .rg-rang > li { grid-template-columns: 44px minmax(0px, 1fr); padding: 20px; }
  .rg-rang__produkt { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .rg-rang__produkt { align-items: stretch; }
}
.rg-abraten { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.rg-abraten > li { display: grid; grid-template-columns: 20px minmax(0px, 1fr); gap: 0px 14px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; scroll-margin-top: 100px; }
.rg-abraten > li:target { outline: 2px solid var(--akzent); outline-offset: 2px; }
.rg-abraten__zeichen { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--warnung); background-image: linear-gradient(45deg, transparent calc(50% - 1px), var(--warnung) calc(50% - 1px), var(--warnung) calc(50% + 1px), transparent calc(50% + 1px)); }
.rg-abraten__inhalt { display: flex; flex-direction: column; gap: 6px; min-width: 0px; }
.rg-abraten h3 { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.rg-abraten p { font-size: 15px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rg-abraten p.rg-abraten__statt { margin-top: 4px; color: var(--text); font-weight: 600; }
.rg-fussnote { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 68ch; }
.rg-fragen { display: grid; grid-template-columns: minmax(0px, 1fr) minmax(0px, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) {
  .rg-fragen { grid-template-columns: minmax(0px, 1fr); }
}
.rg-fragen__seite { display: flex; flex-direction: column; gap: 22px; }
.rg-test { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 16px; background: var(--panel); scroll-margin-top: 100px; }
.rg-test h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.rg-test p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.rg-faq .faq-eintrag summary h3 { font-size: inherit; font-weight: inherit; line-height: 1.35; }
.rg-faq .faq-eintrag summary { padding: 18px 0px; }
.rg-schluss { display: flex; flex-direction: column; gap: 20px; margin-top: calc(-0.4 * clamp(64px, 8vw, 112px)); }
.rg-schluss__recht { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 68ch; }
.rg-schluss .vorteile__links { margin-top: 0px; }
.rg-schluss .hilfe-kasten { margin-top: 0px; }
.rg-schluss .zurueck-link { margin-top: 0px; align-self: flex-start; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  .rg-knopf, .rg-sprung a, .rg-tab, .rg-plus { transition: none; }
}
/* Container der Ratgeberseite (Entwurf): Abschnitte mit grossem Abstand untereinander. */
.ratgeber { min-width: 0px; display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
.ratgeber h2, .ratgeber h3, .ratgeber h4 { margin: 0px; }
.ratgeber p { margin: 0px; }
/* Bildbereich in rg-Karten (im Entwurf nicht vorgesehen): gleiche Flaeche wie die
   bisherigen Geraetekarten, eigenes Foto auf hellem Grund, Quellenzeile darunter. */
.rg-karte__bild { display: grid; place-items: center; margin: -4px -4px 4px; padding: 14px; border-radius: 12px; background: var(--panel-2); color: var(--text-dim); aspect-ratio: 16 / 9; }
.rg-karte__bild.hat-foto { background: var(--bild-grund); }
.rg-karte__bild img { width: 100%; height: 100%; object-fit: contain; }
.rg-karte__bild svg { width: 56px; height: 56px; }
.rg-karte__bild .geraet-karte__quelle { margin: 6px 0 0; justify-self: end; font-size: 11px; line-height: 1.3; color: #5c5c5c; }
.rg-karte__bild .geraet-karte__quelle a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Mehrere Produkte je Heimnetz-Stufe (z. B. zwei Repeater) stehen untereinander in der Produktspalte. */
.rg-rang__produkte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 820px) {
  .rg-rang__produkte { grid-column: 1 / -1; }
}
/* Produktbilder (Dommes Vorgabe 23.10.2026): jede Bildflaeche weiss und abgerundet, auch ohne Foto,
   damit alle Karten einer Reihe gleich aussehen. Das Symbol steht dann grau auf Weiss. */
.rg-karte__bild, .rg-karte__bild.hat-foto { background: #fff; color: #6b6b6b; padding: 0; overflow: hidden; }
.rg-karte__bild .geraet-karte__quelle { padding: 0 10px 6px; }
/* Produktbild in der Heimnetz-Rangliste: gleiche weisse Flaeche wie auf den Karten, volle Boxbreite. */
.rg-rang__produkt .rg-karte__bild { align-self: stretch; margin: 0 0 6px; }
/* Produktbild auch in der Empfehlungskarte im Kopf. */
.rg-empfehlung > .rg-karte__bild { margin: 0; }
/* Kurzer Werbelink-Hinweis unter den Knoepfen der Empfehlung, der volle Amazon-Hinweis steht am Seitenende. */
.rg-werbe-kurz { margin: -6px 0 0 !important; font-size: 13px; color: var(--text-dim); }
.rg-werbe-kurz a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rg-schluss .rg-werbehinweis { scroll-margin-top: 100px; }
/* ---- Bildmasse (Dommes Rueckmeldung 23.10.2026: "unproportional") ----
   Heller Grauton statt Reinweiss; das weisse Produktfoto wird per multiply in den Grauton gerechnet,
   so entsteht kein harter weisser Kasten. Karten kompakt, Rangliste als kleines Vorschaubild,
   Empfehlung mit Bild neben Name und Typ. */
.rg-karte__bild, .rg-karte__bild.hat-foto { background: #ECECEC; border-radius: 10px; max-height: 170px; width: 100%; aspect-ratio: 16 / 9; }
.rg-karte__bild img { mix-blend-mode: multiply; padding: 6%; box-sizing: border-box; }
.rg-karte__bild svg { width: 44px; height: 44px; }
.rg-empfehlung__titelzeile { display: grid; grid-template-columns: minmax(0, 1fr) 40%; gap: 16px; align-items: center; }
.rg-empfehlung__titelzeile > .rg-karte__bild { margin: 0; max-height: 120px; }
.rg-rang__produkt:has(> .rg-karte__bild) { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: start; }
.rg-rang__produkt > .rg-karte__bild { grid-row: 1 / span 3; width: 112px; height: 63px; max-height: none; margin: 0; align-self: start; }
.rg-rang__produkt > .rg-karte__bild svg { width: 26px; height: 26px; }
.rg-rang__produkt > :not(.rg-karte__bild) { grid-column: 2; }
@media (max-width: 420px) {
  .rg-empfehlung__titelzeile { grid-template-columns: minmax(0, 1fr) 36%; gap: 12px; }
}
/* Rangliste: Vorschaubild und Name in einer Zeile, Text und Knopf darunter ueber die volle Breite. */
.rg-rang > li { grid-template-columns: 44px minmax(0px, 1fr) minmax(0px, 360px); }
.rg-rang__produkt > .rg-karte__bild { grid-row: 1; grid-column: 1; }
.rg-rang__produkt > strong { grid-column: 2; align-self: center; }
.rg-rang__produkt > p, .rg-rang__produkt > .rg-knoepfe { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .rg-rang > li { grid-template-columns: 44px minmax(0px, 1fr); }
}
.rg-rang__produkt > p:not(.rg-karte__bild), .rg-rang__produkt > .rg-knoepfe:not(.rg-karte__bild) { grid-column: 1 / -1; }
/* ---- Kopf ausbalanciert (Dommes Rueckmeldung 23.10.2026) ----
   Desktop: links Titel, Checkliste und Zitat, rechts die kompakte Empfehlung (oben buendig).
   Handy: Text, Empfehlung, Zitat. Bildflaechen in warmem Hellgrau, Produkt fuellt die Flaeche. */
.rg-kopf { grid-template-areas: "text seite" "zitat seite"; row-gap: 28px; }
.rg-kopf__text { grid-area: text; }
.rg-kopf__seite { grid-area: seite; }
.rg-kopf__zitat { grid-area: zitat; margin: 0; padding: 4px 0 4px 20px; border-top: 0; border-left: 3px solid var(--akzent); max-width: 60ch; }
@media (max-width: 980px) {
  .rg-kopf { grid-template-areas: "text" "seite" "zitat"; }
}
.rg-empfehlung__titelzeile { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.rg-empfehlung__titelzeile > .rg-karte__bild { aspect-ratio: 4 / 3; max-height: none; width: 150px; }
.rg-empfehlung__titelzeile .rg-empfehlung__kopf { margin-bottom: 8px; }
.rg-karte__bild, .rg-karte__bild.hat-foto { background: #F2F2F0; border-radius: 12px; }
.rg-karte__bild img { padding: 4%; }
@media (max-width: 420px) {
  .rg-empfehlung__titelzeile { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .rg-empfehlung__titelzeile > .rg-karte__bild { width: 104px; }
}
/* Feinschliff Kopf: Zitat rechts unter der Empfehlung, damit beide Spalten etwa gleich hoch sind.
   Bilder ohne zusaetzlichen Innenrand (die Dateien bringen 10 % Rand mit), in der Empfehlung fuellend. */
.rg-kopf { grid-template-areas: "text seite" "text zitat"; align-items: start; }
.rg-kopf__zitat { align-self: start; }
@media (max-width: 980px) {
  .rg-kopf { grid-template-areas: "text" "seite" "zitat"; }
}
.rg-karte__bild img { padding: 0; }
.rg-empfehlung__titelzeile > .rg-karte__bild img { object-fit: cover; transform: scale(1.12); }


/* ---- Volle Breite fuer Uebersicht, Vergleich und Ruckel-Anleitung (Ratgeber-Umbau 23.10.2026) ----
   Nur Ergaenzungen, die rg-Regeln oben bleiben unveraendert. */
/* Markdown-Lesetext: ".ratgeber p/h2/h3" setzen margin 0, der Fliesstext braucht seine Abstaende. */
.ratgeber .inhalt-text p { margin: 1em 0; }
.ratgeber .inhalt-text h3 { margin: 1.8em 0 0.5em; }
.ratgeber .inhalt-text > :first-child { margin-top: 0; }
.ratgeber .inhalt-text > :last-child { margin-bottom: 0; }
.ratgeber .rg-fragen .inhalt-text { max-width: 68ch; }
.ratgeber .inhalt-stand { margin-top: -10px; }
/* Ueberschrift links bleibt beim Lesen des Abschnitts stehen (nur zweispaltig) */
@media (min-width: 901px) {
  .ratgeber .rg-fragen__seite { position: sticky; top: 100px; }
}
/* Zwei Knoepfe nebeneinander gleich gross, am Handy untereinander */
.rg-knoepfe--gleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-schluss .rg-knoepfe--gleich { max-width: 620px; }
@media (max-width: 560px) {
  .rg-knoepfe--gleich { grid-template-columns: minmax(0, 1fr); }
}
/* Artikelkarte als ganzer Link (Uebersicht, Weitere Ratgeber) */
a.rg-karte { color: var(--text); text-decoration: none; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
a.rg-karte:hover { background: #262626; border-color: var(--panel-2); color: var(--text); }
a.rg-karte:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
a.rg-karte .ratgeber-karte__symbol { margin: 0; }
a.rg-karte .ratgeber-karte__link { margin-top: auto; padding-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  a.rg-karte { transition: none; }
}
