/* Albblick Reservierungen – Frontend
   Farben/Schrift kommen als CSS-Variablen aus den Plugin-Einstellungen. */

.abr-wrap {
	--abr-primary: #2e3b33;
	--abr-accent: #b0915c;
	--abr-text: #2b2b2b;
	--abr-bg: #ffffff;
	--abr-radius: 12px;
	--abr-heading-font: inherit;
	--abr-soft: #f8f5ef;
	--abr-border: #e6dfd2;
	--abr-muted: #7d7568;
	--abr-error: #b3261e;
	--abr-ring: rgba(176, 145, 92, .22);

	max-width: 860px;
	margin: 0 auto;
	color: var(--abr-text);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.abr-wrap {
		--abr-ring: color-mix(in srgb, var(--abr-accent) 24%, transparent);
		--abr-soft: color-mix(in srgb, var(--abr-accent) 7%, #ffffff);
		--abr-border: color-mix(in srgb, var(--abr-accent) 22%, #e9e9e9);
	}
}
.abr-wrap *, .abr-wrap *::before, .abr-wrap *::after { box-sizing: border-box; }
.abr-wrap [hidden] { display: none !important; }
.abr-wrap p { padding: 0; }

/* ---------- Karte ---------- */
.abr-wrap .abr-card {
	background: var(--abr-bg);
	border-radius: calc(var(--abr-radius) + 8px);
	box-shadow: 0 30px 60px -30px rgba(20, 24, 20, .35), 0 2px 8px rgba(20, 24, 20, .05);
	overflow: hidden;
}

.abr-wrap .abr-head {
	position: relative;
	background: var(--abr-primary);
	color: #fff;
	text-align: center;
	padding: 46px 40px 38px;
}
.abr-wrap .abr-head::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin: 20px auto 0;
	background: var(--abr-accent);
}
.abr-wrap .abr-kicker {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--abr-accent);
}
.abr-wrap .abr-head .abr-title {
	margin: 0;
	padding: 0;
	font-family: var(--abr-heading-font);
	font-size: clamp(28px, 4.2vw, 40px);
	line-height: 1.15;
	font-weight: 600;
	color: #fff;
}
.abr-wrap .abr-intro {
	max-width: 540px;
	margin: 14px auto 0;
	color: rgba(255, 255, 255, .82);
	font-size: 16px;
}

.abr-wrap .abr-body { padding: 40px 44px 44px; }

/* ---------- Abschnitte ---------- */
.abr-wrap .abr-section + .abr-section {
	margin-top: 34px;
	padding-top: 32px;
	border-top: 1px solid var(--abr-border);
}
.abr-wrap .abr-section-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	padding: 0;
	font-family: var(--abr-heading-font);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--abr-primary);
}
.abr-wrap .abr-step {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--abr-accent);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
}

.abr-wrap .abr-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 20px;
}
.abr-wrap .abr-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.abr-wrap .abr-field--full { grid-column: 1 / -1; }

