/* Jägerhof Anfrage – Formular. Schriften erbt es vom Theme (Dosis / Cormorant). */
.jha {
	--jha-accent: #b99470;
	--jha-ink: #2b2723;
	--jha-muted: #7a726b;
	--jha-line: #e4ded6;
	--jha-field: #f7f5f2;
	--jha-error: #b3261e;
	max-width: 860px;
	margin: 0 auto;
	color: var(--jha-ink);
	font-family: inherit;
	scroll-margin-top: 110px;
}
.jha *, .jha *::before, .jha *::after { box-sizing: border-box; }

#jha-anfrage .jha-section {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--jha-line);
	margin: 0 0 8px;
	padding: 28px 0 8px;
	min-width: 0;
}
#jha-anfrage .jha-section:first-of-type { border-top: 0; padding-top: 4px; }
#jha-anfrage .jha-section legend {
	background: transparent;
	border: 0;
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 18px;
	font-family: Cormorant, Georgia, serif;
	font-size: 26px;
	line-height: 1.2;
	color: var(--jha-ink);
}
.jha-section legend + * { clear: left; }

.jha-grid { display: grid; gap: 14px 18px; margin-bottom: 14px; }
.jha-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jha-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
	.jha-grid--2, .jha-grid--3 { grid-template-columns: 1fr 1fr; }
	.jha-grid--3 > .jha-field:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
	.jha-section--person .jha-grid--3 { grid-template-columns: 1fr; }
	.jha-section--person .jha-grid--3 > .jha-field:last-child:nth-child(odd) { grid-column: auto; }
}

.jha-field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 14px; }
.jha-grid .jha-field { margin-bottom: 0; }
.jha-field > label, .jha-label {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--jha-muted);
	margin: 0 0 6px;
	font-weight: 600;
}
.jha-label { display: block; margin-top: 4px; }
.jha-hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--jha-muted); font-size: 13px; }
.jha-req { color: var(--jha-accent); text-decoration: none; border: 0; cursor: help; }

/* Felder: mit ID-Präfix, weil das Theme Eingabefelder mit sehr spezifischen Regeln
   (input:not(...):not(...)…) und eigenem Hintergrund gestaltet. */
#jha-anfrage input[type="text"], #jha-anfrage input[type="email"], #jha-anfrage input[type="tel"],
#jha-anfrage input[type="date"], #jha-anfrage select, #jha-anfrage textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--jha-line);
	border-radius: 2px;
	background-color: var(--jha-field);
	color: var(--jha-ink);
	font: inherit;
	font-size: 16px; /* verhindert Zoom auf iOS */
	line-height: 1.3;
	box-shadow: none;
	margin: 0;
}
#jha-anfrage select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a726b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
}
#jha-anfrage input[type="date"] { -webkit-appearance: none; appearance: none; }
#jha-anfrage input::placeholder, #jha-anfrage textarea::placeholder { color: #a39b93; opacity: 1; }
#jha-anfrage textarea { min-height: 110px; resize: vertical; }
#jha-anfrage input:focus, #jha-anfrage select:focus, #jha-anfrage textarea:focus {
	outline: 2px solid var(--jha-accent);
	outline-offset: 1px;
	border-color: var(--jha-accent);
	background-color: #fff;
}
#jha-anfrage [aria-invalid="true"] { border-color: var(--jha-error); background-color: #fff7f6; }
.jha-err { color: var(--jha-error); font-size: 13px; margin-top: 5px; }

.jha-nights { margin: -2px 0 14px; color: var(--jha-muted); font-size: 14px; min-height: 1.2em; }
.jha-hidden { display: none !important; }

/* Zimmerkarten */
.jha-rooms {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 8px;
}
@media (max-width: 760px) { .jha-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .jha-rooms { grid-template-columns: 1fr; } }
.jha-room {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--jha-line);
	background: #fff;
	cursor: pointer;
	min-height: 64px;
	transition: border-color .15s, box-shadow .15s;
}
.jha-room input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jha-room__img { display: block; aspect-ratio: 16 / 10; background: var(--jha-field) center / cover no-repeat; }
.jha-room__name { display: block; padding: 14px 44px 14px 14px; font-size: 15px; line-height: 1.35; }
.jha-room__check {
	position: absolute;
	right: 12px;
	bottom: 14px;
	width: 22px;
	height: 22px;
	border: 1px solid var(--jha-line);
	border-radius: 50%;
	background: #fff;
}
.jha-room:hover { border-color: var(--jha-accent); }
.jha-room input:focus-visible ~ .jha-room__name { outline: 2px solid var(--jha-accent); outline-offset: -4px; }
.jha-room input:checked ~ .jha-room__check {
	border-color: var(--jha-accent);
	background: var(--jha-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.jha-room:has(input:checked) { border-color: var(--jha-accent); box-shadow: inset 0 0 0 1px var(--jha-accent); }
.jha-rooms-any { margin: 0 0 18px; }

/* Verpflegung */
.jha-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.jha-pill { position: relative; cursor: pointer; }
.jha-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jha-pill span {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid var(--jha-line);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	line-height: 1.2;
}
.jha-pill input:checked + span { background: var(--jha-accent); border-color: var(--jha-accent); color: #fff; }
.jha-pill input:focus-visible + span { outline: 2px solid var(--jha-accent); outline-offset: 2px; }

/* Einwilligung */
.jha-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jha-ink);
	cursor: pointer;
}
.jha-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--jha-accent); }
.jha-consent a { color: var(--jha-accent); text-decoration: underline; }

/* Absenden */
.jha-actions { border-top: 1px solid var(--jha-line); padding-top: 22px; text-align: center; }
.jha-submit {
	display: inline-block;
	min-width: 280px;
	min-height: 52px;
	padding: 14px 28px;
	border: 0;
	border-radius: 0;
	background: var(--jha-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .15s;
}
.jha-submit:hover { filter: brightness(.93); }
.jha-submit:focus-visible { outline: 2px solid var(--jha-ink); outline-offset: 3px; }
.jha-submit[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 420px) { .jha-submit { width: 100%; min-width: 0; } }
.jha-note { margin: 12px 0 4px; color: var(--jha-muted); font-size: 14px; }
.jha-call { margin: 0; font-size: 14px; color: var(--jha-muted); }
.jha-call a { color: var(--jha-accent); white-space: nowrap; }

/* Meldungen */
.jha-alert {
	border-left: 4px solid var(--jha-error);
	background: #fff7f6;
	padding: 12px 16px;
	margin: 0 0 20px;
	font-size: 15px;
}
.jha-success {
	text-align: center;
	padding: 40px 20px;
	border: 1px solid var(--jha-line);
	background: #fff;
}
.jha-success:focus { outline: none; }
.jha-success__icon { width: 44px; height: 44px; color: var(--jha-accent); }
.jha-success h3 { font-family: Cormorant, Georgia, serif; font-size: 30px; margin: 10px 0 8px; }
.jha-success p { max-width: 520px; margin: 0 auto; color: var(--jha-muted); }

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