/* Mannis Anfrage-Widget – Liquid-Glass-Look im Teal-CI der Seite. */
.ml-anfrage {
	--ml-bg:      var(--c-surface, #141414);
	--ml-accent:  var(--c-accent, #3A8690);
	--ml-accent2: var(--c-accent-dark, #2d6d76);
	--ml-glow:    58, 134, 144; /* --c-accent als RGB für rgba()-Glows */
	--ml-head:    var(--c-text-head, #f0eeeb);
	--ml-body:    var(--c-text-body, rgba(240,238,235,0.62));
	--ml-border:  var(--c-border, rgba(255,255,255,0.08));
	--ml-radius:  var(--r-card, 16px);
	--ml-ease:    var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
	position: relative;
	isolation: isolate;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	color: var(--ml-head);
}

/* Liquid-glass Untergrund: driftende Teal-Blasen hinter den Cards */
.ml-blobs {
	position: absolute;
	inset: -40px;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	border-radius: inherit;
	/* Weiche Kante: verhindert, dass overflow:hidden die geblurrten Blobs
	   als sichtbares Rechteck abschneidet ("eckiger Fade"). */
	-webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 76%);
	mask-image: radial-gradient(ellipse at center, #000 40%, transparent 76%);
}
.ml-blobs::before,
.ml-blobs::after {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.22;
	animation: mlDrift 16s var(--ml-ease) infinite alternate;
}
.ml-blobs::before {
	top: -80px;
	left: -60px;
	background: radial-gradient(circle, var(--ml-accent), transparent 70%);
}
.ml-blobs::after {
	bottom: -100px;
	right: -60px;
	background: radial-gradient(circle, var(--ml-accent2), transparent 70%);
	animation-delay: -8s;
}
@keyframes mlDrift {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(30px, 20px) scale(1.15); }
}

/* Progress */
.ml-progress { position: relative; height: 6px; background: var(--ml-border); border-radius: 40px; margin-bottom: 28px; }
.ml-progress__bar { height: 100%; background: linear-gradient(90deg, var(--ml-accent2), var(--ml-accent)); border-radius: 40px; transition: width .5s var(--ml-ease); }
.ml-progress__label { position: absolute; right: 0; top: 12px; font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .04em; color: var(--c-text-muted, rgba(240,238,235,0.38)); }

/* Liquid-glass card base */
.ml-glass-card {
	background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.16),
		0 8px 32px rgba(0,0,0,0.35),
		0 0 48px rgba(var(--ml-glow), 0.12);
}

.ml-card { border-radius: var(--ml-radius); padding: clamp(24px, 5vw, 40px); animation: mlIn .45s var(--ml-ease); }
.ml-card--center { text-align: center; }
.ml-card__head { font-size: clamp(20px, 3.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15; }
.ml-card__sub { color: var(--ml-body); margin: 0 0 24px; font-size: 15px; }
@keyframes mlIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Chooser: persönliches Intro + zwei gestapelte Glass-Path-Cards */
.ml-chooser { display: flex; flex-direction: column; gap: 16px; animation: mlIn .45s var(--ml-ease); }

.ml-intro { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.ml-intro__avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent2)); box-shadow: 0 0 20px rgba(var(--ml-glow), 0.35); }
.ml-intro__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--c-bg, #080808); }
.ml-intro__text { display: flex; flex-direction: column; gap: 3px; }
.ml-intro__headline { font-size: clamp(19px, 2.6vw, 23px); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.ml-intro__sub { font-size: 14px; color: var(--ml-body); margin: 0; line-height: 1.5; }
@media (max-width: 480px) {
	.ml-intro { gap: 14px; }
	.ml-intro__avatar { width: 54px; height: 54px; }
}
.ml-path-card {
	display: flex;
	align-items: center;
	gap: 18px;
	text-align: left;
	padding: 26px 26px;
	border-radius: 20px;
	background: linear-gradient(155deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 6px 24px rgba(0,0,0,0.3);
	color: var(--ml-head);
	cursor: pointer;
	font: inherit;
	transition: transform .25s var(--ml-ease), box-shadow .25s var(--ml-ease), border-color .25s;
}
.ml-path-card:hover {
	transform: translateY(-3px);
	border-color: rgba(var(--ml-glow), 0.5);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 32px rgba(0,0,0,0.35), 0 0 40px rgba(var(--ml-glow), 0.22);
}
.ml-path-card--accent {
	border-color: rgba(var(--ml-glow), 0.35);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 28px rgba(0,0,0,0.32), 0 0 36px rgba(var(--ml-glow), 0.18);
}
.ml-path-card__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(var(--ml-glow), 0.14); color: var(--ml-accent); }
.ml-path-card__icon svg { width: 26px; height: 26px; }
.ml-path-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ml-path-card__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.ml-path-card__desc { font-size: 13.5px; color: var(--ml-body); line-height: 1.5; }
.ml-path-card__arrow { flex-shrink: 0; color: var(--ml-accent); display: flex; transition: transform .25s var(--ml-ease); }
.ml-path-card__arrow svg { width: 20px; height: 20px; }
.ml-path-card:hover .ml-path-card__arrow { transform: translateX(4px); }

/* Choices */
.ml-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ml-choice { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 14px; background: rgba(255,255,255,0.02); border: 1.5px solid var(--ml-border); border-radius: var(--ml-radius); color: var(--ml-head); cursor: pointer; transition: transform .2s var(--ml-ease), border-color .2s, background .2s; font: inherit; }
.ml-choice:hover { transform: translateY(-3px); border-color: var(--ml-accent); background: rgba(var(--ml-glow), 0.08); }
.ml-choice.is-active { border-color: var(--ml-accent); background: rgba(var(--ml-glow), 0.16); box-shadow: 0 0 0 1px var(--ml-accent) inset; }
.ml-choice__icon { display: flex; align-items: center; justify-content: center; color: var(--ml-accent); }
.ml-choice__icon svg { width: 30px; height: 30px; }
.ml-choice__label { font-size: 15px; font-weight: 500; }

/* Mehrfachauswahl als vertikale Checkbox-Liste */
.ml-checklist { display: flex; flex-direction: column; gap: 10px; }
.ml-check {
	display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
	padding: 15px 18px; background: rgba(255,255,255,0.02);
	border: 1.5px solid var(--ml-border); border-radius: 14px;
	color: var(--ml-head); font: inherit; cursor: pointer;
	transition: border-color .18s var(--ml-ease), background .18s var(--ml-ease);
}
.ml-check:hover { border-color: var(--ml-accent); background: rgba(var(--ml-glow), 0.06); }
.ml-check.is-active { border-color: var(--ml-accent); background: rgba(var(--ml-glow), 0.12); }
.ml-check__box {
	flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
	border: 2px solid var(--ml-border); display: flex; align-items: center; justify-content: center;
	color: transparent; transition: all .18s var(--ml-ease);
}
.ml-check.is-active .ml-check__box { background: var(--ml-accent); border-color: var(--ml-accent); color: #fff; }
.ml-check__box svg { width: 14px; height: 14px; }
.ml-check__icon { display: flex; color: var(--ml-accent); flex-shrink: 0; }
.ml-check__icon svg { width: 22px; height: 22px; }
.ml-check__label { font-size: 15px; font-weight: 500; }

/* Fields */
.ml-fields { display: grid; gap: 14px; }
.ml-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .ml-field-row { grid-template-columns: 1fr; } }
.ml-field { display: flex; flex-direction: column; gap: 6px; }
.ml-field__label { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-muted, rgba(240,238,235,0.38)); }
.ml-field__input { padding: 13px 15px; background: rgba(255,255,255,0.03); border: 1.5px solid var(--ml-border); border-radius: 10px; color: var(--ml-head); font: inherit; font-size: 15px; transition: border-color .2s; }
.ml-field__input:focus { outline: none; border-color: var(--ml-accent); }
.ml-field__textarea { resize: vertical; min-height: 100px; }
.ml-field__input--solo { font-size: 17px; padding: 15px 16px; }
select.ml-field__input { appearance: none; cursor: pointer; }

/* Kalender-Terminauswahl */
.ml-cal__layout { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 24px; align-items: start; }
.ml-cal__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ml-cal__title { font-weight: 600; font-size: 16px; text-transform: capitalize; }
.ml-cal__nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ml-border); background: rgba(255,255,255,0.03); color: var(--ml-head); font-size: 18px; line-height: 1; cursor: pointer; transition: all .18s var(--ml-ease); }
.ml-cal__nav:hover:not(:disabled) { border-color: var(--ml-accent); color: var(--ml-accent); }
.ml-cal__nav:disabled { opacity: .3; cursor: default; }
.ml-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ml-cal__wd { text-align: center; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--c-text-muted, rgba(240,238,235,0.38)); padding: 4px 0; }
.ml-cal__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1.5px solid transparent; border-radius: 10px; background: none; color: var(--ml-body); font: inherit; font-size: 14px; cursor: default; }
.ml-cal__day.is-empty { border: none; }
.ml-cal__day.is-off { color: var(--c-text-muted, rgba(240,238,235,0.25)); opacity: .5; }
.ml-cal__day.is-avail { background: rgba(var(--ml-glow), 0.1); border-color: rgba(var(--ml-glow), 0.28); color: var(--ml-head); cursor: pointer; transition: all .15s var(--ml-ease); }
.ml-cal__day.is-avail:hover { background: rgba(var(--ml-glow), 0.22); border-color: var(--ml-accent); }
.ml-cal__day.is-selected { background: var(--ml-accent); border-color: var(--ml-accent); color: #fff; font-weight: 600; }
.ml-cal__times-head { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--ml-head); margin-bottom: 12px; text-transform: capitalize; }
.ml-cal__times-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; }
@media (max-width: 640px) {
	.ml-cal__layout { grid-template-columns: 1fr; gap: 20px; }
	.ml-cal__times-grid { max-height: none; }
}

