/* Beratungs-Buchung – übernimmt Schrift und Textfarbe des Themes; Akzentfarbe über --bb-primary */
.bb-app {
	--bb-primary: #3f6b5a;
	--bb-on-primary: #fff;
	--bb-radius: 10px;
	--bb-border: color-mix(in srgb, currentColor 18%, transparent);
	--bb-soft: color-mix(in srgb, var(--bb-primary) 10%, transparent);
	font: inherit;
	color: inherit;
	line-height: 1.5;
	box-sizing: border-box;
	max-width: 100%;
}
.bb-app *, .bb-app *::before, .bb-app *::after { box-sizing: border-box; }
.bb-card { border: 1px solid var(--bb-border); border-radius: calc(var(--bb-radius) + 4px); padding: clamp(16px, 3vw, 28px); background: var(--wp--preset--color--base, var(--wp--preset--color--white, #fff)); }
.bb-title { margin: 0 0 14px; font-size: 1.25em; }
.bb-muted { opacity: .7; }
.bb-small { font-size: .85em; }
.bb-app p { margin: 0 0 .8em; }

/* Buttons */
.bb-btn, .bb-app button.bb-btn {
	display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
	background: var(--bb-primary); color: var(--bb-on-primary); border: 2px solid var(--bb-primary);
	padding: .7em 1.3em; border-radius: var(--bb-radius); transition: filter .15s, transform .05s;
}
.bb-btn:hover { filter: brightness(1.08); color: var(--bb-on-primary); }
.bb-btn:active { transform: translateY(1px); }
.bb-btn:disabled { opacity: .6; cursor: wait; }
.bb-btn-block { width: 100%; font-size: 1.05em; padding: .9em 1em; margin-top: 8px; }
.bb-btn-ghost { background: transparent; color: var(--bb-primary); }
.bb-btn-ghost:hover { color: var(--bb-primary); background: var(--bb-soft); }
.bb-btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.bb-link { background: none; border: 0; padding: 0; margin: 0 0 12px; font: inherit; color: var(--bb-primary); cursor: pointer; text-decoration: underline; }
.bb-app :focus-visible { outline: 3px solid var(--bb-primary); outline-offset: 2px; }

/* Schritte */
.bb-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 22px; padding: 0; }
.bb-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .85em; opacity: .55; min-width: 0; }
.bb-steps li.is-current, .bb-steps li.is-done { opacity: 1; }
.bb-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--bb-primary); font-weight: 700; font-size: .85em; }
.is-current .bb-dot, .is-done .bb-dot { background: var(--bb-primary); color: var(--bb-on-primary); }
.bb-steplabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Angebote (Wizard) */
.bb-choice-list { display: grid; gap: 12px; }
.bb-choice { text-align: left; font: inherit; color: inherit; background: transparent; border: 2px solid var(--bb-border); border-radius: var(--bb-radius); padding: 16px 18px; cursor: pointer; display: grid; gap: 6px; transition: border-color .15s, background .15s; }
.bb-choice:hover { border-color: var(--bb-primary); background: var(--bb-soft); }
.bb-choice-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.bb-choice-desc p:last-child { margin-bottom: 0; }
.bb-choice-go { color: var(--bb-primary); font-weight: 600; }
.bb-pill { background: var(--bb-soft); color: var(--bb-primary); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .9em; }

/* Zusammenfassung */
.bb-summary { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; background: var(--bb-soft); border-radius: var(--bb-radius); padding: 12px 16px; margin-bottom: 18px; }
.bb-service-desc { margin-bottom: 18px; }
.bb-service-desc > *:last-child { margin-bottom: 0; }

/* Kalender */
.bb-picker { display: grid; grid-template-columns: minmax(280px, 1.1fr) 1fr; gap: 24px; align-items: start; }
.bb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; text-transform: capitalize; }
.bb-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bb-border); background: transparent; color: inherit; font-size: 1.3em; cursor: pointer; line-height: 1; }
.bb-nav:hover:not(:disabled) { background: var(--bb-soft); }
.bb-nav:disabled { opacity: .25; cursor: default; }
.bb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bb-dow span { text-align: center; font-size: .75em; opacity: .6; padding: 4px 0; }
.bb-day { aspect-ratio: 1; min-height: 38px; display: grid; place-items: center; border-radius: var(--bb-radius); border: 0; background: transparent; color: inherit; font: inherit; opacity: .35; }
.bb-day.has-slots { opacity: 1; background: var(--bb-soft); color: var(--bb-primary); font-weight: 700; cursor: pointer; }
.bb-day.has-slots:hover { background: var(--bb-primary); color: var(--bb-on-primary); }
.bb-day.is-selected { background: var(--bb-primary); color: var(--bb-on-primary); opacity: 1; }
.bb-day.is-today:not(.is-selected) { outline: 1px dashed var(--bb-border); }
.bb-legend { font-size: .8em; opacity: .7; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.bb-key { width: 12px; height: 12px; border-radius: 4px; background: var(--bb-soft); border: 1px solid var(--bb-primary); display: inline-block; }
.bb-times h4 { margin: 0 0 12px; font-size: 1em; }
.bb-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bb-time { font: inherit; padding: .65em .4em; border-radius: var(--bb-radius); border: 2px solid var(--bb-primary); background: transparent; color: var(--bb-primary); font-weight: 600; cursor: pointer; }
.bb-time:hover, .bb-time.is-selected { background: var(--bb-primary); color: var(--bb-on-primary); }
.bb-hint { padding: 20px 0; }

/* Formular */
.bb-field { margin-bottom: 14px; }
.bb-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.bb-field input, .bb-field textarea, .bb-select { width: 100%; font: inherit; color: inherit; background: transparent; padding: .7em .85em; border: 2px solid var(--bb-border); border-radius: var(--bb-radius); }
.bb-field input:focus, .bb-field textarea:focus, .bb-select:focus { border-color: var(--bb-primary); outline: none; }
.bb-field.has-error input { border-color: #b3261e; }
.bb-err { color: #b3261e; font-size: .85em; display: block; margin-top: 4px; }
.bb-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: .92em; cursor: pointer; }
.bb-check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--bb-primary); flex: none; }
.bb-alert { background: #fdecea; color: #7a1712; border-radius: var(--bb-radius); padding: 12px 16px; margin-bottom: 16px; }
.bb-empty, .bb-loading { padding: 24px; text-align: center; background: var(--bb-soft); border-radius: var(--bb-radius); }

/* Fertig */
.bb-done { text-align: center; }
.bb-done .bb-summary { text-align: left; justify-content: center; }
.bb-check-big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 2em; background: var(--bb-primary); color: var(--bb-on-primary); }

/* Karten-Modul */
.bb-services { display: grid; gap: 20px; }
.bb-cols-1 { grid-template-columns: 1fr; }
.bb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bb-service-card { border: 1px solid var(--bb-border); border-radius: calc(var(--bb-radius) + 4px); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.bb-service-card h3 { margin: 0; }
.bb-service-card .bb-meta { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--bb-primary); margin: 0 0 6px; }
.bb-service-card .bb-desc { flex: 1; }
.bb-service-card .bb-btn { margin-top: 12px; }

.bb-cancel-page { max-width: 520px; margin: 8vh auto; padding: 0 16px; }

@media (max-width: 860px) { .bb-cols-3, .bb-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.bb-picker { grid-template-columns: 1fr; }
	.bb-cols-2, .bb-cols-3, .bb-cols-4 { grid-template-columns: 1fr; }
	.bb-steplabel { display: none; }
	.bb-steps li { justify-content: center; }
}
