/*
 * Angelehnt an das Erscheinungsbild von matzios.com: Poppins, Schwarz/Weiß
 * mit Orange (#ff930f) als Akzent, kantige statt runde Buttons, Formularfelder
 * als schlichte, leicht umrandete Kästchen (statt reiner Unterstrich-Linie,
 * die als eigenständiges Feld zu wenig erkennbar war). Über die Klassen mit
 * .mbb- Präfix jederzeit im Theme überschreibbar.
 */

.mbb-wrapper {
	max-width: 720px;
	margin: 0 auto;
	font-family: 'Poppins', inherit;
	font-weight: 300;
	color: #0a0a0a;
}

.mbb-wrapper h2,
.mbb-wrapper h3 {
	margin-top: 0;
	font-family: 'Poppins', inherit;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	font-size: clamp(20px, 6vw, 28px) !important;
	line-height: 1.2;
}

.mbb-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #ff930f;
	margin-bottom: 8px;
}

.mbb-login, .mbb-calendar, .mbb-manage, .mbb-faq {
	border: 1px solid #e5e5e5;
	border-radius: 2px;
	padding: 28px;
	background: #fff;
}

/* "Fragen"-Seite (?mbb_action=faq), Inhalt kommt aus dem wp_editor()-Feld
   in den Plugin-Einstellungen (Kundenwunsch, 16.09.2026). */
.mbb-faq-content {
	font-weight: 300;
	line-height: 1.7;
}

.mbb-faq-content h1,
.mbb-faq-content h2,
.mbb-faq-content h3,
.mbb-faq-content h4 {
	font-family: 'Poppins', inherit;
	font-weight: 600;
	color: #141618;
	margin: 24px 0 8px 0;
}

.mbb-faq-content h1:first-child,
.mbb-faq-content h2:first-child,
.mbb-faq-content h3:first-child,
.mbb-faq-content h4:first-child {
	margin-top: 0;
}

.mbb-faq-content p {
	margin: 0 0 16px 0;
}

.mbb-faq-content strong {
	font-weight: 600;
}

.mbb-faq-back {
	display: inline-block;
	margin-top: 8px;
	color: #141618;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.mbb-faq-back:hover {
	color: #ff930f;
}

.mbb-login {
	max-width: 380px;
	margin: 0 auto;
	text-align: center;
}

.mbb-login form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 18px;
	text-align: left;
}

.mbb-login input[type="password"],
.mbb-login input[type="text"]#mbb-login-password {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
	font-size: 16px;
	font-family: inherit;
}

.mbb-login input[type="password"]:focus,
.mbb-login input[type="text"]#mbb-login-password:focus {
	outline: none;
	border-color: #0a0a0a;
}

/*
 * Auge zum Ein-/Ausblenden des eingegebenen Passworts, rechts im Feld
 * (Kundenwunsch, 17.09.2026). Der Toggle-Button teilt sich die dezente,
 * kreisrunde Optik der anderen Icon-Buttons (.mbb-refresh-btn), sitzt aber
 * absolut positioniert im Passwort-Feld statt daneben.
 */
.mbb-password-field {
	position: relative;
}

#mbb-login-password {
	padding-right: 42px !important;
}

.mbb-wrapper button.mbb-password-toggle {
	all: unset;
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50% !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	color: #6f6f6f !important;
	padding: 0 !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mbb-wrapper button.mbb-password-toggle:hover,
.mbb-wrapper button.mbb-password-toggle:focus-visible {
	background: #f2f1ee !important;
	background-color: #f2f1ee !important;
	color: #0a0a0a !important;
}

.mbb-password-toggle:focus-visible {
	outline: 2px solid #ff930f;
	outline-offset: 1px;
}

.mbb-password-toggle .mbb-eye-closed {
	display: none;
}

.mbb-password-toggle.is-visible .mbb-eye-open {
	display: none;
}

.mbb-password-toggle.is-visible .mbb-eye-closed {
	display: block;
}

.mbb-wrapper button,
.mbb-wrapper .button {
	background: #ff930f !important;
	background-color: #ff930f !important;
	color: #fff !important;
	border: 1px solid #ff930f;
	border-radius: 2px;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	text-shadow: none;
	opacity: 1;
}

/* Defensive !important above: this button sits inside the site's own WP
   theme, whose global button styles otherwise sometimes win and leave the
   button pale/illegible (seen live on matzios.com, e.g. the "Anmelden"
   button). */

.mbb-wrapper button:hover,
.mbb-wrapper .button:hover {
	background: #e6820a !important;
	background-color: #e6820a !important;
	border-color: #e6820a;
}

.mbb-wrapper button.mbb-danger {
	background: transparent !important;
	background-color: transparent !important;
	color: #a33 !important;
	border-color: #a33;
}

.mbb-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 0 20px;
	font-size: 13px;
}