/* Slots (Wunschzeit-Fallback) */
.ml-slots__loading, .ml-slots__hint { color: var(--ml-body); font-size: 14px; }
.ml-slots__day { font-family: 'Geist Mono', monospace; font-size: 13px; margin: 20px 0 10px; color: var(--ml-head); }
.ml-slots__times { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-slot { padding: 9px 16px; background: rgba(255,255,255,0.03); border: 1.5px solid var(--ml-border); border-radius: 40px; color: var(--ml-head); font: inherit; font-size: 14px; cursor: pointer; transition: all .18s var(--ml-ease); }
.ml-slot:hover { border-color: var(--ml-accent); }
.ml-slot.is-active { background: var(--ml-accent); border-color: var(--ml-accent); color: #fff; }

/* Nav + Buttons */
.ml-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.ml-btn { padding: 13px 26px; border-radius: 40px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent; transition: all .2s var(--ml-ease); }
.ml-btn--primary { margin-left: auto; background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent2)); color: #fff; box-shadow: 0 4px 20px rgba(var(--ml-glow), 0.35); }
.ml-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(var(--ml-glow), 0.5); }
.ml-btn--ghost { background: transparent; border-color: var(--ml-border); color: var(--ml-body); }
.ml-btn--ghost:hover { border-color: var(--ml-head); color: var(--ml-head); }

/* Success / Spinner */
.ml-success { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent2)); color: #fff; display: grid; place-items: center; animation: mlPop .5s var(--ml-ease); box-shadow: 0 0 32px rgba(var(--ml-glow), 0.4); }
.ml-success svg { width: 30px; height: 30px; }
.ml-success--err { background: #b32d2e; box-shadow: none; }
@keyframes mlPop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.ml-spinner { width: 40px; height: 40px; margin: 10px auto 18px; border: 3px solid var(--ml-border); border-top-color: var(--ml-accent); border-radius: 50%; animation: mlSpin .8s linear infinite; }
@keyframes mlSpin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
	.ml-path-card { padding: 20px 18px; gap: 14px; }
	.ml-path-card__icon { width: 44px; height: 44px; }
	.ml-path-card__icon svg { width: 22px; height: 22px; }
}

/* DSGVO-Hinweis am Absende-Schritt */
.ml-dsgvo { margin: 18px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--c-text-muted, rgba(240,238,235,0.4)); }
.ml-dsgvo a { color: var(--ml-body); text-decoration: underline; text-underline-offset: 2px; }
.ml-dsgvo a:hover { color: var(--ml-accent); }
