/* Endless Dance – Ticket-Funnel */

@font-face { font-family: 'EGT Poppins'; src: url('../fonts/poppins-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EGT Poppins'; src: url('../fonts/poppins-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'EGT Poppins'; src: url('../fonts/poppins-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

.egt-app {
	--egt-sand: #dbc1a6;
	--egt-ivory: #fbf6ef;
	--egt-paper: #fffdf9;
	--egt-ink: #3c2616;
	--egt-ink-2: #64462d;
	--egt-line: #e3d4c2;
	--egt-k1: #4a2f1b;
	--egt-k2: #b8814a;
	--egt-k3: #d9c3a5;
	--egt-k3-line: #9f8568;
	--egt-taken: #e6dfd6;
	--egt-error: #a3281f;
	--egt-warn: #9a3412;
	--egt-radius: 20px;
	font-family: 'EGT Poppins', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--egt-ink);
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}
.egt-app *, .egt-app *::before, .egt-app *::after { box-sizing: border-box; }
.egt-app [hidden] { display: none !important; }

body.egt-body { margin: 0; background: #dbc1a6; }
body.egt-body.egt-has-bar { padding-bottom: 0; }

.egt-shell { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.egt-has-bar .egt-shell { padding-bottom: 190px; }

/* Kopf */
.egt-hero { text-align: center; padding: 8px 0 6px; }
.egt-logo { display: block; width: 84px; height: auto; margin: 0 auto 10px; }
.egt-title { margin: 0; font-size: clamp(30px, 8vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--egt-ink); }
.egt-meta { margin: 10px 0 0; font-size: 17px; font-weight: 600; color: var(--egt-ink); }
.egt-venue { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--egt-ink-2); }

/* Karten */
.egt-main { margin-top: 18px; }
.egt-card { background: var(--egt-ivory); border-radius: var(--egt-radius); padding: 18px; margin: 0 0 14px; box-shadow: 0 1px 0 rgba(60, 38, 22, 0.06), 0 8px 24px -16px rgba(60, 38, 22, 0.35); }
.egt-cardhead { margin-bottom: 14px; }
.egt-cardhead h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.egt-cardhead p { margin: 4px 0 0; font-size: 14.5px; color: var(--egt-ink-2); }
.egt-cardhead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.egt-center { text-align: center; }
.egt-free { font-weight: 600; color: var(--egt-ink); }

/* Legende */
.egt-legend { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.egt-legend li { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 560px) {
	.egt-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
}
.egt-legend b { font-weight: 700; }
.egt-legend-state { color: var(--egt-ink-2); }
.egt-dot { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--egt-k2); }
.egt-dot.egt-k1 { background: var(--egt-k1); }
.egt-dot.egt-k2 { background: var(--egt-k2); }
.egt-dot.egt-k3 { background: var(--egt-k3); box-shadow: inset 0 0 0 1.5px var(--egt-k3-line); }
.egt-dot.is-taken { background: var(--egt-taken); box-shadow: inset 0 0 0 1px #cfc6bb; }
.egt-dot.is-selected { background: #fff; box-shadow: inset 0 0 0 3px var(--egt-ink); }

/* Saalplan */
.egt-mapwrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--egt-paper); border: 1px solid var(--egt-line); border-radius: 14px; padding: 4px 0; }
.egt-map { display: block; margin: 0 auto; max-width: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.egt-map text { font-family: inherit; }
.egt-stage { fill: #8a6b52; }
.egt-stage-label { fill: #fff; font-size: 14px; font-weight: 700; letter-spacing: 5px; }
.egt-divider { stroke: var(--egt-ink); stroke-width: 2; stroke-linecap: round; }
.egt-box { fill: #ebdecd; stroke: var(--egt-k3-line); stroke-width: 1.5; }
.egt-box-label { fill: var(--egt-ink-2); font-size: 13px; font-weight: 500; }
.egt-row-label { fill: var(--egt-ink-2); font-size: 11px; font-weight: 600; }
.egt-area-label { fill: var(--egt-ink); font-size: 14px; font-weight: 700; }

.egt-seat { cursor: pointer; outline: none; }
.egt-seat-hit { fill: transparent; }
.egt-seat-dot { fill: var(--egt-k2); transition: fill .12s, stroke .12s; }
.egt-k1 .egt-seat-dot { fill: var(--egt-k1); }
.egt-k2 .egt-seat-dot { fill: var(--egt-k2); }
.egt-k3 .egt-seat-dot { fill: var(--egt-k3); stroke: var(--egt-k3-line); stroke-width: 1.3; }
.egt-seat-check { fill: none; stroke: var(--egt-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: none; }
.egt-seat-x { fill: none; stroke: #9c9186; stroke-width: 1.6; stroke-linecap: round; display: none; }
.egt-seat.is-taken { cursor: not-allowed; }
.egt-seat.is-taken .egt-seat-dot { fill: var(--egt-taken); stroke: #d3cabf; stroke-width: 1; }
.egt-seat.is-taken .egt-seat-x { display: inline; }
.egt-seat.is-selected .egt-seat-dot { fill: #fff; stroke: var(--egt-ink); stroke-width: 3; }
.egt-seat.is-selected .egt-seat-check { display: inline; }
.egt-seat.is-selected .egt-seat-x { display: none; }
.egt-seat:focus-visible .egt-seat-dot { stroke: #1f4fd1; stroke-width: 3; }
@media (hover: hover) {
	.egt-seat:not(.is-taken):hover .egt-seat-dot { stroke: var(--egt-ink); stroke-width: 2.6; }
}

.egt-zoom { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.egt-zbtn { min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--egt-line); border-radius: 999px; background: #fff; color: var(--egt-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.egt-zbtn:hover { border-color: var(--egt-k3-line); }
.egt-zbtn:first-child, .egt-zbtn:last-child { font-size: 22px; line-height: 1; padding: 0; }
.egt-hint { margin: 10px 0 0; font-size: 13px; color: var(--egt-ink-2); text-align: center; }
@media (min-width: 720px) { .egt-hint { display: none; } }

/* Untere Leiste */
.egt-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--egt-ivory); border-top: 1px solid var(--egt-line); box-shadow: 0 -10px 30px -18px rgba(60, 38, 22, 0.55); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.egt-bar-inner { max-width: 980px; margin: 0 auto; }
.egt-bar-hint { margin: 4px 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--egt-ink-2); }
.egt-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.egt-chips::-webkit-scrollbar { display: none; }
.egt-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 12px; border: 1.5px solid var(--egt-line); border-radius: 999px; background: #fff; color: var(--egt-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.egt-chip-x { font-size: 18px; line-height: 1; color: var(--egt-ink-2); }
.egt-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.egt-bar-sum { display: flex; flex-direction: column; line-height: 1.2; }
.egt-bar-sum span { font-size: 13px; color: var(--egt-ink-2); }
.egt-bar-sum b { font-size: 22px; font-weight: 700; }

/* Buttons */
.egt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.egt-btn-primary { background: var(--egt-ink); color: var(--egt-ivory); }
.egt-btn-primary:hover { background: #2b1a0e; }
.egt-btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.egt-btn-ghost { background: transparent; color: var(--egt-ink); box-shadow: inset 0 0 0 2px var(--egt-ink); }
.egt-link { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--egt-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.egt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Countdown */
.egt-timer { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; padding: 12px 16px; border-radius: 999px; background: var(--egt-ink); color: var(--egt-ivory); font-size: 15px; font-weight: 500; text-align: center; }
.egt-timer b { font-weight: 700; font-variant-numeric: tabular-nums; }
.egt-timer.is-low { background: var(--egt-warn); }
.egt-icon { display: inline-flex; width: 22px; height: 22px; }
.egt-icon svg { width: 100%; height: 100%; }
.egt-icon-big { width: 52px; height: 52px; color: var(--egt-ink); margin: 0 auto 6px; }

/* Warenkorb */
.egt-lines { list-style: none; margin: 0; padding: 0; }
.egt-lines li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--egt-line); }
.egt-line-main { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.egt-line-main small { font-size: 13px; color: var(--egt-ink-2); }
.egt-line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.egt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-size: 16px; }
.egt-total b { font-size: 24px; }

/* Formular */
.egt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.egt-span2 { grid-column: span 2; }
@media (max-width: 520px) { .egt-fields { grid-template-columns: minmax(0, 1fr); } .egt-span2 { grid-column: auto; } }
.egt-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.egt-field input { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid #cdb9a2; border-radius: 12px; background: #fff; color: var(--egt-ink); font: inherit; font-size: 16px; }
.egt-field input:focus { outline: none; border-color: var(--egt-ink); box-shadow: 0 0 0 3px rgba(184, 129, 74, 0.35); }
.egt-field input[aria-invalid="true"] { border-color: var(--egt-error); }
.egt-err { margin: 4px 0 0; min-height: 0; font-size: 13.5px; font-weight: 500; color: var(--egt-error); }
.egt-err:empty { display: none; }
.egt-consent { margin-top: 14px; }
.egt-consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.egt-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--egt-ink); }
.egt-consent a, .egt-small a, .egt-foot a { color: var(--egt-ink); text-underline-offset: 3px; }
.egt-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f1e6d8; font-size: 13.5px; color: var(--egt-ink-2); }
.egt-paypal { min-height: 60px; }
.egt-loading { margin: 8px 0; text-align: center; color: var(--egt-ink-2); }
.egt-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fbe4dc; color: #7a1f14; font-size: 14.5px; font-weight: 500; }

/* Ergebnis */
.egt-success { text-align: center; }
.egt-success h2 { margin: 4px 0 6px; font-size: 24px; }
.egt-success > p { margin: 0 auto; max-width: 560px; color: var(--egt-ink-2); }
.egt-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 20px 0 6px; text-align: left; }
.egt-ticket { padding: 14px 16px; border: 2px dashed var(--egt-k2); border-radius: 14px; background: #fff; }
.egt-ticket-top { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--egt-ink-2); }
.egt-ticket-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; align-items: end; }
.egt-ticket-grid small { display: block; font-size: 12px; color: var(--egt-ink-2); }
.egt-ticket-grid strong { font-size: 34px; line-height: 1.1; }
.egt-ticket-price { text-align: right; }
.egt-ticket-price b { font-size: 18px; }
.egt-ticket-code { margin: 8px 0 0; font-size: 13px; color: var(--egt-ink-2); }
.egt-ticket-code code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; color: var(--egt-ink); letter-spacing: 0.04em; }
.egt-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px auto 0; max-width: 560px; text-align: left; font-size: 14.5px; }
.egt-facts dt { color: var(--egt-ink-2); }
.egt-facts dd { margin: 0; font-weight: 600; }
.egt-small { margin: 16px 0 0; font-size: 13.5px; color: var(--egt-ink-2); }

/* Fuß, Toast, Overlay */
.egt-foot { margin-top: 26px; text-align: center; font-size: 13px; color: var(--egt-ink-2); }
.egt-foot p { margin: 4px 0; }
.egt-foot-links { display: flex; justify-content: center; gap: 16px; }
.egt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; max-width: min(520px, calc(100% - 32px)); transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 14px; background: var(--egt-ink); color: var(--egt-ivory); font-size: 14.5px; font-weight: 500; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.egt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.egt-has-bar .egt-toast { bottom: 170px; }
.egt-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(60, 38, 22, 0.55); }
.egt-overlay-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 30px; border-radius: 18px; background: var(--egt-ivory); color: var(--egt-ink); font-weight: 600; }
.egt-overlay-card p { margin: 0; }
.egt-spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--egt-line); border-top-color: var(--egt-ink); animation: egt-spin 0.8s linear infinite; }
@keyframes egt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .egt-spinner { animation-duration: 2s; } .egt-toast { transition: none; } }

@media (min-width: 720px) {
	.egt-shell { padding-top: 32px; }
	.egt-card { padding: 24px; }
	.egt-logo { width: 96px; }
}

/* Apple Pay */
.egt-applepay-wrap { margin: 0 0 4px; }
.egt-applepay { display: block; width: 100%; height: 48px; border: 0; border-radius: 24px; cursor: pointer;
	-webkit-appearance: -apple-pay-button; -apple-pay-button-type: pay; -apple-pay-button-style: black; }
.egt-or { text-align: center; font-size: 13px; color: var(--egt-ink-2); margin: 10px 0 6px; }