.abr-wrap .abr-label {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--abr-muted);
}
.abr-wrap .abr-req { color: var(--abr-accent); }
.abr-wrap .abr-optional { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Eingabefelder (gegen Divi-Styles abgesichert) ---------- */
.abr-wrap .abr-input {
	display: block;
	width: 100% !important;
	height: 54px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1.5px solid var(--abr-border) !important;
	border-radius: var(--abr-radius) !important;
	background-color: #fff !important;
	color: var(--abr-text) !important;
	font-family: inherit !important;
	font-size: 16px !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.abr-wrap .abr-input:hover { border-color: var(--abr-accent) !important; }
.abr-wrap .abr-input:focus {
	outline: none !important;
	border-color: var(--abr-accent) !important;
	box-shadow: 0 0 0 4px var(--abr-ring) !important;
}
.abr-wrap .abr-select {
	padding-right: 48px !important;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237d7568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 18px center !important;
}
.abr-wrap .abr-select:disabled { background-color: var(--abr-soft) !important; color: var(--abr-muted) !important; cursor: not-allowed; }
.abr-wrap .abr-field.has-error .abr-input { border-color: var(--abr-error) !important; }
.abr-wrap .abr-error { font-size: 13px; color: var(--abr-error); }
.abr-wrap .abr-error:empty { display: none; }

.abr-wrap .abr-placeholder {
	width: 100%;
	padding: 15px 18px;
	border: 1.5px dashed var(--abr-border);
	border-radius: var(--abr-radius);
	color: var(--abr-muted);
	font-size: 15px;
}

/* ---------- Uhrzeit-Pills ---------- */
.abr-wrap .abr-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.abr-wrap .abr-pill { position: relative; margin: 0; cursor: pointer; }
.abr-wrap .abr-pill input,
.abr-wrap .abr-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.abr-wrap .abr-pill-inner {
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 24px;
	border: 1.5px solid var(--abr-border);
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	font-size: 15.5px;
	color: var(--abr-text);
	transition: all .2s ease;
	white-space: nowrap;
}
.abr-wrap .abr-pill:hover .abr-pill-inner { border-color: var(--abr-accent); }
.abr-wrap .abr-pill input:checked + .abr-pill-inner {
	background: var(--abr-primary);
	border-color: var(--abr-primary);
	color: #fff;
	box-shadow: 0 8px 18px -10px var(--abr-primary);
}
.abr-wrap .abr-pill input:focus-visible + .abr-pill-inner { box-shadow: 0 0 0 4px var(--abr-ring); }
.abr-wrap .has-error .abr-pill-inner,
.abr-wrap .has-error .abr-opt-inner { border-color: var(--abr-error); }

/* ---------- Event-Karten ---------- */
.abr-wrap .abr-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}
.abr-wrap .abr-cards .abr-placeholder { grid-column: 1 / -1; }
.abr-wrap .abr-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.abr-wrap .abr-opt-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 18px 46px 18px 20px;
	border: 1.5px solid var(--abr-border);
	border-radius: var(--abr-radius);
	background: #fff;
	transition: all .2s ease;
}
.abr-wrap .abr-opt:hover .abr-opt-inner { border-color: var(--abr-accent); transform: translateY(-1px); }
.abr-wrap .abr-opt-name { font-size: 17px; font-weight: 700; color: var(--abr-text); line-height: 1.3; }
.abr-wrap .abr-opt-meta { font-size: 13.5px; color: var(--abr-muted); }
.abr-wrap .abr-opt-check {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--abr-border);
	border-radius: 50%;
	background: #fff;
	transition: all .2s ease;
}
.abr-wrap .abr-opt input:checked + .abr-opt-inner {
	border-color: var(--abr-accent);
	background: var(--abr-soft);
	box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45);
}
.abr-wrap .abr-opt input:checked + .abr-opt-inner .abr-opt-check {
	border-color: var(--abr-accent);
	background: var(--abr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.abr-wrap .abr-opt input:focus-visible + .abr-opt-inner { box-shadow: 0 0 0 4px var(--abr-ring); }

/* ---------- Checkbox ---------- */
.abr-wrap .abr-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.5;
}
.abr-wrap .abr-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.abr-wrap .abr-check-box {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1.5px solid var(--abr-border);
	border-radius: 6px;
	background: #fff;
	transition: all .2s ease;
}
.abr-wrap .abr-check input:checked + .abr-check-box {
	border-color: var(--abr-accent);
	background: var(--abr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.abr-wrap .abr-check input:focus-visible + .abr-check-box { box-shadow: 0 0 0 4px var(--abr-ring); }
.abr-wrap .has-error .abr-check-box { border-color: var(--abr-error); }
.abr-wrap .abr-check-text a { color: var(--abr-accent); text-decoration: underline; }

/* ---------- Honeypot ---------- */
.abr-wrap .abr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hinweise ---------- */
.abr-wrap .abr-alert {
	margin: 28px 0 0;
	padding: 14px 18px;
	border-radius: var(--abr-radius);
	background: #fdf0ef;
	border: 1px solid #f2c9c5;
	color: var(--abr-error);
	font-size: 15px;
}
.abr-wrap .abr-loading,
.abr-wrap .abr-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 34px 10px;
	text-align: center;
	color: var(--abr-muted);
}

/* ---------- Aktionen ---------- */
.abr-wrap .abr-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid var(--abr-border);
}
.abr-wrap .abr-note { margin: 0; font-size: 13px; color: var(--abr-muted); }
.abr-wrap .abr-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 38px;
	border: 0;
	border-radius: 999px;
	background: var(--abr-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 14px 28px -14px var(--abr-accent);
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.abr-wrap .abr-submit:hover { filter: brightness(.93); transform: translateY(-1px); }
.abr-wrap .abr-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--abr-ring); }
.abr-wrap .abr-submit:disabled { cursor: wait; opacity: .85; transform: none; }
.abr-wrap .abr-submit .abr-spinner { display: none; }
.abr-wrap .abr-submit.is-loading .abr-spinner { display: inline-block; border-color: rgba(255,255,255,.4); border-top-color: #fff; }

.abr-wrap .abr-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid var(--abr-border);
	border-top-color: var(--abr-accent);
	border-radius: 50%;
	animation: abr-spin .8s linear infinite;
}
@keyframes abr-spin { to { transform: rotate(360deg); } }

