@charset "utf-8";

/* ================================================================
   Aurania Terminbuchung 1.1
   Designanpassung für rauchfrei-jetzt.ch
   Buchungslogik, IDs und JavaScript bleiben unverändert.
================================================================ */

/* ---------- Basis / Variablen ---------- */
.xwTermin {
	--aur-petrol: #123f4c;
	--aur-petrol-dark: #0d3540;
	--aur-green: #3f8f69;
	--aur-green-dark: #2f7454;
	--aur-green-soft: #eaf4ee;
	--aur-bg-soft: #f5f8f6;
	--aur-border: #dbe5e0;
	--aur-text: #263e47;
	--aur-muted: #66777d;
	--aur-danger: #a84b4b;
	--aur-danger-soft: #fff3f2;
	--aur-radius: 14px;
	--aur-shadow: 0 10px 30px rgba(13,53,64,.07);

	width: 100%;
	max-width: 100%;
	color: var(--aur-text);
	font-family: inherit;
	line-height: 1.55;
}

.xwTermin *,
.xwTermin *::before,
.xwTermin *::after {
	box-sizing: border-box;
}

.xwTermin .hide,
.xwTermin .hidden {
	display: none;
}

/* ---------- Ladezustand ---------- */
.xwTermin .loading {
	position: relative;
	min-height: 80px;
}

.xwTermin .loading::after {
	position: absolute;
	inset: 0;
	z-index: 99;
	border-radius: 12px;
	background: rgba(255,255,255,.78) url(../images/loading.gif) no-repeat center center;
	content: "";
	backdrop-filter: blur(2px);
}

/* ---------- Schritt-Karten ---------- */
.xwTermin section.trm_container {
	overflow: hidden;
	margin: 0 0 14px;
	border: 1px solid var(--aur-border);
	border-radius: var(--aur-radius);
	background: #fff;
	box-shadow: 0 5px 18px rgba(13,53,64,.035);
}

