/*
Theme Name: Astro Video
Template: space-exploration
Author: Leonid Begelman
Description: Brand-Child-Theme für astro-video — Mitternachtsblau & Gold, Serifen-Display. Arbeitstitel, Branding folgt.
Version: 0.1.1
Requires at least: 6.1
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astro-video
*/

/* Farben und Typografie kommen aus theme.json; hier nur Feinschliff. */

/* Sanftes Scrollen zu Anker-Zielen (z. B. «Oder erfahre mehr …»).
   Mit JS übernimmt functions.php die Animation (langsamer, eigene Kurve). */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

html.av-js-scroll {
	scroll-behavior: auto;
}

[id="mehr"],
[id="horoskop"] {
	scroll-margin-top: 24px;
}

/* Die Dim-/Bild-Ebenen der Cover sind reine Deko — sie dürfen keine Klicks
   schlucken (unsere Hero-Inhalte liegen wegen static inner-container darunter). */
.av-hero > .wp-block-cover__background,
.av-hero > .wp-block-cover__image-background,
.av-l0-hero > .wp-block-cover__background,
.av-l0-hero > .wp-block-cover__image-background,
.av-cta > .wp-block-cover__background,
.av-cta > .wp-block-cover__image-background {
	pointer-events: none;
}

/* Bildausschnitt nach oben: Mond + Lichtspur statt der strukturlosen
   dunklen Wasserflaeche am unteren Bildrand */
.av-cta > .wp-block-cover__image-background {
	object-position: 50% 18%;
}

/* Sticky Footer: auf kurzen Seiten klebt der Footer am unteren Rand,
   damit unter ihm kein andersfarbiger Streifen stehen bleibt. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > footer {
	margin-top: auto;
	margin-block-start: auto; /* sticky */
}

/* Kein Spalt zwischen letzter Sektion und Footer */
.wp-site-blocks > main {
	margin-block-end: 0;
}


.av-eyebrow {
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 0.82rem;
	font-weight: 500;
}

.av-step-number {
	font-family: var(--wp--preset--font-family--cormorant);
	line-height: 1;
}

/* --- «Ein Blick in deinen Sternenroman»: Produktvorschau --- */
.av-peek-row {
	display: flex;
	gap: 48px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

.av-peek-text {
	flex: 1 1 320px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.08rem;
	line-height: 1.75;
}

.av-peek-text p + p {
	margin-top: 1rem;
}

.av-peek-mockup {
	flex: 1 1 360px;
	display: flex;
	justify-content: center;
}

.av-page {
	position: relative;
	width: min(420px, 100%);
	background: linear-gradient(160deg, #FAF6EF 0%, #F1E9DB 100%);
	border-radius: 10px;
	padding: 2.2rem 2rem 5.2rem;
	box-shadow: 0 22px 60px rgba(4, 10, 24, 0.6);
	transform: rotate(-1.2deg);
}

.av-page::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 4px;
	pointer-events: none;
}

.av-page-kap {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #9A711D;
}

.av-page-tit {
	display: block;
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.9rem;
	font-weight: 600;
	color: #1C2B45;
}

.av-page-p {
	margin-top: 1rem;
	font-size: 0.94rem;
	line-height: 1.7;
	color: #34405A;
}

.av-page-p.av-blur {
	filter: blur(3.2px);
	opacity: 0.75;
	user-select: none;
}

.av-page-play {
	position: absolute;
	left: 2rem;
	bottom: 1.6rem;
	display: flex;
	align-items: center;
	gap: 12px;
}

.av-page-play-t {
	font-size: 0.9rem;
	color: #9A711D;
	letter-spacing: 0.04em;
}

/* --- FAQ-Akkordeon (nativ, ohne JS) --- */
.av-faq-list {
	max-width: 780px;
	margin: 2.5rem auto 0;
}

.av-faq-list details {
	border-top: 1px solid rgba(28, 43, 69, 0.14);
	padding: 1.15rem 0;
}

.av-faq-list details:last-child {
	border-bottom: 1px solid rgba(28, 43, 69, 0.14);
}

.av-faq-list summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.3rem;
	font-weight: 600;
	color: #1C2B45;
}

.av-faq-list summary::-webkit-details-marker {
	display: none;
}

.av-faq-list summary::after {
	content: "+";
	flex: none;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.5rem;
	line-height: 1;
	color: #D4A853;
	transition: transform 0.2s ease;
}

.av-faq-list details[open] summary::after {
	content: "–";
}

.av-faq-list details p {
	margin: 0.8rem 0 0;
	line-height: 1.75;
	color: #2A3A55;
}

/* Footer-CTA: eine Hauptaktion, zwei feine Nebenwege */
.av-cta-links {
	margin-top: 1.2rem;
	display: flex;
	justify-content: center;
	gap: 14px;
	font-size: 0.92rem;
}

.av-cta-links a {
	color: rgba(232, 199, 123, 0.9);
	text-decoration: none;
	border-bottom: 1px solid rgba(212, 168, 83, 0.4);
	padding-bottom: 2px;
}

.av-cta-links a:hover {
	color: #F6E7B5;
}

.av-cta-links span {
	color: rgba(255, 255, 255, 0.4);
}

