/* Ratgeber: QR Code Tickets erstellen und scannen (Seite 14)
   Nur seitenspezifische Ergänzungen, ausschließlich vorhandene Tokens. */

/* ---- Artikel: breite Bereiche wirklich in Containerbreite ---------------- */
.article__body { max-width: none; }
.article__body > :not(.article__wide) { max-width: var(--container-prose); }
.article__body > p { max-width: min(68ch, var(--container-prose)); }
.article__body > h2 { scroll-margin-top: 96px; }

/* ---- Hero: Text links, QR Ticket und Scanner rechts ------------------------ */
.qr-hero { padding-bottom: var(--s-8); }
.qr-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
}
.qr-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.7rem); max-width: 16ch; }
.qr-hero .hero__sub { margin-block: var(--s-5) var(--s-4); }
.qr-hero .hero__lead { margin: 0 0 var(--s-3); max-width: 56ch; }
@media (max-width: 900px) {
  .qr-hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
}

.qr-stage { max-width: 520px; padding: 0 0 6% 0; }
.qr-stage__ticket { width: 61%; transform: rotate(-3deg); }
.qr-stage__phone { width: 37%; right: 0; bottom: 0; }

/* Großes Ticket mit dekorativem QR Muster (skaliert mit der Bühnenbreite) */
.qr-ticket {
  font-size: clamp(9px, 3cqi, 15px);
  display: grid;
  gap: .8em;
  padding: 1.6em;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--tann);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.qr-ticket p { margin: 0; }
.qr-ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.qr-ticket__brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-size: .9em; color: var(--muted); }
.qr-ticket__brand::before { content: ""; width: 1.3em; height: 1.3em; border-radius: .35em; background: var(--tann); }
.qr-ticket__type { font-size: max(9px, .72em); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tann); }
.qr-ticket__event { font-weight: 800; font-size: 1.5em; line-height: 1.15; letter-spacing: -0.01em; }
.qr-ticket__meta { color: var(--muted); font-size: .9em; }
.qr-ticket__qr {
  margin-top: .4em;
  padding: 1em;
  border-radius: .9em;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
}
.qr-ticket__qr .qr-box { width: 82%; margin-inline: auto; }
.qr-ticket__rows { margin: 0; display: grid; gap: .4em; font-size: .92em; }
.qr-ticket__rows div { display: flex; justify-content: space-between; gap: 1em; }
.qr-ticket__rows dt { color: var(--muted); }
.qr-ticket__rows dd { margin: 0; font-weight: 700; }

/* ---- Funktionsweise: drei Komponenten ------------------------------------- */
.qr-flow { margin-block: var(--s-8); }
.qr-flow .flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qr-flow .flow__node p { margin: 0; }
.qr-flow .flow__text { margin-top: 2px; font-size: .88rem; }
@media (max-width: 760px) {
  .qr-flow .flow__steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Tickets erstellen: fünf zusammenhängende Ansichten ------------------- */
.qr-folge {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-6);
  counter-reset: none;
}
.qr-folge__item { position: relative; min-width: 0; }
.qr-folge__item h3 { font-size: 1.05rem; margin: var(--s-4) 0 var(--s-2); }
.qr-folge__item p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.qr-folge__item p + p { margin-top: var(--s-2); }
.qr-folge__media {
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  display: grid;
  align-items: center;
  padding: var(--s-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--ink);
}
/* Pfeil zur nächsten Ansicht */
.qr-folge__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--s-6) + 4px);
  width: calc(var(--s-6) - 8px);
  height: 12px;
  top: 66px;
  background: var(--tann);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 5h19V1l5 5-5 5V7H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 5h19V1l5 5-5 5V7H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.qr-folge .mini { font-size: clamp(9px, 6.2cqi, 13px); gap: .45em; }
.qr-folge .mini__box { padding: .6em .7em; gap: .3em; }
.qr-folge .badge { font-size: .62rem; padding: 1px 7px; }
.qf-zeile { color: var(--muted); font-size: .88em; display: block; }
.qf-reihe { display: flex; justify-content: space-between; gap: .6em; font-weight: 700; }
.qf-reihe span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.qf-reihe--chips { justify-content: flex-start; flex-wrap: wrap; font-weight: 600; }
.qf-reihe--chips span:last-child { font-family: inherit; }
.qf-chip { display: inline-flex; align-items: center; gap: .4em; justify-self: start; padding: .15em .6em; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9em; }
.qf-chip::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--tann); }
.qf-ticket { grid-template-columns: 2.6em minmax(0, 1fr); align-items: center; column-gap: .6em; }
.qf-ticket__qr .qr-box { width: 2.6em; }
.qf-ticket__qr .qr-muster { padding: 0; border-radius: .3em; }
.qf-ticket__text { display: grid; gap: .15em; min-width: 0; }
.qf-scan { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .6em; background: var(--tann); border-color: var(--tann); color: var(--card); }
.qf-scan svg { width: 1.9em; height: 1.9em; }
.qf-scan .qf-zeile { color: var(--on-tann); }
.qf-scan > span { display: grid; }