.mbb-links-docs a {
	margin-right: 20px;
	color: #0a0a0a;
	text-decoration: none;
	border-bottom: 1px solid #ddd;
	padding-bottom: 2px;
}

.mbb-links-docs a:hover {
	border-bottom-color: #0a0a0a;
}

/*
 * Manueller Aktualisieren-Button ganz rechts in der AGB/Infoblatt-Zeile:
 * falls jemand länger auf der Seite bleibt, ohne etwas zu tun, könnten sich
 * die angezeigten Slots inzwischen geändert haben (Kundenwunsch, 16.09.2026).
 * Bewusst dezent (kein voller Button-Look wie die primären Aktionen) und
 * kreisrund, wie gewünscht.
 */
/* `.mbb-wrapper button` above sets background/color/border with !important
   (needed there to beat the live site's theme, s. dortigen Kommentar) – ohne
   ebenfalls !important würde dieser generische Refresh-Button trotz
   `all: unset` weiterhin solide orange statt dezent/transparent erscheinen. */
.mbb-wrapper button.mbb-refresh-btn {
	all: unset;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50% !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	color: #6f6f6f !important;
	padding: 0 !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mbb-wrapper button.mbb-refresh-btn:hover,
.mbb-wrapper button.mbb-refresh-btn:focus-visible {
	background: #f2f1ee !important;
	background-color: #f2f1ee !important;
	color: #ff930f !important;
}

.mbb-refresh-btn:focus-visible {
	outline: 2px solid #ff930f;
	outline-offset: 1px;
}

.mbb-refresh-btn svg {
	transition: transform 0.5s ease;
}

.mbb-refresh-btn.is-spinning svg {
	transform: rotate(360deg);
}

.mbb-links-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

/* Logout-Button (Kundenwunsch, 17.09.2026) - teilt sich die dezente,
   kreisrunde Optik mit dem Aktualisieren-Button (.mbb-refresh-btn), bekommt
   aber beim Hover/Fokus die "Danger"-Akzentfarbe statt Orange, da es sich
   um eine (harmlose, aber bewusste) Abmelde-Aktion handelt statt einer
   reinen Info-Aktualisierung. */
.mbb-wrapper button.mbb-logout-btn:hover,
.mbb-wrapper button.mbb-logout-btn:focus-visible {
	background: #f7ecec !important;
	background-color: #f7ecec !important;
	color: #a33 !important;
}

.mbb-logout-btn:focus-visible {
	outline: 2px solid #a33;
	outline-offset: 1px;
}

/*
 * Tab-Leiste für mehrere Tage derselben Ballettschule (gleiches Passwort +
 * gleicher Titel, s. MBB_Ajax::login()) - Kundenwunsch, 17.09.2026. Bleibt
 * per JS komplett versteckt, solange nach dem Login nur ein einzelner Tag
 * zur Auswahl steht (keine sichtbare Änderung für alle anderen).
 */
.mbb-session-tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 4px 0 16px;
}

.mbb-tabs-track {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scroll-behavior: smooth;
	/* Scrollbar dezent statt der teils sehr aufdringlichen Browser-Standard-
	   Leiste - die Pfeile sind ohnehin die primäre Bedienung ab 4 Tagen. */
	scrollbar-width: thin;
	padding-bottom: 2px;
}

