/* Ratgeber „Handy-Daten retten“ (app/content/ratgeber/daten-retten-defektes-handy.php) – alle Klassen mit drh-Vorsilbe */

/* Kopf: Text links, Sprungmarken rechts (nur breite Bildschirme) */
.drh-kopf { padding-top: 24px; }
.drh-kopf__raster { display: grid; gap: 40px; align-items: end; }
.drh-titel { font-size: clamp(2rem, 1.15rem + 2.9vw, 3.5rem); max-width: 22ch; overflow-wrap: break-word; }
.drh-kopf .gross { max-width: 60ch; }
.drh-inhalt { display: none; }
@media (min-width: 1024px) {
  .drh-kopf__raster { grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; }
  .drh-inhalt { display: block; }
}
.drh-inhalt .etikett { margin-bottom: 12px; }
.drh-inhalt ol { list-style: none; margin: 0; padding: 0; counter-reset: sprung; border-top: 2px solid var(--schwarz); }
.drh-inhalt li { counter-increment: sprung; border-bottom: 1px dashed var(--alu); }
.drh-inhalt a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; padding: 9px 4px; color: var(--text); font: 600 .96rem/1.35 var(--sans); text-decoration: none; }
.drh-inhalt a::before { content: counter(sprung, decimal-leading-zero); color: var(--stahl); font: 400 .76rem/1.6 var(--din); letter-spacing: .1em; }
.drh-inhalt a:hover { color: var(--rot); }
.drh-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 24px 0 0; font: 400 .76rem/1.5 var(--din); letter-spacing: .14em; text-transform: uppercase; color: var(--stahl); }
.drh-meta span:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--alu); }
@media (max-width: 599px) {
  .drh-meta { flex-direction: column; gap: 4px; }
  .drh-meta span:not(:last-child)::after { content: none; }
}

/* Einleitungen der Abschnitte */
.drh-einleitung { max-width: 760px; margin-bottom: 36px; }
.drh-einleitung p:not(.etikett) { max-width: 70ch; color: var(--text-2); }
.drh-fuss { max-width: 70ch; margin: 28px 0 0; color: var(--text-2); }
.drh-klein { margin: 14px 0 0; font-size: .9rem; line-height: 1.5; color: var(--text-2); }

