/* Anfrageformular (Block sonne/anfrage): Formular links, „Ihre Anfrage“ rechts. Farben nur aus theme.json. */
.sonne-anfrageformular {
	--anfrage-feld: 3.25rem;
	--anfrage-leise: color-mix(in srgb, var(--wp--preset--color--licht) 14%, transparent);
	--anfrage-hell: color-mix(in srgb, var(--wp--preset--color--eiche) 86%, var(--wp--preset--color--licht));
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
	margin-block: var(--wp--preset--spacing--60) 0;
	padding-block-start: var(--wp--preset--spacing--50);
	border-block-start: 1px solid var(--wp--custom--linie);
}
.sonne-anfrageformular [hidden] {
	display: none !important;
}
.sonne-anfrageformular .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
/* Ohne Skript: Datumsfeld und Uhrzeitliste; mit Skript: Kalender und Zeitknöpfe. */
.sonne-anfrageformular:not(.ist-js) .sonne-anfrageformular__nur-js,
.sonne-anfrageformular.ist-js .sonne-anfrageformular__ohne-js {
	display: none !important;
}
/* Nur die Felder des gewählten Anliegens (funktioniert auch ohne Skript). */
.sonne-anfrageformular:has(input[name="anliegen"][value="tisch"]:checked) [data-nur="veranstaltung"],
.sonne-anfrageformular:has(input[name="anliegen"][value="veranstaltung"]:checked) [data-nur="tisch"] {
	display: none !important;
}

/* Schritte: Nummern zählen nur sichtbare Schritte (4 oder 5 für „Noch etwas?“). */
.sonne-anfrageformular__form {
	counter-reset: schritt;
	min-width: 0;
}
.sonne-anfrageformular__schritt {
	counter-increment: schritt;
	min-width: 0;
	margin: 0 0 2.5rem;
	padding: 0 0 2.5rem;
	border: 0;
	border-block-end: 1px solid var(--anfrage-leise);
}
.sonne-anfrageformular__schritt > legend {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	margin-bottom: 1.25rem;
	padding: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	line-height: 1.15;
}
.sonne-anfrageformular__schritt > legend::before {
	content: counter(schritt);
	color: var(--wp--preset--color--messing);
	font-size: 0.85em;
	font-style: italic;
}
.sonne-anfrageformular small {
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
	font-weight: 400;
}

