/* BER-LINK Plattform: Ticket-Baustein, Danke-Seite, Newsletter-Seiten. Nutzt die Farben und Knoepfe aus styles.css (--text, --line, .button ...).
 * Eigene Klassen beginnen mit bl-. Keine Schriftdateien, keine Schriftangaben: die Schrift kommt von styles.css. */

.bl-page { padding: 40px 0 56px; }
.bl-card,
.bl-box {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.bl-card h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 14px; }
.bl-card p { color: var(--text-soft); line-height: 1.6; margin: 0 0 14px; }
.bl-heading { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 18px; }
.bl-box h3 { font-size: 1.15rem; margin: 6px 0 10px; }

/* Sprachwahl */
.bl-lang { display: flex; gap: 6px; justify-content: flex-end; width: min(100%, 720px); margin: 0 auto 12px; }
.bl-lang-btn {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.76); color: var(--text);
  font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; cursor: pointer;
}
.bl-lang-btn[aria-pressed="true"] { background: var(--brand-indigo); border-color: var(--brand-indigo); color: #fff; }
.bl-lang-btn:focus-visible { outline: 3px solid rgba(19, 138, 138, 0.45); outline-offset: 2px; }

/* Ticketzeilen */
.bl-list { display: grid; gap: 12px; margin-bottom: 18px; }
.bl-ticket {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px 18px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.88);
}
.bl-ticket.is-soldout { opacity: 0.6; }
.bl-ticket-info { display: grid; gap: 4px; min-width: 0; }
.bl-ticket-name { font-size: 1.05rem; overflow-wrap: anywhere; }
.bl-ticket-desc { color: var(--text-soft); font-size: 0.92rem; line-height: 1.45; }
.bl-ticket-price { font-weight: 700; white-space: nowrap; }
.bl-stepper { display: inline-flex; align-items: center; gap: 4px; }
.bl-step {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.bl-step:hover:not(:disabled) { border-color: var(--brand-teal); }
.bl-step:focus-visible { outline: 3px solid rgba(19, 138, 138, 0.45); outline-offset: 2px; }
.bl-step:disabled { opacity: 0.35; cursor: not-allowed; }
.bl-qty { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Summe, Knopf, Meldungen */
.bl-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 4px; border-top: 1px solid var(--line);
}
.bl-total-value { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bl-hint, .bl-paynote { margin: 0 0 10px; color: var(--text-soft); font-size: 0.92rem; line-height: 1.5; }
.bl-hint:empty { display: none; }
.bl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.bl-box .button[disabled], .bl-card .button[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.bl-buy { min-width: 200px; }
.bl-message { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; line-height: 1.5; }
.bl-message[hidden], .bl-reload[hidden] { display: none; }
.bl-message-error { background: rgba(176, 42, 55, 0.08); border: 1px solid rgba(176, 42, 55, 0.3); color: #8d1f2c; }
.bl-message-ok { background: rgba(15, 122, 91, 0.08); border: 1px solid rgba(15, 122, 91, 0.3); color: #0b5c44; }

/* Mock-Hinweise */
.bl-mocknote {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px;
  padding: 10px 14px; border-radius: 14px; background: rgba(37, 63, 133, 0.07); border: 1px dashed rgba(37, 63, 133, 0.35);
  font-size: 0.9rem; color: var(--text);
}
.bl-badge {
  padding: 3px 10px; border-radius: 999px; background: var(--brand-indigo); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.bl-mockcheckout { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.9); }
.bl-mock-lines { margin: 0 0 12px; padding-left: 1.2em; line-height: 1.7; }
.bl-mock-summary { margin: 0 0 6px; color: var(--text-soft); font-size: 0.9rem; }
.bl-mock-total { display: flex; justify-content: space-between; margin: 0 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.bl-reserved { margin: 0 0 14px; color: var(--text-soft); }
.bl-checkout[hidden], .bl-selection[hidden] { display: none; }
.bl-checkout-mount { min-height: 120px; }
.bl-loading { color: var(--text-soft); }

/* Demo-Seite: Platzhalter fuer Rechtstexte der Seite */
.bl-legal-slot {
  margin-top: 18px; padding: 12px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7); border: 1px dashed var(--line);
}

/* Danke- und Newsletter-Seiten */
.bl-thanks-title, .bl-nl-title { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 14px; }
.bl-thanks-text, .bl-nl-text { color: var(--text-soft); line-height: 1.6; margin: 0 0 14px; }
.bl-card[data-state="paid"] .bl-thanks-title,
.bl-card[data-state="done"] .bl-nl-title { color: #0b5c44; }

@media (max-width: 560px) {
  .bl-card, .bl-box { padding: 20px 16px; border-radius: var(--radius-md); }
  .bl-ticket { grid-template-columns: minmax(0, 1fr) auto; }
  .bl-ticket-info { grid-column: 1 / -1; }
  .bl-buy, .bl-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bl-box *, .bl-card * { transition: none !important; } }
.bl-nl-title:focus { outline: none; }
/* .button setzt display; das hidden-Attribut muss trotzdem gewinnen */
.bl-box [hidden], .bl-card [hidden] { display: none !important; }
/* Glanz-Effekt von .button (::before) wuerde beim Antippen rechts ueber den Rand ragen und auf dem Handy die Seite verbreitern */
.bl-box .button, .bl-card .button { overflow: hidden; }
.bl-card, .bl-card h1 { text-align: left; }
.bl-actions + .bl-nl-text { margin-top: 18px; }

/* Widerrufsfunktion (/tickets/widerruf, § 356a BGB, 24.11.2026) */
.bl-wr-form { display: grid; gap: 14px; margin: 6px 0 18px; }
.bl-field { display: grid; gap: 6px; }
.bl-field-label { font-weight: 700; font-size: 0.95rem; }
.bl-field-hint { color: var(--text-soft); font-size: 0.88rem; line-height: 1.45; }
.bl-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: inherit; }
.bl-input:focus-visible { outline: 3px solid rgba(19, 138, 138, 0.45); outline-offset: 1px; }
.bl-input[readonly] { background: rgba(0, 0, 0, 0.04); }
.bl-wr-order { margin: 0 0 16px; }
.bl-wr-h2 { font-size: 1.05rem; margin: 0 0 8px; }
.bl-wr-line { margin: 0 0 6px; overflow-wrap: anywhere; }
.bl-wr-ticket { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bl-wr-check { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--brand-indigo); }
.bl-wr-receipt { color: inherit; font-weight: 700; margin-bottom: 6px; }
.bl-card .bl-wr-order { padding: 16px 18px; box-shadow: none; width: 100%; }
.bl-wr-note { min-height: 84px; resize: vertical; }

/* Gehostete Preiskarte (E6, data-bl-checkout="hosted"): Karte und Knopf kommen aus styles.css (event-price-*, button-colorful), hier nur Knopf-Zustaende */
.bl-hosted { width: 100%; }
.bl-hosted [hidden] { display: none !important; }
.bl-hosted .event-price-tier.is-soldout { opacity: 0.6; }
/* Veranstaltungssprache oben rechts, mittig zur Raute (.event-price-icon 50 px, Kartenabstand 28/24 px, am Handy 22/18 px aus styles.css).
   Breite begrenzt, damit sie nie unter die Raute laeuft; Schrift mindestens 14 px (Handy-Feinschliff). */
.bl-hosted .bl-hosted-lang {
  position: absolute; top: 53px; right: 24px; transform: translateY(-50%);
  max-width: calc(100% - 24px - 50px - 12px - 24px); margin: 0; padding: 4px 12px;
  border: 1px solid rgba(18, 36, 60, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  color: var(--text-soft); font-size: 0.9rem; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .bl-hosted .bl-hosted-lang { top: 47px; right: 18px; max-width: calc(100% - 18px - 50px - 10px - 18px); }
}
.bl-hosted-buy { font: inherit; cursor: pointer; }
.bl-hosted-buy:disabled,
.bl-hosted-buy:disabled:hover { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; gap: 10px; filter: none; }
.bl-hosted-buy:disabled::before { opacity: 0.2; }
.bl-hosted .bl-message { width: min(100%, 520px); margin: 18px auto 0; }
/* Zahlungsmittel unter der Preiskarte (pruefer-Befund 5, nur wenn config.js zahlarten nennt) */
.bl-hosted .bl-hosted-zahlarten { display: block; width: min(100%, 520px); margin: 14px auto 0; text-align: center; }
/* Kaufformular (Plattform-Migration 20261128010001): nur bei Events mit Kaeuferfeldern oder Promo-Code */
.bl-form { width: min(100%, 520px); margin: 0 auto 28px; display: grid; gap: 14px; text-align: left; }
.bl-form-title { margin: 0; font-size: 1.1rem; }
.bl-form-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.bl-form-field label, .bl-form-field legend { font-size: 15px; font-weight: 600; padding: 0; }
.bl-form-input { font: inherit; font-size: 16px; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(20, 40, 70, 0.25); border-radius: 10px; background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.bl-form-input:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.bl-form-radio { display: block; }
.bl-form-radio legend { margin-bottom: 4px; }
.bl-form-radio label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; margin-right: 18px; }
.bl-form-radio input { width: 20px; height: 20px; }
.bl-hosted-actions { justify-content: center; margin-top: 0; }
