/* RS Socrato Legung */
.rsl {
	--rsl-nacht: #0d1124;
	--rsl-tief: #141a33;
	--rsl-gold: #c9a54a;
	--rsl-gold-hell: #f3e7c4;
	--rsl-text: #e9e3d3;
	--rsl-leise: #b7b2c5;
	--rsl-rot: #f0a28c;
	position: relative;
	max-width: 980px;
	margin: 2rem auto;
	padding: clamp(22px, 5vw, 48px) clamp(16px, 4vw, 44px);
	background: radial-gradient(ellipse at 50% 0%, #22305e 0%, var(--rsl-tief) 45%, var(--rsl-nacht) 100%);
	border: 1px solid rgba(201, 165, 74, .55);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 0 0 6px rgba(201, 165, 74, .07);
	color: var(--rsl-text);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.6;
	box-sizing: border-box;
	overflow: hidden;
}
.rsl *, .rsl *::before, .rsl *::after { box-sizing: border-box; }
.rsl a { color: var(--rsl-gold); }

.rsl-schritt { display: none; animation: rsl-ein .6s ease both; }
.rsl-schritt.rsl-aktiv { display: block; }
@keyframes rsl-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rsl-ueber { text-align: center; color: var(--rsl-gold); letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .4rem; }
.rsl-titel { text-align: center; color: var(--rsl-gold-hell); font-weight: normal; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 1rem; }
.rsl-intro { text-align: center; max-width: 640px; margin: 0 auto 1.8rem; color: var(--rsl-text); }
.rsl-frage { text-align: center; font-style: italic; color: var(--rsl-gold-hell); margin: 0 auto 1.6rem; max-width: 640px; }
.rsl-hinweis { text-align: center; margin: 1rem auto; max-width: 560px; }

/* Formular */
.rsl-form, .rsl-codeform { max-width: 560px; margin: 0 auto; }
.rsl-feld { display: block; margin-bottom: 1.1rem; }
.rsl-feld > span { display: block; font-size: .95rem; margin-bottom: .35rem; color: var(--rsl-gold-hell); }
.rsl-feld em { color: var(--rsl-leise); font-style: normal; font-size: .85rem; }
.rsl input[type=email], .rsl input[type=date], .rsl textarea, .rsl .rsl-code {
	width: 100%;
	padding: .75rem .9rem;
	background: rgba(9, 12, 28, .7);
	border: 1px solid rgba(201, 165, 74, .45);
	border-radius: 8px;
	color: var(--rsl-text);
	font: inherit;
	font-size: 1rem;
}
.rsl input[type=date] { color-scheme: dark; }
.rsl input:focus, .rsl textarea:focus { outline: 2px solid var(--rsl-gold); outline-offset: 1px; border-color: var(--rsl-gold); }
.rsl textarea { resize: vertical; min-height: 84px; }
.rsl ::placeholder { color: #7f7b93; }
.rsl-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--rsl-leise); margin-bottom: .8rem; cursor: pointer; }
.rsl-check input { margin-top: .3rem; accent-color: var(--rsl-gold); width: 18px; height: 18px; flex: none; }
.rsl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsl .rsl-code { text-align: center; font-size: 2rem; letter-spacing: .5em; padding-left: 1.2rem; margin-bottom: 1rem; }

