/* ── Altomünster Terminkalender – Public Styles ───────────────────── */

.atk-booking-wrapper,
.atk-manage-wrapper {
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
}

/* ── Progress Steps ──────────────────────────────────────────────── */
.atk-steps {
	display: flex;
	align-items: center;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 4px;
}
.atk-step {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0.4;
	transition: opacity .2s;
}
.atk-step.atk-step-active  { opacity: 1; }
.atk-step.atk-step-done    { opacity: 0.75; }
.atk-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #0073aa;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}
.atk-step-done .atk-step-num  { background: #46b450; }
.atk-step-active .atk-step-num { background: #005177; }
.atk-step-label { font-size: 14px; font-weight: 500; }
.atk-step-connector {
	flex: 1;
	min-width: 24px;
	height: 2px;
	background: #ddd;
}

/* ── Panels ──────────────────────────────────────────────────────── */
.atk-panel { animation: atkFadeIn .2s ease; }
.atk-panel h3 {
	margin-top: 0;
	font-size: 18px;
	color: #1a1a1a;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 8px;
	margin-bottom: 20px;
}

@keyframes atkFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Form fields ─────────────────────────────────────────────────── */
.atk-field { margin-bottom: 18px; }
.atk-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}
.atk-field input[type="text"],
.atk-field input[type="email"],
.atk-field input[type="tel"],
.atk-field textarea,
.atk-select {
	width: 100%;
	max-width: 440px;
	padding: 9px 12px;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color .15s;
	box-sizing: border-box;
}
.atk-field input:focus,
.atk-field textarea:focus,
.atk-select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0,115,170,.15);
}
.atk-hint { font-size: 12px; color: #666; margin-top: 4px; }

/* ── Appointment Type Cards ──────────────────────────────────────── */
.atk-type-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
	gap: 12px;
	max-width: 600px;
}
.atk-type-card {
	border: 2px solid #ddd;
	border-radius: 6px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	position: relative;
}
.atk-type-card:hover    { border-color: #0073aa; background: #f5f9fc; }
.atk-type-card.selected { border-color: #0073aa; background: #eaf3fb; }
.atk-type-card input[type="radio"] { position: absolute; opacity: 0; }
.atk-type-name   { font-weight: 700; font-size: 15px; display: block; margin-bottom: 4px; }
.atk-type-dur    { font-size: 12px; color: #555; }
.atk-type-desc   { font-size: 12px; color: #666; margin-top: 6px; }
.atk-type-dot    {
	display: inline-block;
	width: 10px; height: 10px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

/* ── Calendar ────────────────────────────────────────────────────── */
.atk-cal-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.atk-cal-label {
	font-size: 17px;
	font-weight: 600;
	min-width: 180px;
	text-align: center;
}
.atk-cal-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 8px;
}
.atk-cal-table th {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 4px;
	color: #555;
	border-bottom: 2px solid #eee;
}
.atk-cal-table td {
	text-align: center;
	padding: 8px 4px;
	font-size: 14px;
	border: 1px solid #f0f0f0;
}
.atk-date-available {
	cursor: pointer;
	background: #e8f5e9;
	color: #1b5e20;
	font-weight: 600;
	border-radius: 4px;
}
.atk-date-available:hover { background: #c8e6c9; }
.atk-date-unavailable { color: #aaa; }
.atk-date-past        { color: #ccc; }
.atk-date-selected    { background: #0073aa !important; color: #fff !important; border-radius: 4px; }

/* ── Slot buttons ────────────────────────────────────────────────── */
.atk-slots-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}
.atk-slot-btn {
	padding: 8px 16px;
	border: 2px solid #0073aa;
	border-radius: 4px;
	background: #fff;
	color: #0073aa;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .12s, color .12s;
}
.atk-slot-btn:hover   { background: #0073aa; color: #fff; }
.atk-slot-btn.atk-slot-selected { background: #0073aa; color: #fff; }
.atk-no-slots { color: #888; font-style: italic; margin: 8px 0; }
.atk-date-label {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 8px;
}

/* ── Summary box ─────────────────────────────────────────────────── */
.atk-summary {
	background: #f6f9fc;
	border: 1px solid #cde;
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
}
.atk-summary dl { margin: 0; }
.atk-summary dt { font-weight: 600; display: inline; }
.atk-summary dd { display: inline; margin: 0 0 0 4px; }
.atk-summary dd::after { content: '\A'; white-space: pre; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.atk-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .12s, border-color .12s, color .12s;
	font-family: inherit;
	line-height: 1.4;
}
.atk-btn-primary  { background: #0073aa; color: #fff; border-color: #0073aa; }
.atk-btn-primary:hover  { background: #005177; border-color: #005177; }
.atk-btn-primary:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; }
.atk-btn-secondary { background: #fff; color: #0073aa; border-color: #0073aa; }
.atk-btn-secondary:hover { background: #f0f7fd; }
.atk-btn-danger   { background: #b32d2e; color: #fff; border-color: #b32d2e; }
.atk-btn-danger:hover { background: #8b1c1c; }
.atk-btn-row { display: flex; gap: 12px; margin-top: 20px; align-items: center; flex-wrap: wrap; }

/* ── Feedback messages ───────────────────────────────────────────── */
.atk-error-msg {
	background: #fce9e9;
	border-left: 4px solid #b32d2e;
	padding: 10px 14px;
	border-radius: 4px;
	color: #5a0606;
	margin: 12px 0;
	font-size: 14px;
}
.atk-info-box {
	background: #eaf3fb;
	border-left: 4px solid #0073aa;
	padding: 14px 18px;
	border-radius: 4px;
	color: #1a3d5c;
}
.atk-error-box {
	background: #fce9e9;
	border-left: 4px solid #b32d2e;
	padding: 14px 18px;
	border-radius: 4px;
	color: #5a0606;
}

/* ── Success box ─────────────────────────────────────────────────── */
.atk-success-box {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	border-radius: 8px;
	padding: 28px 32px;
	text-align: center;
}
.atk-success-icon {
	font-size: 48px;
	color: #2e7d32;
	line-height: 1;
	margin-bottom: 12px;
}
.atk-success-box h3 { color: #1b5e20; margin-top: 0; }

/* ── Loading spinner ─────────────────────────────────────────────── */
.atk-loading { color: #555; font-size: 14px; padding: 12px 0; }
.atk-spinner {
	display: inline-block;
	width: 14px; height: 14px;
	border: 2px solid #ccc;
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: atkSpin .7s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}
@keyframes atkSpin { to { transform: rotate(360deg); } }

/* ── Manage appointment card ─────────────────────────────────────── */
.atk-appt-card {
	border: 1px solid #dde;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 20px;
	background: #fff;
	position: relative;
}
.atk-appt-card.atk-cancelled { opacity: 0.65; }
.atk-appt-status { margin-bottom: 12px; }
.atk-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.atk-badge-confirmed { background: #d7f5de; color: #1a6b3a; }
.atk-badge-cancelled { background: #fce9e9; color: #8b1c1c; }
.atk-badge-past      { background: #f0f0f0; color: #555; }
.atk-appt-details { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 14px; }
.atk-appt-details dt { font-weight: 600; color: #444; }
.atk-appt-details dd { margin: 0; }

.atk-manage-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.atk-info { color: #555; font-style: italic; margin-top: 8px; }

.atk-preselected { color: #333; font-size: 15px; margin-bottom: 16px; }

.atk-preselected-type-banner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #eaf3fb;
	border: 1px solid #b3d4f0;
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
	font-size: 15px;
}
.atk-preselected-type-banner .atk-type-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}
.atk-preselected-type-banner .atk-type-dur { color: #555; font-size: 13px; }
.atk-preselected-type-banner .atk-type-desc-inline { color: #666; font-size: 13px; }
