/* PA Tandem Buchung – Kunden-Ansicht. Farbe über --patb-accent (Einstellungen). */
.patb {
	--patb-accent: #3a7d2c;
	--patb-ink: #1f2933;
	--patb-muted: #6b7280;
	--patb-line: #e2e5e9;
	--patb-soft: #f5f7f6;
	--patb-few: #e9a23b;
	--patb-radius: 10px;
	color: var(--patb-ink);
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
.patb *, .patb *::before, .patb *::after { box-sizing: border-box; }
.patb-app.is-loading { opacity: .6; transition: opacity .15s; }
.patb-step { margin: 0 0 28px; }
.patb-h { font-size: 1.15em; margin: 0 0 12px; font-weight: 700; }
.patb-sub { font-weight: 400; color: var(--patb-muted); font-size: .9em; margin-left: 6px; }
.patb-error:empty { display: none; }
.patb-error { background: #fdecea; color: #8a1c13; border-radius: var(--patb-radius); padding: 12px 14px; margin: 0 0 20px; }
.patb-muted, .patb-note, .patb-help { color: var(--patb-muted); }
.patb-note { font-size: .92em; }

/* Flugarten */
.patb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.patb-type { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 2px solid var(--patb-line); border-radius: var(--patb-radius); background: #fff; color: inherit; cursor: pointer; font: inherit; }
.patb-type img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.patb-type-name { font-weight: 700; }
.patb-type-meta { color: var(--patb-muted); font-size: .9em; }
.patb-type.is-selected { border-color: var(--patb-accent); box-shadow: 0 0 0 1px var(--patb-accent); }

/* Kalender */
.patb-cal { border: 1px solid var(--patb-line); border-radius: var(--patb-radius); padding: 12px; background: #fff; }
.patb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.patb-nav { width: 40px; height: 40px; border: 1px solid var(--patb-line); background: #fff; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; }
.patb-nav:disabled { opacity: .3; cursor: default; }
.patb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.patb-wd { text-align: center; font-size: .78em; color: var(--patb-muted); padding: 4px 0; }
.patb-day { height: 44px; min-height: 38px; border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; background: var(--patb-soft); color: var(--patb-ink); position: relative; padding: 0; }
.patb-day.is-open { background: color-mix(in srgb, var(--patb-accent) 16%, #fff); }
.patb-day.is-few { background: color-mix(in srgb, var(--patb-few) 22%, #fff); }
.patb-day.is-full { background: #fff; color: #b8bec6; text-decoration: line-through; cursor: default; }
.patb-day.is-closed, .patb-day.is-loading { background: transparent; color: #c4c9cf; font-weight: 400; cursor: default; }
.patb-day.is-selected { background: var(--patb-accent); color: #fff; }
.patb-day:not(:disabled):hover { outline: 2px solid var(--patb-accent); }
.patb-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .82em; color: var(--patb-muted); }
.patb-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.patb-legend .is-open::before { background: color-mix(in srgb, var(--patb-accent) 16%, #fff); border: 1px solid color-mix(in srgb, var(--patb-accent) 40%, #fff); }
.patb-legend .is-few::before { background: color-mix(in srgb, var(--patb-few) 22%, #fff); border: 1px solid var(--patb-few); }
.patb-legend .is-full::before { background: #fff; border: 1px solid var(--patb-line); }

/* Slots */
.patb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.patb-slot { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border: 2px solid var(--patb-line); border-radius: var(--patb-radius); background: #fff; color: inherit; font: inherit; cursor: pointer; }
.patb-slot small { color: var(--patb-muted); font-size: .8em; }
.patb-slot:disabled { opacity: .45; cursor: default; background: var(--patb-soft); }
.patb-slot:not(:disabled):hover { border-color: var(--patb-accent); }
.patb-slot.is-selected { border-color: var(--patb-accent); background: var(--patb-accent); color: #fff; }
.patb-slot.is-selected small { color: #fff; }

/* Formular */
.patb-form { border: 1px solid var(--patb-line); border-radius: var(--patb-radius); padding: 16px; background: #fff; }
.patb-chosen { margin: 0 0 14px; padding: 10px 12px; background: var(--patb-soft); border-radius: 8px; font-weight: 600; }
.patb-row { margin-bottom: 12px; }
.patb-row > label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95em; }
.patb-row input[type="text"], .patb-row select, .patb-row textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd4da; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.patb-row input:focus, .patb-row select:focus, .patb-row textarea:focus { outline: 2px solid var(--patb-accent); outline-offset: 0; border-color: transparent; }
.patb-row-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.patb-row-check input { margin-top: 4px; }
.patb-req { color: #b42318; }
.patb-unit { font-weight: 400; color: var(--patb-muted); }
.patb-help { display: block; font-size: .85em; margin-top: 3px; }

/* Buttons */
.patb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.patb-btn { padding: 12px 18px; border-radius: 999px; border: 2px solid var(--patb-accent); background: #fff; color: var(--patb-accent); font: inherit; font-weight: 700; cursor: pointer; }
.patb-btn-primary { background: var(--patb-accent); color: #fff; }
.patb-btn:disabled { opacity: .6; cursor: default; }
.patb-link { background: none; border: 0; padding: 0; color: var(--patb-accent); text-decoration: underline; font: inherit; cursor: pointer; }
.patb-back { margin-top: -8px; }

/* Auswahl */
.patb-items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--patb-line); border-radius: var(--patb-radius); background: #fff; }
.patb-item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--patb-line); }
.patb-item:last-child { border-bottom: 0; }
.patb-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.patb-total { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 1.1em; }
.patb-sms { margin: 8px 0; font-size: .95em; }

@media (max-width: 480px) {
	.patb-actions .patb-btn { width: 100%; }
	.patb-cal { padding: 8px; }
	.patb-grid { gap: 3px; }
	.patb-day { height: auto; aspect-ratio: 1 / 1; }
}

/* Auswahlbild */
.patb-item { align-items: flex-start; }
.patb-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.patb-item-main { flex: 1; min-width: 0; }

/* Zahlungsart */
.patb-pay { display: grid; gap: 10px; }
.patb-pay-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 14px 16px; border: 2px solid var(--patb-line); border-radius: var(--patb-radius); background: #fff; color: inherit; font: inherit; cursor: pointer; }
.patb-pay-opt:hover { border-color: color-mix(in srgb, var(--patb-accent) 50%, var(--patb-line)); }
.patb-pay-opt.is-selected { border-color: var(--patb-accent); background: color-mix(in srgb, var(--patb-accent) 6%, #fff); }
.patb-pay-body { display: flex; flex-direction: column; gap: 2px; flex-wrap: wrap; }
.patb-pay-body small { color: var(--patb-muted); font-size: .88em; line-height: 1.4; }
.patb-radio { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #b8bec6; background: #fff; }
.patb-pay-opt.is-selected .patb-radio { border-color: var(--patb-accent); box-shadow: inset 0 0 0 4px #fff; background: var(--patb-accent); }
.patb-badge { display: inline-block; font-size: .78em; font-weight: 700; color: #fff; background: var(--patb-accent); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.patb-pay-body strong .patb-badge, .patb-pay-body > .patb-badge { align-self: flex-start; }
.patb-voucher { margin: -2px 0 4px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--patb-accent) 50%, var(--patb-line)); border-radius: var(--patb-radius); background: var(--patb-soft); }
.patb-voucher-row { display: flex; gap: 8px; }
.patb-voucher-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cfd4da; border-radius: 8px; font: inherit; text-transform: uppercase; letter-spacing: .05em; }
.patb-voucher-row .patb-btn { padding: 10px 16px; }
.patb-voucher-msg { margin: 10px 0 0; font-size: .92em; }
.patb-voucher-msg.is-error { color: #8a1c13; }
.patb-voucher-msg.is-ok { color: #1e5a26; }

/* Kontakt */
.patb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.patb-row input[type="email"], .patb-row input[type="tel"] { width: 100%; padding: 10px 12px; border: 1px solid #cfd4da; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.patb-contact .patb-row-check { margin: 10px 0; font-size: .95em; }
.patb-contact .patb-row-check a { color: var(--patb-accent); }
.patb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.patb-btn-wide { min-width: 260px; }

/* Danke */
.patb-done { text-align: center; }
.patb-done .patb-items { text-align: left; margin: 16px 0; }
.patb-done-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--patb-accent); color: #fff; font-size: 30px; line-height: 56px; }

@media (max-width: 480px) {
	.patb-grid2 { grid-template-columns: 1fr; }
	.patb-btn-wide { min-width: 0; }
	.patb-item-img { width: 48px; height: 48px; }
}

/* 1.7: Gutschein vor Ort prüfen */
.patb .patb-voucher-onsite { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #f6f7f6; border: 1px dashed #c9d1cd; }
.patb .patb-voucher-onsite p { margin: 0 0 8px; font-size: .95em; }
.patb .patb-voucher-onsite .patb-btn { white-space: normal; text-align: left; height: auto; min-height: 42px; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; }
.patb-phone-hint { display: block; margin-top: 4px; font-size: 13px; opacity: .85; }
.patb-phone-hint:empty { display: none; }
.patb-phone-hint .is-warn { color: #b42318; font-weight: 600; }