/* --- Druck/PDF: vollständige Texte, echte Farben, kompakter Hero --- */
@media print {
	*,
	*::before,
	*::after {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.av-l0-hero.wp-block-cover,
	.av-hero.wp-block-cover,
	.av-l2-hero.wp-block-cover,
	.av-l3-hero.wp-block-cover {
		min-height: 0 !important;
	}

	.av-l0-hero .wp-block-cover__inner-container,
	.av-hero .wp-block-cover__inner-container,
	.av-l2-hero .wp-block-cover__inner-container,
	.av-l3-hero .wp-block-cover__inner-container {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	/* Fixierte Elemente würden auf jeder Seite erneut gedruckt */
	.av-l2-panel {
		display: none !important;
	}

	.av-mod,
	.av-issue {
		break-inside: avoid;
	}

	.av-l0-hero h1 {
		position: static !important;
		margin-bottom: 2.5rem !important;
	}

	.av-l0-hero .wp-block-cover__inner-container > h2 {
		margin-block-start: 0 !important;
	}

	.av-wheel-mark {
		top: 2% !important;
	}

	/* FAQ vollständig ausklappen */
	.av-faq-list details > p {
		display: block !important;
	}

	.av-faq-list summary::after {
		display: none !important;
	}

	.av-choice,
	.av-trust-card,
	.av-peek-row,
	.av-faq-list details {
		break-inside: avoid;
	}
}

.av-anon {
	margin-top: 2.4rem;
	color: #4A5670;
}

.av-anon::before {
	content: "✦";
	color: #D4A853;
	margin-right: 10px;
}


/* --- Landing 2 (Prognosen & Partnerhoroskop): Hero mit Partnerschafts-Ringen --- */
/* Der Verlauf endet unten exakt auf primary (#0E1B33), damit Hero und
   Auswahl-Sektion wie eine Fläche wirken — keine sichtbare Kante. */
.av-l2-hero.wp-block-cover {
	min-height: min(62vh, 700px) !important;
	background:
		radial-gradient(ellipse 85% 65% at 50% 36%, rgba(38, 63, 99, 0.85) 0%, rgba(14, 27, 51, 0) 72%),
		linear-gradient(180deg, #091223 0%, #0E1B33 100%);
}

.av-l2-hero .wp-block-cover__inner-container {
	position: static;
}

/* Sobald gewählt wurde, rückt der Hero zusammen: die Auswahl darunter kommt
   ins Bild, statt hinter einer Lücke zu warten. */
.av-l2-hero.wp-block-cover {
	transition: min-height 0.45s ease;
}

.av-flow-active .av-l2-hero.wp-block-cover {
	min-height: min(46vh, 520px) !important;
}

@media (prefers-reduced-motion: reduce) {
	.av-l2-hero.wp-block-cover {
		transition: none;
	}
}

/* Dasselbe Zodiak-Rad wie auf L0/L1 — hier als stiller Spiegel der Wahl:
   der Sektor wandert zum gewählten Zeichen, das Glyph leuchtet auf. */
/* Fest im Blickfeld: das Rad bleibt beim Scrollen stehen, solange gewählt wird
   — sonst wandert es aus dem Bild und der aufleuchtende Sektor ist nicht zu sehen.
   Neigung wie auf L1 (Perspektive + rotateX), damit es als Scheibe im Raum liegt. */
body {
	--av-panel-w: min(400px, 29vw);
}

.av-l2-panel {
	position: fixed;
	top: 74px;
	right: 3.5%;
	width: var(--av-panel-w);
	z-index: 3;
	transition: opacity 0.45s ease;
}

.av-l2-panel.is-away {
	opacity: 0;
	pointer-events: none;
}

.av-l2-wheel {
	width: 100%;
	perspective: 950px;
	pointer-events: none;
}

/* Die getroffene Wahl unter dem Rad — groß genug, um sie beim Lesen des
   Horoskops im Blick zu behalten, und jederzeit anklickbar. */
.av-panel-picks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 1.4rem;
}

.av-panel-picks:empty {
	display: none;
}

.av-panel-picks .av-chip {
	width: 100%;
	justify-content: center;
	font-size: 1.2rem;
	padding: 0.85rem 1.4rem;
	background: rgba(11, 20, 40, 0.72);
	border-color: rgba(212, 168, 83, 0.5);
	backdrop-filter: blur(6px);
}

.av-panel-picks .av-chip .lbl {
	font-size: 0.92rem;
}

/* Unter 1500px wird es rechts eng: kleineres Rad, höher gesetzt — so bleibt es
   über den Karten und kein Sektor verschwindet hinter ihnen. */
@media (max-width: 1500px) {
	body {
		--av-panel-w: min(270px, 22vw);
	}

	.av-l2-panel {
		top: 62px;
	}

	.av-panel-picks .av-chip {
		font-size: 1.05rem;
		padding: 0.7rem 1rem;
	}
}

.av-l2-wheel svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	transform: rotate(-6deg) rotateX(56deg);
	filter: drop-shadow(0 20px 26px rgba(8, 14, 28, 0.5));
}

/* Hero-Inhalte und Auswahl-Sektion bekommen einen eigenen Stapelkontext,
   das Panel liegt mit z-index 3 darüber. */
.av-l2-hero .wp-block-cover__inner-container > *,
.av-flowwrap {
	position: relative;
	z-index: 1;
}

.av-w-base {
	opacity: 0.22;
}

/* Deckkraft steuert das JS per Attribut (SVG-Übergänge auf transform/opacity
   verhaken sich in Chrome, wenn der Rahmen keine Frames rendert) — animiert
   wird nur die Drehung des Sektors, und die läuft über den SVG-Transform. */
.av-w-sector {
	transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.av-w-signs text {
	opacity: 0.35;
	transition: opacity 0.4s ease, fill 0.4s ease;
}

.av-w-signs text.is-on {
	opacity: 1;
	fill: #FFF6DE;
}

@media (prefers-reduced-motion: reduce) {
	.av-w-sector,
	.av-w-signs text {
		transition: none;
	}
}

@media (max-width: 900px) {
	.av-l2-panel {
		display: none;
	}
}

/* Vertikale Schritte mittig (L2) */
.av-vsteps-center {
	margin: 2rem auto 0;
}

/* Trust-Karten: feine Goldlinie oben */
.av-trust-card {
	border-top: 1px solid rgba(212, 168, 83, 0.45);
	padding-top: 1.6rem;
}

/* Hero-Zeile (Schritte + Formular) im Seitenraster halten */
.av-hero .wp-block-columns {
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
}

/* Dunkle Conversion-Sektion schließt nahtlos an den Hero an */
.wp-block-post-content > .av-conv {
	margin-block-start: 0;
}

/* Vertikale Schritte im Hero */
.av-vsteps {
	margin-top: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 1.05rem;
	max-width: 34rem;
}

.av-vstep {
	margin: 0;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	color: #FFFFFF;
	font-size: 1.05rem;
	line-height: 1.55;
}

.av-gold {
	color: #D4A853;
}

.av-vstep-n {
	font-family: var(--wp--preset--font-family--cormorant);
	color: #D4A853;
	font-size: 1.5rem;
	line-height: 1.15;
	min-width: 1.4rem;
	text-align: center;
	font-weight: 600;
}

/* --- Conversion-Sektion: Satz als Feldbeschriftung, Belohnungen rechts --- */
/* [hidden] schlaegt die Klasse: sonst bleibt display:flex stehen und das
   Formular verschwindet nicht, wenn das Ergebnis erscheint. */
.av-geb2[hidden] {
	display: none !important;
}

.av-geb2 {
	display: flex;
	gap: 72px;
	align-items: stretch;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 1160px;
	margin-inline: auto;
}

.av-geb-flow {
	flex: 1 1 520px;
	max-width: 660px;
	font-family: var(--wp--preset--font-family--cormorant);
}

.av-flow-lead {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 270px);
	gap: 34px;
	text-align: right;
	font-size: clamp(1.35rem, 1.9vw, 1.75rem);
	color: #E8C77B;
	line-height: 1.5;
}

.av-flow-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 270px);
	align-items: baseline;
	gap: 34px;
	margin: 0.55rem 0;
}

