/* TVB Probetraining – Einverständniserklärung – Formular-Styles
   Vereinsfarbe: Blau aus dem Briefkopf der Vereinsformulare (#2e75b6).
   Optik konsistent mit der Anmeldungs-App (anmeldung.tv1848bodenheim.de). */

.tvb-probetraining {
	--tvb-blue: #2e75b6;
	--tvb-blue-dark: #1f5182;
	--tvb-bg: #f5f7fa;
	--tvb-border: #d3dce6;
	--tvb-text: #23303d;
	--tvb-error: #c0392b;
	--tvb-success: #1e7d43;
	max-width: 760px;
	margin: 0 auto;
	color: var(--tvb-text);
	font-size: 16px;
	line-height: 1.5;
}

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

/* hidden-Attribut muss auch gegen display-Regeln (z. B. .tvb-loading: flex) gewinnen */
.tvb-probetraining [hidden] {
	display: none !important;
}

.tvb-header {
	background: linear-gradient(135deg, var(--tvb-blue) 0%, var(--tvb-blue-dark) 100%);
	color: #fff;
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
}

.tvb-header h2 {
	margin: 0 0 0.25rem;
	color: #fff;
	font-size: 1.5rem;
}

.tvb-header p {
	margin: 0;
	opacity: 0.85;
	font-size: 0.875rem;
}

.tvb-card {
	background: #fff;
	border: 1px solid var(--tvb-border);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
}

.tvb-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	color: var(--tvb-blue-dark);
}

.tvb-grid {
	display: grid;
	gap: 0 1rem;
}

.tvb-grid-2 {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
	.tvb-grid-2 {
		grid-template-columns: 1fr;
	}
	.tvb-card {
		padding: 1rem;
	}
}

.tvb-field {
	margin-bottom: 0.9rem;
}

.tvb-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

.tvb-field input[type="text"],
.tvb-field input[type="email"],
.tvb-field input[type="tel"],
.tvb-field input[type="date"] {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--tvb-border);
	border-radius: 8px;
	font-size: 1rem; /* verhindert Auto-Zoom auf iOS */
	background: #fff;
	color: var(--tvb-text);
	-webkit-appearance: none;
	appearance: none;
	min-height: 44px;
}

.tvb-field input:focus {
	outline: none;
	border-color: var(--tvb-blue);
	box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.18);
}

.tvb-field input:disabled {
	background: var(--tvb-bg);
	color: #5a6b7c;
}

.tvb-field input.tvb-invalid,
.tvb-signature.tvb-invalid,
.tvb-check.tvb-invalid {
	border-color: var(--tvb-error) !important;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
	border-radius: 8px;
}

.tvb-req {
	color: var(--tvb-error);
}

.tvb-optional {
	color: #7a8a99;
	font-weight: 400;
	font-size: 0.85em;
}

.tvb-hint {
	font-size: 0.875rem;
	color: #5a6b7c;
	margin: 0.25rem 0 0.75rem;
}

.tvb-legal {
	font-size: 0.85rem;
	color: #46586a;
	background: var(--tvb-bg);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin: 0 0 0.9rem;
}

/* Feste Vorbelegungen (Read-only-Infobox) */
.tvb-info {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.tvb-info li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.925rem;
}

.tvb-info li span:first-child {
	font-weight: 600;
	color: var(--tvb-blue-dark);
	min-width: 130px;
}

/* Bedingungen als nummerierte Liste */
.tvb-conditions {
	margin: 0 0 0.9rem;
	padding: 0.75rem 1rem 0.75rem 1.75rem;
	background: var(--tvb-bg);
	border-radius: 8px;
	font-size: 0.9rem;
	color: #46586a;
}

.tvb-conditions li {
	margin-bottom: 0.4rem;
}

.tvb-conditions li:last-child {
	margin-bottom: 0;
}

.tvb-radios {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 2px;
}

.tvb-radios.tvb-invalid {
	border: 1px solid var(--tvb-error) !important;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
	border-radius: 8px;
}

.tvb-radio {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	border: 1px solid var(--tvb-border);
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.tvb-radio:has(input:checked) {
	border-color: var(--tvb-blue);
	background: rgba(46, 117, 182, 0.07);
}

.tvb-radio input {
	margin-top: 0.2rem;
	accent-color: var(--tvb-blue);
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
}

.tvb-check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	padding: 2px;
	font-size: 0.95rem;
}

.tvb-check input {
	margin-top: 0.25rem;
	accent-color: var(--tvb-blue);
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
}

/* PayPal-Alternative */
.tvb-paypal {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	border: 1px solid var(--tvb-border);
	border-radius: 8px;
	padding: 0.9rem 1rem;
	margin-top: 0.9rem;
}

.tvb-paypal img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
	flex-shrink: 0;
}

.tvb-paypal-text {
	flex: 1 1 220px;
	font-size: 0.9rem;
	color: #46586a;
}