/* Schritt 1: Anliegen als zwei Karten. */
.sonne-anfrageformular__anliegen {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.sonne-anfrageformular__anliegen label {
	position: relative;
	display: grid;
	gap: 0.15rem;
	padding: 1.1rem 1.25rem 1.1rem 3.3rem;
	border: 1px solid var(--anfrage-leise);
	background: var(--wp--preset--color--eiche);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}
.sonne-anfrageformular__anliegen input {
	position: absolute;
	top: 1.35rem;
	left: 1.2rem;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__anliegen strong {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.3rem;
	font-weight: 500;
}
.sonne-anfrageformular__anliegen span {
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
}
.sonne-anfrageformular__anliegen label:has(input:checked) {
	border-color: var(--wp--preset--color--messing);
	background: var(--anfrage-hell);
}

/* Schritt 2: Kalender wie eine Seite im Reservierungsbuch, daneben die Zeiten. */
.sonne-anfrageformular__buch {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
}
.sonne-anfrageformular__kalender {
	max-width: 28rem;
	padding: 1.1rem 1.1rem 1.25rem;
	border-top: 3px solid var(--wp--preset--color--messing);
	background: var(--wp--preset--color--eiche);
}
.sonne-anfrageformular__ausweich .sonne-anfrageformular__kalender {
	margin-top: 0.75rem;
}
.sonne-anfrageformular__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.6rem;
}
.sonne-anfrageformular__monat {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.45rem;
	font-style: italic;
}
.sonne-anfrageformular__blaettern {
	width: 44px;
	height: 44px;
	border: 1px solid var(--anfrage-leise);
	background: none;
	color: var(--wp--preset--color--licht);
	font: inherit;
	font-size: 1.2rem;
	cursor: pointer;
}
.sonne-anfrageformular__blaettern:hover:not(:disabled) {
	border-color: var(--wp--preset--color--messing);
	color: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__blaettern:disabled {
	opacity: 0.3;
	cursor: default;
}
.sonne-anfrageformular__raster-tage {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.sonne-anfrageformular__wt {
	padding: 0.2rem 0 0.4rem;
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
	text-align: center;
}
.sonne-anfrageformular__tagknopf {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--licht);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.15rem;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.sonne-anfrageformular__tagknopf:hover:not([aria-disabled="true"]) {
	background: var(--anfrage-hell);
}
.sonne-anfrageformular__tagknopf.ist-leer {
	visibility: hidden;
}
.sonne-anfrageformular__tagknopf.ist-heute::after {
	content: "";
	position: absolute;
	right: 30%;
	bottom: 14%;
	left: 30%;
	height: 1px;
	background: var(--wp--preset--color--gedaempft);
}
.sonne-anfrageformular__tagknopf.ist-sonder::before {
	content: "";
	position: absolute;
	top: 16%;
	right: 18%;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 50%;
	background: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__tagknopf[aria-disabled="true"] {
	color: color-mix(in srgb, var(--wp--preset--color--licht) 32%, transparent);
	cursor: not-allowed;
}
.sonne-anfrageformular__tagknopf.ist-zu {
	background: linear-gradient(to top right, transparent calc(50% - 0.5px), color-mix(in srgb, var(--wp--preset--color--licht) 28%, transparent) 50%, transparent calc(50% + 0.5px));
}
.sonne-anfrageformular__tagknopf[aria-pressed="true"],
.sonne-anfrageformular__tagknopf[aria-pressed="true"]:hover {
	background: var(--wp--preset--color--messing);
	color: var(--wp--preset--color--nacht);
	font-weight: 600;
}
.sonne-anfrageformular__legende {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
}
.sonne-anfrageformular__legende li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}
.sonne-anfrageformular__legende-zu {
	width: 1.1rem;
	height: 1.1rem;
	border: 1px solid var(--anfrage-leise);
	background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--wp--preset--color--gedaempft) 50%, transparent calc(50% + 0.5px));
}
.sonne-anfrageformular__legende-sonder {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__meldung {
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--messing);
	font-size: 16px;
	font-weight: 600;
}
.sonne-anfrageformular__meldung:empty {
	margin: 0;
}

.sonne-anfrageformular__titel {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.35rem;
	line-height: 1.25;
}
.sonne-anfrageformular__fenster {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
}
.sonne-anfrageformular__chips {
	margin: 0;
	padding: 0;
	border: 0;
}
.sonne-anfrageformular__chips [data-chips] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.sonne-anfrageformular__chips label {
	position: relative;
}
.sonne-anfrageformular__chips input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.sonne-anfrageformular__chips span {
	display: grid;
	place-items: center;
	min-width: 4.6rem;
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--anfrage-leise);
	font-variant-numeric: tabular-nums;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.sonne-anfrageformular__chips label:hover span {
	border-color: var(--wp--preset--color--gedaempft);
}
.sonne-anfrageformular__chips input:checked + span {
	border-color: var(--wp--preset--color--messing);
	background: var(--wp--preset--color--messing);
	color: var(--wp--preset--color--nacht);
	font-weight: 600;
}
.sonne-anfrageformular__chips input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--messing);
	outline-offset: 3px;
}

/* Felder: strenges Zweierraster, alle Eingaben gleich hoch und unten bündig. */
.sonne-anfrageformular__raster {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	align-items: end;
}
.sonne-anfrageformular__raeume + .sonne-anfrageformular__raster {
	margin-top: 1.25rem;
}
.sonne-anfrageformular__breit {
	grid-column: 1 / -1;
}
.sonne-anfrageformular__feld {
	display: grid;
	gap: 0.4rem;
	min-width: 0;
}
.sonne-anfrageformular__feld > span,
.sonne-anfrageformular__feld > label {
	font-size: 16px;
	font-weight: 600;
}
.sonne-anfrageformular__feld :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	height: var(--anfrage-feld);
	margin: 0;
	padding: 0 0.9rem;
	border: 1px solid var(--anfrage-leise);
	border-radius: 0;
	background: var(--wp--preset--color--eiche);
	color: var(--wp--preset--color--licht);
	font: inherit;
	font-size: 17px;
	color-scheme: dark;
}
.sonne-anfrageformular__feld textarea {
	height: auto;
	min-height: 8rem;
	padding: 0.75rem 0.9rem;
	resize: vertical;
}
.sonne-anfrageformular__feld select {
	padding-right: 2.5rem;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--wp--preset--color--messing) 50%), linear-gradient(135deg, var(--wp--preset--color--messing) 50%, transparent 50%);
	background-position: calc(100% - 1.2rem) 50%, calc(100% - 0.85rem) 50%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
}
.sonne-anfrageformular__feld :is(input, select, textarea):focus {
	border-color: var(--wp--preset--color--messing);
	outline: none;
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--messing);
}
/* Fehler: Messing-Rahmen und Messing-Text (Rot hätte auf dunklem Grund zu wenig Kontrast). */
.ist-fehler :is(input, select, textarea),
.ist-fehler.sonne-anfrageformular__kalender,
.ist-fehler .sonne-anfrageformular__zaehler {
	border: 2px solid var(--wp--preset--color--messing);
}
.sonne-anfrageformular__fehler {
	color: var(--wp--preset--color--messing);
	font-size: 16px;
	font-weight: 600;
}

