/*
 * SEELEY Anfrage - der Abschnitt "Lade uns ein." (Karte B10, Pakete L4, L5).
 * Laedt nur, wo [seeley_anfrage] steht (formular.php). Aussehen: E3 aus
 * doku/recherche/anfrage-entwurf/anfrage-varianten.html. Ohne Skript alle
 * Teile untereinander (L4); anfrage.js setzt .ist-schritte und zeigt sie
 * einzeln (L5, Abschnitt "Die Schritte" unten). Abweichungen von E3 und ihr
 * Grund: doku/14-fahrplan-anfrage.md, Abschnitte L4 und L5.
 *
 * Groessen ueber Container-Einheiten des Abschnitts (cqw). Jede Regel traegt
 * mindestens zwei Klassen und gewinnt ohne Vorrangmarke gegen die Stile des
 * Themes (0,1,0).
 */

.seeley-anfrage {
	--sa-beige: #E1D6A9;
	--sa-hell: #F9F6F1;
	--sa-dunkel: #22291f;
	--sa-leise: rgba(249, 246, 241, .72);
	--sa-linie: rgba(225, 214, 169, .18);
	--sa-kurve: cubic-bezier(.22, .78, .22, 1);
	position: relative;
	box-sizing: border-box;
	background: #262626;
	color: var(--sa-hell);
	font-family: 'Montserrat', sans-serif;
	text-transform: none;
	container-type: inline-size;
	overflow: hidden;
	border-top: 1px solid rgba(242, 235, 208, .08);
}
/* Die Huelle im Template der Startseite (L7): <div class="sa-huelle" hidden>
   um [seeley_anfrage]. Ohne dieses Plugin laedt diese Datei nicht, und hidden
   haelt den rohen Shortcode verborgen; mit ihm zeigt diese Regel den
   Abschnitt - dieselbe Mechanik wie .sm-band (M3bt). */
.sa-huelle[hidden] { display: block; }
.seeley-anfrage *,
.seeley-anfrage *::before,
.seeley-anfrage *::after { box-sizing: border-box; }
/* Der gruene Schein oben rechts - #6F7668 */
.seeley-anfrage::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto auto;
	width: 60cqw;
	aspect-ratio: 1;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(111, 118, 104, .28), transparent 70%);
}
.seeley-anfrage .sa-in { position: relative; max-width: 1920px; margin: 0 auto; padding: clamp(56px, 8cqw, 120px) clamp(1.25rem, 6cqw, 6rem); }
.seeley-anfrage .sa-e3 { max-width: 860px; margin: 0 auto; }

/* Kopf */
.seeley-anfrage .sa-ueber {
	display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px;
	font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sa-beige);
}
.seeley-anfrage .sa-ueber::before { content: ""; width: 28px; height: 1px; background: var(--sa-beige); opacity: .6; }
.seeley-anfrage .sa-titel {
	margin: 0 0 16px; text-align: center; font-family: inherit; font-size: clamp(30px, 4.6cqw, 52px); line-height: 1.12;
	font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--sa-hell);
}
.seeley-anfrage .sa-lead {
	margin: 0 auto; max-width: 46ch; text-align: center; font-size: clamp(15.5px, 1.3cqw, 17.5px); line-height: 1.7;
	font-weight: 300; color: var(--sa-leise);
}
.seeley-anfrage .sa-buehne { margin-top: clamp(32px, 4cqw, 52px); }

/* Die drei Teile - ohne JS untereinander, mit L5 einzeln */
.seeley-anfrage .sa-teil { min-width: 0; margin: 0 0 clamp(28px, 3.4cqw, 44px); padding: 0; border: 0; }
.seeley-anfrage .sa-teil-titel { display: block; margin: 0 0 18px; padding: 0; font-size: clamp(19px, 2cqw, 24px); line-height: 1.3; font-weight: 600; color: var(--sa-hell); }

