/* Ratgeber Stick-Drift und Konsole laut/heiß (app/content/ratgeber/stick-drift.php, ps5-controller-drift.php, joy-con-drift.php,
   xbox-controller-drift.php, konsole-laut-heiss.php) – Präfix sd-, nur Ergänzungen zu site.css. Aufbau wie ratgeber/ps5-kein-bild. */

/* ---------- Kopf: Titel links, Karte „Kurz gesagt“ rechts ---------- */
.sd-kopf { padding-block: 20px clamp(32px, 1.5rem + 2.5vw, 56px); }
.sd-krumen { padding-top: 0; margin-bottom: clamp(24px, 1rem + 2vw, 44px); }
.sd-kopf__raster { display: grid; gap: 28px; }
@media (min-width: 1000px) { .sd-kopf__raster { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; } }
.sd-kopf__titel { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.6rem); max-width: 21ch; }
.sd-kopf .gross { max-width: 52ch; }
.sd-kopf__meta { margin: 20px 0 0; font: 400 .88rem/1.6 var(--din); letter-spacing: .06em; color: var(--stahl); }
.sd-kopf__meta span { white-space: nowrap; }
@media (max-width: 559px) {
  .sd-kopf__meta > span:not(.sd-trenner) { display: block; }
  .sd-trenner { display: none; }
}

.sd-vorab { padding: 24px 24px 14px; border-top: 3px solid var(--rot); }
.sd-vorab .h4 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.sd-vorab ul { list-style: none; margin: 0; padding: 0; }
.sd-vorab li { padding: 12px 0; border-top: 1px solid rgb(255 255 255 / .12); color: var(--text-hell-2); font-size: .96rem; line-height: 1.5; }
.sd-vorab li strong { color: #fff; font-weight: 600; }
.sd-vorab a { color: #fff; text-decoration-color: var(--glut); white-space: nowrap; }
.sd-vorab a:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Wahl: Ratgeber je Controller bzw. direkt zur Reinigung ---------- */
.sd-wahl { background: var(--werkbank); border-block: 1px solid var(--alu); padding-block: clamp(22px, 1rem + 1.5vw, 36px); }
.sd-wahl__titel { margin: 0 0 12px; font-size: 1rem; letter-spacing: .02em; }
.sd-wahl__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sd-wahl__liste li { display: grid; }
.sd-wahl__liste a { display: grid; align-content: center; gap: 2px; min-height: 64px; padding: 12px 40px 12px 16px; position: relative; background: #fff; border: 1px solid var(--alu); border-radius: 4px; text-decoration: none; color: var(--text); }
.sd-wahl__liste a::after { content: "\2192"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--rot); font-family: var(--din); }
.sd-wahl__liste a:hover { border-color: var(--rot); }
.sd-wahl__liste strong { font: 700 1.02rem/1.25 var(--din); }
.sd-wahl__liste span { font-size: .88rem; color: var(--text-2); }

/* ---------- Körper: Inhaltsverzeichnis links (mitlaufend), Text rechts ---------- */
.sd-koerper { padding-block: clamp(36px, 1.5rem + 3.5vw, 88px) clamp(24px, 1rem + 2vw, 48px); }
.sd-raster { display: grid; gap: 36px; }
@media (min-width: 1000px) {
  .sd-raster { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; align-items: start; }
  .sd-inhalt { position: sticky; top: calc(var(--kopf-h) + 32px); }
}
.sd-inhalt .etikett { margin-bottom: .8em; }
.sd-inhalt ol { list-style: none; margin: 0; padding: 0; counter-reset: sd; border-top: 2px solid var(--schwarz); }
.sd-inhalt li { counter-increment: sd; border-bottom: 1px solid var(--alu); }
.sd-inhalt a { display: grid; grid-template-columns: 30px 1fr; align-items: center; min-height: 44px; padding: 8px 0; text-decoration: none; font: 500 .98rem/1.3 var(--din); color: var(--text); }
.sd-inhalt a::before { content: counter(sd, decimal-leading-zero); font-weight: 700; font-size: .85rem; color: var(--rot); }
.sd-inhalt a:hover { color: var(--rot); }
@media (min-width: 560px) and (max-width: 999px) { .sd-inhalt ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; } }

.sd-text { max-width: 72ch; min-width: 0; }
.sd-abschnitt { padding-bottom: clamp(32px, 1.5rem + 2vw, 52px); margin-bottom: clamp(32px, 1.5rem + 2vw, 52px); border-bottom: 1px solid var(--alu); scroll-margin-top: calc(var(--kopf-h) + 24px); }
.sd-abschnitt:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sd-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); margin-bottom: .6em; }
.sd-text h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: .35em; }
.sd-text p, .sd-text li, .sd-text dd { color: var(--text-2); }
.sd-text strong { color: var(--text); font-weight: 600; }
.sd-text p a:not(.knopf), .sd-text li a, .sd-text dd a, .sd-text dt a { text-decoration-color: var(--rot); text-decoration-thickness: 1.5px; }
.sd-text code { font-size: .92em; padding: 1px 5px; border-radius: 3px; background: var(--werkbank); color: var(--text); }
.sd-extern::after { content: "\2009\2197"; font-size: .85em; color: var(--stahl); display: inline-block; }
.sd-klein { font-size: .94rem; }
.sd-link { color: var(--rot); text-decoration: underline; text-decoration-thickness: 1.5px; }

