/* Beta Site - gemeinsame Basis. Farben/Typo kommen aus der jeweiligen Version (CSS-Variablen). */
@font-face {
	font-family: "Inter Beta";
	src: url("../fonts/inter-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.beta-site { margin: 0; }
.beta-site *, .beta-site *::before, .beta-site *::after { box-sizing: border-box; }
.beta-site img { max-width: 100%; height: auto; display: block; }
.beta-site button { font: inherit; }

.bs-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }
.bs-skip:focus { left: 8px; }

.beta-site :focus-visible { outline: 2px solid var(--bs-focus, #8fa2ff); outline-offset: 3px; border-radius: 4px; }

/* Einblenden nur, wenn JS aktiv und keine reduzierte Bewegung gewünscht */
.bs-reveal--armed { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.bs-reveal--armed.is-in { opacity: 1; transform: none; }

/* Video-Fassade */
.bs-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bs-radius-lg, 20px); overflow: hidden; background: #000; }
.bs-video img { width: 100%; height: 100%; object-fit: cover; }
.bs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bs-video__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--bs-accent, #1329b4); color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .2s ease; }
.bs-video__play:hover { transform: scale(1.06); }
.bs-video__play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.bs-video__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 14px; font-size: 12px; color: rgba(255,255,255,.75); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.bs-video.is-playing img, .bs-video.is-playing .bs-video__play, .bs-video.is-playing .bs-video__note { display: none; }

/* Dialog */
.bs-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--bs-line, rgba(255,255,255,.12)); border-radius: var(--bs-radius-lg, 20px); background: var(--bs-surface, #111); color: var(--bs-text, #eee); font-family: var(--bs-font, "Inter Beta", system-ui, sans-serif); }
.bs-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.bs-dialog-open { overflow: hidden; }
.bs-lead { position: relative; padding: 32px; display: grid; gap: 14px; }
.bs-dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.bs-lead__eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bs-muted, #999); }
.bs-lead__title { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; padding-right: 32px; }
.bs-lead__intro { margin: 0 0 6px; color: var(--bs-muted, #aaa); font-size: 15px; line-height: 1.5; }
.bs-lead__step { display: grid; gap: 14px; }
.bs-field { display: grid; gap: 6px; font-size: 14px; }
.bs-field input { width: 100%; padding: 14px 16px; font-size: 16px; color: inherit; background: var(--bs-input, rgba(255,255,255,.05)); border: 1px solid var(--bs-line, rgba(255,255,255,.14)); border-radius: 12px; }
.bs-field input[aria-invalid="true"] { border-color: #e2584a; }
.bs-field__error { color: #ff8f84; min-height: 0; font-size: 13px; }
.bs-field__error:empty { display: none; }
.bs-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.bs-choices legend { font-size: 14px; margin-bottom: 6px; padding: 0; }
.bs-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--bs-line, rgba(255,255,255,.14)); border-radius: 12px; cursor: pointer; font-size: 15px; }
.bs-choice:has(input:checked) { border-color: var(--bs-accent-2, var(--bs-accent, #4b63ff)); background: var(--bs-input, rgba(255,255,255,.05)); }
.bs-choice input { accent-color: var(--bs-accent-2, var(--bs-accent, #4b63ff)); width: 18px; height: 18px; margin: 0; }
.bs-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.bs-lead__legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--bs-muted, #999); }
.bs-lead__legal a { color: inherit; }
.bs-lead__row { display: flex; gap: 10px; }
.bs-lead__row .bs-btn--primary { flex: 1; }
.bs-lead__status { margin: 0; font-size: 14px; color: var(--bs-muted, #aaa); }
.bs-lead__status:empty { display: none; }
.bs-lead__done h3 { margin: 0; font-size: 22px; }
.bs-lead__done p { margin: 0; color: var(--bs-muted, #aaa); }
[hidden] { display: none !important; }
.bs-progress { display: grid; gap: 6px; font-size: 12px; color: var(--bs-muted, #999); letter-spacing: .04em; }
.bs-progress__track { height: 2px; background: var(--bs-line, rgba(255,255,255,.12)); border-radius: 2px; overflow: hidden; }
.bs-progress__bar { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, .17)); background: var(--bs-accent-2, var(--bs-accent, #4b63ff)); transition: transform .36s cubic-bezier(.22, 1, .36, 1); }
.bs-field__hint { color: var(--bs-muted, #999); font-size: 12.5px; line-height: 1.45; }
.bs-optional { color: var(--bs-muted, #999); font-size: 12px; font-weight: 400; margin-left: 6px; }
.bs-choices--grid { grid-template-columns: 1fr 1fr; }
.bs-choices--grid legend { grid-column: 1 / -1; }
.bs-choices--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-choices--inline legend { width: 100%; }
.bs-choice--pill { padding: 10px 14px; font-size: 14px; }
.bs-choice--check:has(input:checked) { border-color: var(--bs-accent-2, var(--bs-accent, #4b63ff)); }
.bs-done__next { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--bs-line, rgba(255,255,255,.12)); border-radius: 12px; }
.bs-done__next p { margin: 0; color: var(--bs-body, #ccc); font-size: 15px; }
.bs-link-btn { background: none; border: 0; padding: 6px 0; color: var(--bs-muted, #999); text-decoration: underline; cursor: pointer; justify-self: start; }
@media (max-width: 420px) { .bs-choices--grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
	.bs-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: auto; margin: auto auto 0; border-radius: 20px 20px 0 0; }
	.bs-lead { padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); }
	.bs-lead__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.beta-site *, .beta-site *::before, .beta-site *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Schutz: Reste anderer Plugins, deren CSS auf Beta-Site-Seiten nicht geladen wird. XootiX (Login-Popup) lädt seit 0.33.2 sein eigenes CSS und bleibt deshalb sichtbar. */
.beta-site [data-elementor-type="popup"], .beta-site .elementor-location-popup, .beta-site .woocommerce-store-notice { display: none !important; }
a.bs-btn, a.v2-btn, a.v2-tile, a.v2-textlink--btn { text-decoration: none; }

/* Keep focus/anchor destinations clear of the fixed site header. */
.beta-site main[id], .beta-site main [id] { scroll-margin-top: 112px; }
@media (prefers-reduced-motion: reduce) {
	.bs-reveal--armed { opacity: 1 !important; transform: none !important; }
}
