
.bs-ebene {
    position: fixed;
    inset: 0;
    z-index: 970;
    display: grid;
    place-items: center;
    padding: 20px;
    background: color-mix(in srgb, var(--buehne-3) 80%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: bsAuf 0.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes bsAuf { from { opacity: 0; } }
.bs-blatt {
    position: relative;
    width: min(440px, 100%);
    padding: 28px 28px 22px;
    border: 1px solid color-mix(in srgb, var(--text-main) 10%, transparent);
    border-radius: 16px;
    background: var(--bg-elevated);
    color: var(--text-main);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
    animation: bsBlatt 0.28s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes bsBlatt { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.bs-zu {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.bs-zu:hover { background: var(--bg-hover); color: var(--text-main); }
.bs-marke { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.bs-marke svg { width: 15px; height: 15px; }
.bs-satz { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.bs-punkte { margin: 0 0 16px; padding: 0 0 0 18px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; }
.bs-hinweis { margin: 0 0 18px; color: var(--text-muted); font-size: 0.82rem; }
.bs-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), filter 0.15s ease;
}
.bs-knopf:active { transform: scale(0.97); }
.bs-knopf:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }
.bs-knopf.is-leise { background: var(--bg-hover); color: var(--text-main); flex: none; }
.bs-knopf:disabled { opacity: 0.5; cursor: wait; }
@media (hover: hover) and (pointer: fine) { .bs-knopf:hover { filter: brightness(1.08); } }
.bs-code { margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--text-main) 8%, transparent); }
.bs-code summary { color: var(--text-muted); font-size: 0.82rem; cursor: pointer; }
.bs-code-form { display: flex; gap: 8px; margin-top: 12px; }
.bs-code-form input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--text-main) 14%, transparent);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-main);
    font-family: var(--font-mono, monospace);
    font-size: 0.86rem;
}
.bs-code-form input:focus { outline: 2px solid var(--primary); outline-offset: 0; }
.bs-meldung { min-height: 1.2em; margin: 8px 0 0; color: var(--text-muted); font-size: 0.8rem; }
.bs-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .bs-ebene, .bs-blatt { animation: none; }
}