.mbb-tabs-track::-webkit-scrollbar {
	height: 4px;
}

.mbb-tabs-track::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 2px;
}

.mbb-wrapper button.mbb-tab {
	flex-shrink: 0;
	background: #f7f6f4 !important;
	background-color: #f7f6f4 !important;
	color: #0a0a0a !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 2px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.mbb-wrapper button.mbb-tab:hover {
	border-color: #ff930f !important;
}

.mbb-wrapper button.mbb-tab.is-active {
	background: #141618 !important;
	background-color: #141618 !important;
	border-color: #141618 !important;
	color: #fff !important;
}

.mbb-wrapper button.mbb-tabs-arrow {
	all: unset;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50% !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 1px solid #e5e5e5 !important;
	color: #0a0a0a !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.mbb-wrapper button.mbb-tabs-arrow:hover {
	border-color: #ff930f !important;
	color: #ff930f !important;
}

.mbb-slot-block {
	margin-bottom: 18px;
}

.mbb-slot-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mbb-slot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #cccccc;
	border-radius: 2px;
	padding: 13px 18px;
	cursor: pointer;
	font-size: 14.5px;
	background: #fff;
	color: #0a0a0a;
}

.mbb-slot:hover {
	border-color: #0a0a0a;
}

.mbb-slot .mbb-slot-status {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b6b6b;
}

.mbb-slot.mbb-slot-pending {
	background: #ff930f;
	border-color: #ff930f;
	color: #fff;
	cursor: not-allowed;
}

.mbb-slot.mbb-slot-pending .mbb-slot-status {
	color: #ffffff;
}

.mbb-slot.mbb-slot-booked {
	background: #141618;
	border-color: #141618;
	color: #fff;
	cursor: not-allowed;
}

.mbb-slot.mbb-slot-booked .mbb-slot-status {
	color: #f2f2f2;
}

.mbb-slot.mbb-slot-mine {
	background: #fff;
	border: 1px solid #ff930f;
	color: #0a0a0a;
	cursor: default;
}

.mbb-slot.mbb-slot-mine:hover {
	border-color: #ff930f;
}

.mbb-break-divider {
	font-size: 11.5px;
	color: #a3a3a3;
	letter-spacing: 0.04em;
	text-align: left;
	margin: 6px 0;
	border-top: 1px dashed #e5e5e5;
	padding-top: 10px;
}

.mbb-modal {
	position: fixed;
	inset: 0;
	background: rgba(10,10,10,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}

.mbb-modal-inner {
	background: #fff;
	border-radius: 2px;
	padding: 30px;
	max-width: 480px;
	width: 100%;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.mbb-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	color: #333;
	font-size: 24px;
	padding: 0;
}

.mbb-modal-close:hover {
	background: none;
	color: #ff930f;
}

.mbb-modal-inner form label {
	display: block;
	margin-bottom: 16px;
	font-size: 12.5px;
	color: #6f6f6f;
}

.mbb-modal-inner input[type="text"],
.mbb-modal-inner input[type="email"],
.mbb-modal-inner input[type="tel"] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 2px;
	margin-top: 6px;
	font-size: 15px;
	font-family: inherit;
	color: #0a0a0a;
	box-sizing: border-box;
	background: #fff;
}

.mbb-modal-inner input[type="text"]:focus,
.mbb-modal-inner input[type="email"]:focus,
.mbb-modal-inner input[type="tel"]:focus {
	outline: none;
	border-color: #0a0a0a;
}

.mbb-modal-inner label.mbb-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 12px;
	color: #6f6f6f;
}

.mbb-modal-inner label.mbb-checkbox a {
	color: #0a0a0a;
}

.mbb-modal-inner label.mbb-checkbox input[type="checkbox"] {
	/* Eigener Nachbau statt der nativen Browser-Checkbox: die native
	   Umrandung ist je nach Betriebssystem/Browser sehr dünn und bei der
	   kleinen Größe kaum erkennbar (Kundenfeedback: "zu dünn"). Beide
	   Checkboxen (Namensanzeige + AGB) teilen sich diesen Selektor, sind
	   also automatisch identisch. */
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 2px 0 0 0;
	border: 2px solid #8a8a8a;
	border-radius: 3px;
	background: #fff;
	position: relative;
	cursor: pointer;
}

