/* Tourpate – Kaufseite und Danke-Seite: Express-Kauf (Apple Pay / Google Pay), Bezahl-Block, großer Code.
   Nur auf kaufen.html und kaufen-danke.html eingebunden (site.css bleibt unverändert). */

.hint--top { margin: -6px 0 14px; }
.fs--pay legend { margin-bottom: 10px; }

/* Wesentliche Angaben direkt vor den Knöpfen (§ 312j BGB): Paket, Laufzeit, Preis */
.pay-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 16px 18px; margin: 0 0 18px; border-radius: 18px; background: var(--meadow);
}
.pay-total p { margin: 0; }
.pay-total__what { font-size: 1.05rem; }
.pay-total__sum b { font: 700 1.6rem/1.1 var(--font-display); }
.pay-total__sum small { color: var(--ink-2); font-size: .95rem; }

.check--big { margin: 18px 0 4px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); }
.check--big:has(input:checked) { border-color: var(--forest); }
@media (prefers-color-scheme: dark) { .check--big:has(input:checked) { border-color: var(--green); } }
.check--big input { width: 30px; height: 30px; }
.check--big[data-fehlt] { border-color: var(--alarm); }

/* Express-Knöpfe: groß, volle Breite, zuerst */
.express { margin: 22px 0 6px; }
.express__btns { display: grid; gap: 12px; max-width: 30rem; }
.apple-pay-btn {
  display: block; width: 100%; height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black;
}
@media (prefers-color-scheme: dark) { .apple-pay-btn { -apple-pay-button-style: white; } }
.apple-pay-btn[hidden], .google-pay-slot[hidden], .stripe-slot[hidden] { display: none; }
.google-pay-slot { min-height: 56px; }
.google-pay-slot button { width: 100% !important; min-height: 56px; border-radius: 14px !important; }
.stripe-slot { min-height: 52px; }
.express[data-gesperrt] .express__btns { opacity: .55; }
.express__oder { display: flex; align-items: center; gap: 12px; max-width: 30rem; margin: 26px 0 0; color: var(--ink-2); font-size: 1rem; }
.express__oder::before, .express__oder::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.rechnung-opt { margin-top: 18px; max-width: 40rem; }
.rechnung-opt summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--green-text); }
.rechnung-opt[open] summary { margin-bottom: 4px; }

/* ---------- Danke-Seite ---------- */
.code-box--gross { text-align: center; padding: 26px 14px; }
/* Code in EINER Zeile (auf dem iPhone ca. 27 px, auf großen Bildschirmen bis 3,2rem); Umbruch notfalls am Bindestrich */
.code-box--gross .code-box__code {
  font: 700 clamp(1.5rem, 7vw, 3.2rem)/1.15 var(--font-display); letter-spacing: .03em; margin: 10px 0 20px;
  word-break: normal; user-select: all; -webkit-user-select: all;
}
.code-box--gross .btn { width: 100%; max-width: 22rem; justify-content: center; }
.code-einloesen {
  margin: 22px auto 0; max-width: 30rem; padding: 14px 18px; border-radius: 16px; background: var(--meadow);
  font-size: 1.15rem; text-align: left;
}
.code-einloesen b { white-space: nowrap; }
.code-pruefen { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 600; }
.code-pruefen::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 3px solid var(--line); border-top-color: var(--green); animation: code-dreh 1s linear infinite;
}
@keyframes code-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .code-pruefen::before { animation: none; } }
.page-head--knapp { padding-top: clamp(28px, 5vw, 64px); }
.page-head--knapp h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.code-pruefen[hidden] { display: none; }
.widerruf-text { margin: 0 0 4px; max-width: 40rem; }
.widerruf-text summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--green-text); }
.widerruf-text[open] summary { margin-bottom: 8px; }

/* Hinweis „Bestellen geht noch nicht“ (Bezahlen noch nicht eingerichtet, kaufen.js notReady) */
.kauf-hinweis {
  margin-top: 14px; padding: 16px 18px; border-radius: 16px; border-left: 5px solid var(--sun);
  background: color-mix(in srgb, var(--sun-soft) 75%, var(--surface)); color: var(--ink); font-size: 1.05rem;
}
.kauf-hinweis:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.kauf-hinweis p { margin: 0 0 .6em; }
.kauf-hinweis p:last-child { margin-bottom: 0; }
.kauf-hinweis__titel { font: 700 1.2rem/1.3 var(--font-display); }
@media (prefers-color-scheme: dark) { .kauf-hinweis { background: color-mix(in srgb, var(--sun) 12%, var(--surface)); } }

/* Monats-Abo (kaufen.js syncAbo) */
.abo-hinweis { padding: 12px 14px; border-radius: 14px; background: var(--meadow); color: var(--ink); }
.konto .abo-hinweis { margin: 0 0 12px; }
.abo-aus { display: none !important; }
.radio-card.is-aus { opacity: .45; }
.radio-card.is-aus * { cursor: not-allowed; }
