/* Antalya Reservierung – Frontend-Widget (2-Schritt-Wizard) */
.tvr-widget {
	--tvr-accent: #8E1C1D;     /* Antalya-Rot */
	--tvr-dark:   #6f1517;
	--tvr-soft:   #f6e9e9;     /* heller Rot-Tint (Hover-BG) */
	--tvr-soft-line: #e3c7c7;
	--tvr-cream:  #F5F3EF;
	--tvr-text:   #1d1d1d;
	--tvr-muted:  #6b7177;
	--tvr-line:   #e7e3dc;
	max-width: 1140px;
	margin: 0;
	font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tvr-text);
	background: #fff;
	border: 1px solid var(--tvr-line);
	border-radius: 6px;
	padding: 26px 28px;
	box-shadow: 0 10px 34px rgba(142, 28, 29, .07);
	box-sizing: border-box;
	/* Stable height across steps + no layout shift while assets load. */
	min-height: 560px;
	display: flex;
	flex-direction: column;
}
.tvr-widget *, .tvr-widget *::before, .tvr-widget *::after { box-sizing: border-box; }
.tvr-widget [hidden] { display: none !important; }
/* The one visible step fills the card so the height stays constant. */
.tvr-step { flex: 1 1 auto; }
.tvr-step-when { display: flex; flex-direction: column; }
.tvr-step-when .tvr-nav { margin-top: auto; }
.tvr-success { display: flex; flex-direction: column; justify-content: center; }

/* Hide the floating reCAPTCHA badge; the required notice is shown in-form below (Google ToS-compliant). */
.grecaptcha-badge { visibility: hidden !important; }
.tvr-legal { flex: 0 0 auto; font-size: 11px; line-height: 1.45; color: var(--tvr-muted); text-align: center; margin: 16px 0 0; }
.tvr-legal a { color: var(--tvr-muted); text-decoration: underline; }
.tvr-legal a:hover { color: var(--tvr-accent); }

/* Step titles (serif, like the site headings) */
.tvr-pane-title {
	display: flex; align-items: center; gap: 9px;
	font-family: "Lora", Georgia, serif;
	font-size: 18px; font-weight: 600; color: var(--tvr-text);
	margin: 0 0 14px;
}
.tvr-step-no {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--tvr-accent); color: #fff; font-size: 12px; font-weight: 700;
	font-family: "Barlow", sans-serif;
}

/* Party size tiles */
.tvr-pane-party { margin-bottom: 22px; }
.tvr-party { display: flex; flex-wrap: wrap; gap: 8px; }
.tvr-widget .tvr-pers {
	appearance: none; -webkit-appearance: none;
	width: 46px; height: 46px;
	border: 1px solid var(--tvr-line); background: #fff; color: var(--tvr-text);
	border-radius: 5px; font-size: 15px; font-weight: 600; font-family: inherit;
	cursor: pointer; transition: border-color .12s, background .12s, color .12s, transform .05s;
}
.tvr-widget .tvr-pers:hover, .tvr-widget .tvr-pers:focus-visible {
	border-color: var(--tvr-soft-line); background: var(--tvr-soft); color: var(--tvr-accent); outline: none;
}
.tvr-widget .tvr-pers:active { transform: scale(.95); }
.tvr-widget .tvr-pers.selected,
.tvr-widget .tvr-pers.selected:hover {
	background: var(--tvr-accent); border-color: var(--tvr-accent); color: #fff;
}
.tvr-party-note { font-size: 13px; color: var(--tvr-muted); margin: 10px 0 0; }
.tvr-party-note a { color: var(--tvr-accent); font-weight: 600; }
.tvr-widget .tvr-pers-more { width: auto; min-width: 46px; padding: 0 12px; }
.tvr-largegroup { margin-top: 14px; max-width: 340px; }
.tvr-largegroup .tvr-label { margin-bottom: 6px; }
.tvr-widget .tvr-large-input { max-width: 170px; }
.tvr-largegroup-note { font-size: 13px; color: var(--tvr-muted); line-height: 1.45; margin: 10px 0 0; }
.tvr-largegroup-note a { color: var(--tvr-accent); font-weight: 600; white-space: nowrap; }

/* When-area: calendar + times */
.tvr-when {
	display: grid;
	grid-template-columns: minmax(300px, 360px) 1fr;
	gap: 30px;
	align-items: start;
}
.tvr-pane-times { min-width: 0; }
.tvr-cal-input { display: none; }
/* Reserve the inline calendar's footprint so it doesn't shift on JS mount. */
.tvr-cal-mount { min-height: 322px; }