/* Angebote als Auswahlknoepfe */
.seeley-anfrage .sa-karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6cqw, 22px); }
@container (max-width: 520px) { .seeley-anfrage .sa-karten { grid-template-columns: 1fr; } }
.seeley-anfrage .sa-karte {
	position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: clamp(20px, 2.2cqw, 30px);
	border-radius: 16px; border: 1px solid var(--sa-linie); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
	color: var(--sa-hell); cursor: pointer; transition: transform .35s var(--sa-kurve), border-color .3s, background .3s;
}
/* Das Auswahlfeld liegt unsichtbar ueber der ganzen Karte: Klick, Tastatur und die Meldung "bitte auswaehlen" des Browsers treffen sie. */
.seeley-anfrage .sa-karte input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seeley-anfrage .sa-karte svg { flex: none; width: 30px; height: 30px; stroke: var(--sa-beige); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.seeley-anfrage .sa-karte b { font-size: clamp(16px, 1.35cqw, 19px); font-weight: 600; line-height: 1.3; }
.seeley-anfrage .sa-karte:has(input:checked) { border-color: var(--sa-beige); background: linear-gradient(160deg, rgba(225, 214, 169, .16), rgba(225, 214, 169, .04)); }
.seeley-anfrage .sa-karte:has(input:focus-visible) { outline: 2px solid var(--sa-beige); outline-offset: 3px; }
@media (hover: hover) {
	.seeley-anfrage .sa-karte:hover { transform: translateY(-4px); border-color: rgba(225, 214, 169, .45); }
}

/* Felder */
.seeley-anfrage .sa-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.seeley-anfrage .sa-voll { grid-column: 1 / -1; }
@container (max-width: 620px) { .seeley-anfrage .sa-felder { grid-template-columns: 1fr; } }
.seeley-anfrage .sa-feld label {
	display: block; margin: 0 0 6px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase;
	color: rgba(249, 246, 241, .66);
}
.seeley-anfrage .sa-feld label small { font-size: inherit; font-weight: 400; letter-spacing: inherit; }
.seeley-anfrage .sa-feld input,
.seeley-anfrage .sa-feld textarea {
	display: block; width: 100%; min-height: 46px; margin: 0; padding: 11px 14px; border-radius: 8px;
	border: 1px solid rgba(249, 246, 241, .4); background: rgba(255, 255, 255, .04); color: var(--sa-hell);
	font: 400 15px/1.5 'Montserrat', sans-serif; transition: border-color .2s, background .2s;
}
.seeley-anfrage .sa-feld textarea { min-height: 120px; resize: vertical; }
.seeley-anfrage .sa-feld input::placeholder,
.seeley-anfrage .sa-feld textarea::placeholder { color: rgba(249, 246, 241, .66); opacity: 1; }
.seeley-anfrage .sa-feld input:focus,
.seeley-anfrage .sa-feld textarea:focus { border-color: var(--sa-beige); background: rgba(255, 255, 255, .07); }
.seeley-anfrage .sa-feld input:focus-visible,
.seeley-anfrage .sa-feld textarea:focus-visible { outline: 2px solid var(--sa-beige); outline-offset: 2px; }
.seeley-anfrage .sa-feld.ist-fehler input,
.seeley-anfrage .sa-feld.ist-fehler textarea { border: 2px solid var(--sa-beige); }
.seeley-anfrage .sa-meldung { margin: 6px 0 0; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--sa-beige); }
.seeley-anfrage .sa-teil > .sa-meldung { margin: -8px 0 14px; }

/* Lockfeld: weder sichtbar noch erreichbar */
.seeley-anfrage .sa-lock { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Fehlerliste ueber dem Formular */
.seeley-anfrage .sa-fehler {
	margin: 0 0 clamp(24px, 3cqw, 36px); padding: 16px 20px; border: 1px solid var(--sa-beige); border-radius: 12px;
	background: rgba(225, 214, 169, .08);
}
.seeley-anfrage .sa-fehler-titel { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--sa-hell); }
.seeley-anfrage .sa-fehler ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 14px; line-height: 1.6; }
.seeley-anfrage .sa-fehler a { color: var(--sa-beige); text-decoration: underline; }

