.gh-tb-widget {
	max-width: 980px;
	margin: 0 auto;
}

.gh-tb-widget button {
	cursor: pointer;
}

.gh-tb-heading {
	margin-top: 0;
}

/* --- Drei-Spalten-Layout: Terminart-Auswahl / Kalender / Uhrzeiten --- */
.gh-tb-layout {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 900px) {
	.gh-tb-layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.gh-tb-col-left {
		flex: 0 1 220px;
	}

	.gh-tb-col-calendar {
		flex: 0 1 340px;
	}

	.gh-tb-col-slots {
		flex: 0 1 200px;
	}
}

.gh-tb-type-select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 12px;
}

.gh-tb-type-select:disabled {
	opacity: 1;
	background: #fff;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	border-color: #ddd;
}

.gh-tb-type-description p {
	margin: 0 0 0.75em;
}

/* --- Zurück-Links --- */
.gh-tb-back-link {
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 12px;
	font-size: 0.9em;
	text-decoration: underline;
}

.gh-tb-selected-type-info,
.gh-tb-selected-slot-info {
	margin-bottom: 12px;
	font-weight: 600;
}

/* --- Kalender --- */
.gh-tb-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	max-width: 280px;
}

.gh-tb-month-label {
	font-weight: 700;
	font-size: 1.05em;
}

.gh-tb-nav-btn {
	border: none;
	background: #cf2e2e;
	color: #fff;
	border-radius: 6px;
	width: 36px;
	height: 36px;
	font-size: 1.1em;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.gh-tb-nav-btn:disabled {
	background: #ccc;
	box-shadow: none;
	cursor: default;
}

.gh-tb-weekday-row,
.gh-tb-days-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
	max-width: 280px;
}

.gh-tb-weekday-label {
	text-align: center;
	font-size: 0.75em;
	font-weight: 600;
	opacity: 0.7;
	padding-bottom: 4px;
}

.gh-tb-day {
	aspect-ratio: 1 / 1;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	font-size: 0.82em;
	padding: 0;
}

.gh-tb-day:hover:not(:disabled) {
	border-color: #888;
}

.gh-tb-day-empty {
	border: none;
	background: transparent;
	cursor: default;
}

.gh-tb-day-disabled {
	opacity: 0.3;
	cursor: default;
	background: #f5f5f5;
}

.gh-tb-day-pending {
	cursor: wait;
	opacity: 0.6;
}

.gh-tb-field-error {
	display: block;
	color: #a00;
	font-size: 0.85em;
	margin-top: 4px;
}

.gh-tb-day-selected {
	border-color: #cf2e2e;
	border-width: 2px;
	font-weight: 600;
}

/* --- Slots --- */
.gh-tb-day-slots {
	margin-top: 0;
}

.gh-tb-slots-placeholder {
	opacity: 0.6;
	font-size: 0.9em;
}

.gh-tb-slot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.gh-tb-slot-btn {
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 4px;
	padding: 0;
	aspect-ratio: 2 / 1;
	font-size: 0.8em;
}

.gh-tb-slot-btn:hover:not(:disabled) {
	border-color: #2271b1;
}

.gh-tb-slot-disabled {
	opacity: 0.3;
	cursor: default;
	background: #f5f5f5;
}

.gh-tb-loading,
.gh-tb-no-slots {
	opacity: 0.75;
}

.gh-tb-error {
	color: #a00;
}

/* --- Formular --- */
.gh-tb-step-form p {
	margin-bottom: 12px;
}

.gh-tb-step-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.gh-tb-step-form input[type="text"],
.gh-tb-step-form input[type="email"],
.gh-tb-step-form input[type="tel"],
.gh-tb-step-form input[type="url"],
.gh-tb-step-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.gh-tb-meeting-choice {
	margin-bottom: 16px;
}

.gh-tb-meeting-choice label {
	display: inline-block;
	font-weight: normal;
	margin-right: 16px;
}

.gh-tb-field-label {
	font-weight: 600;
	margin-bottom: 6px;
}

/* Honeypot: für Menschen unsichtbar, aber im DOM vorhanden und für Screenreader ausgeblendet */
.gh-tb-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gh-tb-submit-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
}

.gh-tb-submit-btn:disabled {
	opacity: 0.6;
}

.gh-tb-form-message {
	margin-top: 10px;
}

.gh-tb-form-message.gh-tb-error {
	color: #a00;
}

.gh-tb-step-done .gh-tb-done-message {
	padding: 16px;
	background: #f0f6fc;
	border: 1px solid #c3d9ec;
	border-radius: 6px;
}
