/* ==========================================================================
   Rolling Pure – Anfrage-Assistent & Verfügbarkeitskalender
   ========================================================================== */

.af {
	max-width: 980px; margin: 0 auto; background: var(--weiss);
	border-radius: var(--radius-l); padding: clamp(22px, 4vw, 48px);
	box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .28);
}
.af [hidden] { display: none !important; }
.af__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fortschritt */
.af__steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.af__steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--grau); }
.af__steps li span {
	width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
	background: var(--hell); color: var(--grau); font-size: 14px; font-weight: 700;
	transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.af__steps li em { font-style: normal; }
.af__steps li.is-current { color: var(--ink); }
.af__steps li.is-current span { background: var(--rot); color: #fff; transform: scale(1.08); }
.af__steps li.is-done { cursor: pointer; color: var(--ink); }
.af__steps li.is-done span { background: var(--schiefer); color: #fff; }
.af__bar { height: 4px; border-radius: 4px; background: var(--hell); overflow: hidden; margin-bottom: clamp(24px, 3.5vw, 36px); }
.af__bar i { display: block; height: 100%; width: 0; background: var(--rot); border-radius: 4px; transition: width .5s var(--ease); }

/* Schritte */
.af__form { margin: 0; }
.af__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.af__step.is-entering { animation: rp-in .45s var(--ease) both; }
.af__legend { padding: 0; margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); outline: none; }
.af__sub { margin: -10px 0 18px; color: var(--grau); }
.af__opt { font-weight: 400; color: var(--grau); }

/* Schritt 1: Leistung */
.af__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.af__choice {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px;
	border-radius: 20px; background: var(--hell); border: 2px solid transparent; cursor: pointer;
	transition: border-color .25s, background-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.af__choice:hover { transform: translateY(-2px); background: #eeeef2; }
.af__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af__choice-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--weiss); color: var(--rot); font-size: 21px; margin-bottom: 6px; }
.af__choice-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.af__choice-text { font-size: 14px; color: var(--grau); line-height: 1.4; }
.af__badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 4px; padding: 4px 9px; border-radius: 99px; background: rgba(200, 16, 46, .08); color: var(--rot-ink); font-size: 12px; font-weight: 600; }
.af__tick { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rot); color: #fff; font-size: 15px; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease); }
.af__choice:has(input:checked) { border-color: var(--rot); background: var(--weiss); box-shadow: 0 16px 34px -22px rgba(200, 16, 46, .55); }
.af__choice:has(input:checked) .af__tick { opacity: 1; transform: none; }
.af__choice:has(input:focus-visible) { outline: 2px solid var(--rot); outline-offset: 3px; }
.af__partner { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--hell); font-size: 15px; color: var(--grau); }

/* Schritt 2: Kalender + Angaben */
.af__grid2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3.5vw, 44px); align-items: start; }
.af__grid2--even { grid-template-columns: 1fr 1fr; }

