/* anleitung.css · Neuordnung Anleitungen (23.10.2026). Nur Tokens aus qora.css. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.an { min-width: 0; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.an h2, .an h3, .an p, .an ol, .an ul, .an dl, .an dd, .an figure { margin: 0; }
.an-mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: 0.92em; color: var(--text); background: var(--panel-2); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.an-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }
.an-abschnitt { display: flex; flex-direction: column; gap: 24px; max-width: 880px; scroll-margin-top: 100px; }
.an-abschnitt--breit { max-width: none; }
.an-h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; scroll-margin-top: 100px; }
.an-text { font-size: 18px; line-height: 1.65; color: var(--text-muted); max-width: 64ch; text-wrap: pretty; }
.an-text strong { color: var(--text); font-weight: 600; }
.an-kopf { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .an-kopf { grid-template-columns: minmax(0, 1fr); } }
.an-kopf__text { display: flex; flex-direction: column; gap: 20px; }
.an-titel { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.an-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text-muted); max-width: 52ch; text-wrap: pretty; }
.an-kopf__bild .inhalt-bild { margin: 0 auto; }
.an-kopf__bild figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--text-muted); }
.an-geraete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: calc(clamp(56px, 7vw, 96px) * -0.5); }
.an-geraete__titel { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.an-geraete ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.an-geraete a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--panel); color: var(--text-muted); font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out; }
.an-geraete a:hover { background: var(--panel-2); color: var(--text); }
.an-geraete a[aria-current="page"] { background: var(--text); color: var(--bg); }
.an-brauchst { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.an-brauchst li { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.an-brauchst__kopf { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: var(--text); }
.an-haken { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); color: var(--akzent); display: grid; place-items: center; }
.an-haken svg { width: 13px; height: 13px; }
.an-brauchst p { font-size: 16.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.an-brauchst a { font-weight: 600; }
.an-schritte { list-style: none; padding: 0; display: flex; flex-direction: column; }
.an-schritt { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 22px; padding-bottom: 36px; scroll-margin-top: 100px; }
.an-schritt:last-child { padding-bottom: 0; }
.an-schritt:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 64px; bottom: 8px; width: 2px; background: var(--panel-2); border-radius: 2px; }
.an-nr { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel-2); color: var(--akzent); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.an-schritt:last-child .an-nr { background: var(--akzent); color: var(--bg); }
.an-schritt__inhalt { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; min-width: 0; }
.an-schritt h3 { font-size: clamp(20px, 2vw, 23px); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.an-schritt p { font-size: 18px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.an-schritt p strong { color: var(--text); font-weight: 600; }
@media (max-width: 520px) {
  .an-schritt { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
  .an-nr { width: 44px; height: 44px; font-size: 19px; }
  .an-schritt:not(:last-child)::before { left: 21px; top: 52px; }
  .an-schritt__inhalt { padding-top: 7px; }
  .an-schritt p, .an-text { font-size: 17px; }
}
.an-tipp, .an-achtung { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 12px; background: var(--panel); font-size: 16.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.an-achtung { border-left: 3px solid var(--akzent); }
.an-tipp strong, .an-achtung strong { color: var(--text); font-weight: 600; }
.an-achtung > strong:first-child { color: var(--akzent); }
.an-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.an-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; transition: background-color 150ms ease-out; }
.an-knopf:hover { background: #383838; color: var(--text); }
.an-knopf--akzent { background: var(--akzent); color: var(--bg); font-weight: 700; }
.an-knopf--akzent:hover { background: var(--akzent-hover); color: var(--bg); }
@media (max-width: 520px) { .an-knoepfe .an-knopf { flex: 1 1 100%; } }
.an-tasten { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.an-tasten > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 20px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--panel); }
.an-tasten > div:first-child { border-top: 0; }
.an-tasten dt { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 15px; font-weight: 600; }
.an-tasten dd { font-size: 17px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 560px) { .an-tasten > div { grid-template-columns: minmax(0, 1fr); } }
.an-felder { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); max-width: 560px; }
.an-feld { display: flex; flex-direction: column; gap: 6px; }
.an-feld__label { font-size: 15px; font-weight: 600; color: var(--text); }
.an-feld__label span { font-weight: 400; color: var(--text-muted); }
.an-feld__box { display: block; min-height: 48px; padding: 12px 16px; line-height: 1.6; border-radius: 10px; background: var(--bg); border: 1px solid var(--panel-2); font-size: 15.5px; color: var(--text-muted); }
.an-formate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.an-format { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.an-format h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.an-format__frage { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.an-format ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; line-height: 1.5; color: var(--text); }
.an-format h3 { margin-top: auto !important; padding-top: 4px; }
.an-wissen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.an-wissen article { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); scroll-margin-top: 100px; }
.an-wissen h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.an-wissen p { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.an-ultra { padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--akzent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.an-hilfe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; padding: clamp(24px, 3.5vw, 40px); border-radius: 16px; background: var(--panel); border: 1px solid var(--border); scroll-margin-top: 100px; }
@media (max-width: 760px) { .an-hilfe { grid-template-columns: minmax(0, 1fr); } }
.an-hilfe__text { display: flex; flex-direction: column; gap: 18px; }
.an-hilfe ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: pruef; }
.an-hilfe li { counter-increment: pruef; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; font-size: 17px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.an-hilfe li::before { content: counter(pruef); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); color: var(--text); font-size: 15px; font-weight: 700; }
.an-hilfe li strong { color: var(--text); font-weight: 600; }
.an-ende { display: flex; flex-direction: column; gap: 20px; margin-top: calc(clamp(56px, 7vw, 96px) * -0.4); }
.an-ende .zurueck-link { margin-top: 0; align-self: flex-start; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .an-knopf, .an-geraete a { transition: none; } }

/* Ersetzt den Inline-Style im Entwurf (Fire TV: "Achtung bei neuen Sticks" direkt nach einem Abschnitt). */
.an-achtung--nach-abschnitt { max-width: 880px; margin-top: calc(clamp(56px, 7vw, 96px) * -0.6); }

/* Ratgeber unter den Anleitungen (neu, nicht im Entwurf): Uebersicht plus drei Artikel, am Desktop vier nebeneinander. */
.an .an-ratgeber { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
