/* VI Terminbuchung – Grundlayout. Farben, Schriften und Abstände werden im Elementor-Widget gesetzt. */
.vitb {
	--vitb-accent: #2f6f68;
	--vitb-accent-contrast: #ffffff;
	--vitb-text: inherit;
	--vitb-muted: rgba(0, 0, 0, 0.6);
	--vitb-border: rgba(0, 0, 0, 0.18);
	--vitb-surface: rgba(0, 0, 0, 0.03);
	--vitb-error: #b3261e;
	--vitb-success: #1e6b3a;
	--vitb-radius: 10px;
	--vitb-gap: 1.25em;
	color: var(--vitb-text);
	font: inherit;
	line-height: 1.5;
	width: 100%;
	box-sizing: border-box;
	container-type: inline-size;
}
.vitb *, .vitb *::before, .vitb *::after { box-sizing: border-box; }

.vitb-body { display: flex; flex-direction: column; gap: var(--vitb-gap); }
.vitb-panel { display: flex; flex-direction: column; gap: var(--vitb-gap); }
.vitb-title { margin: 0; font-size: 1.35em; line-height: 1.25; outline: none; }
.vitb-chosen { margin: 0; color: var(--vitb-muted); }

.vitb-sr, .vitb-hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Fortschritt */
.vitb-steps { display: flex; gap: 0.5em; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; min-width: 0; }
.vitb-step-indicator { display: flex; align-items: center; gap: 0.45em; color: var(--vitb-muted); font-size: 0.85em; min-width: 0; white-space: nowrap; }
.vitb-step-indicator + .vitb-step-indicator::before { content: ""; width: 1.5em; height: 1px; background: var(--vitb-border); margin-right: 0.1em; }
.vitb-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.8em; height: 1.8em; border-radius: 50%; border: 1px solid var(--vitb-border); font-weight: 600;
}
.vitb-step-indicator.is-active { color: inherit; font-weight: 600; }
.vitb-step-indicator.is-active .vitb-step-num,
.vitb-step-indicator.is-done .vitb-step-num { background: var(--vitb-accent); border-color: var(--vitb-accent); color: var(--vitb-accent-contrast); }
@container (max-width: 760px) { .vitb-step-indicator:not(.is-active) .vitb-step-label { display: none; } }
@media (max-width: 600px) { .vitb-step-indicator:not(.is-active) .vitb-step-label { display: none; } }
.elementor-widget-vi_terminbuchung:not(.vitb-progress-yes) .vitb-steps { display: none; }

