/* UNBOND · Wegweiser „Wie geht es weiter?“ (07.11.2026)
   Navigationselement mit nummerierten Schritten. Jede Karte trägt die Farbe ihres Ziels:
   Report rot, Narzissmus-Test mauve, Buch gold. Icons aus assets/icons/sm, per CSS-Maske eingefärbt.
   Markup: nav.ub-weiter > ol.ub-weiter-list > li > a.ub-weiter-card[style="--c:…"] */

html body[data-bereich] .ub-weiter {
  --ub-weiter-line: #343434;
  --ub-weiter-surface: #0d0d0d;
  margin: clamp(40px, 7vw, 72px) auto 0;
  max-width: 960px;
  text-align: left;
}
html body[data-bereich] .ub-weiter-head { margin: 0 0 28px; text-align: center; }
html body[data-bereich] .ub-weiter-head .eyebrow { display: flex; justify-content: center; width: 100%; margin: 0 0 8px; text-align: center; }
/* Gleiche Schrift auf allen Seiten, auch wo die Seite selbst eine andere nutzt (Spielautomat) */
html body[data-bereich] .ub-weiter,
html body[data-bereich] .ub-weiter *,
html body[data-bereich] .ub-ktests,
html body[data-bereich] .ub-ktests * { font-family: Poppins, system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
html body[data-bereich] .ub-weiter-head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.025em; color: #e8e8e8; }
html body[data-bereich] .ub-weiter-head p { margin: 10px auto 0; max-width: 46ch; color: #a3a3a3; }

html body[data-bereich] .ub-weiter-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: weiter;
}
/* Verbindungslinie zwischen den Schrittnummern (wie in der Vorlage) */
html body[data-bereich] .ub-weiter-list::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16.6667%;
  width: 66.6667%;
  height: 1px;
  background: var(--ub-weiter-line);
}
html body[data-bereich] .ub-weiter-list > li { display: flex; flex-direction: column; align-items: center; gap: 16px; counter-increment: weiter; }
html body[data-bereich] .ub-weiter-list > li::before {
  content: "0" counter(weiter);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--c, #a3a3a3);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 6px #000;
  color: var(--c-text, var(--c, #a3a3a3));
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}

html body[data-bereich] .ub-weiter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 24px 22px 20px;
  border: 1px solid var(--ub-weiter-line);
  border-radius: 14px;
  background: var(--ub-weiter-surface);
  color: #e8e8e8;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
html body[data-bereich] .ub-weiter-card:hover {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 7%, var(--ub-weiter-surface));
  transform: translateY(-3px);
}
html body[data-bereich] .ub-weiter-card:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
html body[data-bereich] .ub-weiter-card:active { transform: translateY(-1px); }

html body[data-bereich] .ub-weiter-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
html body[data-bereich] .ub-weiter-icon::before {
  content: "";
  width: 46px;
  height: 46px;
  filter: brightness(1.15);
  background: var(--c);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
html body[data-bereich] .ub-weiter-kicker { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text, var(--c)); }
html body[data-bereich] .ub-weiter-card h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: #e8e8e8; }
html body[data-bereich] .ub-weiter-card p { margin: 0 0 18px; color: #a3a3a3; font-size: .95rem; line-height: 1.55; }
html body[data-bereich] .ub-weiter-points { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
html body[data-bereich] .ub-weiter-points li { display: flex; align-items: center; gap: 10px; color: #a3a3a3; font-size: .9rem; line-height: 1.4; }
html body[data-bereich] .ub-weiter-points li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 3.5px, color-mix(in srgb, var(--c) 22%, transparent) 4px);
}
html body[data-bereich] .ub-weiter-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ub-weiter-line);
  color: #e8e8e8;
  font-weight: 600;
}
html body[data-bereich] .ub-weiter-go span[aria-hidden] { color: var(--c-text, var(--c)); transition: transform .25s ease; }
html body[data-bereich] .ub-weiter-card:hover .ub-weiter-go span[aria-hidden] { transform: translateX(4px); }
html body[data-bereich] .ub-weiter-more { margin: 22px 0 0; text-align: center; font-size: .9rem; }
html body[data-bereich] .ub-weiter-more a { color: #a3a3a3; text-decoration-color: #5e9590; text-underline-offset: 4px; }
html body[data-bereich] .ub-weiter-more a:hover { color: #e8e8e8; }

/* Handy: Schritte untereinander, Nummer und Linie links */
@media (max-width: 760px) {
  html body[data-bereich] .ub-weiter-list { grid-template-columns: 1fr; gap: 16px; padding-left: 48px; }
  html body[data-bereich] .ub-weiter-list::before { top: 16px; bottom: 16px; left: 16px; width: 1px; height: auto; }
  html body[data-bereich] .ub-weiter-list > li { position: relative; display: block; }
  html body[data-bereich] .ub-weiter-list > li::before { position: absolute; top: 20px; left: -48px; box-shadow: 0 0 0 5px #000; }
  html body[data-bereich] .ub-weiter-card { padding: 20px 18px 18px; }
  html body[data-bereich] .ub-weiter-icon { width: 52px; height: 52px; margin-bottom: 14px; }
  html body[data-bereich] .ub-weiter-icon::before { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html body[data-bereich] .ub-weiter-card,
  html body[data-bereich] .ub-weiter-go span[aria-hidden] { transition: none; }
  html body[data-bereich] .ub-weiter-card:hover,
  html body[data-bereich] .ub-weiter-card:active,
  html body[data-bereich] .ub-weiter-card:hover .ub-weiter-go span[aria-hidden] { transform: none; }
}

/* Zwei Schritte statt drei */
html body[data-bereich] .ub-weiter-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
html body[data-bereich] .ub-weiter-list--2::before { left: 25%; width: 50%; }
@media (max-width: 760px) {
  html body[data-bereich] .ub-weiter-list--2 { grid-template-columns: 1fr; }
  html body[data-bereich] .ub-weiter-list--2::before { left: 16px; width: 1px; }
}

/* Leiste der fünf Selbsttests oben (unter „Dein Weg“) */
html body[data-bereich] .ub-ktests { border-bottom: 1px solid #222; background: #000; }
html body[data-bereich] .ub-ktests-inner { display: flex; align-items: center; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
html body[data-bereich] .ub-ktests-inner::-webkit-scrollbar { display: none; }
html body[data-bereich] .ub-ktests-label { flex: none; padding: 12px 12px 12px 0; border-right: 1px solid #343434; color: #a3a3a3; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
html body[data-bereich] .ub-ktests-label:hover { color: #e8e8e8; }
html body[data-bereich] .ub-ktests ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
html body[data-bereich] .ub-ktests a:not(.ub-ktests-label) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-bottom: 2px solid transparent; color: #8a8a8a; font-size: .8rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
html body[data-bereich] .ub-ktests a:not(.ub-ktests-label):hover { color: #e8e8e8; }
html body[data-bereich] .ub-ktests a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
html body[data-bereich] .ub-ktests-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid color-mix(in srgb, var(--c) 55%, #343434); border-radius: 50%; color: var(--c); font-size: .7rem; font-weight: 700; }
html body[data-bereich] .ub-ktests a[aria-current="step"] { color: #fff; border-bottom-color: var(--c); }
html body[data-bereich] .ub-ktests a[aria-current="step"] .ub-ktests-n { border-color: var(--c); background: var(--c); color: #000; }
@media (max-width: 760px) {
  html body[data-bereich] .ub-ktests a:not([aria-current="step"]):not(.ub-ktests-label) .ub-ktests-t { display: none; }
  html body[data-bereich] .ub-ktests a:not(.ub-ktests-label) { padding: 0 6px; }
}

/* Nur ein Schritt (Spielautomat → No Contact) */
html body[data-bereich] .ub-weiter-list--1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
html body[data-bereich] .ub-weiter-list--1::before { display: none; }
@media (max-width: 760px) { html body[data-bereich] .ub-weiter-list--1 { grid-template-columns: 1fr; } }

/* Buch-Block (07.11.2026): eigener, deutlich sichtbarer Abschluss. Gold als Akzent, Bordeaux für den Knopf. */
html body[data-bereich] .ub-buch {
  --gold: #d2a63b;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: clamp(40px, 7vw, 72px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #343434;
  border-top: 2px solid var(--gold);
  border-radius: 16px;
  background: #0d0d0d;
  color: #e8e8e8;
  text-align: left;
}
html body[data-bereich] .ub-buch,
html body[data-bereich] .ub-buch * { font-family: Poppins, system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
html body[data-bereich] .ub-buch-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: color-mix(in srgb, var(--gold) 12%, transparent); }
html body[data-bereich] .ub-buch-icon::before { content: ""; width: 60px; height: 60px; background: var(--gold); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; filter: brightness(1.15); }
html body[data-bereich] .ub-buch-kicker { margin: 0 0 10px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html body[data-bereich] .ub-buch h2 { margin: 0 0 12px; max-width: 22ch; color: #fff; font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.3rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
html body[data-bereich] .ub-buch-text { margin: 0 0 18px; max-width: 56ch; color: #a3a3a3; font-size: 1rem; line-height: 1.6; }
html body[data-bereich] .ub-buch-points { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
html body[data-bereich] .ub-buch-points li { position: relative; padding-left: 28px; color: #e8e8e8; font-size: .95rem; line-height: 1.45; }
html body[data-bereich] .ub-buch-points li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 6px; height: 11px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
html body[data-bereich] .ub-buch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
html body[data-bereich] .ub-buch-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 8px;
  background: #7d263f; color: #fff;
  font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
html body[data-bereich] .ub-buch-cta:hover { background: #7d263f; transform: translateY(-1px); }
html body[data-bereich] .ub-buch-cta:active { transform: translateY(0); }
html body[data-bereich] .ub-buch-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html body[data-bereich] .ub-buch-cta span[aria-hidden] { transition: transform .2s ease; }
html body[data-bereich] .ub-buch-cta:hover span[aria-hidden] { transform: translateX(4px); }
html body[data-bereich] .ub-buch-sample { display: inline-flex; align-items: center; min-height: 44px; color: #e8e8e8; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
html body[data-bereich] .ub-buch-sample:hover { text-decoration-thickness: 2px; }
html body[data-bereich] .ub-buch-meta { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #343434; color: #a3a3a3; font-size: .85rem; }
@media (max-width: 640px) {
  html body[data-bereich] .ub-buch { grid-template-columns: 1fr; gap: 18px; }
  html body[data-bereich] .ub-buch-icon { width: 64px; height: 64px; }
  html body[data-bereich] .ub-buch-icon::before { width: 46px; height: 46px; }
  html body[data-bereich] .ub-buch-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html body[data-bereich] .ub-buch-cta, html body[data-bereich] .ub-buch-cta span[aria-hidden] { transition: none; }
  html body[data-bereich] .ub-buch-cta:hover, html body[data-bereich] .ub-buch-cta:hover span[aria-hidden] { transform: none; }
}

/* Quellen als Klappmenü (07.11.2026) und Hinweiszeile mit Icon statt Emoji */
html body[data-bereich] .ub-quellen { margin: 28px 0 0; border: 1px solid #343434; border-radius: 12px; background: #0d0d0d; }
html body[data-bereich] .ub-quellen summary {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px;
  color: #e8e8e8; font-size: .95rem; font-weight: 600; cursor: pointer; list-style: none;
}
html body[data-bereich] .ub-quellen summary::-webkit-details-marker { display: none; }
html body[data-bereich] .ub-quellen summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border: solid #a3a3a3; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
html body[data-bereich] .ub-quellen[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
html body[data-bereich] .ub-quellen summary:hover { color: #fff; }
html body[data-bereich] .ub-quellen summary:focus-visible { outline: 2px solid var(--c, #fff); outline-offset: 2px; border-radius: 12px; }
html body[data-bereich] .ub-quellen-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--c, #a3a3a3) 14%, transparent); display: grid; place-items: center; }
html body[data-bereich] .ub-quellen-icon::before { content: ""; width: 26px; height: 26px; background: var(--c, #a3a3a3); -webkit-mask: url(assets/icons/sm/icon-klinisch.webp) center / contain no-repeat; mask: url(assets/icons/sm/icon-klinisch.webp) center / contain no-repeat; }
html body[data-bereich] .ub-quellen-n { color: #a3a3a3; font-size: .8rem; font-weight: 500; }
html body[data-bereich] .ub-quellen .sources-ul { margin: 0; padding: 4px 18px 0 68px; border-top: 1px solid #222; }
html body[data-bereich] .ub-quellen-note { margin: 0; padding: 10px 18px 16px 68px; color: #a3a3a3; font-size: .85rem; }
html body[data-bereich] .ub-hinweis { display: block; text-align: center; font-size: .85rem; line-height: 1.6; }
html body[data-bereich] .ub-hinweis::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -5px; background: #5e9590; -webkit-mask: url(assets/icons/sm/icon-fuersorge.webp) center / contain no-repeat; mask: url(assets/icons/sm/icon-fuersorge.webp) center / contain no-repeat; }
@media (max-width: 560px) {
  html body[data-bereich] .ub-quellen .sources-ul, html body[data-bereich] .ub-quellen-note { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { html body[data-bereich] .ub-quellen summary::after { transition: none; } }
/* Schutzhinweis im Report (Kontrolle mit System) bekommt das Fürsorge-Icon */
html body.report-page .report-safety h3 { display: flex; align-items: center; gap: 10px; }
html body.report-page .report-safety h3::before { content: ""; flex: none; width: 28px; height: 28px; background: #9b7fa4; -webkit-mask: url(assets/icons/sm/icon-fuersorge.webp) center / contain no-repeat; mask: url(assets/icons/sm/icon-fuersorge.webp) center / contain no-repeat; }

/* Tests in der Zeile „Dein Weg“ (ersetzt die zweite Leiste, 07.11.2026) */
html body[data-bereich] .ub-weg--tests .ub-weg-inner { overflow-x: auto; scrollbar-width: none; }
html body[data-bereich] .ub-weg--tests .ub-weg-inner::-webkit-scrollbar { display: none; }
html body[data-bereich] .ub-weg .ub-weg-tests { display: flex; align-items: center; gap: 2px; margin: 0 0 0 10px; padding: 0 0 0 12px; border-left: 1px solid #343434; list-style: none; }
html body[data-bereich] .ub-weg .ub-weg-tests li + li::before { content: none; }
html body[data-bereich] .ub-weg .ub-weg-tests a { gap: 6px; align-items: center; padding: 10px 7px; color: #8a8a8a; font-size: .75rem; border-bottom: 2px solid transparent; }
html body[data-bereich] .ub-weg .ub-weg-tests a:hover { color: #e8e8e8; }
html body[data-bereich] .ub-weg-tn { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid color-mix(in srgb, var(--c) 60%, #343434); border-radius: 50%; color: var(--c); font-size: .68rem; font-weight: 700; }
html body[data-bereich] .ub-weg .ub-weg-tests a[aria-current="page"] { color: #fff; border-bottom-color: var(--c); }
html body[data-bereich] .ub-weg .ub-weg-tests a[aria-current="page"] .ub-weg-tn { border-color: var(--c); background: var(--c); color: #000; }
@media (max-width: 760px) {
  html body[data-bereich] .ub-weg .ub-weg-tests { margin-left: 6px; padding-left: 8px; }
  html body[data-bereich] .ub-weg .ub-weg-tests a { padding: 10px 4px; }
  html body[data-bereich] .ub-weg .ub-weg-tests a:not([aria-current="page"]) .ub-weg-tt { display: none; }
}
html body[data-bereich] .ub-weg .ub-weg-tests a:not([aria-current="page"]) .ub-weg-tt { display: none; }
@media (max-width: 1100px) { html body[data-bereich] .ub-weg--tests .ub-weg-label { display: none; } }
@media (max-width: 1000px) { html body[data-bereich] .ub-weg--tests a:not([aria-current="step"]) .ub-t { display: none; } }
@media (max-width: 760px) { html body[data-bereich] .ub-weg--tests a[aria-current="step"] .ub-t { display: none; } }