.mbb-modal-inner label.mbb-checkbox input[type="checkbox"]:checked {
	background: #141618;
	border-color: #141618;
}

.mbb-modal-inner label.mbb-checkbox input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mbb-modal-inner label.mbb-checkbox input[type="checkbox"]:focus-visible {
	outline: 2px solid #ff930f;
	outline-offset: 2px;
}

.mbb-note {
	font-size: 11.5px;
	color: #a3a3a3;
	line-height: 1.6;
}

.mbb-loading {
	color: #6f6f6f;
	font-size: 13.5px;
	padding: 10px 2px;
}

/*
 * Iris-Blende als Ladeanimation beim Abrufen der freien Termine (v1.5.14 –
 * komplett neu gestaltet, nachdem die v1.5.12-Version dem Kunden optisch
 * nicht überzeugend genug war: "Die Animation sieht nicht gut aus. Aber wir
 * brauchen definitiv eine."): 6 SVG-Lamellen, die sich jede um ihren eigenen
 * Drehpunkt auf einem Blendenring drehen (echtes Kamera-Blenden-Prinzip),
 * wodurch sich die sichtbare Öffnung in der Mitte spürbar vergrößert/
 * verkleinert statt nur zu pulsieren – passend zum Fotografie-Thema des
 * Tools, s. mbb-public.js/loadSlots(). Die Platzierung jeder Lamelle auf dem
 * Ring passiert einmalig statisch als SVG-transform-Attribut (kein CSS);
 * die Öffnen/Schließen-Animation selbst dreht die innere <g> jeder Lamelle
 * um ihren eigenen lokalen Nullpunkt (transform-origin: 0 0), der durch die
 * äußere Platzierung bereits auf dem Ring liegt – dadurch teilen sich alle
 * 6 Lamellen exakt dieselbe Keyframe-Animation.
 */
.mbb-iris-loading {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mbb-iris {
	flex-shrink: 0;
	overflow: visible;
}

.mbb-iris-ring {
	fill: none;
	stroke: #141618;
	stroke-width: 2;
	opacity: 0.12;
}

.mbb-iris-blade {
	fill: #ff930f;
	transform-origin: 0px 0px;
	transform-box: fill-box;
	animation: mbb-iris-sweep 2.4s ease-in-out infinite;
}

@keyframes mbb-iris-sweep {
	0%, 100% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(-34deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbb-iris-blade {
		animation: none;
	}
}

.mbb-wrapper button:disabled,
.mbb-wrapper .button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mbb-error {
	color: #c0392b;
	font-weight: 500;
	font-size: 13px;
}

.mbb-success {
	color: #0a0a0a;
	font-weight: 500;
	font-size: 13.5px;
	border: 1px solid #0a0a0a;
	padding: 16px 18px;
	border-radius: 2px;
}

/*
 * Mehrere Sätze (Haupt-Bestätigung + kleinerer Hinweis, z.B. Spam-Ordner)
 * kommen seit v1.5.13 als echte <p>-Absätze statt eines ununterbrochenen
 * Textblocks (Kundenfeedback: "kann man kaum was lesen") – s.
 * renderSuccessMessage() in mbb-public.js. Der letzte Absatz ist bei mehr
 * als einem Absatz automatisch der kleinere, gedämpfte Zusatzhinweis.
 */
.mbb-success p {
	margin: 0 0 10px 0;
	line-height: 1.6;
}

.mbb-success p:last-child {
	margin-bottom: 0;
}

.mbb-success p:last-child:not(:only-child) {
	font-weight: 400;
	font-size: 12.5px;
	color: #6f6f6f;
	padding-top: 10px;
	border-top: 1px solid #e5e5e5;
}

.mbb-manage-actions {
	display: flex;
	gap: 10px;
	margin: 16px 0;
	flex-wrap: wrap;
}
