/* Yoga Buchung – Frontend */
.yb-list { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.yb-card {
	display: flex; align-items: center; gap: 24px;
	background: #fff; border-radius: 8px; padding: 10px 18px 10px 26px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08); position: relative; overflow: hidden;
}
.yb-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--yb-color, #ff9a3c); border-radius: 8px 0 0 8px; }
.yb-card--ausgebucht::before { background: #d9534f; }
.yb-card--abgesagt::before, .yb-card--geschlossen::before { background: #999; }
.yb-card--plain { box-shadow: none; padding: 0 0 20px; margin-bottom: 8px; border-radius: 0; }
.yb-card--plain::before { display: none; }

.yb-date { flex: 0 0 110px; display: flex; flex-direction: column; line-height: 1.25; color: #222; }
.yb-day { font-size: 22px; font-weight: 700; line-height: 1.1; }
.yb-month { font-size: 14px; }
.yb-time { font-size: 13px; color: #555; }
.yb-date { line-height: 1.2; }

.yb-info { flex: 1 1 auto; min-width: 0; }
.yb-list .yb-title, .yb-modal .yb-title { margin: 0 0 2px !important; padding: 0 !important; font-size: 16px; font-weight: 600; line-height: 1.3; color: #222; }
.yb-list .yb-place, .yb-modal .yb-place { margin: 0 0 2px !important; padding: 0 !important; color: #555; font-size: 15px; line-height: 1.35; }
.yb-status { display: inline-block; font-weight: 600; font-size: 14px; line-height: 1.3; color: #1a8f3a; }
.yb-status--ausgebucht { color: #c0392b; }
.yb-status--abgesagt, .yb-status--geschlossen { color: #777; }

.yb-action { flex: 0 0 auto; }

.yb-list .yb-btn, .yb-modal .yb-btn {
	display: inline-block; border: 0; border-radius: 6px; padding: 10px 22px; font-size: 16px; font-weight: 600;
	cursor: pointer; text-decoration: none; line-height: 1.3; font-family: inherit; transition: background .15s;
	box-shadow: none; text-transform: none; letter-spacing: normal; margin: 0; min-height: 0; height: auto; width: auto;
}
.yb-list .yb-btn--primary, .yb-modal .yb-btn--primary { background: #2b5cf0; color: #fff; }
.yb-list .yb-btn--primary:hover, .yb-modal .yb-btn--primary:hover, .yb-modal .yb-btn--primary:focus-visible { background: #1d47c9; color: #fff; }
.yb-modal .yb-btn--ghost { background: #fff; color: #222; border: 1px solid #c9c9c9; }
.yb-modal .yb-btn--ghost:hover, .yb-modal .yb-btn--ghost:focus-visible { background: #f4f4f4; color: #222; }
.yb-list .yb-btn--disabled { background: #e6e6e6; color: #888; cursor: default; }
.yb-modal h2, .yb-modal h3, .yb-modal p, .yb-modal label { margin-top: 0; }
.yb-btn:focus-visible { outline: 2px solid #2b5cf0; outline-offset: 2px; }

/* Seitenweise Anzeige */
.yb-card[hidden] { display: none !important; }
.yb-pager { max-width: 960px; margin: 20px auto 0; padding-top: 14px; border-top: 1px solid #ddd; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yb-pager-info { color: #666; font-size: 15px; }
.yb-pager-nav { display: flex; gap: 4px; }
.yb-pager .yb-page { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #222; font-size: 16px; font-family: inherit; cursor: pointer; line-height: 36px; box-shadow: none; }
.yb-pager .yb-page:hover:not(:disabled) { background: #eef1fb; }
.yb-pager .yb-page--active { background: #2b5cf0; color: #fff; }
.yb-pager .yb-page:disabled { color: #bbb; cursor: default; }

/* Modal */
.yb-overlay[hidden], .yb-step[hidden], .yb-desc-wrap[hidden], .yb-more[hidden], .yb-free[hidden], .yb-error[hidden] { display: none !important; }
.yb-no-scroll { overflow: hidden; }
.yb-overlay { position: fixed; inset: 0; background: rgba(30,30,30,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.yb-modal { background: #fff; border-radius: 10px; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.25); font-size: 16px; color: #222; line-height: 1.45; }
.yb-modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #eee; }
.yb-modal-head h2 { margin: 0; flex: 1; font-size: 18px; font-weight: 600; line-height: 1.3; }
.yb-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #444; padding: 0 2px; }
.yb-back-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1px solid #bbb; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.yb-modal-body { padding: 18px 20px; }
.yb-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid #eee; }

.yb-modal .yb-card--plain { padding: 0 0 14px; margin: 0 0 12px; border-bottom: 1px solid #eee; gap: 16px; align-items: flex-start; }
.yb-modal .yb-date { flex: 0 0 64px; }
.yb-modal .yb-day { font-size: 24px; }
.yb-modal .yb-month { font-size: 14px; }
.yb-modal .yb-title { font-size: 17px; }

.yb-count { font-size: 15px; color: #666; }
.yb-count:not(:empty)::before { content: "·"; margin: 0 6px; color: #999; }
.yb-facts { display: grid; grid-template-columns: 80px 1fr; gap: 4px 0; margin: 0; } /* 80px = Datumsblock (64) + Abstand (16), damit die Spalte mit dem Titel fluchtet */
.yb-facts dt { color: #666; margin: 0; font-weight: 400; }
.yb-facts dd { margin: 0; }
.yb-desc-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.yb-desc { max-height: 6.6em; overflow: hidden; line-height: 1.5; font-size: 15px; }
.yb-desc--open { max-height: none; }
.yb-desc ul, .yb-desc ol { margin: 0 0 6px; padding-left: 22px; list-style: disc; }
.yb-desc ol { list-style: decimal; }
.yb-desc li { margin: 0 0 3px; display: list-item; }
.yb-desc p { margin: 0 0 6px; }
.yb-more { background: none; border: 0; color: #2b5cf0; padding: 4px 0 0; cursor: pointer; font-size: 15px; font-family: inherit; }

.yb-summary-line { margin: 0 0 16px; }
.yb-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.yb-qty-row label { font-weight: 500; }
.yb-qty { display: flex; align-items: center; border: 1px solid #2b5cf0; border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.yb-qty button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: #555; padding: 0; }
.yb-qty input { width: 60px; height: 40px; border: 0; text-align: center; font-size: 17px; padding: 0; -moz-appearance: textfield; }
.yb-qty input::-webkit-outer-spin-button, .yb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.yb-free { margin: 10px 0 0; color: #666; font-size: 14px; }

.yb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.yb-field label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 15px; }
.yb-req { color: #d0342c; }
.yb-field input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; font-family: inherit; }
.yb-field input:focus { outline: none; border-color: #2b5cf0; box-shadow: 0 0 0 3px rgba(43,92,240,.15); }
.yb-hp { position: absolute; left: -9999px; }
.yb-error { color: #c0392b; margin: 12px 0 0; font-weight: 500; }

.yb-confirm { text-align: center; }
.yb-check { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #1a8f3a; color: #fff; font-size: 28px; line-height: 52px; }
.yb-confirm-text { font-size: 17px; font-weight: 500; margin: 0 0 12px; }
.yb-summary { background: #f6f7fb; border-radius: 8px; padding: 12px; margin: 0 auto 12px; max-width: 420px; font-size: 15px; }
.yb-summary p { margin: 2px 0; }
.yb-confirm-note { color: #666; margin: 0 0 14px; font-size: 15px; }
.yb-cal { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
	.yb-card { flex-wrap: wrap; gap: 12px; padding: 16px 16px 16px 22px; }
	.yb-list .yb-date { flex: 0 0 70px; }
	.yb-list .yb-info { flex: 1 1 calc(100% - 90px); }
	.yb-action { flex: 1 1 100%; }
	.yb-action .yb-btn { width: 100%; }
	.yb-overlay { padding: 0; align-items: flex-end; }
	.yb-modal { max-height: 92vh; border-radius: 12px 12px 0 0; }
	.yb-modal-head { padding: 12px 16px; }
	.yb-modal-body { padding: 14px 16px; }
	.yb-modal-foot { padding: 10px 16px; }
	.yb-modal-foot .yb-btn { flex: 1; text-align: center; }
	.yb-modal .yb-card--plain { flex-wrap: nowrap; }
	.yb-count::before { display: none; }
	.yb-count { display: block; margin-top: 2px; }
	.yb-grid { grid-template-columns: 1fr; gap: 10px; }
	.yb-qty-row { flex-direction: column; align-items: stretch; }
	.yb-qty { justify-content: space-between; }
	.yb-qty input { flex: 1; }
	.yb-cal { flex-direction: column; }
}

/* Einbettung per iframe: Overlay wird per JS im sichtbaren Bereich positioniert */
.yb-embed .yb-overlay { position: absolute; left: 0; right: 0; bottom: auto; padding: 16px; align-items: flex-start; }
.yb-embed .yb-modal { max-height: none; margin-top: 8px; }
