/* Anleitung: Text links, echte Bildschirme rechts. Baut auf stil.css auf. */

.anleitung { max-width: var(--breite); margin: 0 auto; padding: 40px 20px 100px; }
.anleitung-kopf { max-width: 760px; padding: 20px 0 40px; }
.anleitung-kopf h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); letter-spacing: -0.03em; }
.anleitung-kopf p { margin-top: 20px; color: var(--tinte-2); font-size: 1.15rem; max-width: 58ch; }

/* Telefone in der Anleitung: fest 300 breit, lange Bildschirme scrollen im Rahmen. */
.anleitung .telefon { width: 300px; justify-self: center; }
.anleitung .telefon a { display: block; border-radius: 34px; overflow: clip; }
.anleitung .telefon img { border-radius: 0; }
.anleitung .telefon a img { border-radius: 34px; }
.telefon-rollbar a { max-height: 640px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--app-rand) transparent; }
.telefon-rollbar a img { border-radius: 34px 32px 0 0; }
.telefon figcaption { text-align: center; color: var(--tinte-2); font-size: 0.85rem; margin-top: 10px; }
.telefon-paar { display: grid; gap: 22px; justify-items: center; }
@media (min-width: 1200px) { .telefon-paar { grid-template-columns: 1fr 1fr; } .anleitung .telefon-paar .telefon { width: 280px; } }

/* Das Video im Telefonrahmen. */
.telefon-video video { width: 100%; height: auto; border-radius: 34px; display: block; background: var(--app-grund); }
.telefon-video video::cue { font-family: var(--schrift); font-size: 1rem; background: rgb(11 18 27 / 0.85); color: #E8EDF3; }

/* ------------------------------------------------------------ Bereiche */
/* Ohne Skript stehen alle Bereiche untereinander und die Reiter sind Sprungmarken. */
.bereiche { display: grid; gap: 28px; }
.bereiche-leiste { position: sticky; top: 64px; z-index: 5; background: var(--papier); margin: 0 -20px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--rand); }
.bereiche-leiste::-webkit-scrollbar { display: none; }
/* Die Leiste ist auf dem Telefon 5,7 Bildschirme breit. Eine Maske an den Raendern
   sagt, dass rechts (und nach dem Rollen links) mehr kommt; am Ende faellt sie weg. */