.cal { background: var(--hell); border-radius: 22px; padding: 18px; position: relative; }
.cal.is-loading::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: rgba(245, 245, 247, .6); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__month { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--weiss); font-size: 18px; transition: background-color .2s, opacity .2s; }
.cal__nav:hover { background: #e8e8ed; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__wd, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__wd span { text-align: center; font-size: 12px; font-weight: 600; color: var(--grau); padding: 6px 0; }
.cal__days { row-gap: 4px; }
.cal__day {
	position: relative; aspect-ratio: 1; min-height: 38px; display: grid; place-items: center;
	font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
	border-radius: 12px; transition: background-color .15s, color .15s;
}
.cal__day:not(:disabled):hover { background: var(--weiss); }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--rot); }
.cal__day.is-past { color: #c7c7cc; cursor: default; }
.cal__day.is-booked { color: #a1a1a6; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--rot); text-decoration-thickness: 2px; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(200, 16, 46, .08) 5px 7px); }
.cal__day.is-sel { background: rgba(200, 16, 46, .14); border-radius: 0; color: var(--ink); }
.cal__day.is-start, .cal__day.is-end { background: var(--rot); color: #fff; }
.cal__day.is-start { border-radius: 12px 0 0 12px; }
.cal__day.is-end { border-radius: 0 12px 12px 0; }
.cal__day.is-start.is-end { border-radius: 12px; }
.cal__day.is-sel.is-today::after { background: #fff; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--grau); }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal__sw--free { background: var(--weiss); border: 1px solid var(--line); }
.cal__sw--booked { background: repeating-linear-gradient(135deg, #e8e8ed 0 3px, rgba(200, 16, 46, .35) 3px 5px); }
.cal__sw--sel { background: var(--rot); }

.af__picked { padding: 16px 18px; border-radius: 18px; border: 2px dashed var(--line); margin-bottom: 10px; transition: border-color .3s, background-color .3s; }
.af__picked.is-set { border-style: solid; border-color: var(--rot); background: rgba(200, 16, 46, .04); }
.af__picked-label { display: block; font-size: 13px; font-weight: 600; color: var(--grau); margin-bottom: 4px; }
.af__picked strong { display: block; font-size: 17px; line-height: 1.35; }
.af__reset { margin-top: 8px; font-size: 14px !important; font-weight: 600; color: var(--rot) !important; text-decoration: underline; text-underline-offset: 3px; }
.af__hint { font-size: 14px; color: var(--grau); margin: 0 0 22px; }

/* Felder */
.af__field { margin-bottom: 18px; }
.af__field > label, .af__row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.af__row { display: flex; justify-content: space-between; align-items: baseline; }
.af__row output { font-size: 20px; font-weight: 800; color: var(--rot); font-variant-numeric: tabular-nums; }
.af__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--grau); margin-top: 6px; }
.af input[type="text"], .af input[type="email"], .af input[type="tel"], .af select, .af textarea {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
	border: 1.5px solid var(--line); background: var(--weiss); color: var(--ink);
	font: inherit; font-size: 17px; letter-spacing: -0.01em; transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.af select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.af textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.af input:focus, .af select:focus, .af textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 4px rgba(200, 16, 46, .12); }
.af .range { height: 6px; }

/* Schritt 1: Auswahl-Zähler */
.af__count { margin: 14px 0 0; min-height: 22px; font-size: 15px; font-weight: 600; color: var(--grau); }
.af__count.is-set { color: var(--ink); }
.af__count.is-set::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rot); vertical-align: 2px; }

/* Schritt 3: Wünsche */
.af__chips { display: grid; gap: 20px; margin-bottom: 24px; }
.af__group-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grau); }
.af__chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.af__chip { position: relative; cursor: pointer; animation: rp-in .4s var(--ease) both; animation-delay: calc(var(--j, 0) * 40ms); }
.af__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af__chip span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px;
	border-radius: 999px; background: var(--hell); border: 2px solid transparent;
	font-size: 15px; font-weight: 600; line-height: 1.25; transition: background-color .2s, border-color .2s, color .2s;
}
.af__chip span::before { content: "+"; font-size: 18px; font-weight: 500; color: var(--rot); transition: transform .3s var(--ease); }
.af__chip:hover span { background: #ebebef; }
.af__chip input:checked + span { background: var(--schiefer); color: #fff; }
.af__chip input:checked + span::before { content: "✓"; color: var(--rot-hell); font-size: 15px; }
.af__chip input:focus-visible + span { outline: 2px solid var(--rot); outline-offset: 2px; }
.af__extra { margin: -8px 0 20px; padding: 12px 16px; border-radius: 14px; background: rgba(200, 16, 46, .06); font-size: 15px; }

/* Schritt 4: Kontakt */
.af__summary { background: var(--hell); border-radius: 20px; padding: 20px 22px; }
.af__summary-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grau); }
.af__summary dl { margin: 0; }
.af__summary dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.af__summary dl > div:last-child { border-bottom: 0; }
.af__summary dt { color: var(--grau); }
.af__summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.af__edit { margin-left: 6px; font-size: 13px !important; font-weight: 600; color: var(--rot) !important; text-decoration: underline; text-underline-offset: 2px; }
.af__consent { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--hell); cursor: pointer; font-size: 15px; line-height: 1.45; }
.af__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af__box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid #b8b8bd; background: var(--weiss); display: grid; place-items: center; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.af__box .icon { width: 15px; height: 15px; }
.af__consent input:checked + .af__box { background: var(--rot); border-color: var(--rot); color: #fff; }
.af__consent input:focus-visible + .af__box { outline: 2px solid var(--rot); outline-offset: 2px; }
.af__consent a { text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: 3px; }

/* Navigation & Meldungen */
.af__error { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(200, 16, 46, .08); color: var(--rot-ink); font-weight: 600; font-size: 15px; }
.af__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hell); }
.af__nav [data-back] { margin-right: auto; }
.af__nav .btn.is-busy { opacity: .6; pointer-events: none; }
.af__note { margin: 14px 0 0; font-size: 13px; color: var(--grau); text-align: right; }