.xwTermin div.step_title {
	display: flex;
	min-height: 56px;
	align-items: center;
	gap: 10px;
	padding: 15px 18px;
	overflow: hidden;
	border: 0;
	background: #eef3f1;
	color: var(--aur-petrol);
	font-size: .98rem;
	font-weight: 760;
	line-height: 1.35;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.xwTermin div.step_title i {
	flex: 0 0 auto;
	color: var(--aur-green);
	transition: transform .2s ease;
}

.xwTermin div.step_active {
	background: var(--aur-petrol);
	color: #fff;
	box-shadow: none;
}

.xwTermin div.step_active i {
	color: #a8dcc0;
	transform: rotate(90deg);
}

.xwTermin div.step_okey {
	background: var(--aur-green);
	color: #fff;
}

.xwTermin div.step_okey i {
	color: #fff;
}

.xwTermin div.reset_active {
	cursor: pointer;
}

.xwTermin div.reset_active:hover {
	filter: brightness(.97);
}

.xwTermin div.box_content {
	padding: clamp(18px, 3vw, 30px);
	background: #fff;
}

/* ---------- Kategorie / Leistungen ---------- */
.xwTermin div.options ul {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
	cursor: pointer;
}

.xwTermin div.options ul li {
	padding: 16px 18px;
	border: 1px solid var(--aur-border);
	border-radius: 12px;
	background: #fff;
	color: var(--aur-text);
	font-weight: 400;
	line-height: 1.5;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.xwTermin div.options ul li:hover {
	border-color: rgba(63,143,105,.42);
	background: var(--aur-green-soft);
	box-shadow: 0 8px 22px rgba(13,53,64,.055);
	transform: translateY(-1px);
}

.xwTermin div.options ul b.kateg,
.xwTermin div.options ul b.leist {
	display: inline-block;
	margin-bottom: 3px;
	color: var(--aur-petrol);
	font-size: 1rem;
	font-weight: 780;
}

.xwTermin div.options ul a {
	color: inherit;
}

/* ---------- Kalender + Terminwahl ---------- */
.xwTermin .flex-container {
	display: flex;
	flex-flow: row wrap;
	gap: 22px;
	align-items: flex-start;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xwTermin .flex-item {
	min-width: 0;
	padding: 0;
}

.xwTermin #calendar {
	flex: 0 1 430px;
}

.xwTermin table.calendar {
	width: min(100%, 430px);
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 5px;
	table-layout: fixed;
	background: transparent;
}

.xwTermin table.calendar td,
.xwTermin table.calendar th {
	height: 44px;
	padding: 7px 4px;
	border: 0;
	border-radius: 9px;
	background: #f6f8f7;
	color: var(--aur-text);
	font-size: .9rem;
	font-weight: 500;
	text-align: center;
	vertical-align: middle;
	cursor: default;
}

.xwTermin table.calendar tr:first-child td {
	background: transparent;
	color: var(--aur-petrol);
	font-size: 1rem;
	font-weight: 800;
}

.xwTermin table.calendar tr:nth-child(2) td {
	height: 34px;
	background: transparent;
	color: var(--aur-muted);
	font-size: .78rem;
	font-weight: 760;
	text-transform: uppercase;
}

.xwTermin table.calendar .day_not_active {
	background: #f1f3f2;
	color: #a6afab;
}

.xwTermin table.calendar .day_not_available {
	background: #eef1f0;
	color: #9aa5a1;
}

.xwTermin table.calendar .day_active {
	background: var(--aur-green-soft);
	color: var(--aur-green-dark);
	font-weight: 800;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(63,143,105,.18);
}

.xwTermin table.calendar .day_active:hover,
.xwTermin table.calendar .day_active:focus {
	background: var(--aur-green);
	color: #fff;
	box-shadow: 0 7px 18px rgba(63,143,105,.18);
}

.xwTermin table.calendar .navigate {
	min-width: 44px;
	background: #fff !important;
	color: var(--aur-green) !important;
	font-size: 0 !important;
	font-weight: 800;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--aur-border);
}

.xwTermin table.calendar .navigate:first-child::after {
	content: "‹";
	font-size: 1.55rem;
	line-height: 1;
}

.xwTermin table.calendar .navigate:last-child::after {
	content: "›";
	font-size: 1.55rem;
	line-height: 1;
}

.xwTermin table.calendar .navigate:hover {
	background: var(--aur-green-soft) !important;
	box-shadow: inset 0 0 0 1px rgba(63,143,105,.34);
}

/* Uhrzeitbox */
.xwTermin li#time {
	flex: 1 1 300px;
	width: auto;
	min-width: 280px;
	height: auto;
	min-height: 150px;
	margin: 0;
	padding: 22px;
	border: 1px solid rgba(63,143,105,.28);
	border-radius: 14px;
	background: linear-gradient(145deg,#f9fcfa,#edf6f1);
	color: var(--aur-text);
	box-shadow: 0 8px 24px rgba(13,53,64,.045);
}

.xwTermin #tSel {
	width: 100%;
	max-width: 320px;
	min-height: 48px;
	margin-top: 12px;
	padding: 10px 38px 10px 12px;
	border: 1px solid #c9d8d1;
	border-radius: 10px;
	background: #fff;
	color: var(--aur-text);
	font: inherit;
}

/* ---------- Formular ---------- */
.xwTermin #anred {
	width: min(100%, 170px);
	height: 48px;
	padding: 9px 12px;
	border: 1px solid #c9d8d1;
	border-radius: 10px;
	background: #fff;
	color: var(--aur-text);
	font: inherit;
}

.xwTermin #adrlft,
.xwTermin #adrrgt {
	flex: 1 1 440px;
	min-width: 0;
}

.xwTermin div.form-left {
	float: none;
	display: inline-block;
	width: calc(50% - 10px);
	padding: 0;
	vertical-align: top;
}

.xwTermin div.form-left + div.form-left {
	margin-left: 16px;
}

