/* ==========================================================================
   FHG Reservation v1.3.0
   Zwei Modi: Overlay (Popup) oder Inline (direkt auf der Seite)
   ========================================================================== */

/* Wrapper – Overlay-Modus: unsichtbar im Seitenfluss
   ========================================================================== */

.fhg-resv {
	position: static;
	width: 0;
	height: 0;
	overflow: visible;
}

/* Wrapper – Inline-Modus: normaler Seitenfluss */
.fhg-resv--inline {
	position: relative;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Overlay
   ========================================================================== */

.fhg-resv__overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	grid-template-columns: 47% 53%;
	transform: translateY(-100%);
	transition: transform 0.6s cubic-bezier(0.33, 0, 0.2, 1),
	            visibility 0s linear 0.6s;
	visibility: hidden;
}

.fhg-resv.is-open .fhg-resv__overlay {
	transform: translateY(0);
	visibility: visible;
	transition: transform 0.6s cubic-bezier(0.33, 0, 0.2, 1),
	            visibility 0s linear 0s;
}

/* Inline-Modus: kein Overlay-Verhalten */
.fhg-resv--inline .fhg-resv__overlay {
	position: relative;
	inset: auto;
	z-index: auto;
	transform: none;
	visibility: visible;
	transition: none;
	min-height: 600px;
	border-radius: 16px;
	overflow: hidden;
}

/* Bild-Seite (links)
   ========================================================================== */

.fhg-resv__image {
	position: relative;
	overflow: hidden;
	clip-path: ellipse(85% 100% at 30% 50%);
}

.fhg-resv__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

/* Formular-Seite (rechts)
   ========================================================================== */