/* ---------- Bestätigung ---------- */
.abr-wrap .abr-success { text-align: center; padding: 10px 0 4px; outline: none; animation: abr-fade .45s ease; }
.abr-wrap .abr-success-icon { color: var(--abr-accent); margin-bottom: 14px; }
.abr-wrap .abr-success-icon svg { display: inline-block; }
.abr-wrap .abr-success-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--abr-heading-font);
	font-size: clamp(24px, 3.5vw, 32px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--abr-primary);
}
.abr-wrap .abr-success-text { max-width: 520px; margin: 0 auto 28px; color: var(--abr-muted); }
.abr-wrap .abr-summary {
	max-width: 520px;
	margin: 0 auto 28px;
	padding: 6px 24px;
	border-radius: var(--abr-radius);
	background: var(--abr-soft);
	border-left: 4px solid var(--abr-accent);
	text-align: left;
}
.abr-wrap .abr-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--abr-border);
}
.abr-wrap .abr-summary-row:last-child { border-bottom: 0; }
.abr-wrap .abr-summary dt { margin: 0; color: var(--abr-muted); font-size: 14px; }
.abr-wrap .abr-summary dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.abr-wrap .abr-link-btn {
	padding: 10px 4px;
	border: 0;
	background: none;
	color: var(--abr-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
@keyframes abr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
	.abr-wrap .abr-head { padding: 34px 22px 28px; }
	.abr-wrap .abr-body { padding: 28px 20px 32px; }
	.abr-wrap .abr-grid { grid-template-columns: 1fr; gap: 18px; }
	.abr-wrap .abr-section-title { font-size: 19px; }
	.abr-wrap .abr-cards { grid-template-columns: 1fr 1fr; }
	.abr-wrap .abr-pill { flex: 1 1 calc(50% - 5px); }
	.abr-wrap .abr-pill-inner { width: 100%; justify-content: center; padding: 0 12px; }
	.abr-wrap .abr-actions { flex-direction: column-reverse; align-items: stretch; }
	.abr-wrap .abr-submit { width: 100%; }
	.abr-wrap .abr-note { text-align: center; }
	.abr-wrap .abr-summary { padding: 4px 16px; }
	.abr-wrap .abr-summary-row { flex-direction: column; gap: 2px; }
	.abr-wrap .abr-summary dd { text-align: left; }
}
@media (max-width: 400px) {
	.abr-wrap .abr-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.abr-wrap * { animation: none !important; transition: none !important; }
}