/* Hinweis, Fuss, Knopf */
.seeley-anfrage .sa-hinweis { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(249, 246, 241, .66); }
.seeley-anfrage .sa-hinweis a,
.seeley-anfrage .sa-mail a { color: var(--sa-beige); text-decoration: underline; }
.seeley-anfrage .sa-fuss { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px 24px; }
.seeley-anfrage .sa-senden {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin: 0; padding: 0 30px;
	border: 0; border-radius: 999px; background: var(--sa-beige); color: var(--sa-dunkel);
	font: 700 13px/1.2 'Montserrat', sans-serif; letter-spacing: 1px; text-transform: uppercase; text-align: center; text-decoration: none;
	cursor: pointer; transition: transform .25s var(--sa-kurve), box-shadow .25s;
}
@media (hover: hover) {
	.seeley-anfrage .sa-senden:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(225, 214, 169, .22); }
}
.seeley-anfrage .sa-senden:focus-visible,
.seeley-anfrage .sa-hinweis a:focus-visible,
.seeley-anfrage .sa-fehler a:focus-visible,
.seeley-anfrage .sa-mail a:focus-visible { outline: 2px solid var(--sa-beige); outline-offset: 3px; }

/* Nach dem Absenden: Dank */
.seeley-anfrage .sa-danke { text-align: center; padding: clamp(28px, 4cqw, 56px) 12px; }
.seeley-anfrage .sa-danke svg { width: 56px; height: 56px; stroke: var(--sa-beige); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.seeley-anfrage .sa-danke h3,
.seeley-anfrage .sa-rueckfall h3 { margin: 16px 0 8px; font-family: inherit; font-size: clamp(22px, 2.4cqw, 30px); line-height: 1.25; font-weight: 600; color: var(--sa-hell); }
.seeley-anfrage .sa-danke p { margin: 0 auto; max-width: 40ch; color: var(--sa-leise); line-height: 1.7; font-weight: 300; }

/* Nach dem Absenden: Rueckfall, die fertige Mail */
.seeley-anfrage .sa-rueckfall {
	padding: clamp(22px, 3cqw, 44px); border-radius: 18px; border: 1px solid var(--sa-linie); background: rgba(255, 255, 255, .035);
}
.seeley-anfrage .sa-rueckfall h3 { margin-top: 0; }
.seeley-anfrage .sa-rueckfall-text { margin: 0 0 20px; color: var(--sa-leise); line-height: 1.7; font-weight: 300; }
.seeley-anfrage .sa-mail { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.seeley-anfrage .sa-mail dt { font-size: 12px; font-weight: 600; letter-spacing: 1px; line-height: 1.9; text-transform: uppercase; color: rgba(249, 246, 241, .66); }
.seeley-anfrage .sa-mail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.seeley-anfrage .sa-rueckfall .sa-feld { margin: 0 0 20px; }
.seeley-anfrage .sa-rueckfall textarea { min-height: 220px; font-size: 14px; }

/*
 * Die Schritte (L5) - nur mit anfrage.js, das .ist-schritte setzt. Bewegung
 * wie E3: der neue Teil schiebt sich 40 px von der Seite herein (zurueck: von
 * links), Dank und Rueckfall heben sich 18 px. Die Leiste fuellt sich ueber
 * scaleX statt width (gleiches Bild, ohne Layout je Bild).
 */
.seeley-anfrage .sa-schritte-kopf { display: flex; gap: 8px; margin: clamp(32px, 4cqw, 52px) 0 10px; }
.seeley-anfrage .sa-schritte-kopf[hidden],
.seeley-anfrage .sa-formular[hidden],
.seeley-anfrage .sa-teil[hidden] { display: none; }
.seeley-anfrage .sa-schritte-kopf div { flex: 1; min-width: 0; }
.seeley-anfrage .sa-schritte-kopf span { display: block; height: 3px; border-radius: 3px; background: rgba(249, 246, 241, .14); overflow: hidden; }
.seeley-anfrage .sa-schritte-kopf span::after {
	content: ""; display: block; height: 100%; background: var(--sa-beige);
	transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--sa-kurve);
}
.seeley-anfrage .sa-schritte-kopf .ist-fertig span::after,
.seeley-anfrage .sa-schritte-kopf .ist-da span::after { transform: scaleX(1); }
.seeley-anfrage .sa-schritte-kopf small {
	display: block; margin-top: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.4; letter-spacing: 1.2px; text-transform: uppercase;
	color: rgba(249, 246, 241, .66); transition: color .3s;
}
.seeley-anfrage .sa-schritte-kopf .ist-da small { color: var(--sa-beige); }
.seeley-anfrage.ist-schritte .sa-buehne { margin-top: 22px; }
.seeley-anfrage.ist-schritte .sa-teil { margin: 0; }
.seeley-anfrage .sa-teil.ist-rein { animation: sa-rein .55s var(--sa-kurve); }
.seeley-anfrage .sa-teil.ist-rein-z { animation: sa-rein-z .55s var(--sa-kurve); }
.seeley-anfrage .sa-ergebnis .ist-auf { animation: sa-auf .6s var(--sa-kurve); }
@keyframes sa-rein { from { opacity: 0; transform: translateX(40px); } }
@keyframes sa-rein-z { from { opacity: 0; transform: translateX(-40px); } }
@keyframes sa-auf { from { opacity: 0; transform: translateY(18px); } }
@keyframes sa-blende { from { opacity: 0; } }
/* Ueberschriften bekommen den Fokus beim Wechsel (tabindex -1): kein Rahmen, sie sind kein Bedienelement. */
.seeley-anfrage .sa-teil-titel:focus,
.seeley-anfrage .sa-ergebnis h3:focus,
.seeley-anfrage .sa-fehler:focus { outline: none; }
.seeley-anfrage .sa-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.seeley-anfrage .sa-zurueck {
	min-height: 44px; margin: 0; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--sa-leise);
	font: 500 14px/1.2 'Montserrat', sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; transition: color .2s;
}
@media (hover: hover) {
	.seeley-anfrage .sa-zurueck:hover { color: var(--sa-hell); }
}
.seeley-anfrage .sa-senden[aria-disabled="true"] { opacity: .7; cursor: progress; }
.seeley-anfrage .sa-kopieren {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 0 26px;
	border: 1px solid var(--sa-beige); border-radius: 999px; background: transparent; color: var(--sa-beige);
	font: 700 13px/1.2 'Montserrat', sans-serif; letter-spacing: 1px; text-transform: uppercase; text-align: center; cursor: pointer;
}
.seeley-anfrage .sa-zurueck:focus-visible,
.seeley-anfrage .sa-kopieren:focus-visible { outline: 2px solid var(--sa-beige); outline-offset: 3px; }
.seeley-anfrage .sa-kopiert { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--sa-beige); }
.seeley-anfrage .sa-kopiert:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
	/* "Bewegung reduzieren": nur ueberblenden, nichts schiebt sich. */
	.seeley-anfrage .sa-teil.ist-rein,
	.seeley-anfrage .sa-teil.ist-rein-z,
	.seeley-anfrage .sa-ergebnis .ist-auf { animation-name: sa-blende; animation-duration: .3s; }
	.seeley-anfrage .sa-schritte-kopf span::after,
	.seeley-anfrage .sa-schritte-kopf small,
	.seeley-anfrage .sa-zurueck { transition: none; }
	.seeley-anfrage .sa-karte,
	.seeley-anfrage .sa-senden,
	.seeley-anfrage .sa-feld input,
	.seeley-anfrage .sa-feld textarea { transition: none; }
	.seeley-anfrage .sa-karte:hover,
	.seeley-anfrage .sa-senden:hover { transform: none; }
}