.fhg-resv__form-side {
	position: relative;
	background-color: #E3E6D3;
	padding: 50px 80px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Ast-Dekoration (Hintergrund-SVG) */
.fhg-resv__deco {
	position: absolute;
	top: -77%;
	left: 10%;
	width: 170%;
	height: 240%;
	opacity: 0.5;
	pointer-events: none;
	z-index: 0;
	transform: rotate(-35deg);
}

.fhg-resv__deco svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Alle Inhalte über der Deko */
.fhg-resv__stepper,
.fhg-resv__close,
.fhg-resv__content {
	position: relative;
	z-index: 1;
}

/* Stepper
   ========================================================================== */

.fhg-resv__stepper {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
}

.fhg-resv__step {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fhg-resv__step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	flex-shrink: 0;
	border: 1.5px solid #9EA69A;
	color: #EEEFE2;
	background: transparent;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fhg-resv__step--active .fhg-resv__step-num {
	background-color: #0D2102;
	color: #F4EE8F;
	border-color: #0D2102;
}

.fhg-resv__step-label {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 25px;
	color: #0D2102;
	white-space: nowrap;
}

.fhg-resv__step:not(.fhg-resv__step--active) .fhg-resv__step-label {
	color: #9EA69A;
}

.fhg-resv__step-line {
	flex: 1;
	height: 1px;
	background-color: #9EA69A;
	min-width: 20px;
}

/* Close Button
   ========================================================================== */

.fhg-resv__close {
	position: absolute;
	top: 50px;
	right: 50px;
	width: 42px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #0D2102;
	cursor: pointer;
	padding: 0;
	z-index: 2;
	-webkit-tap-highlight-color: transparent;
	transition: opacity 0.2s ease;
}

.fhg-resv__close:hover {
	opacity: 0.6;
}

.fhg-resv__close svg {
	display: block;
}

/* Content
   ========================================================================== */

.fhg-resv__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 730px;
}

.fhg-resv__subtitle {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: -0.01em;
	color: #0D2102;
	margin: 0 0 8px;
}

.fhg-resv__title {
	font-family: 'SangBleu Kingdom', serif;
	font-size: 60px;
	font-weight: 400;
	line-height: 60px;
	letter-spacing: -0.01em;
	color: #0D2102;
	margin: 0 0 70px;
}

.fhg-resv__title em,
.fhg-resv__title i {
	font-style: italic;
	font-weight: 400;
}

/* Form
   ========================================================================== */

.fhg-resv__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fhg-resv__field-wrap {
	position: relative;
}

.fhg-resv__field {
	width: 100%;
	height: 65px;
	border: 1.1px solid #9EA69A !important;
	border-radius: 80px !important;
	-webkit-border-radius: 80px !important;
	padding: 0 27px;
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: -0.01em;
	background: transparent;
	color: #0D2102;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.fhg-resv__field:focus {
	border-color: #0D2102;
}

.fhg-resv__field::placeholder {
	color: #0D2102;
	opacity: 0.7;
}

/* Select: Custom Dropdown-Pfeil */
select.fhg-resv__field {
	cursor: pointer;
	color: #0D2102;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230D2102' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 27px center;
	padding-right: 54px;
}

/* Select: Default-Option (Placeholder) mit Opacity */
select.fhg-resv__field:invalid,
select.fhg-resv__field option[value=""][disabled] {
	opacity: 0.7;
}

select.fhg-resv__field option {
	opacity: 1;
	color: #0D2102;
}

/* Date/Time: nativen Picker sichtbar machen + border-radius erzwingen */
.fhg-resv__field[type="date"],
.fhg-resv__field[type="time"] {
	cursor: pointer;
	border-radius: 80px !important;
	-webkit-border-radius: 80px !important;
}

/* Webkit inner controls: border-radius Override entfernen */
.fhg-resv__field[type="date"]::-webkit-datetime-edit,
.fhg-resv__field[type="time"]::-webkit-datetime-edit,
.fhg-resv__field[type="date"]::-webkit-inner-spin-button,
.fhg-resv__field[type="time"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.fhg-resv__field[type="date"]::-webkit-calendar-picker-indicator,
.fhg-resv__field[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.5;
}

/* Webkit date/time Placeholder-Styling */
.fhg-resv__field[type="date"]:not(:focus):invalid,
.fhg-resv__field[type="time"]:not(:focus):invalid {
	color: #0D2102;
	opacity: 0.7;
}

/* Submit
   ========================================================================== */

.fhg-resv__submit {
	margin-top: 52px;
}

/* Button-Styles aus FHG-Button übernommen (Primary Pattern) */
.fhg-resv__btn.fhg-btn {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	border: none;
	background: transparent;
	padding: 0;
	gap: 7px;
}

.fhg-resv__btn .fhg-btn__label {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #0D2102;
	border-radius: 80px;
	padding: 8px 22px 9px;
	background-color: transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.fhg-resv__btn .fhg-btn__text {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 25px;
	letter-spacing: -0.6px;
	text-align: center;
	white-space: nowrap;
	color: #0D2102;
	transition: color 0.3s ease;
}

.fhg-resv__btn .fhg-btn__arrow-circle {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 100%;
	border: 1px solid #0D2102;
	overflow: hidden;
	flex-shrink: 0;
	color: #0D2102;
	background-color: transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fhg-resv__btn .fhg-btn__arrow {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.fhg-resv__btn .fhg-btn__arrow svg {
	width: 28px;
	height: 28px;
	display: block;
}

.fhg-resv__btn .fhg-btn__arrow--clone {
	transform: translate(-100%, 100%);
}

.fhg-resv__btn:hover .fhg-btn__arrow:not(.fhg-btn__arrow--clone) {
	transform: translate(100%, -100%);
}

.fhg-resv__btn:hover .fhg-btn__arrow--clone {
	transform: translate(0, 0);
}

.fhg-resv__btn:hover .fhg-btn__arrow-circle {
	background-color: #F4EE8F;
}

.fhg-resv__btn:focus-visible .fhg-btn__label {
	outline: 2px solid #0D2102;
	outline-offset: 2px;
}

.fhg-resv__btn:focus-visible .fhg-btn__arrow-circle {
	outline: 2px solid #0D2102;
	outline-offset: 2px;
}

/* Scroll Lock (shared mit FullscreenMenu)
   ========================================================================== */

html.fhg-scroll-locked {
	overflow: hidden !important;
}

/* Inline-Modus: Bild-Seite Höhe */
.fhg-resv--inline .fhg-resv__image {
	min-height: 100%;
}

/* Inline-Modus: Form-Seite Höhe */
.fhg-resv--inline .fhg-resv__form-side {
	min-height: 600px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.fhg-resv__form-side {
		padding: 40px 50px;
	}

	.fhg-resv__title {
		font-size: 46px;
		line-height: 46px;
		margin-bottom: 40px;
	}

	.fhg-resv__close {
		top: 40px;
		right: 40px;
	}

	.fhg-resv__submit {
		margin-top: 32px;
	}
}

@media (max-width: 767px) {
	.fhg-resv__overlay {
		grid-template-columns: 1fr;
	}

	.fhg-resv__image {
		display: none;
	}

	.fhg-resv--inline .fhg-resv__overlay {
		min-height: auto;
		border-radius: 12px;
	}

	.fhg-resv--inline .fhg-resv__form-side {
		min-height: auto;
	}

	.fhg-resv__form-side {
		padding: 30px 24px;
	}

	.fhg-resv__deco {
		top: -60%;
		left: -20%;
		width: 200%;
		height: 220%;
	}

	.fhg-resv__stepper {
		gap: 8px;
		margin-bottom: 30px;
	}

	.fhg-resv__step-label {
		font-size: 12px;
	}

	.fhg-resv__step-num {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.fhg-resv__close {
		top: 24px;
		right: 24px;
		width: 32px;
		height: 32px;
	}

	.fhg-resv__close svg {
		width: 18px;
		height: 16px;
	}

	.fhg-resv__subtitle {
		font-size: 16px;
		line-height: 22px;
	}

	.fhg-resv__title {
		font-size: 42px;
		line-height: 42px;
		letter-spacing: -0.02em;
		margin-bottom: 24px;
	}

	.fhg-resv__form {
		gap: 16px;
	}

	.fhg-resv__field {
		height: 56px;
		font-size: 16px;
		line-height: 56px;
		padding: 0 22px;
	}

	select.fhg-resv__field {
		background-position: right 22px center;
		padding-right: 48px;
	}

	.fhg-resv__submit {
		margin-top: 16px;
	}

	.fhg-resv__btn .fhg-btn__text {
		font-size: 20px;
		line-height: 25px;
		letter-spacing: -0.6px;
	}

	.fhg-resv__btn .fhg-btn__arrow-circle {
		width: 46px;
		height: 46px;
	}

	.fhg-resv__btn .fhg-btn__arrow svg {
		width: 28px;
		height: 28px;
	}

	.fhg-resv__btn .fhg-btn__label {
		padding: 9px 20px 11px;
	}
}
