/* =====================================================================
   Kartenvorverkauf – Eventseite (hannover96.html) + „Deine Karten“ (karten.html)
   Baut auf ../css/styles.css („Matchday“) und css/fussball.css auf.
   ===================================================================== */

.tk-muted { color: var(--ink-3); }
.tk-small { font-size: 0.88rem; }
.tk-mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tk-h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; letter-spacing: 0.02em; margin: 0 0 12px; }
.tk-panel { padding: clamp(20px, 3.4vw, 32px); }

/* ---------------------------------------------------------------- Hero */
.tk-versus { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); flex-wrap: wrap; margin: 6px 0 18px; font-family: var(--font-display); text-transform: uppercase; line-height: 0.92; }
.tk-side { display: flex; align-items: center; gap: 16px; }
.tk-crest { width: clamp(52px, 7vw, 76px); height: auto; flex: none; }
.tk-roundel { flex: none; width: clamp(52px, 7vw, 76px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--ink); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; }
.tk-team { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
.tk-team b { display: block; overflow-wrap: anywhere; color: var(--ink); font-weight: 900; font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: -0.015em; }
.tk-side-r .tk-team b { color: var(--yellow); }
.tk-vs { font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--on-yellow); background: var(--yellow); border-radius: var(--r-pill); padding: 6px 16px 8px; letter-spacing: 0.02em; }
@media (max-width: 640px) {
  .tk-versus { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tk-vs { margin-left: 4px; }
}
.tk-facts .stat strong { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

/* ---------------------------------------------------------------- Bestellbereich */
.tk-order-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .tk-order-layout { grid-template-columns: 1fr; } }
.tk-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 960px) { .tk-aside { position: static; } }
.tk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tk-steps li { display: flex; gap: 14px; align-items: flex-start; }
.tk-steps .step-num { flex: none; }
.tk-steps p { margin: 4px 0 0; color: var(--ink-3); font-size: 0.93rem; }
.tk-aside .tk-panel p { margin: 0; }

.tk-form { display: grid; gap: 28px; }
.tk-form .form-step { margin: 0; }
.tk-mode { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.tk-mode button { flex: 1; min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0 14px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tk-mode button[aria-selected="true"] { background: var(--yellow); color: var(--on-yellow); }
.tk-mode button:active { transform: scale(0.98); }
@media (max-width: 520px) { .tk-mode button { font-size: 0.85rem; padding: 0 8px; } }

.tk-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-2); transition: border-color 0.2s, background 0.2s; }
.tk-cat.is-on { border-color: var(--yellow); background: var(--yellow-soft); }
.tk-cat-txt b { display: block; font-size: 1.05rem; }
.tk-cat-txt small { display: block; color: var(--ink-3); font-size: 0.83rem; margin-top: 2px; line-height: 1.35; }
.tk-price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
@media (max-width: 520px) {
  .tk-cat { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .tk-cat-txt { grid-column: 1 / -1; }
}

.tk-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg); }
.tk-stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.tk-stepper button:active:not(:disabled) { background: var(--surface-2); transform: scale(0.92); }
.tk-stepper button:disabled { color: var(--ink-4); cursor: default; opacity: 0.5; }
.tk-stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