.xwTermin label {
	display: block;
	height: auto;
	margin: 14px 0 6px;
	color: var(--aur-petrol);
	font-size: .82rem !important;
	font-weight: 700;
	line-height: 1.4;
}

.xwTermin input.long,
.xwTermin input.short,
.xwTermin input[type="text"],
.xwTermin textarea,
.xwTermin select {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #c9d8d1 !important;
	border-radius: 10px;
	background: #fff;
	color: var(--aur-text);
	font: inherit;
	box-shadow: none;
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.xwTermin input:hover,
.xwTermin textarea:hover,
.xwTermin select:hover {
	background: #fbfdfc;
	border-color: #aebfb7 !important;
}

.xwTermin input:focus,
.xwTermin textarea:focus,
.xwTermin select:focus {
	background: #fff;
	border-color: var(--aur-green) !important;
	box-shadow: 0 0 0 3px rgba(63,143,105,.13);
}

.xwTermin .inp_err {
	border-color: var(--aur-danger) !important;
	box-shadow: 0 0 0 3px rgba(168,75,75,.09);
}

.xwTermin #returnmsg {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid rgba(168,75,75,.28);
	border-radius: 10px;
	background: var(--aur-danger-soft);
	color: #7d3a3a;
}

.xwTermin #returnmsg i {
	margin-right: 8px;
	color: var(--aur-danger);
	vertical-align: middle;
}

/* ---------- Button ---------- */
.xwTermin .button-blue {
	display: inline-flex;
	width: auto;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 13px 22px;
	border: 1px solid var(--aur-green) !important;
	border-radius: 12px;
	background: var(--aur-green);
	color: #fff !important;
	font-size: .96rem;
	font-weight: 780;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(63,143,105,.17);
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.xwTermin .button-blue:hover,
.xwTermin .button-blue:focus {
	border-color: var(--aur-petrol) !important;
	background: var(--aur-petrol);
	color: #fff !important;
	box-shadow: 0 10px 26px rgba(13,53,64,.16);
	transform: translateY(-1px);
}

/* ---------- Bestätigung ---------- */
.xwTermin #step4 .box_content {
	padding: clamp(26px,4vw,42px);
	background: linear-gradient(145deg,#f8fbf9,#edf6f1);
}

.xwTermin #step4 h3 {
	margin: 0 0 14px;
	color: var(--aur-petrol);
	font-size: 1.45rem;
}

/* Copyright unter Plugin */
.xwTermin + label {
	display: block;
	height: auto;
	margin: 10px 0 0;
	color: #8a9692;
	font-size: .72rem !important;
	text-align: right;
}

.xwTermin + label a {
	color: var(--aur-green-dark);
	text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.xwTermin div.step_title {
		min-height: 52px;
		padding: 14px 15px;
		font-size: .92rem;
	}

	.xwTermin div.box_content {
		padding: 16px;
	}

	.xwTermin .flex-container {
		display: block;
	}

	.xwTermin #calendar,
	.xwTermin li#time,
	.xwTermin #adrlft,
	.xwTermin #adrrgt {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.xwTermin li#time {
		margin-top: 18px;
	}

	.xwTermin table.calendar {
		width: 100%;
		border-spacing: 3px;
	}

	.xwTermin table.calendar td,
	.xwTermin table.calendar th {
		height: 42px;
		padding: 5px 2px;
		font-size: .84rem;
	}

	.xwTermin div.form-left,
	.xwTermin div.form-left + div.form-left {
		display: block;
		width: 100%;
		margin-left: 0;
	}

	.xwTermin #anred,
	.xwTermin #tSel,
	.xwTermin input.long,
	.xwTermin input.short {
		width: 100%;
		max-width: 100%;
	}

	.xwTermin .button-blue {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.xwTermin table.calendar {
		border-spacing: 2px;
	}

	.xwTermin table.calendar td,
	.xwTermin table.calendar th {
		height: 39px;
		font-size: .78rem;
	}

	.xwTermin div.step_title {
		font-size: .88rem;
	}
}