/* Zweispaltige Abschnitte: Text links, Beleg oder Karte rechts */
.drh-raster { display: grid; gap: 40px; }
@media (min-width: 900px) { .drh-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.drh-raster p { max-width: 70ch; }

/* ---------- Der Entscheidungsweg: ein Start, drei Fälle, je drei Schritte und ein Ziel ---------- */
.drh-weg { --drh-abstand: 28px; position: relative; }
.drh-weg__start { position: relative; width: fit-content; max-width: 100%; margin: 0 auto var(--drh-abstand); padding: 14px 24px; border-radius: 4px; background: var(--schwarz); color: #fff; font: 700 1.2rem/1.3 var(--din); text-align: center; }
.drh-weg__start-etikett { display: block; margin-bottom: 2px; font: 400 .7rem/1.4 var(--din); letter-spacing: .28em; text-transform: uppercase; color: var(--text-hell-2); }
.drh-weg__start::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: var(--drh-abstand); margin-left: -1px; background: var(--schwarz); }

.drh-aeste { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.drh-ast { position: relative; display: flex; flex-direction: column; padding: 22px 22px 22px; border-radius: 4px; background: #fff; box-shadow: var(--schatten), 0 0 0 1px rgb(10 10 11 / .06); }
/* Schmal: die Fälle stehen untereinander, „oder“ trennt sie */
.drh-ast + .drh-ast::before { content: "oder"; position: absolute; left: 0; right: 0; top: -30px; text-align: center; font: 400 .72rem/1 var(--din); letter-spacing: .28em; text-transform: uppercase; color: var(--stahl); }

.drh-ast__kopf { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 2px solid var(--schwarz); }
.drh-ast__buchstabe { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--schwarz); color: #fff; font: 700 1.1rem var(--din); }
.drh-ast__titel { margin: 0; padding-top: 1px; font: 700 1.2rem/1.2 var(--din); letter-spacing: -.005em; }

.drh-schritte { list-style: none; margin: 0; padding: 18px 0 0; flex: 1; }
.drh-schritt { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding-bottom: 18px; }
.drh-schritt:last-child { padding-bottom: 0; }
.drh-schritt::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--alu); }
.drh-schritt:last-child::before { display: none; }
.drh-schritt__nr { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--stahl); border-radius: 4px; background: #fff; color: var(--text-2); font: 700 .85rem var(--din); }
.drh-schritt--werkstatt .drh-schritt__nr { border-color: var(--rot); background: var(--rot); color: #fff; }
.drh-schritt__text { min-width: 0; }
.drh-marke { display: inline-block; margin-bottom: 4px; padding: 1px 7px; border: 1px solid var(--stahl); border-radius: 3px; color: var(--stahl); font: 600 .68rem/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.drh-schritt--werkstatt .drh-marke { border-color: var(--rot); color: var(--rot); }
.drh-schritt__name { display: block; font: 700 1.05rem/1.3 var(--din); }
.drh-schritt__zeile { display: block; margin-top: 2px; font-size: .9rem; line-height: 1.45; color: var(--text-2); }

.drh-ziel { margin: 20px 0 0; padding: 14px 16px; border-radius: 4px; background: var(--schwarz); color: #fff; font-size: .95rem; line-height: 1.45; }
.drh-ziel__etikett { display: block; margin-bottom: 4px; font: 400 .7rem/1.4 var(--din); letter-spacing: .28em; text-transform: uppercase; color: var(--text-hell-2); }
.drh-ziel__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-weight: 600; }
.drh-ziel a { color: #fff; text-decoration-color: var(--glut); }
.drh-ziel a:hover { color: var(--text-hell-2); }

.drh-tor { max-width: none; margin: 32px 0 0; padding: 16px 20px; border-left: 3px solid var(--rot); border-radius: 0 4px 4px 0; background: #fff; box-shadow: 0 0 0 1px rgb(10 10 11 / .06); }
.drh-tor strong { font-family: var(--din); }

@media (min-width: 900px) {
  .drh-aeste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: var(--drh-abstand); }
  /* gleiche Kopfhöhe, damit die Schritte der drei Fälle auf einer Linie beginnen */
  .drh-ast__titel { min-height: 2.4em; }
  /* Sammelschiene über den drei Fällen, je ein Abzweig nach unten */
  .drh-ast + .drh-ast::before { content: ""; left: -12px; right: -12px; top: calc(-1 * var(--drh-abstand)); height: 2px; background: var(--schwarz); }
  .drh-ast:first-child::before { content: ""; position: absolute; left: 50%; right: -12px; top: calc(-1 * var(--drh-abstand)); height: 2px; background: var(--schwarz); }
  .drh-ast:last-child::before { right: 50%; }
  .drh-ast::after { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--drh-abstand)); width: 2px; height: var(--drh-abstand); margin-left: -1px; background: var(--schwarz); }
}

/* ---------- Cloud: drei Karten ---------- */
.drh-liste { list-style: none; margin: 0; padding: 0; }
.drh-liste li { padding: 12px 0; border-bottom: 1px dashed var(--alu); font-size: .96rem; line-height: 1.55; color: var(--text-2); }
.drh-liste li:last-child { border-bottom: 0; }
.drh-liste strong { display: block; margin-bottom: 3px; font: 700 .76rem/1.4 var(--din); letter-spacing: .16em; text-transform: uppercase; color: var(--schwarz); }
.drh-pfad { padding: 1px 5px; border-radius: 3px; background: var(--werkbank); color: var(--text); font: 600 .88rem/1.7 var(--sans); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Das Handy läuft ---------- */
.drh-wege { list-style: none; margin: 26px 0 28px; padding: 0; counter-reset: weg; border-top: 2px solid var(--schwarz); }
.drh-wege > li { position: relative; padding: 18px 0 18px 48px; border-bottom: 1px dashed var(--alu); counter-increment: weg; }
.drh-wege > li::before { content: counter(weg); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--schwarz); border-radius: 4px; font: 700 .9rem var(--din); }
.drh-wege strong { display: block; margin-bottom: 4px; font: 700 1.2rem/1.25 var(--din); }
.drh-wege p { margin: 0; color: var(--text-2); }
.drh-hinweis { max-width: 70ch; }

.drh-preise { padding: 26px clamp(20px, 3vw, 28px); border-radius: 4px; background: #fff; box-shadow: var(--schatten), 0 0 0 1px rgb(10 10 11 / .06); }
.drh-preisband { grid-template-columns: 1fr; margin-top: 10px; }
.drh-preisband li { padding: 0; }
.drh-preisband a { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 4px; text-decoration: none; color: var(--schwarz); }
.drh-preisband a:hover { color: var(--rot); }
.drh-preisband span { font-weight: 600; line-height: 1.3; }
.drh-preisband small { display: block; font-weight: 400; font-size: .82rem; color: var(--stahl); }
.drh-preisband strong { margin-left: auto; }
.drh-suche { margin: 20px 0 0; }
.drh-suche .suche__feld { height: 56px; font-size: 1.05rem; border-radius: 4px; }

/* ---------- Das Handy bleibt aus ---------- */
.drh-nicht { padding: 28px clamp(20px, 3vw, 32px); border-radius: 4px; background: var(--graphit); color: #fff; }
.drh-nicht__titel { margin: 0 0 12px; font: 700 1.5rem/1.1 var(--din); color: #fff; }
.drh-nicht ul { list-style: none; margin: 0; padding: 0; }
.drh-nicht li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--graphit-2); font-size: .96rem; line-height: 1.55; color: var(--text-hell-2); }
.drh-nicht li::before, .drh-nicht li::after { content: ""; position: absolute; left: 4px; top: 1.45em; width: 14px; height: 2px; background: var(--glut); transform: rotate(45deg); }
.drh-nicht li::after { transform: rotate(-45deg); }
.drh-nicht strong { display: block; margin-bottom: 2px; font: 700 1.05rem/1.3 var(--din); color: #fff; }
.drh-nicht a { color: #fff; }
.drh-nicht a:hover { color: var(--text-hell-2); }

/* ---------- Schadenstabelle ---------- */
.drh-tabelle { width: 100%; border-collapse: collapse; }
.drh-tabelle thead th { padding: 10px 16px 10px 4px; border-bottom: 2px solid var(--schwarz); text-align: left; font: 400 .74rem var(--din); letter-spacing: .16em; text-transform: uppercase; color: var(--stahl); }
.drh-tabelle tbody :is(th, td) { padding: 16px 16px 16px 4px; border-bottom: 1px dashed var(--alu); vertical-align: top; text-align: left; }
.drh-tabelle tbody th { font: 700 1.1rem/1.25 var(--din); }
.drh-tabelle tbody td:nth-child(2) { color: var(--text-2); }
.drh-tabelle tbody td:last-child { color: var(--text); }
@media (min-width: 760px) {
  .drh-tabelle tbody th { width: 27%; }
  .drh-tabelle tbody td:nth-child(2) { width: 24%; }
}
@media (max-width: 759px) {
  .drh-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .drh-tabelle, .drh-tabelle tbody { display: block; }
  .drh-tabelle tbody { border-top: 2px solid var(--schwarz); }
  .drh-tabelle tbody tr { display: block; padding: 16px 2px; border-bottom: 1px dashed var(--alu); }
  .drh-tabelle tbody :is(th, td) { display: block; width: auto; padding: 0; border: 0; }
  .drh-tabelle tbody th { margin-bottom: 8px; font-size: 1.15rem; }
  .drh-tabelle tbody td + td { margin-top: 8px; }
  .drh-tabelle tbody td::before { content: attr(data-label); display: block; margin-bottom: 1px; font: 400 .7rem/1.4 var(--din); letter-spacing: .16em; text-transform: uppercase; color: var(--stahl); }
}

/* ---------- Technik: was die Hersteller beschreiben ---------- */
.drh-herst { padding: 26px clamp(20px, 3vw, 28px); border-radius: 4px; background: var(--werkbank); }
.drh-herst .etikett { margin-bottom: 14px; }
.drh-herst dl { margin: 0; border-top: 2px solid var(--schwarz); }
.drh-herst dl > div { padding: 14px 0; border-bottom: 1px dashed var(--alu); }
.drh-herst dl > div:last-child { border-bottom: 0; }
.drh-herst dt { margin-bottom: 4px; font: 700 1.05rem/1.3 var(--din); }
.drh-herst dd { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--text-2); }

/* ---------- Preis und Ablauf ---------- */
.drh-code { margin-top: 1.6em; }
.drh-ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; border-top: 2px solid var(--schwarz); }
.drh-ablauf li { position: relative; display: grid; gap: 2px; padding: 16px 0 16px 46px; border-bottom: 1px dashed var(--alu); counter-increment: schritt; }
.drh-ablauf li::before { content: counter(schritt); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--schwarz); border-radius: 4px; background: #fff; font: 700 .9rem var(--din); }
.drh-ablauf li:last-child::before { border-color: var(--rot); background: var(--rot); color: #fff; }
.drh-ablauf strong { font: 700 1.1rem/1.3 var(--din); }
.drh-ablauf span { font-size: .95rem; line-height: 1.5; color: var(--text-2); }

/* ---------- Weiterlesen und Quellen ---------- */
.drh-ende { padding-top: clamp(40px, 1.5rem + 3vw, 72px); }
.drh-verwandt { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin: 0; padding-top: 20px; border-top: 1px solid var(--alu); }
.drh-verwandt .etikett { flex-basis: 100%; margin: 0 0 4px; }
.drh-verwandt a { color: var(--rot); }
.drh-quellen { margin-top: 36px; font-size: .88rem; color: var(--text-2); }
.drh-quellen .etikett { margin-bottom: .8em; }
.drh-quellen p { max-width: 70ch; }
.drh-quellen ul { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 32px; }
.drh-quellen li { margin-bottom: 6px; break-inside: avoid; }
.drh-quellen a { color: var(--text-2); }
.drh-quellen a:hover { color: var(--rot); }