.tk-code-row { display: flex; gap: 10px; align-items: flex-end; }
.tk-code-row .field { flex: 1; }
.tk-code-row .btn { min-height: 52px; }
#f-code { text-transform: uppercase; letter-spacing: 0.06em; }
#code-result { margin-top: 12px; }
.tk-code-ok { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--yellow); background: var(--yellow-soft); }
.tk-code-ok > div:not(.tk-stepper) { flex: 1; min-width: 160px; }
.tk-code-ok b { display: block; }
.tk-code-ok small { color: var(--ink-3); }
.tk-ok-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-weight: 900; flex: none; }
.tk-code-bad { color: #ffb4b6; margin: 0; }

.tk-summary { border-top: 1px solid var(--line); padding-top: 18px; }
.tk-summary p { margin: 0; }
.tk-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); }
.tk-sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--ink); font-size: 1.15rem; }
.tk-sum-total b { font-family: var(--font-display); font-size: 1.6rem; color: var(--yellow); }
.tk-sum-note { margin-top: 10px !important; font-size: 0.88rem; }
.tk-form .form-submit { display: grid; gap: 14px; }
.tk-form .checkbox-row a { color: var(--yellow); }
.tk-submit { justify-self: start; }
@media (max-width: 520px) { .tk-submit { justify-self: stretch; justify-content: center; } }
.tk-form .form-error { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: rgba(229, 72, 77, 0.12); border: 1px solid rgba(229, 72, 77, 0.4); color: #ffb4b6; }
.tk-form .field.is-invalid input, .tk-form .checkbox-row.is-invalid { border-color: #e5484d; }
.tk-form .is-invalid { outline: 2px solid #e5484d; outline-offset: 3px; border-radius: var(--r-md); }
.tk-form .field.is-invalid { outline: 0; }
.tk-form .field.is-invalid input { box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.25); }
.tk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tk-closed { text-align: center; display: grid; justify-items: center; gap: 6px; padding-block: 48px; }
.tk-closed p { max-width: 46ch; margin: 0; }
.tk-closed-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--yellow-soft); color: var(--yellow); display: grid; place-items: center; font-size: 30px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- Programm + FAQ */
.tk-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: 8px; }
.tk-timeline li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 0 0 26px 26px; }
.tk-timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--yellow); }
.tk-time { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--yellow); font-size: 1.1rem; letter-spacing: 0.03em; }
.tk-timeline h3 { margin: 0 0 4px; font-size: 1.4rem; }
.tk-timeline p { margin: 0; color: var(--ink-3); }
@media (max-width: 600px) { .tk-timeline li { grid-template-columns: 1fr; gap: 4px; } }

.tk-faq { display: grid; gap: 10px; }
.tk-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tk-faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; min-height: 44px; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--yellow); transition: transform 0.2s var(--ease); }
.tk-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tk-faq details[open] { border-color: var(--line-strong); }
.tk-faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.tk-faq a { color: var(--yellow); }

