.hsc-tkt-form-wrap {
	max-width: 480px;
	margin: 20px 0;
	padding: 26px;
	border: 1px solid rgba(212,175,55,0.35);
	border-radius: 20px;
	background: #111;
	color: #f0f0f0;
	box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.hsc-tkt-form-header {
	text-align: center;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(212,175,55,0.4);
}
.hsc-tkt-form-logo { max-width: 90px; height: auto; margin: 0 auto 10px; display: block; }
.hsc-tkt-eyebrow {
	display: inline-block;
	background: rgba(212,175,55,0.12);
	color: #d4af37;
	border: 1px solid rgba(212,175,55,0.4);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.hsc-tkt-form-title { color: #fff; font-size: 20px; margin: 6px 0 0; font-weight: 700; }
.hsc-tkt-form-image { margin: 0 0 18px; }
.hsc-tkt-event-image {
	width: 100% !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	object-fit: cover;
	border-radius: 16px;
	max-width: 100%;
}
.hsc-tkt-event-description {
	color: #ccc;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 18px;
}
.hsc-tkt-event-description p { margin: 0 0 10px; }
.hsc-tkt-event-description p:last-child { margin-bottom: 0; }
.hsc-tkt-event-description a { color: #d4af37; }
.hsc-tkt-event-description h1,
.hsc-tkt-event-description h2,
.hsc-tkt-event-description h3,
.hsc-tkt-event-description h4 { color: #fff; margin: 12px 0 8px; }
.hsc-tkt-event-description img { max-width: 100%; height: auto; border-radius: 6px; }
.hsc-tkt-event-description ul,
.hsc-tkt-event-description ol { margin: 0 0 10px 20px; }
.hsc-tkt-info-card {
	background: #f7f5ef;
	border: 1px solid #e2ddd0;
	border-left: 3px solid #d4af37;
	border-radius: 14px;
	padding: 16px 18px;
	margin: 0 0 20px;
}
.hsc-tkt-event-info p { margin: 8px 0; color: #333; font-size: 16px; display: flex; align-items: baseline; gap: 6px; }
.hsc-tkt-event-info p:first-child { margin-top: 0; }
.hsc-tkt-event-info p:last-child { margin-bottom: 0; }
.hsc-tkt-event-info p strong { color: #9a7c1f; }
.hsc-tkt-info-icon { font-size: 15px; }
.hsc-tkt-register-form label { font-weight: 600; color: #e6e6e6; display: block; }
.hsc-tkt-customer-fields p { margin: 0 0 14px; }
/*
 * !important ist hier bewusst gesetzt: WordPress-Themes bringen häufig eigene,
 * global geltende input[type=text/email]-Regeln mit (z.B. transparenter
 * Hintergrund, kein Rahmen), die sonst unsere Formularfelder unsichtbar
 * machen würden, obwohl sie technisch vorhanden sind.
 */
.hsc-tkt-register-form input[type="text"],
.hsc-tkt-register-form input[type="email"] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	padding: 9px !important;
	margin-top: 4px !important;
	border: 1px solid #ddd !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
	background: #fff !important;
	color: #222 !important;
	min-height: 20px;
	line-height: normal;
	font-size: 15px;
}
.hsc-tkt-register-form input[type="text"]:focus,
.hsc-tkt-register-form input[type="email"]:focus {
	outline: none !important;
	border-color: #d4af37 !important;
}
.hsc-tkt-submit-btn {
	background: #d4af37;
	color: #111;
	border: none;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	width: 100%;
	transition: background 0.15s, transform 0.1s;
}
.hsc-tkt-submit-btn:hover:not(:disabled) { background: #f0d060; }
.hsc-tkt-submit-btn:active:not(:disabled) { transform: scale(0.98); }
.hsc-tkt-message { margin-top: 10px; padding: 10px 14px; border-radius: 10px; }
.hsc-tkt-message.hsc-tkt-error { background: #3d1212; color: #f08080; }
.hsc-tkt-message.hsc-tkt-success { background: #123d1f; color: #6fdc8c; }
.hsc-tkt-closed { padding: 14px; background: #3d1212; border-radius: 12px; color: #f08080; }

.hsc-tkt-types-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 14px 0;
	background: #f7f5ef;
	border-radius: 14px;
	overflow: hidden;
}
.hsc-tkt-types-table th { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e2ddd0; color: #9a7c1f; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; background: #f7f5ef; }
.hsc-tkt-types-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eae6da; color: #222; vertical-align: middle; }
.hsc-tkt-types-table tr:last-child td { border-bottom: none; }
.hsc-tkt-type-remaining { color: #777; font-weight: 400; }
.hsc-tkt-qty-stepper {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 999px;
	overflow: hidden;
}
.hsc-tkt-qty-btn {
	width: 30px;
	height: 30px;
	border: none;
	background: transparent;
	color: #a3841f;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.hsc-tkt-qty-btn:hover:not(:disabled) { background: rgba(212,175,55,0.12); }
.hsc-tkt-qty-btn:disabled { color: #ccc; cursor: not-allowed; }
.hsc-tkt-types-table input.hsc-tkt-qty {
	display: inline-block !important;
	visibility: visible !important;
	width: 36px !important;
	padding: 6px 0 !important;
	border: none !important;
	border-left: 1px solid #ddd !important;
	border-right: 1px solid #ddd !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #222 !important;
	text-align: center !important;
	-moz-appearance: textfield;
}
.hsc-tkt-types-table input.hsc-tkt-qty::-webkit-outer-spin-button,
.hsc-tkt-types-table input.hsc-tkt-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.hsc-tkt-total { font-size: 17px; font-weight: 700; margin: 10px 0; color: #f0f0f0; }
.hsc-tkt-total-amount { color: #d4af37; }
.hsc-tkt-submit-btn:disabled { background: #555; color: #999; cursor: not-allowed; }

.hsc-tkt-payment-methods { margin: 14px 0; padding: 14px 16px; background: #1c1c1c; border-radius: 14px; }
.hsc-tkt-payment-label { margin: 0 0 8px; font-weight: 700; color: #d4af37; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.hsc-tkt-payment-option { display: block; margin: 6px 0; color: #f0f0f0; font-weight: 400; cursor: pointer; }
.hsc-tkt-payment-option input { margin-right: 6px; }
.hsc-tkt-payment-hint { color: #999; font-size: 12px; }
.hsc-tkt-paypal-fee-hint { color: #999; font-size: 12px; margin: 4px 0 10px 24px; }

.hsc-tkt-person-intro { color: #ccc; font-size: 13px; margin: 14px 0 10px; }
.hsc-tkt-person-group {
	background: #f7f5ef;
	border: 1px solid #e2ddd0;
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.hsc-tkt-person-group-title {
	color: #9a7c1f;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 8px;
}
.hsc-tkt-person-row { margin-bottom: 12px; }
.hsc-tkt-person-row:last-child { margin-bottom: 0; }
.hsc-tkt-person-row-label { color: #555; font-size: 12px; font-weight: 600; margin: 0 0 4px; }
.hsc-tkt-person-row input {
	display: block !important;
	visibility: visible !important;
	width: 100% !important;
	padding: 8px !important;
	margin-bottom: 6px !important;
	border: 1px solid #ddd !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #222 !important;
	box-sizing: border-box !important;
}
.hsc-tkt-person-row input:last-child { margin-bottom: 0 !important; }
.hsc-tkt-person-row input:focus { outline: none !important; border-color: #d4af37 !important; }
.hsc-tkt-paypal-total { color: #d4af37; font-weight: 600; }
.hsc-tkt-paypal-hint { color: #d4af37; text-align: center; margin: 10px 0; }
.hsc-tkt-paypal-fee-notice {
	background: #1c1c1c;
	border: 1px solid #d4af37;
	border-radius: 6px;
	padding: 12px;
	margin: 14px 0;
	text-align: center;
	color: #f0f0f0;
	font-size: 14px;
}
.hsc-tkt-paypal-buttons { max-width: 320px; margin: 10px auto; }
.hsc-tkt-contact-note {
	text-align: center;
	color: #999;
	font-size: 13px;
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(212,175,55,0.2);
}
.hsc-tkt-contact-note a { color: #d4af37; }

/* Admin: Bildfokus-Auswahl (3x3-Raster) */
.hsc-focus-picker {
	display: grid;
	grid-template-columns: repeat(3, 44px);
	grid-template-rows: repeat(3, 44px);
	gap: 4px;
	background: #1c1c1c;
	padding: 10px;
	border-radius: 6px;
	width: max-content;
}
.hsc-focus-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #333;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
}
.hsc-focus-cell input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hsc-focus-dot { width: 12px; height: 12px; border-radius: 50%; background: #666; transition: background 0.15s, transform 0.15s; }
.hsc-focus-cell:hover .hsc-focus-dot { background: #999; }
.hsc-focus-cell input:checked ~ .hsc-focus-dot { background: #d4af37; transform: scale(1.3); }

/* Admin: Ticketarten-Repeater */
.hsc-tt-table { border-collapse: collapse; margin-top: 8px; }
.hsc-tt-table th, .hsc-tt-table td { padding: 6px 8px; }

/* Admin: Tickets-Tabelle */
.hsc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hsc-tickets-table { table-layout: auto; border-collapse: collapse; min-width: max-content; }
.hsc-tickets-table th, .hsc-tickets-table td { white-space: nowrap; padding: 8px 12px; }
.hsc-tickets-table .hsc-col-cb { width: 28px; }
.hsc-tickets-table .hsc-col-nr { width: 80px; white-space: nowrap; }
.hsc-tickets-table .hsc-col-actions { width: 130px; white-space: nowrap; }
.hsc-tickets-table thead th { background: #f6f7f7; position: sticky; top: 32px; z-index: 2; }
.hsc-tickets-table thead th a { text-decoration: none; color: inherit; font-weight: 600; }
.hsc-tickets-table thead th a:hover { color: #2271b1; }

/* Admin: Scan-Protokoll */
.hsc-scanlog-invalid-row { background: #fdeaea; }
.hsc-scanlog-invalid-text { color: #a00; font-weight: 600; }
.hsc-scanlog-valid-text { color: #0a6; font-weight: 600; }
.hsc-not-delivered { color: #999; font-style: italic; }

.hsc-col-picker { position: relative; margin-left: auto; }
.hsc-col-picker-panel {
	position: absolute;
	right: 0;
	top: 34px;
	z-index: 50;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	border-radius: 4px;
	padding: 10px 14px;
	min-width: 180px;
}
.hsc-col-picker-panel label { display: block; padding: 3px 0; font-size: 13px; white-space: nowrap; }
.hsc-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: flex-start;
}
.hsc-row-actions .button {
	white-space: nowrap;
	font-size: 12px;
	padding: 0 8px;
	line-height: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
.hsc-row-actions .button .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
}
.hsc-icon-btn {
	width: 30px;
	height: 30px;
	padding: 0 !important;
	justify-content: center;
}
.hsc-icon-btn .dashicons { width: 16px; height: 16px; font-size: 16px; }
.hsc-btn-paid { border-color: #0a6 !important; }
.hsc-btn-paid .dashicons { color: #0a6; }
.hsc-row-cancel .dashicons { color: #a00; }
.hsc-order-start td { border-top: 2px solid #ccc; }

.hsc-bulk-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
	padding: 10px;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	flex-wrap: wrap;
}
#hsc-bulk-status { color: #666; font-style: italic; }
.hsc-bulk-email-toggle { font-size: 13px; color: #555; display: flex; align-items: center; gap: 4px; }

/* Admin: Status-Hervorhebung */
.hsc-status-used { color: #a00; font-weight: 700; }
.hsc-status-cancelled { color: #888; text-decoration: line-through; }

/* Admin: Zahlungsübersicht */
.hsc-amount-open { color: #a00; font-weight: 600; }
.hsc-amount-paid { color: #0a6; font-weight: 600; }
.hsc-totals-row th { border-top: 2px solid #333; font-size: 14px; }

/* Admin: Ticket-Design */
.hsc-sponsor-logos { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.hsc-remove-logo-label { display: block; margin-top: 6px; font-size: 12px; color: #a00; }
.hsc-sponsor-logo-item { border: 1px solid #ddd; border-radius: 6px; padding: 10px; text-align: center; background: #fafafa; max-width: 220px; }
.hsc-sponsor-logo-item img { max-width: 180px; display: block; margin: 0 auto 8px; }
.hsc-logo-size-form { margin-bottom: 8px; font-size: 12px; }
.hsc-logo-size-form label { display: block; margin-bottom: 4px; }

/* Standalone Ticket-/Scanner-Seiten */
body.hsc-tkt-standalone {
	background: #111;
	color: #f5f5f5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin: 0;
}
.hsc-tkt-page {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	text-align: center;
}
.hsc-tkt-page h1 {
	color: #d4af37;
	font-size: 22px;
}
.hsc-tkt-qr { margin: 20px 0; }
.hsc-tkt-qr img { border: 8px solid #fff; border-radius: 8px; }
.hsc-tkt-code {
	font-family: monospace;
	font-size: 15px;
	letter-spacing: 1px;
	color: #d4af37;
}
.hsc-tkt-wallet-buttons { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.hsc-wallet-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	max-width: 260px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: #000;
	color: #fff;
	border: 1px solid #444;
}
.hsc-wallet-btn:hover { background: #222; color: #fff; }
.hsc-wallet-btn.hsc-wallet-google { background: #fff; color: #111; border-color: #ccc; }
.hsc-wallet-btn.hsc-wallet-google:hover { background: #f2f2f2; color: #111; }
.hsc-wallet-btn .dashicons { width: 16px; height: 16px; font-size: 16px; }
.hsc-tkt-details { text-align: left; margin-top: 20px; background: #1c1c1c; padding: 14px; border-radius: 6px; }
.hsc-tkt-single-ticket { background: #1c1c1c; border-radius: 8px; padding: 16px; margin: 18px 0; }
.hsc-tkt-single-ticket h2 { font-size: 16px; color: #fff; margin: 0 0 10px; }
.hsc-tkt-notice { padding: 14px; border-radius: 6px; margin: 16px 0; }
.hsc-tkt-notice.hsc-tkt-pending { background: #3a3210; color: #f0d060; }
.hsc-tkt-notice.hsc-tkt-used { background: #3a1010; color: #f08080; }
.hsc-tkt-group-notice { text-align: left; }
.hsc-tkt-group-list { margin: 8px 0 0; padding-left: 20px; }
.hsc-tkt-group-list li { margin: 3px 0; }

/* Scanner */
.hsc-tkt-scanner-page { max-width: 600px; }
.hsc-tkt-scanner-page #hsc-reader { margin: 16px auto; max-width: 340px; }
.hsc-camera-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}
.hsc-camera-select {
	background: #1c1c1c;
	color: #fff;
	border: 1px solid #555;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 14px;
	max-width: 260px;
}
.hsc-torch-btn {
	background: #1c1c1c;
	color: #d4af37;
	border: 1px solid #d4af37;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.hsc-torch-btn:hover { background: #2a2a2a; }
.hsc-zoom-control {
	max-width: 280px;
	margin: 10px auto 0;
	text-align: center;
}
.hsc-zoom-control label { color: #999; font-size: 12px; display: block; margin-bottom: 4px; }
.hsc-zoom-control input[type="range"] { width: 100%; }
.hsc-tkt-scan-result {
	margin-top: 16px;
	padding: 16px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 700;
}
.hsc-tkt-scan-idle { background: #1c1c1c; color: #ccc; }
.hsc-tkt-scan-busy { background: #333; color: #fff; }
.hsc-tkt-scan-ok { background: #123d1f; color: #6fdc8c; }
.hsc-tkt-scan-error { background: #3d1212; color: #f08080; }
.hsc-tkt-scan-already-used {
	background: #5c0000;
	color: #fff;
	border: 3px solid #ff3b3b;
	font-size: 20px;
	animation: hsc-pulse-warning 0.6s ease-in-out infinite alternate;
}
@keyframes hsc-pulse-warning {
	from { box-shadow: 0 0 6px 2px rgba(255,59,59,0.4); }
	to   { box-shadow: 0 0 18px 6px rgba(255,59,59,0.9); }
}
.hsc-tkt-scan-help { color: #999; font-size: 13px; }

.hsc-tkt-list-heading { color: #d4af37; margin-top: 28px; margin-bottom: 4px; font-size: 16px; text-align: left; }
.hsc-tkt-scan-stats {
	background: #1c1c1c;
	border: 1px solid #d4af37;
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 18px;
	text-align: left;
}
.hsc-tkt-stats-total { color: #d4af37; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.hsc-tkt-stats-total strong { color: #fff; }
.hsc-tkt-stats-row {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	border-top: 1px solid #333;
	color: #ccc;
	font-size: 14px;
}
.hsc-tkt-stats-row:first-child { border-top: none; }
.hsc-tkt-stats-type-name { color: #e6e6e6; }
.hsc-tkt-stats-type-count { color: #6fdc8c; font-weight: 600; }
#hsc-tkt-list-count { color: #999; font-weight: 400; font-size: 13px; }
.hsc-tkt-scan-list { text-align: left; margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.hsc-tkt-list-loading { color: #888; font-style: italic; }
.hsc-tkt-list-item {
	background: #1c1c1c;
	border-left: 4px solid #555;
	border-radius: 4px;
	padding: 8px 12px;
	margin-bottom: 6px;
}
.hsc-tkt-list-item.hsc-tkt-li-used { border-left-color: #6fdc8c; }
.hsc-tkt-list-item.hsc-tkt-li-cancelled { border-left-color: #888; opacity: 0.6; }
.hsc-tkt-list-item.hsc-tkt-li-open { border-left-color: #d4af37; }
.hsc-tkt-list-item.hsc-tkt-li-error { border-left-color: #ff3b3b; background: #2a1414; }
.hsc-tkt-li-main { color: #fff; font-size: 14px; }
.hsc-tkt-li-meta { margin-top: 3px; font-size: 12px; color: #aaa; display: flex; flex-wrap: wrap; gap: 10px; }
.hsc-tkt-li-status { text-transform: uppercase; letter-spacing: 0.03em; }
.hsc-tkt-li-used-at { color: #6fdc8c; }