.tvb-paypal-text a {
	color: var(--tvb-blue-dark);
	font-weight: 600;
	word-break: break-all;
}

.tvb-hint-block {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--tvb-border);
}

.tvb-signature {
	border: 2px dashed var(--tvb-border);
	border-radius: 10px;
	background: #fdfefe;
	position: relative;
	margin-bottom: 0.6rem;
}

.tvb-signature canvas {
	display: block;
	width: 100%;
	height: 180px;
	touch-action: none;
	border-radius: 8px;
}

.tvb-btn {
	display: inline-block;
	border: none;
	border-radius: 8px;
	padding: 0.8rem 1.4rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
	min-height: 48px;
	-webkit-appearance: none;
	appearance: none;
}

.tvb-btn:active {
	transform: scale(0.98);
}

.tvb-btn-primary {
	background: var(--tvb-blue);
	color: #fff;
}

.tvb-btn-primary:hover {
	background: var(--tvb-blue-dark);
	color: #fff;
}

.tvb-btn-secondary {
	background: #fff;
	color: var(--tvb-blue-dark);
	border: 2px solid var(--tvb-blue);
}

.tvb-btn-secondary:hover {
	background: rgba(46, 117, 182, 0.08);
}

.tvb-btn-ghost {
	background: transparent;
	color: #5a6b7c;
	border: 1px solid var(--tvb-border);
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
	min-height: 36px;
}

.tvb-btn-ghost:hover {
	background: var(--tvb-bg);
}

.tvb-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.tvb-actions {
	margin: 1.25rem 0;
	text-align: center;
}

.tvb-actions .tvb-btn-primary {
	width: 100%;
	max-width: 420px;
}

.tvb-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.tvb-actions-row .tvb-btn {
	flex: 1 1 240px;
	max-width: 100%;
}

.tvb-errors {
	background: #fdf0ee;
	border: 1px solid var(--tvb-error);
	color: var(--tvb-error);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	font-size: 0.925rem;
}

.tvb-errors ul {
	margin: 0.25rem 0 0 1.1rem;
	padding: 0;
}

.tvb-result {
	border-color: var(--tvb-success);
	border-width: 2px;
}

.tvb-result h3 {
	color: var(--tvb-success);
}

.tvb-status {
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.tvb-status.tvb-status-success {
	background: #e9f7ef;
	border: 2px solid var(--tvb-success);
	color: var(--tvb-success);
}

.tvb-status.tvb-status-error {
	background: #fdf0ee;
	border: 2px solid var(--tvb-error);
	color: var(--tvb-error);
}

/* Wochentag-Anzeige unter den Datumsfeldern */
.tvb-weekday {
	margin: 0.3rem 0 0;
	font-weight: 600;
	color: var(--tvb-blue-dark);
}

.tvb-weekday:empty {
	display: none;
}

/* Teil-Link-Bereich */
.tvb-share {
	margin-top: 0.5rem;
}

.tvb-share-sep {
	border: none;
	border-top: 1px solid var(--tvb-border);
	margin: 1.25rem 0 1rem;
}

.tvb-share h4 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	color: var(--tvb-blue-dark);
}

.tvb-share-result {
	margin-top: 0.5rem;
}

.tvb-share-result label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.tvb-share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
}

.tvb-share-row input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--tvb-border);
	border-radius: 8px;
	font-size: 0.95rem;
	background: var(--tvb-bg);
	color: var(--tvb-text);
	min-height: 44px;
}

.tvb-share-row .tvb-btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.55rem 1.1rem;
}

.tvb-loading {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	gap: 1rem;
}

.tvb-loading p {
	font-weight: 600;
	color: var(--tvb-blue-dark);
}

.tvb-spinner {
	width: 48px;
	height: 48px;
	border: 5px solid rgba(46, 117, 182, 0.2);
	border-top-color: var(--tvb-blue);
	border-radius: 50%;
	animation: tvb-spin 0.8s linear infinite;
}

@keyframes tvb-spin {
	to {
		transform: rotate(360deg);
	}
}

.tvb-center {
	text-align: center;
}

.tvb-footer {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tvb-border);
	text-align: center;
	font-size: 0.85rem;
	color: #5a6b7c;
}

.tvb-footer nav {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.4rem;
}

.tvb-footer a {
	color: var(--tvb-blue-dark);
	text-decoration: none;
}

.tvb-footer a:hover {
	text-decoration: underline;
}

.tvb-footer p {
	margin: 0;
}

.tvb-cookie-modal {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 45, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99998;
	padding: 1rem;
}

.tvb-cookie-box {
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	max-width: 460px;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.tvb-cookie-box h3 {
	margin: 0 0 0.75rem;
	color: var(--tvb-blue-dark);
}

.tvb-cookie-box p {
	font-size: 0.925rem;
	color: #46586a;
}

/* Honeypot unsichtbar positionieren (nicht display:none, damit Bots es ausfüllen) */
.tvb-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 1px;
	overflow: hidden;
}
