/*
 * Farben orientieren sich automatisch am Theme: Schrift, Hintergrund und
 * Rahmen nutzen `inherit` / `currentColor` statt fixer Hex-Werte. Ausgewählte
 * Zustände werden über eine transparente Abtönung von currentColor markiert
 * (nicht über Farbumkehr) – so bleibt der Text in jedem Theme garantiert lesbar.
 */
.ptb-widget {
	max-width: 480px;
	font-size: 16px;
	color: inherit;
}
/* Stellt sicher, dass [hidden] immer greift, auch bei Elementen mit
   eigenem display:flex/grid (z.B. .ptb-arten, .ptb-slots, .ptb-kal-grid). */
.ptb-widget [hidden] {
	display: none !important;
}
.ptb-preisinfo {
	font-weight: 600;
	margin-bottom: 1em;
}
.ptb-praxisinfo {
	margin: 0 0 1.5em;
	padding-bottom: 0.75em;
	border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	font-size: 0.95em;
}
.ptb-praxisinfo a {
	color: inherit;
	text-decoration: underline;
}
.ptb-step {
	margin-bottom: 1.5em;
}
.ptb-zeile {
	display: flex;
	gap: 12px;
}
.ptb-zeile p {
	flex: 1;
}
.ptb-zeile .ptb-schmal {
	flex: 0 0 110px;
}

/* Zusammenfassung eines erledigten Schritts ("Ändern"-Zeile) */
.ptb-zsf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding: 10px 14px;
	border: 1px solid currentColor;
	border-radius: 8px;
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.ptb-zsf-text {
	font-weight: 600;
}
.ptb-zsf-btn {
	flex: 0 0 auto;
	padding: 6px 12px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 0.9em;
}
.ptb-zsf-btn:hover {
	background: color-mix(in srgb, currentColor 14%, transparent);
}

/* Terminarten */
.ptb-arten {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}
.ptb-art {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid currentColor;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: left;
	font-size: 16px;
}
.ptb-art:hover {
	background: color-mix(in srgb, currentColor 12%, transparent);
}
.ptb-art.aktiv {
	background: color-mix(in srgb, currentColor 25%, transparent);
	border-width: 2px;
}
.ptb-art-name {
	font-weight: 600;
	flex: 1;
	min-width: 0;
}
.ptb-art-dauer {
	flex: 0 0 4.5em;
	text-align: right;
	white-space: nowrap;
	opacity: 0.8;
}
.ptb-art-preis {
	flex: 0 0 6em;
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
}

/* Kalender */
.ptb-kalender {
	margin-top: 8px;
	max-width: 320px;
}
.ptb-kal-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.ptb-kal-titel {
	font-weight: 600;
}
.ptb-kal-nav {
	width: 32px;
	height: 32px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.ptb-kal-nav:hover:not(:disabled) {
	background: color-mix(in srgb, currentColor 12%, transparent);
}
.ptb-kal-nav:disabled {
	opacity: 0.25;
	cursor: default;
}
.ptb-kal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.ptb-kal-wt {
	text-align: center;
	font-size: 0.8em;
	opacity: 0.6;
	padding: 4px 0 8px;
}
.ptb-kal-tag {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	opacity: 0.3;
	font-size: 0.95em;
	cursor: default;
}
.ptb-kal-tag.frei {
	opacity: 1;
	border-color: currentColor;
	cursor: pointer;
}
.ptb-kal-tag.frei:hover {
	background: color-mix(in srgb, currentColor 12%, transparent);
}
.ptb-kal-tag.aktiv {
	background: color-mix(in srgb, currentColor 30%, transparent);
	border-width: 2px;
	font-weight: 700;
}
.ptb-kal-lade {
	grid-column: 1 / -1;
	font-style: italic;
	opacity: 0.7;
	margin: 10px 0 0;
}

/* Zeitfenster */
.ptb-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 8px;
	margin-top: 8px;
}
.ptb-slot {
	padding: 10px 8px;
	border: 1px solid currentColor;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 0.95em;
	text-align: center;
}
.ptb-slot:hover {
	background: color-mix(in srgb, currentColor 12%, transparent);
}
.ptb-slot.aktiv {
	background: color-mix(in srgb, currentColor 30%, transparent);
	border-width: 2px;
	font-weight: 700;
}

/* Formularfelder */
.ptb-widget input[type="date"],
.ptb-widget input[type="text"],
.ptb-widget input[type="email"],
.ptb-widget input[type="tel"],
.ptb-widget textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, currentColor 4%, transparent);
	color: inherit;
	box-sizing: border-box;
	font: inherit;
}

.ptb-datenschutz {
	font-size: 0.9em;
	line-height: 1.5;
	margin: 1.25em 0;
}
.ptb-datenschutz label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}
.ptb-datenschutz input[type="checkbox"] {
	margin: 0.2em 0 0;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}
.ptb-datenschutz span {
	flex: 1 1 auto;
}
.ptb-datenschutz a {
	color: inherit;
	font-weight: 600;
}

.ptb-button {
	padding: 12px 20px;
	border: 2px solid currentColor;
	border-radius: 8px;
	background: color-mix(in srgb, currentColor 14%, transparent);
	color: inherit;
	font-weight: 700;
	cursor: pointer;
	font-size: 16px;
}
.ptb-button:hover:not(:disabled) {
	background: color-mix(in srgb, currentColor 24%, transparent);
}
.ptb-button:disabled {
	opacity: 0.5;
	cursor: wait;
}

.ptb-meldung {
	padding: 12px 14px;
	border-radius: 8px;
	margin-top: 1em;
	border: 1px solid currentColor;
}
.ptb-ok {
	color: #1a7d33;
}
.ptb-fehler {
	color: #c0392b;
}