/* Times */
.tvr-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; align-content: flex-start; min-height: 120px; }
.tvr-times-msg { color: var(--tvr-muted); font-size: 14px; margin: 4px 0; }
.tvr-widget .tvr-slot {
	appearance: none; -webkit-appearance: none;
	border: 1px solid var(--tvr-line); background: #fff; color: var(--tvr-text);
	border-radius: 5px; padding: 11px 4px;
	font-size: 15px; font-weight: 600; font-family: inherit;
	cursor: pointer; text-align: center; min-width: 0;
	transition: border-color .12s, background .12s, color .12s, transform .05s;
}
.tvr-widget .tvr-slot:hover, .tvr-widget .tvr-slot:focus-visible {
	border-color: var(--tvr-soft-line); background: var(--tvr-soft); color: var(--tvr-accent); outline: none;
}
.tvr-widget .tvr-slot:active { transform: scale(.97); }
.tvr-widget .tvr-slot.selected,
.tvr-widget .tvr-slot.selected:hover,
.tvr-widget .tvr-slot.selected:focus-visible {
	background: var(--tvr-accent); border-color: var(--tvr-accent); color: #fff;
}

/* Chosen summary banner (Schritt 2) */
.tvr-chosen {
	display: flex; align-items: center; gap: 10px;
	background: var(--tvr-soft); border: 1px solid var(--tvr-soft-line);
	border-radius: 6px; padding: 12px 14px; margin: 0 0 20px;
	font-size: 15px; font-weight: 700; color: var(--tvr-accent);
}
.tvr-chosen-ico { font-size: 17px; }

/* Buttons */
.tvr-widget .tvr-btn {
	display: inline-block; background: var(--tvr-accent); color: #fff;
	border: 0; border-radius: 5px; padding: 14px 26px;
	font-size: 16px; font-weight: 700; font-family: inherit;
	cursor: pointer; text-decoration: none;
	transition: background .15s, opacity .15s, transform .05s;
}
.tvr-widget .tvr-btn:hover { background: var(--tvr-dark); color: #fff; }
.tvr-widget .tvr-btn:active { transform: scale(.99); }
.tvr-widget .tvr-btn:disabled { opacity: .45; cursor: default; }
.tvr-submit { width: 100%; margin-top: 4px; }
.tvr-next { min-width: 160px; }
.tvr-nav { display: flex; justify-content: flex-end; margin-top: 22px; }

.tvr-widget .tvr-back {
	display: inline-flex; align-items: center; gap: 5px;
	border: 0; background: none; padding: 4px 2px; margin: 0 0 16px;
	color: var(--tvr-accent); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.tvr-widget .tvr-back:hover { color: var(--tvr-dark); text-decoration: underline; }

/* Contact fields */
.tvr-form { margin: 0; }
.tvr-step-details { max-width: 640px; }
.tvr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tvr-field { display: block; }
.tvr-col-2 { grid-column: 1 / -1; }
.tvr-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3a3a36; }
.tvr-widget .tvr-input {
	width: 100%; padding: 12px 13px;
	border: 1px solid #d9d6cd; border-radius: 5px;
	font-size: 15px; font-family: inherit; background: #fff; color: var(--tvr-text);
	transition: border-color .15s, box-shadow .15s;
}
.tvr-widget .tvr-input:focus { outline: none; border-color: var(--tvr-accent); box-shadow: 0 0 0 3px rgba(142, 28, 29, .14); }
.tvr-widget textarea.tvr-input { resize: vertical; }

.tvr-consent {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 13.5px; color: #4a4a44; line-height: 1.45; margin: 16px 0 18px;
}
.tvr-consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--tvr-accent); }
.tvr-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Outdoor-seat wish (greyed out when the outdoor area is full for the chosen slot) */
.tvr-outdoor { margin: 14px 0 0; }
.tvr-outdoor.tvr-outdoor-off { opacity: .45; }
.tvr-outdoor.tvr-outdoor-off span { text-decoration: line-through; }
.tvr-outdoor-full {
	margin: 6px 0 0 27px; font-size: 12.5px; line-height: 1.45; color: #a05c22;
	background: #fdf6ef; border-left: 3px solid #d9a200; border-radius: 4px; padding: 8px 10px;
}