.af__done { text-align: center; padding: clamp(20px, 5vw, 48px) 0; outline: none; animation: rp-in .5s var(--ease) both; }
.af__done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--rot); color: #fff; font-size: 36px; box-shadow: 0 16px 36px -14px rgba(200, 16, 46, .7); }
.af__done .lead { max-width: 560px; margin: 0 auto 10px; }

/* Startseite: Anlass → Anfrage */
.occasion__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }

/* Kontaktseite: Online-Anfrage-Karte */
.ccards--4 { grid-template-columns: repeat(4, 1fr); }
.ccard--rot { background: var(--rot); color: #fff; }
.ccard--rot .ccard__icon { background: #fff; color: var(--rot); }
.ccard--rot .ccard__label { color: rgba(255, 255, 255, .8); }
.ccard--rot:hover { background: var(--rot-d); }
@media (max-width: 1000px) { .ccards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ccards--4 { grid-template-columns: 1fr; } }

/* Anfrage-Seite */
.features--3 { grid-template-columns: repeat(3, 1fr); }
.features--3 .feature { background: var(--hell); }
.af-call { text-align: center; margin: 32px 0 0; color: var(--grau); }
.af-call a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: 3px; white-space: nowrap; }
.page-hero .sub-hero__meta .loc__status .dot { background: var(--rot); }
@media (max-width: 900px) { .features--3 { grid-template-columns: 1fr; } }

/* ─── Tablet ─── */
@media (max-width: 900px) {
	.af__choices { grid-template-columns: repeat(2, 1fr); }
	.af__grid2, .af__grid2--even { grid-template-columns: 1fr; }
}

/* ─── Handy ─── */
@media (max-width: 600px) {
	.af { padding: 20px 16px 22px; border-radius: 24px; margin: 0 -6px; }
	.af__steps { gap: 4px; }
	.af__steps li { flex-direction: column; gap: 5px; font-size: 11.5px; text-align: center; }
	.af__steps li span { width: 28px; height: 28px; font-size: 13px; }
	.af__legend { font-size: 23px; margin-bottom: 16px; }

	.af__choices { grid-template-columns: 1fr; gap: 10px; }
	.af__choice { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 14px 44px 14px 14px; align-items: center; }
	.af__choice-icon { grid-row: span 3; margin: 0; align-self: start; }
	.af__choice-text { font-size: 13.5px; }
	.af__badge { margin-top: 4px; justify-self: start; }
	.af__tick { top: 50%; right: 12px; margin-top: -13px; }

	.cal { padding: 12px 10px; margin: 0 -4px; }
	.cal__day { min-height: 0; font-size: 15px; border-radius: 10px; }
	.cal__day.is-start { border-radius: 10px 0 0 10px; }
	.cal__day.is-end { border-radius: 0 10px 10px 0; }
	.cal__day.is-start.is-end { border-radius: 10px; }
	.cal__legend { font-size: 12px; gap: 6px 12px; }

	.af__chip span { min-height: 44px; padding: 9px 15px; font-size: 14.5px; }
	.af__summary { padding: 16px; }
	.af__summary dl > div { grid-template-columns: 1fr; gap: 2px; }
	.af__consent { font-size: 14px; padding: 14px; }

	.af__nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
	.af__nav .btn { justify-content: center; min-width: 0; padding-left: 18px; padding-right: 18px; }
	.af__nav [data-back] { margin-right: 0; padding-left: 16px; padding-right: 18px; }
	.af__nav [data-submit] { white-space: nowrap; font-size: 16px; }
	.af__nav [data-submit] .icon { display: none; }
	.af__nav [data-back][hidden] + .btn, .af__nav [data-back][hidden] ~ [data-submit] { grid-column: 1 / -1; }
	.af__note { text-align: center; }
}