.sonne-anfrageformular__zaehler {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: var(--anfrage-feld) 1fr var(--anfrage-feld);
	height: var(--anfrage-feld);
	border: 1px solid var(--anfrage-leise);
	background: var(--wp--preset--color--eiche);
}
.sonne-anfrageformular:not(.ist-js) .sonne-anfrageformular__zaehler {
	grid-template-columns: 1fr;
}
.sonne-anfrageformular__zaehler button {
	border: 0;
	background: none;
	color: var(--wp--preset--color--messing);
	font-size: 1.4rem;
	cursor: pointer;
}
.sonne-anfrageformular__zaehler button:hover:not(:disabled) {
	background: var(--anfrage-hell);
}
.sonne-anfrageformular__zaehler button:disabled {
	opacity: 0.3;
	cursor: default;
}
.sonne-anfrageformular .sonne-anfrageformular__zaehler input {
	height: 100%;
	border: 0;
	border-inline: 1px solid var(--anfrage-leise);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.35rem;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}
.sonne-anfrageformular__zaehler input::-webkit-inner-spin-button,
.sonne-anfrageformular__zaehler input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
.sonne-anfrageformular__gruppe {
	align-self: center;
	margin: 0;
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
}
.sonne-anfrageformular__gruppe label,
.sonne-anfrageformular__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--messing);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Räume als Bildauswahl (nur Feier). */
.sonne-anfrageformular__raeume {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	border: 0;
}
.sonne-anfrageformular__raeume legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
}
.sonne-anfrageformular__raeume label {
	position: relative;
	display: grid;
	align-content: start;
	border: 1px solid var(--anfrage-leise);
	background: var(--wp--preset--color--eiche);
	cursor: pointer;
}
.sonne-anfrageformular__raeume img,
.sonne-anfrageformular__ohne-bild {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: saturate(0.85) brightness(0.85);
	transition: filter 0.2s;
}
.sonne-anfrageformular__ohne-bild {
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--messing);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 2rem;
	font-style: italic;
}
.sonne-anfrageformular__raeume span:not(.sonne-anfrageformular__ohne-bild) {
	padding: 0.55rem 0.7rem;
	font-size: 16px;
	line-height: 1.35;
}
.sonne-anfrageformular__raeume b {
	display: block;
	font-size: 16px;
}
.sonne-anfrageformular__raeume input {
	position: absolute;
	top: 0.55rem;
	left: 0.55rem;
	width: 1.2rem;
	height: 1.2rem;
	margin: 0;
	accent-color: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__raeume label:has(input:checked) {
	border-color: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__raeume label:has(input:checked) img {
	filter: none;
}
/* Belegt (geschlossene Gesellschaft): nicht wählbar, Hinweis unter dem Namen. */
.sonne-anfrageformular__raeume label.ist-belegt {
	cursor: not-allowed;
	border-style: dashed;
}
.sonne-anfrageformular__raeume label.ist-belegt img {
	filter: grayscale(1) brightness(0.55);
}
.sonne-anfrageformular__raeume .sonne-anfrageformular__belegt {
	padding: 0 0.7rem 0.55rem;
	font-size: 16px;
	font-style: italic;
}
.sonne-anfrageformular__raeume label:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--messing);
	outline-offset: 3px;
}

.sonne-anfrageformular__ausweich {
	margin-top: 1.25rem;
}
.sonne-anfrageformular__zustimmung label {
	display: grid;
	grid-template-columns: 1.4rem 1fr;
	gap: 0.75rem;
	align-items: start;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
	cursor: pointer;
}
.sonne-anfrageformular__zustimmung input {
	width: 1.3rem;
	height: 1.3rem;
	margin: 0.2rem 0 0;
	accent-color: var(--wp--preset--color--messing);
}
.sonne-anfrageformular__senden {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	color: var(--wp--preset--color--gedaempft);
	font-size: 16px;
}
.sonne-anfrageformular__senden button {
	min-height: 3.5rem;
	padding: 0.75rem 2rem;
	border: 1px solid var(--wp--preset--color--messing);
	background: var(--wp--preset--color--messing);
	color: var(--wp--preset--color--nacht);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}
