/* Seite /ratgeber/eventbrite-gebuehren-vermeiden: Entscheidungsratgeber.
   Nur Tokens aus styles.css, keine eigenen Farben. Keine Eventbrite-Gestaltung. */

/* ---- Artikelbreite: .article__body begrenzt sonst auch .article__wide --- */
.artikel .article__body { max-width: none; }
.artikel .article__body > :not(.article__wide) { max-width: var(--container-prose); }
.artikel .article__body > p { max-width: min(68ch, var(--container-prose)); }
.artikel .article__wide { margin-block: var(--s-8); }
.artikel__merksatz { font-weight: 700; }
.artikel__cta { margin-top: var(--s-6); }
.artikel .faq { margin-top: var(--s-6); }

/* ---- Hero: Text links, Gebuehrenillustration rechts ---------------------- */
.artikel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
}
.artikel-hero__text .hero__sub { margin-bottom: var(--s-5); }
.artikel-hero__text .hero__lead { margin-bottom: var(--s-4); }
.artikel-hero__text .hero__lead:last-child { margin-bottom: 0; }
.artikel-hero__frage { margin: 0 0 var(--s-4); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 900px) { .artikel-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); } }

.gebuehrbild {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: var(--s-8) clamp(var(--s-4), 3vw, var(--s-8)) var(--s-6);
  display: grid;
  gap: var(--s-6);
}
.gebuehrbild__titel { margin: 0; font-weight: 700; font-size: 1.1rem; }
.gebuehrbild__zeile { display: grid; gap: var(--s-2); }
.gebuehrbild__zeile + .gebuehrbild__zeile { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.gebuehrbild__wer { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tann); }
.gebuehrbild__raster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 6px; }
.gebuehrbild__klammer {
  grid-column: 1 / 5; grid-row: 1;
  font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center;
  border: 2px solid var(--line-strong); border-bottom: 0; border-radius: 6px 6px 0 0;
  padding-top: 2px; height: 22px;
}
.gebuehrbild__teil {
  grid-row: 2; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 4px; font-size: .85rem; font-weight: 700; text-align: center; min-width: 0;
}
.gebuehrbild__teil--erloes { grid-column: 1 / 4; background: var(--tann); color: var(--card); border-radius: 8px 0 0 8px; }
.gebuehrbild__teil--preis { grid-column: 1 / 5; background: var(--tann); color: var(--card); border-radius: 8px 0 0 8px; }
.gebuehrbild__teil--gebuehr {
  grid-column: 4 / 5;
  background: repeating-linear-gradient(135deg, var(--amber-tint) 0 6px, var(--card) 6px 12px);
  border: 2px dashed var(--amber-700); color: var(--ink); border-radius: 0 8px 8px 0;
}
.gebuehrbild__teil--extra { grid-column: 5 / 6; }
.gebuehrbild__fuss { margin: 0; font-size: .88rem; color: var(--muted); }

/* Inhaltsverzeichnis: lange H2 als Liste in zwei Spalten */
.artikel-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-4); }
.artikel-toc a { width: 100%; border-radius: var(--r-btn); justify-content: flex-start; text-align: left; line-height: 1.3; padding-block: 8px; }
@media (max-width: 760px) { .artikel-toc ol { grid-template-columns: minmax(0, 1fr); } }

/* ---- Zwei Checkout-Beispiele (Sektion 2) --------------------------------- */
.checkouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.checkouts__spalte { display: grid; gap: var(--s-3); align-content: start; grid-template-rows: auto auto auto 1fr; }
.checkouts__spalte h3 { margin: 0; font-size: 1.2rem; }
.checkouts__spalte > p { margin: 0; }
.checkouts__mock { margin-top: var(--s-6); align-self: end; }
.checkout__gebuehr { border-style: dashed; }
.checkout__gebuehr .shop__price { color: var(--muted); }
.checkout__gebuehr--plus { border-color: var(--amber-700); background: var(--amber-tint); }
.checkout__gebuehr--plus .shop__price { color: var(--ink); }
@media (max-width: 760px) { .checkouts { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); } }

/* ---- Exemplarischer Kaufprozess (Sektion 3) ------------------------------ */
.kaufweg { display: grid; gap: var(--s-4); }
.kaufweg__badge { justify-self: start; }
.kaufweg .flow { margin-top: 0; }

/* ---- Rechner ------------------------------------------------------------- */
.artikel__rechner { scroll-margin-top: 96px; }
.artikel__rechner .rechner { margin-top: 0; }

/* ---- Wechsel-Checkliste mit fuenf Schritten (K16, H3 je Schritt) --------- */
.wechselliste { margin-block: 0; }
.wechselliste .pruefliste-box__head { margin-bottom: var(--s-4); }
.wechselliste__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3);
}
.wechselliste__schritt {
  position: relative;
  display: grid; grid-template-rows: auto 1fr; gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--paper);
  transition: background-color .15s ease, border-color .15s ease;
}
.wechselliste__schritt:hover { border-color: var(--line-strong); }
.wechselliste__schritt:has(input:checked) { background: var(--tann-tint); border-color: var(--line-strong); }
/* Checkbox: sichtbar 22 px, Trefferflaeche 44 px */
.wechselliste__schritt input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 44px; margin: -11px;
  display: grid; place-items: center;
  border-radius: 10px; background: none; cursor: pointer;
  position: relative; z-index: 1;
}
.wechselliste__schritt input[type="checkbox"]::before {
  content: ""; grid-area: 1 / 1; width: 22px; height: 22px; box-sizing: border-box;
  border: 2px solid var(--line-strong); border-radius: 6px; background: var(--card);
}
.wechselliste__schritt input[type="checkbox"]::after {
  content: ""; grid-area: 1 / 1; width: 6px; height: 11px; margin-top: -3px;
  border: solid var(--card); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0;
}
.wechselliste__schritt input[type="checkbox"]:checked::before { background: var(--tann); border-color: var(--tann); }
.wechselliste__schritt input[type="checkbox"]:checked::after { opacity: 1; }
.wechselliste__schritt input[type="checkbox"]:focus-visible { outline: 3px solid var(--amber); outline-offset: -8px; }
@media print { .wechselliste__schritt input[type="checkbox"]::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.wechselliste .pruefliste-box__actions .btn--sm { min-height: 44px; }
.wechselliste__inhalt h3 { margin: 0 0 var(--s-2); font-size: 1rem; line-height: 1.3; }
.wechselliste__inhalt label { cursor: pointer; }
/* ganze Karte klickbar: Label legt eine Flaeche ueber die Karte */
.wechselliste__inhalt label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wechselliste__inhalt p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) {
  .wechselliste__liste { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .wechselliste__schritt { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; gap: var(--s-3) var(--s-4); }
  .wechselliste__schritt input[type="checkbox"] { margin-top: -10px; }
}

/* Abschluss-Band: Linkzeile nicht auf Absatzbreite umbrechen */
.cta-band .cta-band__links { max-width: none; align-items: center; }

/* Langes Beispiel-Label nicht ueber die Browserleiste legen: eigene Zeile ueber dem Rahmen */
.checkouts__mock .mock__tag { position: static; display: inline-flex; margin-bottom: var(--s-2); }