.av-flow-row > span {
	text-align: right;
	font-size: clamp(1.35rem, 1.9vw, 1.75rem);
	color: #E8C77B;
	line-height: 1.5;
	white-space: nowrap;
}

.av-flow-row input {
	width: 100%;
	padding: 0.35rem 0.2rem;
	border: none;
	border-bottom: 1px solid rgba(212, 168, 83, 0.55);
	background: transparent;
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.05rem;
	outline: none;
	color-scheme: dark;
}

.av-flow-row input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.av-flow-row input:focus {
	border-bottom-color: #D4A853;
	background: rgba(255, 255, 255, 0.05);
}

.av-flow-mail {
	margin-top: 1.6rem;
}

.av-flow-action {
	margin-top: 2.2rem;
}

.av-flow-action > div {
	justify-self: center;
	width: max-content;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.av-geb-flow button {
	white-space: nowrap;
	width: max-content;
	border: none;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.9rem 2rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 600;
	background: var(--wp--preset--color--secondary);
	color: #10203B;
}

.av-geb-flow button:hover {
	background: #C89A3F;
}

.av-geb-flow .av-geb-note {
	margin-top: 0.9rem;
	margin-bottom: 0;
	text-align: center;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--inter);
}

.av-rewards {
	flex: 1 1 300px;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1.4rem;
	padding-bottom: 126px; /* Unterkante = "deiner Geburt ein." */
}