/* Aufzählung mit roten Strichen */
.sd-punkte { list-style: none; margin: 0 0 1.2em; padding: 0; }
.sd-punkte li { position: relative; padding: 6px 0 6px 22px; }
.sd-punkte li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 2px; background: var(--rot); }

/* Zwei bis drei Karten nebeneinander: Tests, Ursachen */
.sd-proben { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .sd-proben { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } }
.sd-proben li { margin: 0; padding: 18px 20px 16px; border: 1px solid var(--alu); border-top: 3px solid var(--schwarz); border-radius: 0 0 4px 4px; background: #fff; font-size: .98rem; }
.sd-proben strong { display: block; margin-bottom: 4px; font-family: var(--din); font-size: 1.05rem; }

/* Selbsthilfe: nummerierte Schritte */
.sd-schritte { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: sds; border-top: 1px solid var(--alu); }
.sd-schritte li { counter-increment: sds; position: relative; padding: 16px 0 6px 48px; border-bottom: 1px solid var(--alu); }
.sd-schritte li::before { content: counter(sds); position: absolute; left: 0; top: 15px; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--schwarz); border-radius: 3px; font: 700 .92rem/1 var(--din); color: var(--schwarz); }
.sd-schritte h3 { margin-top: 4px; }
.sd-warnung { margin: 24px 0; }
.sd-warnung p { margin: 0; }

/* Notiz */
.sd-notiz { margin: 24px 0 0; padding: 20px 22px 4px; background: var(--werkbank); border-left: 3px solid var(--rot); border-radius: 0 4px 4px 0; }
.sd-notiz .etikett { margin-bottom: .6em; }

/* Vergleich: ab Werk gegen Hall-Effekt */
.sd-vergleich { display: grid; gap: 12px; margin: 20px 0 1.2em; }
@media (min-width: 640px) { .sd-vergleich { grid-template-columns: 1fr 1fr; gap: 16px; } }
.sd-vergleich__spalte { padding: 20px 22px 12px; border: 1px solid var(--alu); border-radius: 4px; background: #fff; }
.sd-vergleich__spalte--magnet { background: var(--schwarz); border-color: var(--schwarz); }
.sd-vergleich__titel { margin: 0 0 10px; font: 700 1.08rem/1.25 var(--din); color: var(--schwarz); }
.sd-vergleich__spalte--magnet .sd-vergleich__titel { color: #fff; }
.sd-vergleich ul { list-style: none; margin: 0; padding: 0; }
.sd-vergleich li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--alu); font-size: .96rem; }
.sd-vergleich li::before { content: "\2013"; position: absolute; left: 2px; color: var(--stahl); }
.sd-vergleich__spalte--magnet li { color: var(--text-hell-2); border-top-color: rgb(255 255 255 / .12); }
.sd-vergleich__spalte--magnet li::before { content: "\2713"; color: var(--glut); }

/* Instagram-Reel als Link (kein Einbetten: CSP und Datenschutz) */
.sd-video { margin: 24px 0; }
.sd-video a { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 18px 10px 12px; border: 1px solid var(--alu); border-radius: 4px; background: #fff; text-decoration: none; color: var(--text); max-width: 100%; }
.sd-video a:hover { border-color: var(--rot); }
.sd-video__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--schwarz); color: #fff; }
.sd-video__icon .icon { width: 24px; height: 24px; }
.sd-video a > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sd-video strong { font: 700 1rem/1.25 var(--din); }
.sd-video strong + span { font-size: .88rem; color: var(--text-2); }