/* ================================================================
   Aurania Terminbuchung 1.2
   Korrekturen: Kalender-Kontrast + saubere Adressfelder
================================================================ */

/* ----------------------------------------------------------------
   Kalender
   Bewusst wieder näher am ursprünglichen Farbschema:
   - buchbar = deutlich grün
   - nicht buchbar = deutlich rot
   - ausserhalb / inaktiv = grau
   So ist der Status auf den ersten Blick erkennbar.
---------------------------------------------------------------- */
.xwTermin table.calendar .day_not_active {
	background: #d9dddb;
	color: #7b8581;
	box-shadow: inset 0 0 0 1px #cbd1ce;
}

.xwTermin table.calendar .day_not_available {
	background: #f3a0a0;
	color: #612c2c;
	font-weight: 650;
	box-shadow: inset 0 0 0 1px #e88989;
}

.xwTermin table.calendar .day_active {
	background: #9be39f;
	color: #174d27;
	font-weight: 850;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px #72cf79;
}

.xwTermin table.calendar .day_active:hover,
.xwTermin table.calendar .day_active:focus {
	background: #68bb00;
	color: #fff;
	box-shadow:
		inset 0 0 0 1px #58a000,
		0 7px 18px rgba(104,187,0,.22);
	transform: translateY(-1px);
}

/* Navigation neutral halten, damit Grün/Rot nur Tagesstatus signalisiert. */
.xwTermin table.calendar .navigate {
	background: #fff !important;
	color: var(--aur-petrol) !important;
	box-shadow: inset 0 0 0 1px #bfcac5;
}

.xwTermin table.calendar .navigate:hover {
	background: #e8eeeb !important;
	color: var(--aur-petrol-dark) !important;
}

/* ----------------------------------------------------------------
   Adressformular
   Linke und rechte Formularhälfte wieder sauber nebeneinander.
---------------------------------------------------------------- */
.xwTermin #step3 .flex-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.xwTermin #step3 #adrlft,
.xwTermin #step3 #adrrgt {
	width: auto;
	min-width: 0;
	padding: 0;
}

/* Linke Hälfte: Vor-/Nachname sowie Strasse/PLZ exakt zweispaltig */
.xwTermin #step3 #adrlft {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
	row-gap: 0;
	align-items: start;
}

/* Anrede nimmt eine ganze Zeile ein */
.xwTermin #step3 #adrlft > label[for="anred"],
.xwTermin #step3 #adrlft > #anred {
	grid-column: 1 / -1;
}

.xwTermin #step3 #adrlft > #anred {
	width: 170px;
	max-width: 100%;
}

/* Alte Zeilenumbrüche aus dem PHP werden im Grid nicht mehr benötigt */
.xwTermin #step3 #adrlft > br {
	display: none;
}

.xwTermin #step3 div.form-left,
.xwTermin #step3 div.form-left + div.form-left {
	float: none;
	display: block;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

/* Alle Felder innerhalb der beiden Formularhälften sauber gleich breit */
.xwTermin #step3 #adrlft input.short,
.xwTermin #step3 #adrrgt input.short,
.xwTermin #step3 #adrrgt input.long {
	width: 100%;
	max-width: 100%;
}

/* Einheitliche Labelhöhe verhindert vertikale Versätze */
.xwTermin #step3 label {
	min-height: 0;
	height: auto;
	margin: 14px 0 6px;
}

/* Rechte Seite bleibt sauber einspaltig */
.xwTermin #step3 #adrrgt {
	display: block;
}

/* Mobile: beide Hauptspalten und die Paare untereinander */
@media (max-width: 760px) {
	.xwTermin #step3 .flex-container {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.xwTermin #step3 #adrlft {
		grid-template-columns: 1fr;
	}

	.xwTermin #step3 #adrlft > label[for="anred"],
	.xwTermin #step3 #adrlft > #anred {
		grid-column: 1;
	}

	.xwTermin #step3 #adrlft > #anred {
		width: 100%;
	}
}