/* ---------------------------------------------------------------- Deine Karten */
.tk-karten { padding-top: 24px; display: grid; gap: 18px; max-width: 980px; }
.tk-karten > .back-link { justify-self: start; }
.tk-evhead { margin-top: 6px; }
.tk-evhead h1 { margin: 6px 0 10px; font-size: clamp(2rem, 7.4vw, 3.6rem); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.tk-evhead .lead { margin: 0; }
.tk-warn { border-color: rgba(229, 72, 77, 0.45); background: rgba(229, 72, 77, 0.1); }
.tk-warn .icon { color: #ff8a8d; }
.tk-pay { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 820px) { .tk-pay { grid-template-columns: 1fr; } }
.tk-amount { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1; color: var(--yellow); margin: 0 0 6px; }
.tk-bank { display: grid; gap: 0; margin: 20px 0 10px; border-top: 1px solid var(--line); }
.tk-bank > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-bank dt { color: var(--ink-3); font-size: 0.88rem; }
.tk-bank dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.tk-ref dd { color: var(--yellow); }
@media (max-width: 520px) { .tk-bank > div { grid-template-columns: 1fr; gap: 2px; } }
.tk-copy { min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.tk-copy:active { transform: scale(0.96); background: var(--surface-2); }
.tk-giro { display: grid; align-content: start; gap: 10px; }
.tk-qr { display: block; background: #fff; border-radius: var(--r-md); padding: 10px; line-height: 0; }
.tk-qr svg { width: 100%; height: auto; display: block; }
.tk-qr svg rect[fill="white"], .tk-qr svg path[fill="white"] { fill: #fff; }
.tk-qr-giro { max-width: 240px; }
.tk-items { list-style: none; margin: 0 0 14px; padding: 0; }
.tk-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tk-items .tk-sum-total { border-bottom: 0; }

.tk-tickets-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tk-tickets-head p { margin: 0; }
.tk-tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.tk-ticket { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tk-ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow); }
.tk-ticket.is-used::before { background: var(--ink-4); }
.tk-ticket .tk-qr { align-self: start; aspect-ratio: 1; }
.tk-ticket-txt { display: grid; align-content: center; gap: 4px; }
.tk-ticket-txt b { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; }
.tk-ticket-no { color: var(--ink-3); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.tk-ticket-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tk-used { color: #8be28b; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 460px) { .tk-ticket { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } }

/* Einzelkarte: hell wie ein Papierticket – gut zu scannen */
.tk-big { max-width: 460px; width: 100%; margin: 6px auto 0; background: #0a0a0a; color: #0a0a0a; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.tk-big-head { background: #0a0a0a; color: #fff; padding: 22px 24px 20px; border-bottom: 6px solid var(--yellow); }
.tk-big-kicker { color: var(--yellow); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tk-big-head h1 { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin: 8px 0 8px; letter-spacing: -0.005em; }
.tk-big-head p { margin: 0; color: #cfcfcf; font-size: 0.9rem; }
.tk-big-body { background: #fff; padding: 22px 24px 24px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.tk-qr-big { width: min(100%, 320px); padding: 0; }
.tk-big-info { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; text-align: left; }
.tk-big-info dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b6b; }
.tk-big-info dd { margin: 2px 0 0; font-weight: 600; }
.tk-big-info .tk-big-cat { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.tk-big .tk-muted { color: #6b6b6b; margin: 0; }
.tk-big .tk-used { color: #1d7a1d; margin: 0; font-size: 1rem; }
.tk-code-small { margin: 0; color: #8a8a8a; font-size: 0.78rem; letter-spacing: 0.06em; }
.tk-big.is-void .tk-big-head { border-bottom-color: #e5484d; }
.tk-void-box { width: 100%; padding: 28px 16px; border-radius: 16px; background: #fdecec; color: #a31d22; display: grid; gap: 4px; }
.tk-big-act { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Sichtbarkeit: Inhalt erst zeigen, wenn die Veranstaltung veröffentlicht ist (oder Admin-Vorschau) */
body.tk-locked main { visibility: hidden; }
.tk-preview-bar { position: sticky; top: 0; z-index: 100; background: var(--yellow); color: var(--on-yellow); padding: 10px var(--gutter); font-size: 0.9rem; text-align: center; }
.tk-preview-bar a { color: inherit; font-weight: 700; }

/* Testbuchungen (nur für angemeldete Kassenwarte) */
.tk-testbox { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed #e5484d; background: rgba(229, 72, 77, 0.1); color: var(--ink-2); font-size: 0.9rem; }
.tk-testbox b { color: #ff9b9e; }
.tk-test-banner { background: #be1e26; color: #fff; text-align: center; padding: 10px 14px; border-radius: var(--r-md); font-weight: 700; }

/* Aktueller Hinweis oben auf der Eventseite */
.tk-notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--yellow-soft); border: 1px solid rgba(255, 212, 0, 0.5); margin-bottom: 4px; }
.tk-notice .icon { font-size: 24px; color: var(--yellow); flex: none; margin-top: 2px; }
.tk-notice b { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.02em; }
.tk-notice p { margin: 4px 0 0; color: var(--ink); }
.tk-notice.is-warn { background: rgba(229, 72, 77, 0.14); border-color: rgba(229, 72, 77, 0.6); }
.tk-notice.is-warn .icon, .tk-notice.is-warn b { color: #ff9b9e; }
.info-card a { color: var(--yellow); }

/* Partner-Logo (z. B. H96), ersetzt den Text-Kreis sobald im Admin hinterlegt */
.tk-partner-logo { width: clamp(52px, 7vw, 76px); height: clamp(52px, 7vw, 76px); object-fit: contain; }