/* Terminarten – Desktop nebeneinander, ab Smartphone quer untereinander */
.vitb-types { display: grid; grid-template-columns: repeat(var(--vitb-type-cols, 3), minmax(0, 1fr)); gap: 1em; }
@media (max-width: 880px) { .vitb-types { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 640px) { .vitb-types { grid-template-columns: minmax(0, 1fr); } }
.vitb-types > [role="listitem"] { display: flex; }
.vitb .vitb-type,
.vitb .vitb-type:hover,
.vitb .vitb-type:focus,
.vitb .vitb-type:active {
	display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; width: 100%; height: 100%; margin: 0;
	padding: 2.4em 2.2em; text-align: left; cursor: pointer;
	font-family: var(--e-global-typography-text-font-family, inherit); font-size: 1em; font-weight: 400;
	line-height: 1.6; letter-spacing: normal; text-transform: none; text-decoration: none; white-space: normal;
	color: #24313B; background: #E7EEE8; background-image: none;
	border: 2px solid transparent; border-radius: 30px; box-shadow: none;
	transition: border-color .15s, transform .15s;
}
.vitb .vitb-type:hover { border-color: var(--vitb-accent); transform: translateY(-2px); }
.vitb .vitb-type:focus { outline: none; }
.vitb .vitb-type:focus-visible { outline: 2px solid var(--vitb-accent); outline-offset: 3px; }
.vitb .vitb-type.is-selected { border-color: var(--vitb-accent); }
.vitb .vitb-type::before { content: ""; display: block; width: 4.3em; height: 4px; background: #4A7BC4; margin-bottom: 0.6em; }
.vitb .vitb-type-title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: 700; font-size: 24px; line-height: 1.25; color: #24313B;
}
.vitb .vitb-type-desc { color: #24313B; font-weight: 400; }
.vitb .vitb-type-meta { font-size: 0.9em; color: #24313B; font-weight: 700; margin-top: auto; padding-top: 0.6em; }

/* Kalender – volle Breite, Tage mit Linien getrennt */
.vitb-cal { display: flex; flex-direction: column; gap: 0.9em; width: 100%; max-width: 100%; }
.vitb-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75em; }
.vitb-cal-month { font-weight: 700; font-size: 1.25em; font-family: var(--e-global-typography-primary-font-family, inherit); }
.vitb .vitb-cal-nav {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3em; height: 3em; padding: 0; border-radius: 50%; cursor: pointer;
	background: var(--vitb-accent); color: var(--vitb-accent-contrast); border: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.vitb .vitb-cal-nav:hover:not(:disabled) { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.vitb .vitb-cal-nav:disabled { opacity: .25; cursor: default; box-shadow: none; }
.vitb .vitb-cal-nav:focus-visible { outline: 3px solid var(--vitb-accent); outline-offset: 3px; }
.vitb .vitb-cal-nav svg { display: block; }
.vitb-cal-grid {
	display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0;
	border-top: 1px solid var(--vitb-border); border-left: 1px solid var(--vitb-border);
	border-radius: var(--vitb-radius); overflow: hidden;
}
.vitb-cal-wd {
	text-align: center; font-size: 0.85em; font-weight: 700; padding: 0.6em 0;
	background: #E7EEE8; color: #24313B;
	border-right: 1px solid var(--vitb-border); border-bottom: 1px solid var(--vitb-border);
}
.vitb .vitb-cal-day {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em;
	min-height: 3.6em; padding: 0.4em 0; font: inherit; color: inherit; background: #fff;
	border: 0; border-right: 1px solid var(--vitb-border); border-bottom: 1px solid var(--vitb-border); border-radius: 0;
}
.vitb-cal-num { font-size: 1.15em; font-weight: 700; line-height: 1; }
.vitb .vitb-cal-day.is-empty { background: rgba(0, 0, 0, .02); }
.vitb .vitb-cal-day.is-disabled { color: rgba(0, 0, 0, .3); }
.vitb .vitb-cal-day.is-disabled .vitb-cal-num { font-weight: 400; }
.vitb .vitb-cal-day.is-available { cursor: pointer; background: #E7EEE8; color: #24313B; transition: background-color .15s; }
.vitb-cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vitb-accent); }
.vitb .vitb-cal-day.is-available:hover { background: color-mix(in srgb, var(--vitb-accent) 18%, #E7EEE8); }
.vitb .vitb-cal-day.is-selected, .vitb .vitb-cal-day.is-selected:hover { background: var(--vitb-accent); color: var(--vitb-accent-contrast); }
.vitb .vitb-cal-day.is-selected .vitb-cal-dot { background: var(--vitb-accent-contrast); }
.vitb .vitb-cal-day.is-full { color: rgba(0, 0, 0, .45); background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f3f3f3 6px, #f3f3f3 12px); }
.vitb .vitb-cal-day.is-full .vitb-cal-num { text-decoration: line-through; }
.vitb-cal-tag { font-size: 0.65em; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.vitb .vitb-cal-day.is-today .vitb-cal-num { text-decoration: underline; text-underline-offset: 4px; }
.vitb .vitb-cal-day:focus-visible { outline: 3px solid var(--vitb-accent); outline-offset: -3px; z-index: 1; }
.vitb-cal-legend { display: flex; flex-wrap: wrap; gap: 0.5em 1.25em; font-size: 0.85em; color: var(--vitb-muted); }
.vitb-legend::before { content: ""; display: inline-block; width: 1em; height: 1em; border-radius: 3px; margin-right: 0.4em; vertical-align: -0.15em; border: 1px solid var(--vitb-border); }
.vitb-legend--free::before { background: #E7EEE8; }
.vitb-legend--full::before { background: repeating-linear-gradient(135deg, #fff, #fff 3px, #ddd 3px, #ddd 6px); }
.vitb-legend--none::before { background: #fff; }

/* Uhrzeiten */
.vitb-times-wrap { display: flex; flex-direction: column; gap: 0.6em; }
.vitb-times-wrap:empty { display: none; }
.vitb-times-title { margin: 0; font-weight: 600; }
.vitb-times { display: grid; grid-template-columns: repeat(var(--vitb-time-cols, 6), minmax(0, 1fr)); gap: 0.5em; width: 100%; }
@media (max-width: 880px) { .vitb-times { grid-template-columns: repeat(var(--vitb-time-cols, 4), minmax(0, 1fr)); } }
@media (max-width: 480px) { .vitb-times { grid-template-columns: repeat(var(--vitb-time-cols, 3), minmax(0, 1fr)); } }
.vitb .vitb-time {
	padding: 0.7em 0.5em; border: 1px solid var(--vitb-border); border-radius: var(--vitb-radius); background: #E7EEE8;
	color: #24313B; font: inherit; font-weight: 700; cursor: pointer; text-align: center;
}
.vitb .vitb-time:hover { border-color: var(--vitb-accent); }
.vitb .vitb-time.is-selected { background: var(--vitb-accent); border-color: var(--vitb-accent); color: var(--vitb-accent-contrast); }
.vitb .vitb-time.is-taken { background: #fff; color: rgba(0, 0, 0, .35); text-decoration: line-through; font-weight: 400; cursor: default; }
.vitb .vitb-time:focus-visible { outline: 2px solid var(--vitb-accent); outline-offset: 2px; }

/* Formular */
.vitb-form { display: flex; flex-direction: column; gap: 1em; }
.vitb-row { display: flex; flex-wrap: wrap; gap: 1em; }
.vitb-field { display: flex; flex-direction: column; gap: 0.35em; margin: 0; min-width: 0; flex: 1 1 100%; }
.vitb-field--half { flex: 1 1 calc(50% - 0.5em); min-width: 14em; }
.vitb-label { font-weight: 600; font-size: 0.95em; padding: 0; }
.vitb-req { color: var(--vitb-error); }
.vitb .vitb-input {
	width: 100%; padding: 0.7em 0.85em; font: inherit; color: inherit; background: #fff;
	border: 1px solid var(--vitb-border); border-radius: var(--vitb-radius); line-height: 1.4;
}
.vitb .vitb-input:focus { outline: none; border-color: var(--vitb-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vitb-accent) 25%, transparent); }
.vitb textarea.vitb-input { resize: vertical; min-height: 5em; }
.vitb .vitb-field.has-error .vitb-input { border-color: var(--vitb-error); }
.vitb-error { margin: 0; color: var(--vitb-error); font-size: 0.9em; }
.vitb-hint { margin: 0; color: var(--vitb-muted); font-size: 0.9em; }
.vitb-choice { border: 0; padding: 0; }
.vitb-choice legend { margin-bottom: 0.4em; }
.vitb-choice-options { display: flex; flex-wrap: wrap; gap: 0.5em; }
.vitb .vitb-choice-option {
	display: inline-flex; align-items: center; gap: 0.5em; padding: 0.6em 0.9em; cursor: pointer;
	border: 1px solid var(--vitb-border); border-radius: var(--vitb-radius);
}
.vitb .vitb-choice-option.is-selected { border-color: var(--vitb-accent); box-shadow: inset 0 0 0 1px var(--vitb-accent); }
.vitb .vitb-choice-option input { accent-color: var(--vitb-accent); margin: 0; }
.vitb-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.6em; }
.vitb-check input { accent-color: var(--vitb-accent); width: 1.15em; height: 1.15em; margin: 0.2em 0 0; flex: 0 0 auto; }
.vitb-check label { flex: 1 1 0; font-size: 0.92em; }
.vitb-check .vitb-error { flex-basis: 100%; }
.vitb a { color: var(--vitb-accent); }

/* Zusammenfassung */
.vitb-summary { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--vitb-border); border-radius: var(--vitb-radius); }
.vitb-summary-row { display: flex; flex-wrap: wrap; gap: 0.25em 1em; padding: 0.65em 1em; }
.vitb-summary-row + .vitb-summary-row { border-top: 1px solid var(--vitb-border); }
.vitb-summary dt { flex: 0 0 8em; color: var(--vitb-muted); margin: 0; }
.vitb-summary dd { flex: 1 1 12em; margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Buttons */
.vitb-actions { display: flex; flex-wrap: wrap; gap: 0.75em; justify-content: space-between; align-items: center; }
.vitb-actions .vitb-btn--primary:only-child { margin-left: auto; }
.vitb .vitb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
	padding: 0.8em 1.4em; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
	border-radius: var(--vitb-radius); border: 1px solid var(--vitb-accent); transition: background-color .15s, color .15s, border-color .15s;
}
.vitb .vitb-btn--primary { background: var(--vitb-accent); color: var(--vitb-accent-contrast); }
.vitb .vitb-btn--primary:hover { filter: brightness(0.92); }
.vitb .vitb-btn--secondary { background: transparent; color: var(--vitb-accent); }
.vitb .vitb-btn:disabled { opacity: .6; cursor: progress; }
.vitb .vitb-btn:focus-visible { outline: 2px solid var(--vitb-accent); outline-offset: 2px; }

/* Hinweise */
.vitb-notice { margin: 0; padding: 0.85em 1em; border-radius: var(--vitb-radius); background: var(--vitb-surface); border-left: 4px solid var(--vitb-border); }
.vitb-notice--error { border-left-color: var(--vitb-error); }
.vitb-notice--success { border-left-color: var(--vitb-success); }
.vitb-notice--info { border-left-color: var(--vitb-accent); }
.vitb-loading { margin: 0; color: var(--vitb-muted); }

/* Eigenständige Seiten (Storno, Bestätigen) */
.vitb-page { padding: 6% 10%; }
.vitb--standalone { max-width: 42em; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25em; }
.vitb-form-inline { display: flex; flex-direction: column; gap: 0.75em; align-items: flex-start; }

/* Elementor-Kit-Buttonstile neutralisieren (Fokus/Aktiv) */
.vitb .vitb-time, .vitb .vitb-cal-day, .vitb .vitb-cal-nav, .vitb .vitb-btn {
	text-transform: none; letter-spacing: normal; text-decoration: none; background-image: none; box-shadow: none; margin: 0;
}
.vitb .vitb-time:not(.is-selected):not(.is-taken):focus, .vitb .vitb-time:not(.is-selected):not(.is-taken):active { background: #E7EEE8; color: #24313B; }
.vitb .vitb-cal-day.is-available:not(.is-selected):focus { background: #E7EEE8; color: #24313B; }
.vitb .vitb-cal-day.is-selected:focus { background: var(--vitb-accent); color: var(--vitb-accent-contrast); }
.vitb .vitb-cal-nav, .vitb .vitb-cal-nav:hover, .vitb .vitb-cal-nav:focus { background: var(--vitb-accent); color: var(--vitb-accent-contrast); border: 0; border-radius: 50%; }
.vitb .vitb-cal-nav { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.vitb .vitb-btn--primary:focus { background: var(--vitb-accent); color: var(--vitb-accent-contrast); }
.vitb .vitb-btn--secondary:focus, .vitb .vitb-btn--secondary:hover { background: transparent; color: var(--vitb-accent); }
.vitb .vitb-btn { border-radius: var(--vitb-radius); border: 1px solid var(--vitb-accent); }
.vitb .vitb-cal-day, .vitb .vitb-cal-day:hover, .vitb .vitb-cal-day:focus, .vitb .vitb-cal-day:active {
	border-radius: 0; padding: 0.4em 0; font-size: 1em; font-weight: inherit; line-height: 1.2; border-top: 0; border-left: 0;
	border-right: 1px solid var(--vitb-border); border-bottom: 1px solid var(--vitb-border);
}
.vitb .vitb-time, .vitb .vitb-time:hover, .vitb .vitb-time:focus, .vitb .vitb-time:active {
	border-radius: var(--vitb-radius); padding: 0.7em 0.5em; font-size: 1em; line-height: 1.2;
}
.vitb .vitb-cal-nav, .vitb .vitb-cal-nav:hover, .vitb .vitb-cal-nav:focus, .vitb .vitb-cal-nav:active {
	width: 3em; height: 3em; padding: 0; line-height: 1;
}
.vitb .vitb-btn, .vitb .vitb-btn:hover, .vitb .vitb-btn:focus, .vitb .vitb-btn:active {
	padding: 0.8em 1.4em; font-size: 1em; font-weight: 600; line-height: 1.2; border-radius: var(--vitb-radius);
}
.vitb .vitb-btn--primary:hover { background: var(--vitb-accent); color: var(--vitb-accent-contrast); filter: brightness(0.92); }

/* Warteliste */
.vitb-waitlist { border-top: 1px solid var(--vitb-border); padding-top: 1.25em; }
.vitb-waitlist-form { display: flex; flex-direction: column; gap: 0.6em; }
.vitb-waitlist-title { margin: 0; font-weight: 700; }
.vitb-waitlist-row { display: flex; flex-wrap: wrap; gap: 0.6em; }
.vitb-waitlist-row .vitb-input { flex: 1 1 16em; width: auto; }
.vitb-waitlist .vitb-error:empty { display: none; }