@media (max-width: 1000px) {
  .qr-folge { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .qr-folge__item {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: var(--s-6);
    align-items: start;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .qr-folge__item:last-child { border-bottom: 0; }
  .qr-folge__media { grid-row: span 3; }
  .qr-folge__item h3 { margin-top: 0; }
  .qr-folge__item:not(:last-child)::after { content: none; }
}
@media (max-width: 560px) {
  .qr-folge__item { grid-template-columns: minmax(0, 1fr); }
  .qr-folge__media { grid-row: auto; max-width: 280px; }
  .qr-folge__item h3 { margin-top: var(--s-4); }
}

/* ---- Mehrfache Einlösung: Gegenüberstellung --------------------------------- */
.qr-vergleich {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: start;
  gap: var(--s-10);
}
.qr-vergleich__item { display: grid; justify-items: center; }
.qr-vergleich__item .mock__caption { text-align: center; max-width: 30ch; }
@media (max-width: 640px) {
  .qr-vergleich { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .qr-vergleich .phone { width: 100%; padding: 7px; border-radius: 22px; }
  .qr-vergleich .phone__screen { border-radius: 16px; }
  .qr-vergleich .mock__caption { font-size: .82rem; }
}

/* ---- Offlinebetrieb: zweigeteilte Darstellung ------------------------------ */
.qr-betrieb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.qr-betrieb__panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "label label" "phone rows" "phone hint";
  align-content: start;
  gap: var(--s-4) var(--s-6);
  padding: var(--s-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--ink);
}
.qr-betrieb__panel--offline { background: var(--paper); border: 2px dashed var(--line-strong); }
.qr-betrieb__label { grid-area: label; margin: 0; display: flex; align-items: center; gap: var(--s-2); font-weight: 800; font-size: 1.1rem; }
.qr-betrieb__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tann); }
.qr-betrieb__dot--offline { background: transparent; border: 2px solid var(--muted); }
.qr-betrieb__phone { grid-area: phone; margin-top: var(--s-2); }
.qr-betrieb__phone .phone--sm { width: 180px; }
.qr-betrieb__rows { grid-area: rows; margin: 0; display: grid; gap: var(--s-3); align-content: start; }
.qr-betrieb__rows div { display: grid; gap: 2px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.qr-betrieb__rows dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qr-betrieb__rows dd { margin: 0; font-weight: 600; line-height: 1.4; }
.qr-betrieb__hint { grid-area: hint; margin: 0; padding: var(--s-3) var(--s-4); border-radius: 10px; background: var(--amber-tint); font-size: .92rem; line-height: 1.45; align-self: start; }
@media (max-width: 1000px) {
  .qr-betrieb { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .qr-betrieb__panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "phone" "rows" "hint"; }
  .qr-betrieb__phone { justify-self: center; }
  .qr-betrieb__phone .phone--sm { width: 200px; }
}

/* ---- Tipps ------------------------------------------------------------------- */
.article__body > .qr-tipps { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.qr-tipp {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.qr-tipp__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tann-tint); color: var(--tann); }
.qr-tipp__icon svg { width: 22px; height: 22px; }
.qr-tipp h3 { font-size: 1.1rem; margin: 2px 0 var(--s-1); }
.qr-tipp p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ---- FAQ und Abschluss --------------------------------------------------------- */
.article__body > .faq { margin-top: var(--s-6); }
.cta-band .cta-band__links { max-width: none; align-items: center; row-gap: 0; }
.cta-band__links > span { display: inline-flex; align-items: center; min-height: 44px; }

@media print {
  .qr-stage, .qr-flow, .qr-vergleich, .qr-betrieb, .qr-folge__media { display: none !important; }
  .qr-hero__inner, .qr-folge { display: block; }
  .qr-folge__item, .qr-tipp { break-inside: avoid; margin-bottom: 8pt; }
}

/* FAQ-Frage als h3 im summary: optisch wie der bisherige summary-Text */
.faq summary > .faq__frage { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; text-wrap: inherit; }