.bereiche-leiste { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.bereiche-leiste.gerollt { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.bereiche-leiste.am-ende { -webkit-mask-image: none; mask-image: none; }
.bereiche-leiste.gerollt.am-ende { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
.reiter { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; width: max-content; }
.reiter-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--tinte-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.reiter-knopf:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .reiter-knopf:hover { color: var(--tinte); border-color: var(--tinte); } }
.reiter-knopf:focus-visible { outline: 2px solid var(--akzent-tief); outline-offset: 2px; }
/* Umkehr: Fläche Tinte, Schrift Papier -- beides dreht in der Dunkelfassung mit. */
.reiter-knopf.aktiv, .reiter-knopf[aria-selected="true"] { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.reiter-nr svg { display: block; }
.reiter-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--papier-tief); color: var(--tinte); font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.reiter-knopf.aktiv .reiter-nr, .reiter-knopf[aria-selected="true"] .reiter-nr { background: var(--akzent); color: var(--akzent-text); }

@media (min-width: 1100px) {
  .bereiche { grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
  .bereiche-leiste, .bereiche-leiste.gerollt, .bereiche-leiste.am-ende { top: 84px; margin: 0; padding: 0; overflow: visible; border-bottom: 0; background: transparent; -webkit-mask-image: none; mask-image: none; }
  .reiter { flex-direction: column; gap: 4px; width: auto; }
  .reiter-knopf { width: 100%; justify-content: flex-start; border-radius: 14px; padding: 0 12px 0 8px; min-height: 44px; }
  .reiter-nr { flex: none; }
}

.bereich { scroll-margin-top: 130px; }
html.bereiche-an .bereich[hidden] { display: none; }
html:not(.bereiche-an) .bereich[hidden] { display: block; } /* ohne Skript stehen alle Bereiche untereinander, wie oben versprochen */
html:not(.bereiche-an) .bereich { padding: 48px 0; border-top: 1px solid var(--rand); }
/* Programmatischer Fokus (nach Reiter oder Verweis) ohne Ring, Tastaturfokus mit Ring. */
.bereich:focus:not(:focus-visible), .anl-schritt:focus:not(:focus-visible) { outline: none; }
.bereich:focus-visible, .anl-schritt:focus-visible { outline: 2px solid var(--akzent-tief); outline-offset: 8px; border-radius: 6px; }
.bereich-kopf { max-width: 720px; padding-bottom: 10px; }
.bereich-kopf h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); margin-bottom: 14px; }
.bereich-kopf p { color: var(--tinte-2); font-size: 1.08rem; margin-bottom: 12px; max-width: 62ch; }
.bereich-kopf p strong { color: var(--tinte); }
.hinweis-bild { display: inline-block; font-size: 0.92rem; color: var(--tinte); background: var(--pfirsich); border-radius: 12px; padding: 8px 12px; }
.adresse-beispiel { font-family: var(--schrift-zahl); font-size: 0.95em; background: var(--papier-tief); padding: 2px 8px; border-radius: 8px; color: var(--tinte); white-space: nowrap; }
.bereich-mitte { padding: 20px 0 10px; display: grid; justify-items: center; }

.mitnehmen { border: 1px solid var(--rand); border-radius: 18px; padding: 18px 22px; margin: 8px 0 20px; max-width: 520px; background: var(--flaeche); }
.mitnehmen h3 { font-size: 1rem; margin-bottom: 8px; }
.mitnehmen ul { margin: 0; padding-left: 20px; color: var(--tinte-2); column-width: 14rem; column-gap: 24px; } /* zwei Spalten erst, wenn je Spalte 14 rem bleiben; bei 375 px brach sonst jeder Punkt */
.mitnehmen li { margin-bottom: 4px; break-inside: avoid; }

.anl-schritte { list-style: none; margin: 0; padding: 0; counter-reset: stufe; }
.anl-schritt { counter-increment: stufe; display: grid; gap: 22px; padding: 30px 0; border-top: 1px solid var(--rand); align-items: start; scroll-margin-top: 130px; position: relative; }
.anl-schritt-text { position: relative; padding-left: 52px; }
.anl-schritt-text::before { content: counter(stufe); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--tinte); color: var(--papier); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.anl-schritt.runde .anl-schritt-text::before { background: var(--akzent); color: var(--akzent-text); }
.anl-schritt h3 { font-size: 1.25rem; margin: 5px 0 10px; letter-spacing: -0.01em; }
.anl-schritt p { color: var(--tinte-2); max-width: 62ch; margin-bottom: 12px; }
.anl-schritt p strong { color: var(--tinte); }
.unterschritte { padding-left: 22px; color: var(--tinte-2); max-width: 62ch; margin: 0 0 12px; }
.unterschritte li { margin-bottom: 8px; }
.unterschritte strong { color: var(--tinte); }
.anl-schritt.markiert { animation: markieren 1.8s var(--ease-out); }
@keyframes markieren { 0% { background: var(--akzent-hell); } 100% { background: transparent; } }
@media (min-width: 900px) {
  .anl-schritt { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; }
  .anl-schritt .telefon-paar { grid-column: 2; }
}
.geklappt { margin: 26px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--akzent-hell); color: var(--tinte-2); max-width: 720px; }
.geklappt strong { color: var(--tinte); }
.bereich-weiter { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rand); }
.bereich-weiter a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); text-decoration: none; font-weight: 700; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.bereich-weiter a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bereich-weiter a:hover { background: var(--akzent-hover); } }
.bereich-text { max-width: 720px; }
.bereich-text h3 { font-size: 1.3rem; margin: 30px 0 12px; }
.bereich-text .begriffe, .bereich-text .gruppen { max-width: 62ch; }
.bereich .rollen { margin: 0 0 8px; }

/* Platzhalter für Bilder, die Swen aus Nayax Core nachliefert. Kein erfundenes Bild. */
.bild-folgt { width: 100%; max-width: 420px; justify-self: center; margin: 0; }
.bild-folgt-rahmen { aspect-ratio: 16 / 10; border: 2px dashed var(--rand); border-radius: 18px; background: var(--flaeche); display: grid; place-content: center; text-align: center; padding: 20px; color: var(--tinte-2); }
.bild-folgt-rahmen p { margin: 0; font-weight: 700; color: var(--tinte); }
.bild-folgt-rahmen .klein { margin-top: 6px; font-weight: 400; font-size: 0.9rem; color: var(--tinte-2); }
@media (prefers-reduced-motion: reduce) { .anl-schritt.markiert { animation: none; } }

/* Listen und Begriffe (auch in den Bereichen) */
.gruppen { padding-left: 20px; color: var(--tinte-2); margin: 0 0 14px; max-width: 62ch; }
.gruppen li { margin-bottom: 8px; }
.gruppen li strong { color: var(--tinte); }
.rollen, .begriffe { margin: 0 0 14px; max-width: 62ch; }
.rollen dt, .begriffe dt { font-weight: 700; margin-top: 12px; }
.rollen dd, .begriffe dd { margin: 4px 0 0; color: var(--tinte-2); }

/* Überschriften der Stufen: normal geschrieben, Tinte, nicht die große h3-Größe der Startseite */
.anl-schritt h3, .mitnehmen h3, .bereich-text h3 { text-transform: none; color: var(--tinte); }
.anl-schritt h3 { font-size: 1.25rem; line-height: 1.2; }
.bereiche-leiste { top: 67px; }
@media (min-width: 1100px) { .bereiche-leiste { top: 88px; } }
/* Runden tragen ihre eigene Nummer, die Schrittzählung läuft daran vorbei. */
.anl-schritt.runde { counter-increment: none; }
.anl-schritt.runde .anl-schritt-text::before { content: attr(data-runde); }