@media (max-width: 900px) {
	.av-geb2 {
		gap: 36px;
	}
	.av-flow-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.av-flow-row > span {
		text-align: left;
	}
	.av-flow-lead {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.av-rewards {
		justify-content: flex-start;
		padding-bottom: 0;
	}
}

/* Geburtsdaten-Formular im Hero (UI; Chart-Engine folgt in Phase 1) */
.av-geb-form {
	background: rgba(11, 20, 40, 0.55);
	border: 1px solid rgba(212, 168, 83, 0.45);
	border-radius: 16px;
	padding: 1.6rem 1.7rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	backdrop-filter: blur(6px);
	max-width: 26rem;
	margin-left: auto;
}

.av-geb-form label {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.av-geb-form input {
	padding: 0.7rem 1rem;
	border-radius: 10px;
	border: 1px solid rgba(212, 168, 83, 0.4);
	background: rgba(255, 255, 255, 0.07);
	color: #FFFFFF;
	font-size: 1rem;
	outline: none;
	color-scheme: dark;
}

.av-geb-form input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.av-geb-form input:focus {
	border-color: #D4A853;
	background: rgba(255, 255, 255, 0.12);
}

.av-geb-form button {
	margin-top: 0.4rem;
	border: none;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.9rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	background: var(--wp--preset--color--secondary);
	color: #10203B;
}

.av-geb-form button:hover {
	background: #C89A3F;
}

.av-geb-note {
	margin: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.8rem;
}

@media (max-width: 900px) {
	.av-geb-form {
		margin-left: 0;
		max-width: 100%;
	}
}

.av-hero h1 {
	letter-spacing: 0.01em;
}

.av-trust {
	opacity: 0.75;
}

/* Brand auf dem Hero: Star-Wars-Titel — Schriftzug horizontal, Ebene kippt nach hinten,
   darunter kriecht ein Horoskop-Text wie ein Filmvorspann in die Tiefe */
.av-brand {
	position: absolute;
	top: 7%;
	left: 3%;
	width: clamp(280px, 24vw, 430px);
	perspective: 420px;
	pointer-events: none;
}

.av-brand-plane {
	transform: rotateX(30deg);
	transform-origin: 50% 100%;
}

.av-brand-title {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(2.2rem, 3.2vw, 3.4rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #D4A853;
	text-align: center;
	text-shadow: 0 2px 26px rgba(212, 168, 83, 0.35);
}

.av-brand-crawl {
	margin-top: 0.6rem;
	height: 170px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to top, transparent 0, #000 18%, #000 55%, transparent 100%);
	mask-image: linear-gradient(to top, transparent 0, #000 18%, #000 55%, transparent 100%);
}

.av-brand-crawl strong {
	font-weight: 700;
	font-size: 1.18em;
	color: #F6E7B5;
}

.av-brand-crawl p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	text-align: justify;
	color: rgba(232, 199, 123, 0.78);
	animation: av-crawl 45s linear infinite;
}

@keyframes av-crawl {
	/* startet unten am Maskenrand: taucht sofort auf, kommt aber von unten */
	from { transform: translateY(140px); }
	to { transform: translateY(-110%); }
}

@media (prefers-reduced-motion: reduce) {
	.av-brand-crawl p {
		animation: none;
	}
}

/* Wo der Hero die Marke trägt (L0-Portal, L1-Geburtshoroskop) — Dopplung im Header ausblenden */
body.home .main-header .wp-block-site-title,
body.page-id-4 .main-header .wp-block-site-title {
	display: none;
}

body.home .main-header .wp-block-navigation,
body.page-id-4 .main-header .wp-block-navigation {
	margin-left: auto;
}

/* --- Landing 0: Sternenflug-Hero + drei Türen --- */
.av-l0-hero.wp-block-cover {
	min-height: min(88vh, 920px) !important;
	background: radial-gradient(circle at 50% 42%, #16263D 0%, #0B1428 60%, #070E1D 100%);
}

.av-l0-hero .wp-block-cover__inner-container {
	position: static;
	padding-top: 355px; /* fixiert die Mittelzone (H2 + Karten) unabhängig vom H1 */
}

/* H1 ist aus dem Fluss genommen: bewegt sich unabhängig von der Mittelzone */
.av-l0-hero h1 {
	position: absolute;
	top: 2.5rem;
	left: 24px;
	right: 24px;
	margin: 0;
}

@media (max-width: 900px) {
	.av-l0-hero .wp-block-cover__inner-container {
		padding-top: 300px;
	}
}

#av-stars {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Zodiak-Rad als blasses Wasserzeichen: Textur, kein Blickfang —
   die drei Türen bleiben die einzige Entscheidung auf L0. */
.av-wheel-mark {
	position: absolute;
	top: -9%;
	right: -9%;
	width: min(720px, 58vw);
	transform: rotate(-8deg) rotateX(48deg);
	opacity: 0.2;
	pointer-events: none;
}

.av-wheel-mark svg {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.av-wheel-mark {
		display: none;
	}
}

.av-choices {
	display: flex;
	align-items: stretch;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2.2rem;
	max-width: 1160px;
	margin-inline: auto;
}

.av-choice {
	flex: 1 1 280px;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Produktname mit Icon ÜBER der Karte — fängt den Such-Intent sofort.
   Eine Zeile erzwungen, damit alle Karten auf gleicher Höhe beginnen. */
.av-cc-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.15rem, 1.5vw, 1.45rem);
	font-weight: 600;
	line-height: 1.15;
	color: #E8C77B;
	text-align: center;
}

.av-cc-head svg {
	flex: none;
}

.av-choice-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 1.5rem 1.6rem;
	background: rgba(11, 20, 40, 0.55);
	border: 1px solid rgba(212, 168, 83, 0.45);
	border-radius: 16px;
	text-decoration: none;
	backdrop-filter: blur(6px);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.av-cc-icon {
	width: 44px;
	height: 44px;
}

.av-choice-card:hover {
	transform: translateY(-4px);
	border-color: #D4A853;
	box-shadow: 0 10px 34px rgba(212, 168, 83, 0.22);
}

/* Die Geld-Tür dominiert */
.av-choice:first-child .av-choice-card {
	border-color: rgba(212, 168, 83, 0.9);
	background: rgba(16, 32, 59, 0.72);
	box-shadow: 0 6px 28px rgba(212, 168, 83, 0.16);
}

.av-cc-badge {
	align-self: center;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: #10203B;
	background: #D4A853;
	border-radius: 999px;
	padding: 3px 10px;
}

.av-cc-t {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.35rem;
	font-weight: 600;
	color: #F2E5C4;
	line-height: 1.3;
}

.av-cc-s {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
}

.av-l0-hero .wp-block-buttons {
	margin-block-start: 4.5rem;
}

@media (max-width: 900px) {
	.av-brand {
		width: auto;
		top: 4%;
	}
	.av-brand-plane {
		transform: none;
	}
	.av-brand-crawl {
		display: none;
	}
	.av-brand-title {
		font-size: 1.5rem;
		text-align: left;
	}
}

/* Hero: Zonen statt eines Textblocks — H1 oben, Rest in der Mitte */
.av-hero.wp-block-cover {
	min-height: min(78vh, 880px) !important;
}

.av-hero .wp-block-cover__inner-container {
	padding-top: 7vh;
	padding-bottom: 7vh;
}

.av-hero .wp-block-cover__inner-container > * + * {
	margin-block-start: 1.75rem;
}

.av-hero .wp-block-cover__inner-container > h2 {
	margin-block-start: clamp(2.5rem, 9vh, 6rem);
}

.av-sub {
	max-width: 46rem;
	margin-inline: auto;
}

.av-hero .wp-block-buttons {
	margin-block-start: clamp(3rem, 12vh, 8.5rem);
}

.av-hero .av-trust {
	margin-block-start: 1.4rem;
}

/* --- Zodiak-Rad (Hero, oben rechts): echtes 3D — Scheibe in Perspektive, Rotation in der Scheibenebene --- */

/* Das Rad soll sich am ganzen Hero verankern, nicht am zentrierten Inhaltsblock */
.av-hero .wp-block-cover__inner-container {
	position: static;
}

.av-wheel {
	position: absolute;
	top: -9%;
	right: -3%;
	width: clamp(338px, 39vw, 624px);
	pointer-events: none;
	perspective: 950px;
}

.av-wheel-tilt {
	position: relative;
	transform: rotate(-12deg) rotateX(58deg);
	filter: drop-shadow(0 26px 30px rgba(8, 14, 28, 0.55)) drop-shadow(0 0 26px rgba(212, 168, 83, 0.28));
}

/* Glanzlicht auf der Scheibe (statisch, dreht nicht mit) */
.av-wheel-tilt::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(ellipse at 30% 22%, rgba(246, 231, 181, 0.26), rgba(246, 231, 181, 0) 55%);
}

.av-wheel svg {
	display: block;
	width: 100%;
	height: auto;
}

.av-rot {
	animation: av-spin 90s linear infinite;
	transform-origin: 300px 300px;
}

@keyframes av-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
	.av-wheel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.av-rot { animation: none; }
}

/* --- L2: Interaktiver Horoskop-Wähler (Schritte fixieren sich, nächster öffnet darunter) --- */
.av-l2-hero .av-choices {
	margin-top: 1.8rem;
}

/* Beide Einstiegs-Türen gleichwertig (keine Geld-Tür-Hervorhebung wie auf L0) */
.av-mode-choices .av-choice {
	max-width: 400px;
}

.av-mode-choices .av-choice:first-child .av-choice-card {
	border-color: rgba(212, 168, 83, 0.45);
	background: rgba(11, 20, 40, 0.55);
	box-shadow: none;
}

.av-mode-choices .av-choice-card.is-active {
	border-color: #D4A853;
	background: rgba(16, 32, 59, 0.85);
	box-shadow: 0 6px 28px rgba(212, 168, 83, 0.25);
}

.av-mode-choices.av-mode-done .av-choice-card:not(.is-active) {
	opacity: 0.45;
}

.av-mode-choices.av-mode-done .av-choice-card:not(.is-active):hover {
	opacity: 1;
}

/* Die Fluss-Sektion erscheint erst mit der ersten Wahl (Klasse setzt das JS —
   robuster als :has(), das ältere Browser nicht kennen). */
.av-flowwrap {
	display: none;
}

.av-flowwrap.av-flow-open {
	display: block;
}

/* Der Wähler baut sein Layout selbst — hier gilt border-box, sonst sprengt
   das Innen-Padding die 100 %-Breite (horizontaler Überlauf auf dem Handy). */
.av-flow,
.av-flow * {
	box-sizing: border-box;
}

.av-flow {
	max-width: 980px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 1.4rem 20px 0;
}

.av-step {
	width: 100%;
}

.av-step-block {
	width: 100%;
	background: rgba(11, 20, 40, 0.55);
	border: 1px solid rgba(212, 168, 83, 0.4);
	border-radius: 16px;
	padding: 1.6rem 1.7rem 1.7rem;
}

/* Steht über dem Rahmen und auf der Mittelachse der Seite: die Frage ist der
   Auftrag an die Besucherin, der Rahmen darunter ist die Antwortfläche. */
.av-step-title {
	margin: 0 0 0.9rem;
	text-align: center;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.5rem, 2.2vw, 1.95rem);
	font-weight: 600;
	line-height: 1.2;
	color: #E8C77B;
}