.rsl-knopf {
	display: block;
	margin: 1.4rem auto .6rem;
	padding: .9rem 2.2rem;
	background: linear-gradient(180deg, #dcbc63, #b48d33);
	color: #141a33 !important;
	border: 0;
	border-radius: 40px;
	font: inherit;
	font-size: 1.05rem;
	letter-spacing: .04em;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	width: fit-content;
	box-shadow: 0 6px 22px rgba(201, 165, 74, .25);
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.rsl-knopf:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(201, 165, 74, .4); }
.rsl-knopf:disabled { opacity: .6; cursor: wait; transform: none; }
.rsl-knopf.rsl-laedt::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .6em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.1em; animation: rsl-dreh .8s linear infinite; }
@keyframes rsl-dreh { to { transform: rotate(360deg); } }
.rsl-link { background: none; border: 0; color: var(--rsl-gold); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.rsl-klein { text-align: center; font-size: .8rem; color: var(--rsl-leise); margin: .4rem 0 0; }
.rsl-fehler { color: var(--rsl-rot); text-align: center; margin: .6rem 0 0; }

/* Karten */
.rsl-legung { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2.4vw, 26px); margin: 0 auto 1.5rem; }
.rsl-karte { margin: 0; width: clamp(118px, 15vw, 150px); text-align: center; animation: rsl-ein .7s ease both; animation-delay: calc(var(--i, 0) * .12s); }
.rsl-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rsl-gold); margin-bottom: .5rem; }
.rsl-flip {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	perspective: 900px;
	transform-style: preserve-3d;
	border-radius: 10px;
}
.rsl-flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; backface-visibility: hidden; transition: transform .9s cubic-bezier(.3, .7, .2, 1), box-shadow .3s; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.rsl-flip .rsl-vorne { transform: rotateY(180deg); }
.rsl-karte:not(.rsl-offen) .rsl-flip:hover .rsl-hinten { box-shadow: 0 0 0 2px var(--rsl-gold), 0 0 28px rgba(201, 165, 74, .55); transform: translateY(-4px); }
.rsl-karte:not(.rsl-offen) .rsl-flip .rsl-hinten { animation: rsl-puls 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .3s); }
@keyframes rsl-puls { 50% { box-shadow: 0 0 0 1px rgba(201, 165, 74, .6), 0 0 22px rgba(201, 165, 74, .35); } }
.rsl-offen .rsl-flip .rsl-hinten { transform: rotateY(-180deg); animation: none; }
.rsl-offen .rsl-flip .rsl-vorne { transform: rotateY(0); }
.rsl-fertig .rsl-flip .rsl-vorne { transform: none; position: static; }
.rsl-fertig .rsl-flip { cursor: default; }
.rsl-name, .rsl-zusatz { opacity: 0; transition: opacity .6s ease .6s; }
.rsl-offen .rsl-name, .rsl-offen .rsl-zusatz { opacity: 1; }
.rsl-name { color: var(--rsl-gold-hell); margin-top: .6rem; font-size: 1.02rem; line-height: 1.25; }
.rsl-zusatz { color: var(--rsl-leise); font-size: .82rem; font-style: italic; line-height: 1.3; }