/* Controller-Karten mit Preis und Buchungsknopf */
.sd-karten { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sd-karte { display: grid; grid-template-rows: auto auto auto 1fr auto; padding: 14px 14px 16px; border: 1px solid var(--alu); border-radius: 4px; background: #fff; text-align: center; }
.sd-karte__bild { width: auto; height: 96px; margin: 0 auto 10px; object-fit: contain; }
.sd-karte__name { margin: 0 0 4px; font: 700 1rem/1.25 var(--din); }
.sd-karte__name a { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--text); text-decoration: none; }   /* Tippziel 44 px */
.sd-karte__name a:hover { color: var(--rot); text-decoration: underline; }
.sd-text .sd-karte__was { margin: 0 0 6px; font-size: .84rem; color: var(--stahl); }
.sd-text .sd-karte__preis { margin: 0 0 12px; font: 700 1.35rem/1.1 var(--din); color: var(--rot); align-self: end; }
.sd-karte__knopf { min-height: 44px; width: 100%; justify-content: center; }

/* Ablauf in drei Schritten */
.sd-ablauf { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; counter-reset: sda; }
@media (min-width: 700px) { .sd-ablauf { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.sd-ablauf li { counter-increment: sda; display: grid; gap: 2px; padding: 14px 16px; border-left: 3px solid var(--rot); background: var(--werkbank); border-radius: 0 4px 4px 0; }
.sd-ablauf strong::before { content: counter(sda) ". "; color: var(--rot); }
.sd-ablauf strong { font: 700 1.02rem/1.3 var(--din); }
.sd-ablauf span { font-size: .92rem; }

/* Leistungen (Konsole laut/heiß): Name mit Preis, darunter was drin ist */
.sd-leistungen { margin: 16px 0 24px; border-top: 2px solid var(--schwarz); }
.sd-leistungen > div { padding: 14px 0; border-bottom: 1px solid var(--alu); }
.sd-leistungen dt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font: 700 1.08rem/1.3 var(--din); color: var(--schwarz); }
.sd-leistungen dt span { color: var(--rot); white-space: nowrap; }
.sd-leistungen dd { margin: 4px 0 0; font-size: .97rem; }

/* Preistabelle je Konsole – am Handy jede Zeile als Block */
.sd-tabelle-rahmen { margin: 0 0 20px; }
.sd-tabelle { width: 100%; border-collapse: collapse; font-size: .96rem; }
.sd-tabelle caption { caption-side: top; text-align: left; padding-bottom: 8px; font: 400 .74rem/1.3 var(--din); letter-spacing: .14em; text-transform: uppercase; color: var(--stahl); }
.sd-tabelle th, .sd-tabelle td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--alu); text-align: left; vertical-align: middle; }
.sd-tabelle thead th { font: 700 .82rem/1.3 var(--din); letter-spacing: .04em; color: var(--stahl); border-bottom: 2px solid var(--schwarz); }
.sd-tabelle tbody th { font-weight: 600; }
.sd-tabelle a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }   /* Tippziel 44 px */
.sd-tabelle td a { font-weight: 700; color: var(--rot); }
.sd-tabelle a:hover { text-decoration: underline; }
.sd-tabelle__leer { color: var(--stahl); }
@media (max-width: 599px) {
  .sd-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sd-tabelle, .sd-tabelle tbody, .sd-tabelle tr, .sd-tabelle th, .sd-tabelle td { display: block; }
  .sd-tabelle tr { padding: 10px 0; border-bottom: 1px solid var(--alu); }
  .sd-tabelle th, .sd-tabelle td { padding: 0; border: 0; }
  .sd-tabelle td { display: flex; justify-content: space-between; gap: 12px; }
  .sd-tabelle td::before { content: attr(data-titel); color: var(--text-2); line-height: 32px; }
  .sd-tabelle td.sd-tabelle__leer { display: none; }
}

/* Passend dazu */
.sd-weiter__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 2px solid var(--schwarz); }
.sd-weiter__liste li { display: grid; }
.sd-weiter__liste a { display: grid; align-content: start; gap: 2px; padding: 16px 28px 16px 0; border-bottom: 1px solid var(--alu); text-decoration: none; position: relative; }
.sd-weiter__liste a::after { content: "\2192"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; color: var(--rot); font-family: var(--din); }
.sd-weiter__liste strong { font: 700 1.05rem/1.3 var(--din); }
.sd-weiter__liste span { font-size: .92rem; color: var(--text-2); }
.sd-weiter__liste a:hover strong { color: var(--rot); }

@media (prefers-reduced-motion: reduce) { .sd-wahl__liste a, .sd-video a { transition: none; } }
