/* Öffentliche Seiten von NIBO Ticket: Shop-Seite und Tickets. Die Markenfarbe kommt als --brand. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

a, button, input, label, select { touch-action: manipulation; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #111827;
    background: #f7f7f8;
}

a { color: inherit; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; border-top: 3px solid var(--brand); }
.site-header .wrap { display: flex; align-items: center; min-height: 64px; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; }
.brand img { max-height: 40px; max-width: 200px; display: block; }

main.wrap { padding-top: 24px; padding-bottom: 40px; }

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: #4b5563; margin: 0 0 20px; }
.muted { color: #6b7280; }
.small { font-size: 14px; }

.event-image { width: 100%; border-radius: 10px; display: block; margin-bottom: 20px; aspect-ratio: 16 / 9; object-fit: cover; background: #e5e7eb; }

.facts { margin: 0 0 20px; padding: 0; border-top: 1px solid #e5e7eb; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.facts dt { color: #6b7280; }
.facts dd { margin: 0; }

.description { margin: 0 0 24px; color: #374151; }

.notice { border: 1px solid #f59e0b; background: #fffbeb; color: #92400e; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }

.event-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.event-name { font-weight: 700; font-size: 18px; margin-bottom: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 18px; border-radius: 8px;
    background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
    border: 1px solid var(--brand); transition: opacity .15s;
}
.button:hover { opacity: .92; }
.button.secondary { background: #fff; color: #111827; border-color: #d1d5db; }
.ticket-actions { flex-wrap: wrap; }
.button.secondary:hover { opacity: 1; border-color: var(--brand); }

.hint { margin: 8px 0 16px; }

/* Wallet: offizielle Badges, unverändert und mit Schutzraum. Plattform setzt ein Skript auf der Seite. */
.wallet-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; }
.wallet-title { font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.wallet-text { margin: 0 0 12px; }
.wallet-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.wallet-badges a { display: block; border-radius: 10px; }
.wallet-badges img { display: block; height: 50px; width: auto; }
.wallet-desktop { margin: 10px 0 0; }
[data-platform="ios"] [data-wallet="google"],
[data-platform="android"] [data-wallet="apple"],
[data-platform="ios"] .wallet-desktop,
[data-platform="android"] .wallet-desktop { display: none; }

.ticket-list { display: grid; gap: 12px; }
.ticket-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; padding: 14px;
}
.ticket-card .qr svg, .ticket-card .qr img { width: 168px; height: 168px; display: block; }
.ticket-type { font-weight: 700; font-size: 18px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .02em; margin: 2px 0 8px; }
.ticket-actions { display: flex; gap: 16px; align-items: center; }
.ticket-actions a, .ticket-actions button {
    font: inherit; font-size: 15px; color: #374151; background: none; border: 0; padding: 10px 0;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px;
}
.ticket-actions a:hover, .ticket-actions button:hover { color: var(--brand); }
.holder-name { font-weight: 600; margin: 0 0 4px; }
.holder summary {
    font-size: 15px; color: #374151; text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; list-style: none;
}
.holder summary::-webkit-details-marker { display: none; }
.holder summary:hover { color: var(--brand); }
.holder form { display: flex; gap: 8px; margin: 4px 0 8px; }
.holder input {
    flex: 1; min-width: 0; min-height: 44px; border: 1px solid #d1d5db; border-radius: 8px;
    padding: 0 12px; font: inherit; font-size: 16px; color: inherit; background: #fff;
}
.holder input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.holder button {
    min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--brand);
    background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.holder button:hover { opacity: .9; }

@media (max-width: 520px) {
    h1 { font-size: 24px; }
    .ticket-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .ticket-card .qr svg, .ticket-card .qr img { width: 220px; height: 220px; }
    .ticket-actions { justify-content: center; }
}

/* Rechtstexte der Plattform */
.legal-text { color: #1f2937; }
.legal-text h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
.legal-text h3 { font-size: 17px; line-height: 1.3; margin: 20px 0 6px; }
.legal-text p, .legal-text ul, .legal-text address { margin: 0 0 12px; }
.legal-text ul { padding-left: 20px; }
.legal-text li { margin-bottom: 4px; }
.legal-text address { font-style: normal; }

.site-footer { border-top: 1px solid #e5e7eb; background: #fff; font-size: 14px; color: #6b7280; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.site-footer a { color: #6b7280; }
.site-footer a:hover { color: #111827; }