/* Deutung */
.rsl-deutung { max-width: 680px; margin: 1rem auto 0; border-top: 1px solid rgba(201, 165, 74, .35); padding-top: 1.4rem; }
.rsl-warten { text-align: center; color: var(--rsl-gold-hell); font-style: italic; padding: 1.6rem 0; }
.rsl-stern { display: inline-block; width: 12px; height: 12px; margin-right: .5rem; background: var(--rsl-gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: rsl-dreh 3s linear infinite; vertical-align: -1px; }
.rsl-text { font-size: 1.06rem; }
.rsl-text h3 { color: var(--rsl-gold); font-weight: normal; font-size: 1.3rem; margin: 1.8rem 0 .5rem; letter-spacing: .01em; }
.rsl-text h3:first-child { margin-top: .4rem; }
.rsl-text p { margin: 0 0 1rem; }
.rsl-text strong { color: var(--rsl-gold-hell); font-weight: normal; }
.rsl-text .rsl-mantra { text-align: center; font-style: italic; color: var(--rsl-gold); font-size: 1.25rem; margin: 1.4rem 0; }
.rsl-erscheint > * { animation: rsl-ein .8s ease both; }
.rsl-erscheint > *:nth-child(n+2) { animation-delay: .1s; }
.rsl-erscheint > *:nth-child(n+4) { animation-delay: .2s; }
.rsl-erscheint > *:nth-child(n+8) { animation-delay: .3s; }
.rsl-gesendet, .rsl-weiter { text-align: center; color: var(--rsl-leise); font-size: .92rem; }
.rsl-ergebnis .rsl-weiter .rsl-knopf { margin-top: 2rem; }

@media (max-width: 560px) {
	.rsl { border-radius: 10px; margin: 1rem 0; }
	.rsl-karte { width: calc(50% - 8px); max-width: 170px; }
	.rsl-text { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.rsl *, .rsl *::before, .rsl *::after { animation: none !important; transition: none !important; }
}

/* Stapel vor dem Ziehen */
.rsl-stapel .rsl-flip .rsl-hinten { box-shadow: 2px 2px 0 -1px #0b0f20, 3px 3px 0 0 rgba(201,165,74,.5), 5px 5px 0 -1px #0b0f20, 6px 6px 0 0 rgba(201,165,74,.35), 10px 14px 26px rgba(0,0,0,.5); }
.rsl-tipp { font-size: .78rem; color: #b7b2c5; font-style: italic; margin-top: .7rem; }
.rsl-offen .rsl-tipp { display: none; }
.rsl-stapel .rsl-name, .rsl-stapel .rsl-zusatz { display: none; }
.rsl-faecher-buehne { flex: 0 1 auto; }
.rsl-offen .rsl-name { margin-top: .6rem; }

/* Kartenfaecher (liegt ausserhalb von .rsl, daher feste Farben) */
body.rsl-ohne-scroll { overflow: hidden; }
.rsl-faecher {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: radial-gradient(ellipse at 50% 70%, rgba(34,48,94,.97) 0%, rgba(13,17,36,.98) 70%);
	font-family: Georgia, "Times New Roman", serif; color: #e9e3d3;
	opacity: 0; transition: opacity .35s ease;
	padding: 16px; box-sizing: border-box;
}
.rsl-faecher *, .rsl-faecher *::before, .rsl-faecher *::after { box-sizing: border-box; }
.rsl-faecher.rsl-auf { opacity: 1; }
.rsl-faecher.rsl-weg { opacity: 0; }
.rsl-faecher-kopf { text-align: center; margin-bottom: 2vh; }
.rsl-faecher .rsl-label { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #c9a54a; }
.rsl-faecher-titel { font-size: clamp(1.4rem, 4vw, 2rem); color: #f3e7c4; margin: .3rem 0; }
.rsl-faecher-hinweis { font-size: .92rem; color: #b7b2c5; font-style: italic; }
.rsl-faecher-buehne { position: relative; width: min(94vw, 980px); height: min(58vh, 520px); }
.rsl-fk {
	position: absolute; left: 50%; bottom: var(--unten, 4%);
	width: var(--kw); height: var(--kh); margin-left: calc(var(--kw) / -2);
	padding: 0; border: 0; background: none; cursor: pointer;
	transform-origin: 50% calc(100% + var(--r));
	transform: rotate(0deg) translateY(30px);
	transition: transform .8s cubic-bezier(.25,.8,.25,1) var(--d), opacity .5s ease;
	-webkit-tap-highlight-color: transparent;
}
.rsl-faecher.rsl-auf .rsl-fk { transform: rotate(var(--w)); }
.rsl-fk img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; box-shadow: 0 6px 18px rgba(0,0,0,.55); transition: transform .3s ease, box-shadow .3s ease; }
.rsl-fk:hover img, .rsl-fk:focus-visible img { transform: translateY(-16px); box-shadow: 0 0 0 2px #c9a54a, 0 0 26px rgba(201,165,74,.6); }
.rsl-fk:focus-visible { outline: none; }
.rsl-faecher.rsl-entschieden .rsl-fk:not(.rsl-gewaehlt) { opacity: .18; }
.rsl-fk.rsl-gewaehlt { z-index: 999 !important; }
.rsl-fk.rsl-gewaehlt img { transform: translateY(-46px) scale(1.12); box-shadow: 0 0 0 2px #f3e7c4, 0 0 40px rgba(243,231,196,.75); }
.rsl-faecher-zu { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #c9a54a; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 6px 10px; }
@media (prefers-reduced-motion: reduce) {
	.rsl-fk, .rsl-fk img, .rsl-faecher { transition: none !important; }
}

/* Auswahl des Legesystems */
.rsl fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
.rsl legend { color: var(--rsl-gold-hell); font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.rsl-systeme { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsl-systeme legend { grid-column: 1 / -1; }
.rsl-system { position: relative; cursor: pointer; display: block; }
.rsl-system input { position: absolute; opacity: 0; pointer-events: none; }
.rsl-system-box { display: block; height: 100%; padding: 14px 16px 14px 44px; border: 1px solid rgba(201,165,74,.4); border-radius: 10px; background: rgba(9,12,28,.55); transition: border-color .2s, box-shadow .2s, background .2s; position: relative; }
.rsl-system-box::before { content: ""; position: absolute; left: 14px; top: 17px; width: 18px; height: 18px; border: 1.5px solid var(--rsl-gold); border-radius: 4px; }
.rsl-system input:checked + .rsl-system-box { border-color: var(--rsl-gold); box-shadow: 0 0 0 1px var(--rsl-gold), 0 0 22px rgba(201,165,74,.22); background: rgba(34,48,94,.45); }
.rsl-system input:checked + .rsl-system-box::after { content: ""; position: absolute; left: 20px; top: 19px; width: 6px; height: 11px; border: solid var(--rsl-gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rsl-system input:focus-visible + .rsl-system-box { outline: 2px solid var(--rsl-gold); outline-offset: 2px; }
.rsl-system-box strong { display: block; color: var(--rsl-gold-hell); font-weight: normal; font-size: 1.12rem; margin-bottom: .2rem; }
.rsl-system-box span { display: block; font-size: .86rem; color: var(--rsl-leise); line-height: 1.45; }
.rsl-unter { background: rgba(9,12,28,.4); border: 1px solid rgba(201,165,74,.25) !important; border-radius: 10px; padding: 12px 14px 4px !important; }
.rsl-radio input { border-radius: 50%; }
.rsl-radio strong { color: var(--rsl-gold-hell); font-weight: normal; }
@media (max-width: 560px) { .rsl-systeme { grid-template-columns: 1fr; } }
.rsl [hidden] { display: none !important; }

/* Abo-Hinweis */
.rsl-abo, .rsl-danke { max-width: 560px; margin: -0.6rem auto 1.6rem; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border: 1px solid rgba(201,165,74,.45); border-radius: 10px; background: rgba(9,12,28,.5); font-size: .9rem; }
.rsl-abo-text strong, .rsl-danke strong { display: block; color: var(--rsl-gold-hell); font-weight: normal; font-size: 1rem; }
.rsl-abo-text span, .rsl-danke span { color: var(--rsl-leise); }
.rsl-danke { display: block; border-color: var(--rsl-gold); }
.rsl-abo-knopf { flex: none; border: 1px solid var(--rsl-gold); color: var(--rsl-gold) !important; text-decoration: none; border-radius: 30px; padding: 8px 18px; transition: background .2s, color .2s; }
.rsl-abo-knopf:hover { background: var(--rsl-gold); color: #141a33 !important; }
.rsl-abo-hinweis { text-align: center; }
.rsl-abo { display: block; }
.rsl-plaene { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rsl-plan { display: block; text-align: center; padding: 12px 10px; border: 1px solid rgba(201,165,74,.55); border-radius: 10px; text-decoration: none !important; transition: background .2s, box-shadow .2s; }
.rsl-plan:hover { background: rgba(201,165,74,.12); box-shadow: 0 0 18px rgba(201,165,74,.25); }
.rsl-plan-name { display: block; color: var(--rsl-gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.rsl-plan-preis { display: block; color: var(--rsl-gold-hell); font-size: 1.45rem; margin: 2px 0; }
.rsl-plan-preis small { font-size: .8rem; color: var(--rsl-leise); }
.rsl-plan-info { display: block; color: var(--rsl-leise); font-size: .78rem; }
.rsl-abo-fuss { margin: 10px 0 0; font-size: .78rem; color: var(--rsl-leise); text-align: center; }
.rsl-klein a { color: var(--rsl-leise); }