.sonne-anfrageformular__senden button:hover {
	border-color: var(--wp--preset--color--licht);
	background: var(--wp--preset--color--licht);
}
.sonne-anfrageformular__senden button[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}
.sonne-anfrageformular__gesamt:not(:empty) {
	margin-top: 1.25rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--wp--preset--color--messing);
	background: var(--wp--preset--color--eiche);
	color: var(--wp--preset--color--licht);
}

/* Rechte Spalte: „Ihre Anfrage“ als heller Zettel, wächst beim Ausfüllen mit. */
.sonne-anfrageformular__zettel {
	position: sticky;
	top: calc(var(--wp--custom--kopf-hoehe, 84px) + 1.5rem);
	padding: 1.6rem 1.6rem 1.4rem;
	background: var(--wp--preset--color--licht);
	color: var(--wp--preset--color--nacht);
}
.sonne-anfrageformular__zettel::before {
	content: "";
	position: absolute;
	inset: auto 0 100% 0;
	height: 10px;
	background: radial-gradient(circle at 5px 10px, var(--wp--preset--color--licht) 5px, transparent 5.5px) 0 0 / 14px 10px repeat-x;
}
.sonne-anfrageformular__zettel h2 {
	margin: 0 0 0.8rem;
	color: var(--wp--preset--color--weinrot);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.15rem;
	font-weight: 500;
}
.sonne-anfrageformular__satz {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.45rem, 2.2vw, 1.85rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.sonne-anfrageformular:not(.ist-js) .sonne-anfrageformular__satz {
	font-size: 1.15rem;
}
.sonne-anfrageformular__luecke {
	border-bottom: 1px dashed color-mix(in srgb, var(--wp--preset--color--nacht) 35%, transparent);
	color: color-mix(in srgb, var(--wp--preset--color--nacht) 62%, transparent);
}
.sonne-anfrageformular__satz.ist-neu {
	animation: sonne-anfrage-tinte 0.5s ease-out;
}
@keyframes sonne-anfrage-tinte {
	from {
		color: var(--wp--preset--color--weinrot);
	}
}
.sonne-anfrageformular__fuss {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--nacht) 15%, transparent);
	color: color-mix(in srgb, var(--wp--preset--color--nacht) 78%, var(--wp--preset--color--licht));
	font-size: 16px;
}
.sonne-anfrageformular__fuss p {
	margin: 0 0 0.35rem;
}
.sonne-anfrageformular__fuss a {
	color: var(--wp--preset--color--weinrot);
	font-weight: 600;
}
.sonne-anfrageformular__fuss .sonne-heute {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--nacht);
	font-weight: 600;
}
.sonne-anfrageformular__fuss .sonne-heute::before {
	content: "";
	flex: none;
	width: 0.55rem;
	height: 0.55rem;
	border: 1px solid var(--wp--preset--color--nacht);
	border-radius: 50%;
}
.sonne-anfrageformular__fuss .sonne-heute.ist-offen::before {
	border-color: var(--wp--preset--color--weinrot);
	background: var(--wp--preset--color--weinrot);
}

/* Nach dem Senden. */
.sonne-anfrageformular__danke {
	padding: 2rem;
	border-top: 3px solid var(--wp--preset--color--messing);
	background: var(--wp--preset--color--eiche);
}
.sonne-anfrageformular__danke h2 {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 400;
}
.sonne-anfrageformular__danke:focus {
	outline: none;
}

@media (max-width: 960px) {
	.sonne-anfrageformular,
	.sonne-anfrageformular__buch {
		grid-template-columns: 1fr;
	}
	.sonne-anfrageformular__zettel {
		position: static;
		order: -1;
	}
}
@media (max-width: 560px) {
	.sonne-anfrageformular__anliegen,
	.sonne-anfrageformular__raster {
		grid-template-columns: 1fr;
	}
	.sonne-anfrageformular__anliegen label {
		padding-block: 0.9rem;
	}
	/* Sieben Tage à 44 px passen auch auf schmale Handys. */
	.sonne-anfrageformular__kalender {
		padding-inline: 0.35rem;
	}
	.sonne-anfrageformular__raster-tage {
		gap: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sonne-anfrageformular * {
		animation-duration: 1ms !important;
		transition-duration: 1ms !important;
	}
}