.av-signs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

@media (max-width: 860px) {
	.av-signs {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 560px) {
	.av-signs {
		grid-template-columns: repeat(3, 1fr);
	}
}

.av-sign {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-height: 104px;
	padding: 1.1rem 0.4rem 0.95rem;
	background: transparent;
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 14px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

/* Tierkreiszeichen als Schriftzeichen, nicht als buntes Emoji */
.av-flow .g {
	font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", serif;
	font-variant-emoji: text;
	color: #E8C77B;
}

.av-sign .g {
	font-size: 2.6rem;
	line-height: 1;
}

.av-sign:hover {
	border-color: #D4A853;
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
}

/* Feste Dreier-Spalten: sechs Themen stehen als ruhiges 3x2-Raster,
   drei Zeiträume als eine Zeile — nie ein zerfranster Umbruch. */
.av-pills {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 760px) {
	.av-pills {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.av-pills {
		grid-template-columns: 1fr;
	}
}

.av-pill {
	border: 1px solid rgba(212, 168, 83, 0.55);
	border-radius: 999px;
	padding: 0.9rem 1.4rem;
	background: transparent;
	color: #FFFFFF;
	font-size: 1.05rem;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.av-pill:hover {
	background: #D4A853;
	color: #10203B;
}

/* Fixierte Wahl als Chip — Klick öffnet den Schritt erneut */
.av-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: 100%;
	background: rgba(212, 168, 83, 0.14);
	border: 1px solid rgba(212, 168, 83, 0.55);
	border-radius: 999px;
	padding: 0.7rem 1.7rem;
	color: #F2E5C4;
	font-size: 1.15rem;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.av-chip .lbl {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.98rem;
}

.av-chip .edit {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: underline dotted;
}

.av-chip:hover {
	border-color: #D4A853;
}

.av-chip:hover .edit {
	color: #E8C77B;
}

.av-result {
	text-align: center;
	padding: 2.2rem 1.8rem;
	background: linear-gradient(160deg, rgba(16, 32, 59, 0.9), rgba(11, 20, 40, 0.7));
	border-color: rgba(212, 168, 83, 0.7);
}

.av-result-head {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 600;
	color: #E8C77B;
}

.av-result-text {
	margin: 0 auto 1.5rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.85);
}

.av-result-cta {
	margin: 0;
}

.av-result-reset {
	margin: 1.1rem 0 0;
}

.av-reset {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.9rem;
}

.av-reset:hover {
	color: #E8C77B;
}

@media (max-width: 900px) {
	/* Untereinander gestapelt gleichen sich die Höhen nicht mehr über flex aus —
	   ohne Mindesthöhe stehen die beiden Türen unterschiedlich hoch da. */
	.av-mode-choices .av-choice-card {
		min-height: 190px;
		justify-content: center;
	}

	/* Fingerfreundliche Ziele */
	.av-pill,
	.av-chip {
		min-height: 48px;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.av-chip {
		font-size: 1.05rem;
	}

	.av-sign {
		min-height: 92px;
	}

	.av-sign .g {
		font-size: 2.1rem;
	}

	.av-step-block {
		padding: 1.3rem 1.2rem 1.4rem;
	}
}

/* --- L2: Ausgabe-Layout (Vorschau auf das, was die Content-Maschine liefert) --- */
.av-issue {
	width: 100%;
	background: rgba(11, 20, 40, 0.55);
	border: 1px solid rgba(212, 168, 83, 0.4);
	border-radius: 16px;
	padding: 1.8rem 2rem 2rem;
	text-align: left;
}

/* Beispieltext klar als Beispiel markieren — nie wie eine echte Prognose wirken */
.av-issue-flag {
	margin: 0 0 1.4rem;
	display: inline-block;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	color: #E8C77B;
	background: rgba(212, 168, 83, 0.14);
	border: 1px solid rgba(212, 168, 83, 0.4);
	border-radius: 999px;
	padding: 0.35rem 0.95rem;
}

.av-issue-head {
	margin: 0 0 0.7rem;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.7rem, 2.8vw, 2.3rem);
	font-weight: 600;
	line-height: 1.2;
	color: #E8C77B;
}

.av-issue-lead {
	margin: 0 0 1.6rem;
	font-size: 1.18rem;
	line-height: 1.6;
	color: #FFFFFF;
}

.av-issue-art {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	margin-bottom: 1.6rem;
	border: 1px dashed rgba(212, 168, 83, 0.35);
	border-radius: 12px;
	background: radial-gradient(ellipse at 30% 30%, rgba(38, 63, 99, 0.6), rgba(9, 18, 35, 0.9));
}

.av-issue-art span {
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(232, 199, 123, 0.55);
}

.av-issue-body p {
	margin: 0 0 1rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.86);
}

.av-issue-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 1.8rem;
}

/* Der Film ist angekündigt, nicht klickbar — kein Klick ins Leere */
.av-issue-film {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.7rem 1.3rem;
	border: 1px solid rgba(212, 168, 83, 0.45);
	border-radius: 999px;
	color: rgba(242, 229, 196, 0.75);
	font-size: 0.98rem;
}

.av-issue-film em {
	font-style: normal;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #10203B;
	background: #D4A853;
	border-radius: 999px;
	padding: 2px 8px;
}

@media (max-width: 700px) {
	.av-issue {
		padding: 1.4rem 1.2rem 1.6rem;
	}

	.av-issue-art {
		height: 150px;
	}
}

/* Sobald die Ausgabe steht, wird zweispaltig gelesen: Text links, Rad mit der
   fixierten Wahl rechts. Die Auswahl-Schritte davor bleiben mittig — dort
   brauchen die Zeichen-Raster die volle Breite. */
/* Die Ausgabe bleibt auf der Mittelachse der Seite — wie H1, Türen und
   Auswahl-Raster. Nicht die Spalte weicht dem Panel aus, sondern ihre Breite:
   sie hört vor dem Rad auf, statt sich nach links zu drücken. */
.av-issue {
	max-width: 740px;
	margin-inline: auto;
}

@media (max-width: 1440px) {
	.av-issue {
		max-width: 600px;
	}
}

@media (max-width: 900px) {
	.av-issue {
		max-width: none;
	}
}

/* --- Landing 3 (Akademie) --- */
.av-l3-hero.wp-block-cover {
	min-height: min(58vh, 640px) !important;
	background:
		radial-gradient(ellipse 80% 60% at 50% 34%, rgba(38, 63, 99, 0.8) 0%, rgba(14, 27, 51, 0) 72%),
		linear-gradient(180deg, #091223 0%, #0E1B33 100%);
}

.av-l3-intro {
	max-width: 46rem;
	margin-inline: auto;
	font-size: 1.08rem;
	line-height: 1.75;
	opacity: 0.92;
}

.av-l3-lead {
	max-width: 44rem;
	margin-inline: auto;
	line-height: 1.75;
}

/* Lehrplan: sechs Lektionen als ruhiges 3x2-Raster */
.av-mods {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: 1100px;
	margin: 2.8rem auto 0;
}

@media (max-width: 980px) {
	.av-mods {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.av-mods {
		grid-template-columns: 1fr;
	}
}

.av-mod {
	border-top: 1px solid rgba(212, 168, 83, 0.45);
	padding-top: 1.3rem;
}

.av-mod-nr {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9A711D;
}

.av-mod h3 {
	margin: 0.5rem 0 0.6rem;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.5rem;
	font-weight: 600;
	color: #1C2B45;
}

.av-mod p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
	color: #34405A;
}

/* Hinweiszeile unter den Schritten */
.av-hint {
	margin-top: 2.2rem;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.62);
}

.av-hint a {
	color: #E8C77B;
}

/* Häuser-Diagramm im Akademie-Hero: das Bild der Lektionen, blass wie auf L0 */
.av-houses-mark {
	position: absolute;
	top: 50%;
	right: 2.5%;
	width: min(360px, 26vw);
	transform: translateY(-50%) rotate(-8deg) rotateX(48deg);
	opacity: 0.26;
	pointer-events: none;
}

.av-houses-mark svg {
	display: block;
	width: 100%;
	height: auto;
}

.av-l3-hero .wp-block-cover__inner-container {
	position: static;
}

.av-l3-hero > .wp-block-cover__background {
	pointer-events: none;
}

@media (max-width: 1000px) {
	.av-houses-mark {
		display: none;
	}
}

/* Schritte auf der Akademie-Seite mittig und ohne Flatterrand */
.av-l3-hero ~ .av-conv .av-vsteps-center {
	max-width: 32rem;
}

/* --- L1: Ort-Autocomplete unter dem Eingabefeld --- */
.av-flow-row {
	position: relative;
}

.av-orte {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	background: #10203B;
	border: 1px solid rgba(212, 168, 83, 0.5);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(4, 10, 24, 0.55);
}

.av-orte li {
	padding: 0.65rem 1.1rem;
	color: #FFFFFF;
	font-size: 0.95rem;
	cursor: pointer;
}

.av-orte li:hover {
	background: rgba(212, 168, 83, 0.18);
	color: #F6E7B5;
}

/* --- L1: Warte-Karte, Lese-Fenster, Ergebnis-Karte --- */
.av-karte {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.6rem 2rem;
	text-align: center;
	background: rgba(11, 20, 40, 0.55);
	border: 1px solid rgba(212, 168, 83, 0.4);
	border-radius: 18px;
	scroll-margin-top: 24px;
}

.av-karte-funke {
	display: block;
	font-size: 2.4rem;
	color: #D4A853;
	margin-bottom: 1rem;
	animation: av-pulsieren 2.8s ease-in-out infinite;
}

@keyframes av-pulsieren {
	0%, 100% { opacity: 0.35; transform: scale(0.94); }
	50% { opacity: 1; transform: scale(1.06); }
}

.av-karte-titel {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.35rem, 2.6vw, 1.8rem);
	font-weight: 600;
	color: #E8C77B;
	line-height: 1.3;
	margin-bottom: 1.1rem;
}

