/* my-birth.day Anmeldung – nutzt die Farb-Variablen des Themes, mit Fallbacks */
.rsvp {
	--r-dunkel: var(--dunkel, #1D2418);
	--r-gruen: var(--gruen, #A4D65E);
	--r-label: var(--label, #3F6A12);
	--r-gedaempft: var(--gedaempft, #56604C);
	--r-fokus: var(--fokus, #7FB236);
	--r-rand: var(--input-rand, #CFD5C3);
	--r-input-bg: var(--input-bg, #FAFBF7);
	--r-trenner: var(--trenner, #E4E8DA);
	--r-fehler: var(--fehler, #A3341F);
	--r-hover: var(--hover, #33402A);
	--r-display: var(--font-display, 'Archivo Black', 'Arial Black', sans-serif);
	color: var(--r-dunkel);
}
.rsvp [hidden] { display: none !important; }
.rsvp .visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Schritt 1: Auswahl */
.rsvp__choice { border: 0; margin: 36px 0 0; padding: 0; min-width: 0; }
.rsvp__choice-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px;
}
.rsvp__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rsvp__choice-btn {
	display: flex; align-items: center; justify-content: center; min-height: 100%;
	padding: 22px 24px; border-radius: 18px; border: 2px solid var(--r-dunkel);
	font-size: 20px; font-weight: 700; line-height: 1.3; cursor: pointer; text-align: center;
	background: #fff; color: var(--r-dunkel); transition: background-color .15s;
}
.rsvp__choice-btn:hover { background: #F6F7F1; }
.rsvp__radio:checked + .rsvp__choice-btn--yes { background: var(--r-gruen); }
.rsvp__radio:checked + .rsvp__choice-btn--no { background: var(--r-trenner); }
.rsvp__radio:focus-visible + .rsvp__choice-btn { outline: 3px solid var(--r-dunkel); outline-offset: 3px; }

/* Felder */
.rsvp__body, .rsvp__part { display: grid; gap: 22px; }
.rsvp__body { margin-top: 36px; }
.rsvp__field { display: grid; gap: 8px; align-content: start; }
.rsvp__field label { font-weight: 600; font-size: 16px; line-height: 1.35; }
.rsvp__input {
	width: 100%; padding: 15px 16px; border: 1.5px solid var(--r-rand); border-radius: 12px;
	font-size: 17px; line-height: 1.4; background: var(--r-input-bg); color: var(--r-dunkel);
	outline: none; margin: 0; min-height: 54px; -webkit-appearance: none; appearance: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.rsvp__input::placeholder { color: #6B7361; opacity: 1; }
.rsvp__input:focus { border-color: var(--r-fokus); background: #fff; }
.rsvp__input:focus-visible { box-shadow: 0 0 0 3px rgba(127, 178, 54, .35); }
.rsvp__input[aria-invalid="true"] { border-color: var(--r-fehler); }
textarea.rsvp__input { resize: vertical; min-height: 0; }
.rsvp__input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.rsvp__input[type="date"] { padding: 14px 16px; }
.rsvp__input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.rsvp__row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.rsvp__group { border-top: 1.5px solid var(--r-trenner); padding-top: 22px; display: grid; gap: 16px; }
.rsvp__group-title { font-weight: 700; font-size: 19px; line-height: 1.35; }
.rsvp__hint { margin: 6px 0 0; font-size: 15px; color: var(--r-gedaempft); line-height: 1.45; }
.rsvp__adults { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 16px; }

/* Kinder */
.rsvp__stepper { display: flex; align-items: center; gap: 14px; }
.rsvp__step {
	width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--r-dunkel);
	background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--r-dunkel);
	display: grid; place-items: center; padding: 0; transition: transform .1s;
}
.rsvp__step--plus { background: var(--r-gruen); }
.rsvp__step:active { transform: scale(.94); }
.rsvp__step:focus-visible { outline: 3px solid var(--r-dunkel); outline-offset: 3px; }
.rsvp__step:disabled { opacity: .4; cursor: default; }
.rsvp__count { font-family: var(--r-display); font-size: 32px; line-height: 1; min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.rsvp__ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.rsvp__ages .rsvp__field label { font-size: 15px; }
.rsvp__ages .rsvp__input { padding: 13px 14px; min-height: 50px; }

/* Zimmer */
.rsvp__room { display: flex; gap: 14px; align-items: flex-start; }
.rsvp__room input[type="checkbox"] {
	width: 24px; height: 24px; accent-color: var(--r-fokus); margin: 2px 0 0; flex: none; cursor: pointer;
}
.rsvp__room-title { display: block; font-weight: 700; font-size: 19px; line-height: 1.35; cursor: pointer; }
.rsvp__room-claim { display: block; margin-top: 10px; font-weight: 700; font-size: 16px; color: var(--r-label); }
.rsvp__room-text { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--r-gedaempft); }
.rsvp__room-text a { color: var(--r-label); font-weight: 600; white-space: nowrap; }
.rsvp__room-text a:hover { color: var(--r-dunkel); }
.rsvp__dates {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px; padding-left: 38px;
}

/* Honeypot */
.rsvp__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Absenden */
.rsvp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.rsvp__submit {
	padding: 18px 32px; border-radius: 999px; border: 0; background: var(--r-dunkel); color: var(--r-gruen);
	font-size: 18px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .15s;
}
.rsvp__submit:hover { background: var(--r-hover); }
.rsvp__submit:focus-visible { outline: 3px solid var(--r-dunkel); outline-offset: 3px; }
.rsvp__submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.rsvp__error { color: var(--r-fehler); font-weight: 600; font-size: 15px; line-height: 1.4; }
.rsvp__error:empty { display: none; }

/* Danke */
.rsvp__thanks {
	margin-top: 36px; background: var(--r-gruen); border-radius: 24px; padding: clamp(28px, 4vw, 44px);
}
.rsvp__thanks-title {
	margin: 0; font-family: var(--r-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1;
}
.rsvp__thanks-title:focus { outline: none; }
.rsvp__thanks-text { margin: 12px 0 0; font-size: 19px; line-height: 1.5; }
.rsvp__edit {
	margin-top: 20px; background: transparent; border: 0; padding: 0; font-size: 16px; font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--r-dunkel);
}
.rsvp__edit:focus-visible { outline: 3px solid var(--r-dunkel); outline-offset: 3px; }

@media (max-width: 480px) {
	.rsvp__dates { padding-left: 0; }
}