.tvr-msg { margin-top: 12px; font-size: 14px; color: #c0392b; text-align: center; }

/* Success */
.tvr-success { text-align: center; padding: 30px 18px; }
.tvr-success-icon {
	width: 60px; height: 60px; line-height: 60px; margin: 0 auto 14px;
	border-radius: 50%; background: var(--tvr-accent); color: #fff; font-size: 32px;
}
.tvr-success-title { font-family: "Lora", Georgia, serif; margin: 0 0 8px; font-size: 24px; color: var(--tvr-text); }
.tvr-success-text { margin: 0 auto 16px; max-width: 460px; color: #4a4a44; font-size: 15px; line-height: 1.55; }
.tvr-calendar-buttons { margin-bottom: 18px; }
.tvr-widget .tvr-cal-btn {
	display: inline-block; margin: 4px; padding: 9px 15px; background: #fff;
	border: 1px solid var(--tvr-line); border-radius: 5px;
	color: var(--tvr-text); text-decoration: none; font-size: 13px; font-weight: 600;
}
.tvr-widget .tvr-cal-btn:hover { border-color: var(--tvr-soft-line); background: var(--tvr-soft); color: var(--tvr-accent); }
.tvr-widget .tvr-restart {
	background: none; border: 0; color: var(--tvr-accent); cursor: pointer;
	font-size: 14px; font-weight: 700; font-family: inherit; text-decoration: underline;
}
.tvr-widget .tvr-restart:hover { color: var(--tvr-dark); }

/* ---- flatpickr inline, brand-themed, touch-friendly ---- */
.tvr-widget .flatpickr-calendar.inline {
	box-shadow: none; border: 1px solid var(--tvr-line); border-radius: 8px;
	padding: 6px 8px 10px; margin: 0; width: auto; font-family: inherit;
}
.tvr-widget .flatpickr-months { padding-top: 4px; }
.tvr-widget .flatpickr-month { color: var(--tvr-accent); }
.tvr-widget .flatpickr-current-month .cur-month,
.tvr-widget .flatpickr-current-month .numInputWrapper { font-weight: 700; color: var(--tvr-accent); }
.tvr-widget .flatpickr-weekday { color: var(--tvr-muted); font-weight: 700; font-size: 78%; }
.tvr-widget .flatpickr-prev-month svg, .tvr-widget .flatpickr-next-month svg { fill: var(--tvr-accent); }
.tvr-widget .flatpickr-prev-month:hover svg, .tvr-widget .flatpickr-next-month:hover svg { fill: var(--tvr-soft-line); }
.tvr-widget .flatpickr-days, .tvr-widget .dayContainer { width: 308px; min-width: 308px; max-width: 308px; }
.tvr-widget .flatpickr-day {
	max-width: 44px; height: 44px; line-height: 43px;
	border-radius: 9px; color: var(--tvr-text); font-weight: 600;
}
.tvr-widget .flatpickr-day:hover { background: var(--tvr-soft); border-color: var(--tvr-soft); color: var(--tvr-accent); }
.tvr-widget .flatpickr-day.today { border-color: var(--tvr-soft-line); }
.tvr-widget .flatpickr-day.selected,
.tvr-widget .flatpickr-day.selected:hover {
	background: var(--tvr-accent); border-color: var(--tvr-accent); color: #fff;
}
.tvr-widget .flatpickr-day.flatpickr-disabled,
.tvr-widget .flatpickr-day.flatpickr-disabled:hover,
.tvr-widget .flatpickr-day.prevMonthDay, .tvr-widget .flatpickr-day.nextMonthDay {
	color: #c7c3b8; background: transparent; border-color: transparent;
}
.tvr-widget .flatpickr-day.flatpickr-disabled { text-decoration: line-through; }

/* ---- Responsive (tablet + mobile) ---- */
@media (max-width: 760px) {
	.tvr-when { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.tvr-pane { display: flex; flex-direction: column; align-items: flex-start; }
	.tvr-pane .tvr-pane-title { align-self: flex-start; }
	.tvr-pane-times { align-items: stretch; }
	.tvr-cal-mount { display: flex; justify-content: flex-start; }
	/* Calendar must shrink to the card width — otherwise its fixed footprint overflows the right edge. */
	.tvr-widget .flatpickr-calendar { width: 100% !important; max-width: 100%; }
	.tvr-widget .flatpickr-rContainer,
	.tvr-widget .flatpickr-days,
	.tvr-widget .dayContainer { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
	/* Always keep a clear gap between the time grid and the "Weiter" button. */
	.tvr-step-when .tvr-nav { margin-top: 22px; }
}
@media (max-width: 560px) {
	.tvr-widget { padding: 16px; border-radius: 14px; min-height: 480px; }
	.tvr-grid { grid-template-columns: 1fr; }
	.tvr-times { grid-template-columns: repeat(3, 1fr); }
	.tvr-nav { justify-content: stretch; }
	.tvr-next { width: 100%; }
	/* Party tiles fill the row evenly (like the time grid) instead of bunching left. */
	.tvr-party { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
	.tvr-widget .tvr-pers { width: 100%; }
	.tvr-widget .tvr-pers-more { width: 100%; grid-column: 1 / -1; }
}