.av-karte-zeile {
	min-height: 4.6rem;
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.7;
	transition: opacity 0.5s ease;
}

.av-karte-schritte {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 1.6rem;
}

.av-karte-schritte span {
	width: 44px;
	height: 3px;
	border-radius: 2px;
	background: rgba(212, 168, 83, 0.25);
	transition: background 0.5s ease;
}

.av-karte-schritte span.aktiv {
	background: #D4A853;
}

/* Fertig: das Horoskop bekommt ein Gesicht auf der Seite */
.av-karte-fertig .av-karte-bild {
	width: 100%;
	border-radius: 12px;
	margin-bottom: 1.4rem;
	box-shadow: 0 14px 40px rgba(4, 10, 24, 0.5);
}

.av-karte-name {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 600;
	color: #E8C77B;
	line-height: 1.25;
	margin-bottom: 0.5rem;
}

.av-karte-meta {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	margin-bottom: 1.8rem;
}

.av-karte-knoepfe {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.av-karte-knoepfe .av-oeffnen,
.av-fenster .av-pdf,
.av-karte-knoepfe .av-pdf {
	padding: 0.8rem 1.8rem;
	border: none;
	border-radius: 999px;
	background: #D4A853;
	color: #10203B;
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.av-karte-knoepfe .av-pdf,
.av-fenster .av-pdf {
	background: transparent;
	color: #F2E5C4;
	border: 1px solid rgba(212, 168, 83, 0.6);
}

.av-karte-knoepfe .av-oeffnen:hover { background: #F6E7B5; }

.av-karte-knoepfe .av-pdf:hover,
.av-fenster .av-pdf:hover {
	background: rgba(212, 168, 83, 0.15);
	border-color: #D4A853;
}

.av-karte-knoepfe .av-neu {
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95rem;
	cursor: pointer;
}

.av-karte-knoepfe .av-neu:hover {
	border-color: rgba(255, 255, 255, 0.5);
	color: #FFFFFF;
}

/* Bezahlen statt Warten (volles Netz) oder für jedes weitere Horoskop (9,99 €, Leonid 2026-10-28) */
.av-pause [hidden] { display: none; }

.av-pause {
	margin-top: 1.6rem;
	padding: 1.3rem 1.4rem;
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 14px;
	background: rgba(212, 168, 83, 0.06);
}

.av-pause-zeit {
	color: #F2E5C4;
	font-size: 1.02rem;
	margin: 0 0 1rem;
}

/* Jedes weitere Horoskop: der Preis über dem Bezahlen */
.av-preis-text {
	color: #F2E5C4;
	font-size: 1.02rem;
	line-height: 1.55;
	margin: 0 0 1rem;
}

.av-erinnern-frage {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95rem;
	margin: 0 0 0.8rem;
}

.av-erinnern-zeile {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.av-erinnern-zeile input {
	flex: 1 1 220px;
	max-width: 320px;
	min-width: 0;
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	font-size: 0.95rem;
}

.av-erinnern-zeile input::placeholder { color: rgba(255, 255, 255, 0.45); }

.av-erinnern-zeile input:focus {
	outline: none;
	border-color: #D4A853;
}

.av-erinnern-zeile button {
	padding: 0.75rem 1.6rem;
	border: none;
	border-radius: 999px;
	background: #D4A853;
	color: #10203B;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.av-erinnern-zeile button:hover { background: #F6E7B5; }
.av-erinnern-zeile button:disabled { opacity: 0.6; cursor: default; }

.av-erinnern-klein {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
	margin: 0.8rem 0 0;
}

.av-erinnern-klein a { color: rgba(242, 229, 196, 0.85); }

.av-erinnern-antwort {
	color: #F2E5C4;
	font-size: 0.95rem;
	margin: 0;
}

/* --- Lese-Fenster: die Seite tritt zurück, das Horoskop nach vorn --- */
.av-fenster[hidden] { display: none !important; }

.av-fenster {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3vh 3vw;
}

.av-fenster-schleier {
	position: absolute;
	inset: 0;
	background: rgba(4, 10, 24, 0.82);
	backdrop-filter: blur(4px);
}

.av-fenster-inhalt {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	height: min(94vh, 1200px);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(212, 168, 83, 0.45);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
	background: #0E1B33;
}

.av-fenster-leiste {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0.8rem 1rem 0.8rem 1.4rem;
	background: #0B1428;
	border-bottom: 1px solid rgba(212, 168, 83, 0.28);
}

.av-fenster .av-zu {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: transparent;
	color: #F2E5C4;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.av-fenster .av-zu:hover {
	border-color: #D4A853;
	background: rgba(212, 168, 83, 0.14);
}

.av-fenster iframe {
	flex: 1;
	width: 100%;
	border: 0;
	display: block;
}

/* --- Der Film sitzt oben im Fenster: erst sehen, dann lesen --- */
.av-film {
	position: relative;
	flex: none;
	width: 100%;
	background: #070F22;
	border-bottom: 1px solid rgba(212, 168, 83, 0.28);
	overflow: hidden;
}

/* Erst wenn der Film da ist, bekommt er seine Fläche — vorher nur eine Zeile */
.av-film.av-film-bereit {
	aspect-ratio: 16 / 9;
	max-height: 46vh;
}

.av-film .av-video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: #070F22;
}

.av-film .av-video[hidden] { display: none; }

/* Solange er entsteht: ruhige Zeile statt leerem Kasten */
.av-film-warten {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem 0.9rem;
	padding: 0.7rem 1.2rem;
	text-align: left;
}

.av-film-warten[hidden] { display: none; }

.av-film-funke {
	font-size: 1.1rem;
	color: #D4A853;
	animation: av-pulsieren 2.8s ease-in-out infinite;
}

.av-film-aus .av-film-funke {
	animation: none;
	opacity: 0.4;
}

.av-film-zeile {
	margin: 0;
	max-width: 40rem;
	color: rgba(246, 231, 181, 0.85);
	font-size: 0.98rem;
	line-height: 1.5;
}

.av-film .av-film-neu {
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(212, 168, 83, 0.6);
	background: transparent;
	color: #F2E5C4;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.av-film .av-film-neu:hover {
	border-color: #D4A853;
	background: rgba(212, 168, 83, 0.18);
}

.av-film .av-film-neu[hidden] { display: none; }
.av-film .av-film-neu:disabled { opacity: 0.5; cursor: default; }

/* Vollbild und Ton: eigene Knöpfe, damit sie auch ohne Player-Leiste da sind */
.av-film .av-voll,
.av-film .av-ton {
	position: absolute;
	bottom: 12px;
	border-radius: 999px;
	border: 1px solid rgba(212, 168, 83, 0.6);
	background: rgba(7, 15, 34, 0.72);
	color: #F2E5C4;
	cursor: pointer;
	backdrop-filter: blur(3px);
}

.av-film .av-voll {
	right: 12px;
	width: 42px;
	height: 42px;
	font-size: 1.25rem;
	line-height: 1;
}

.av-film .av-ton {
	left: 12px;
	padding: 0.5rem 1.1rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.av-film .av-voll:hover,
.av-film .av-ton:hover {
	border-color: #D4A853;
	background: rgba(212, 168, 83, 0.22);
}

.av-film .av-voll[hidden],
.av-film .av-ton[hidden] { display: none; }

/* Hintergrund still halten, solange das Fenster offen ist */
body.av-fenster-offen {
	overflow: hidden;
}

@media (max-width: 700px) {
	.av-fenster { padding: 0; }
	.av-fenster-inhalt {
		width: 100%;
		height: 100%;
		border-radius: 0;
		border: 0;
	}
	.av-karte { padding: 2rem 1.2rem; }
}

/* Leiste des Fensters: PDF und Film nebeneinander */
.av-leiste-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Hauptaktion in der Leiste: das Gespräch mit Astrologin oder Astrologe — gefüllt in Gold */
.av-fenster .av-astrologin {
	padding: 0.8rem 1.8rem;
	border: none;
	border-radius: 999px;
	background: #D4A853;
	color: #10203B;
	font-size: 0.98rem;
	font-weight: 600;
	cursor: pointer;
}

.av-fenster .av-astrologin:hover { background: #F6E7B5; }

.av-astrologin-hinweis {
	margin: 0;
	padding: 0.7rem 1.4rem;
	background: rgba(212, 168, 83, 0.14);
	border-bottom: 1px solid rgba(212, 168, 83, 0.28);
	color: #F2E5C4;
	font-size: 0.95rem;
	text-align: center;
}

.av-astrologin-hinweis[hidden] { display: none; }

/* „Gerade ist sehr viel los": kostenlos mit E-Mail nach 24 Stunden — oder gleich für 1,00 € */
.av-sperre-text { line-height: 1.6; }

.av-pause .av-bezahlen,
.av-pause .av-sperre-los {
	padding: 0.75rem 1.6rem;
	border: none;
	border-radius: 999px;
	background: #D4A853;
	color: #10203B;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.av-pause .av-bezahlen:hover,
.av-pause .av-sperre-los:hover { background: #F6E7B5; }

/* Die Hauptaktion der Sperre: sofort für 1,00 € — groß, gold, ganz oben (Leonid 2026-10-22) */
.av-pause .av-bezahlen {
	margin: 0 0 1.3rem;
	padding: 1rem 2.6rem;
	font-size: 1.08rem;
	box-shadow: 0 10px 28px rgba(212, 168, 83, 0.28);
}

.av-pause .av-sperre-los { margin-top: 1rem; }

/* Häkchen „sofort beginnen, Widerrufsrecht erlischt" (§ 356 Abs. 5 BGB) über dem Bezahl-Knopf; erst mit ihm
   geht der Knopf (Leonid 2026-10-28) */
.av-pause .av-verzicht {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	max-width: 470px;
	margin: 0 auto 1rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.85rem;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
}

.av-pause .av-verzicht[hidden] { display: none; }

/* Adresse für die Bestellbestätigung (§ 312f BGB) — nur, solange die Kundin keine hinterlassen hat */
.av-pause .av-zahlung-email {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 470px;
	margin: 0 auto 0.9rem;
	padding: 0.7rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	font-size: 0.95rem;
}

.av-pause .av-zahlung-email[hidden] { display: none; }
.av-pause .av-zahlung-email::placeholder { color: rgba(255, 255, 255, 0.45); }
.av-pause .av-zahlung-email:focus { outline: none; border-color: #D4A853; }

.av-pause .av-verzicht input {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: #D4A853;
	cursor: pointer;
}

.av-pause .av-verzicht a { color: rgba(242, 229, 196, 0.9); }

.av-pause .av-bezahlen:disabled {
	opacity: 0.45;
	box-shadow: none;
	cursor: not-allowed;
}

.av-pause .av-bezahlen:disabled:hover { background: #D4A853; }

/* Fehler beim Bezahlen: rot und gleich unter dem Bezahl-Knopf — sonst übersieht man ihn (Leonid 2026-10-27) */
.av-pause .av-zahlung-fehler {
	max-width: 460px;
	margin: -0.3rem auto 1.2rem;
	padding: 0.7rem 1rem;
	border: 1px solid rgba(239, 83, 80, 0.7);
	border-radius: 10px;
	background: rgba(239, 83, 80, 0.16);
	color: #FFB3AE;
	font-size: 0.95rem;
	font-weight: 600;
}

.av-zahlung-hinweis.av-zahlung-hinweis-fehler {
	padding: 0.6rem 0.8rem;
	border: 1px solid #F1B0AC;
	border-radius: 8px;
	background: #FDECEA;
	color: #B3261E;
	font-weight: 600;
}

/* Kostenlos mit E-Mail ist bei der Sperre nur der Nebenweg: sein Knopf tritt zurück */
.av-pause-sperre .av-erinnern-zeile button {
	background: transparent;
	color: #F2E5C4;
	border: 1px solid rgba(212, 168, 83, 0.6);
}

.av-pause-sperre .av-erinnern-zeile button:hover { background: rgba(212, 168, 83, 0.15); border-color: #D4A853; }

/* Danke nach der Zahlung: über dem Knopf des Formulars oder oben in der Warte-Karte */
.av-danke,
.av-karte-danke {
	color: #E8C77B;
	font-size: 0.98rem;
	margin: 0 0 1rem;
}

.av-karte-danke { text-align: center; }

/* Payment Widget von SumUp: es ist für helle Flächen gebaut — darum ein heller Kasten in der Karte */
.av-pause .av-zahlung {
	margin-top: 1rem;
	padding: 1rem 1rem 0.8rem;
	border-radius: 14px;
	background: #FBF7EE;
	color: #10203B;
	text-align: left;
}

.av-zahlung-hinweis {
	margin: 0.6rem 0 0;
	font-size: 0.92rem;
	color: #10203B;
}

.av-pause .av-zahlung-zurueck {
	display: block;
	margin: 0.6rem auto 0;
	padding: 0.3rem 0.8rem;
	border: none;
	background: none;
	color: #6B5A3A;
	font-size: 0.9rem;
	text-decoration: underline;
	cursor: pointer;
}

/* Kleines Fenster nach „Erinnere mich": bitte die E-Mail-Adresse bestätigen */
.av-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(4, 10, 24, 0.7);
}

.av-modal-box {
	width: 100%;
	max-width: 420px;
	padding: 1.8rem 1.6rem 1.5rem;
	border-radius: 16px;
	border: 1px solid rgba(212, 168, 83, 0.45);
	background: #0E1B33;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
	text-align: center;
}

.av-modal-box h3 {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.5rem;
	color: #E8C77B;
	margin: 0 0 0.8rem;
}

.av-modal-box p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.97rem;
	line-height: 1.6;
	margin: 0 0 1.3rem;
}

.av-modal-box button {
	padding: 0.75rem 2.6rem;
	border: none;
	border-radius: 999px;
	background: #D4A853;
	color: #10203B;
	font-size: 0.98rem;
	font-weight: 600;
	cursor: pointer;
}

.av-modal-box button:hover { background: #F6E7B5; }

/* Symbole für PDF und Film: auf dem Rechner Text, auf dem Telefon nur das Symbol */
.av-fenster .av-symbol { display: none; }

@media (max-width: 700px) {
	.av-fenster-leiste { padding: 0.6rem 0.7rem; gap: 8px; }
	.av-leiste-links { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; align-items: center; gap: 8px; }
	.av-fenster .av-pdf {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 44px;
		height: 44px;
		padding: 0;
	}
	.av-fenster .av-pdf[hidden] { display: none; }
	.av-fenster .av-pdf .av-text { display: none; }
	.av-fenster .av-symbol { display: block; }
	.av-fenster .av-astrologin {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0.55rem 0.9rem;
		font-size: 0.9rem;
		line-height: 1.2;
		white-space: normal;
	}
}

.av-fenster .av-film-laden[hidden],
.av-karte-knoepfe .av-film-laden[hidden] { display: none; }
