/*
 * Viper Story Auto Publisher - Frontend
 *
 * WICHTIG - so ist das hier aufgebaut:
 *
 * Das Formular kennt das Theme NICHT. Statt Theme-Variablen zu erraten,
 * leitet es Flaechen, Linien und Grautoene ueber color-mix() aus
 * currentColor ab - also aus der Textfarbe, die die Seite selbst vorgibt.
 * Auf dunklem Grund entstehen so helle Overlays, auf hellem dunkle. Damit
 * funktioniert es unter sueva, mit wp-dark-mode und in jedem anderen Theme,
 * ohne dass hier etwas nachgepflegt werden muss.
 *
 * Fest ist nur die Akzentfarbe: #ff6644 ist die Akzentfarbe dieser Seite
 * (Menuelinks, Buttons), Hover #d14a2b.
 *
 * Layout: kein 100vw, keine negativen Margins, keine festen Pixelbreiten
 * am aeusseren Container.
 */

.vsap-shell {
    --vsap-accent: #ff6644;
    --vsap-accent-dark: #d14a2b;
    --vsap-danger: #e5534b;

    --vsap-radius: 12px;
    --vsap-gap: 20px;

    width: 100%;
    max-width: 100%;
    margin: 0;

    /*
     * Schrift und Zeilenumbruch explizit: Steht der Shortcode im Editor
     * versehentlich in einem Code-Block, erbt alles darin Monospace und
     * white-space:pre - dann bricht der Text mitten im Wort um. Das wird
     * hier neutralisiert, damit das Formular auch dann sauber aussieht.
     */
    font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.vsap-shell,
.vsap-shell *:not(textarea) {
    white-space: normal;
    font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Das Textfeld braucht seine Umbrueche natuerlich weiterhin. */
.vsap-shell textarea {
    white-space: pre-wrap;
}

.vsap-shell *,
.vsap-shell *::before,
.vsap-shell *::after {
    box-sizing: border-box;
}

/*
 * Muss die Feld-Regeln schlagen: ".vsap-shell .vsap-field" setzt
 * display:flex und wuerde bei gleicher Spezifitaet allein durch die
 * Reihenfolge gewinnen.
 */
.vsap-shell [hidden],
.vsap-shell .vsap-field[hidden],
.vsap-shell .vsap-input[hidden] {
    display: none;
}

/*
 * Notnagel: Steht der Shortcode im Editor versehentlich in einem
 * Code-Block, umschliesst ein <pre><code> das Formular. <pre> bricht
 * Zeilen nicht um - dadurch entsteht eine horizontale Scrollbar, und der
 * Block bringt eigenen Hintergrund, Rahmen und Monospace mit.
 * Diese Regel neutralisiert das fuer genau den Fall.
 */
pre:has(.vsap-shell),
code:has(.vsap-shell) {
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;
    white-space: normal;
    background: none;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.vsap-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* ---------------------------------------------------------------- Felder */

.vsap-shell .vsap-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.vsap-shell .vsap-label {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    color: inherit;
}

.vsap-shell .vsap-required {
    margin-left: 3px;
    color: var(--vsap-accent);
}

.vsap-shell .vsap-hint {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.vsap-shell .vsap-input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 15px 17px;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: inherit;
    background-color: color-mix(in srgb, currentColor 5%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: var(--vsap-radius);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-input {
        background-color: rgba(0, 0, 0, 0.2);
        border-color: color-mix(in srgb, currentColor 18%, transparent);
    }
}

.vsap-shell .vsap-input:hover:not(:focus) {
    border-color: color-mix(in srgb, var(--vsap-accent) 55%, transparent);
}

.vsap-shell .vsap-input:focus {
    outline: none;
    border-color: var(--vsap-accent);
    background-color: color-mix(in srgb, currentColor 8%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--vsap-accent) 16%, transparent);
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-input:focus {
        box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.16);
    }
}

.vsap-shell .vsap-input::placeholder {
    font-family: inherit;
    color: color-mix(in srgb, currentColor 62%, transparent);
    opacity: 0.6;
}

.vsap-shell select.vsap-input {
    padding-right: 46px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%23ff6644' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 9px;
}

html.light-mode .vsap-shell select.vsap-input,
body.light-mode .vsap-shell select.vsap-input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%23ff6644' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vsap-shell select.vsap-input option {
    font-family: inherit;
    font-size: 16px;
    color: #1f2328;
    background: #ffffff;
}

/* ------------------------------------------------------- Fortschritt/Meta */

/* Schlanker Balken statt nackter Zahl - zeigt auf einen Blick, wie weit es ist */
.vsap-shell .vsap-progress {
    height: 3px;
    margin-top: 2px;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 15%, transparent);
    border-radius: 999px;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-progress {
        background: rgba(255, 255, 255, 0.12);
    }
}

.vsap-shell .vsap-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--vsap-accent);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.vsap-shell .vsap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: baseline;
    justify-content: space-between;
}

.vsap-shell .vsap-counter {
    font-family: inherit;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, currentColor 62%, transparent);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.vsap-shell .vsap-counter.is-ok {
    color: var(--vsap-accent);
    font-weight: 600;
}

/* Zusatzblock für die neue Serie */
.vsap-shell .vsap-new-series {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--vsap-accent) 6%, transparent);
    border-left: 3px solid var(--vsap-accent);
    border-radius: 0 var(--vsap-radius-sm) var(--vsap-radius-sm) 0;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-new-series {
        background: rgba(0, 212, 255, 0.06);
    }
}

/* Honeypot: unsichtbar, aber nicht display:none (Bots erkennen das). */
.vsap-shell .vsap-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------- Suche im Select */

.vsap-shell .vsap-search {
    margin-bottom: 8px;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 15.5px;
}

.vsap-shell .vsap-search::-webkit-search-cancel-button {
    cursor: pointer;
}

.vsap-shell .vsap-search__count {
    order: 99;
    font-size: 13.5px;
    color: color-mix(in srgb, currentColor 62%, transparent);
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------- Text/HTML-Schalter */

.vsap-shell .vsap-format {
    display: inline-flex;
    align-self: flex-start;
    gap: 0;
    padding: 4px;
    margin-bottom: 2px;
    background: color-mix(in srgb, currentColor 5%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 999px;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-format {
        background: rgba(0, 0, 0, 0.2);
        border-color: color-mix(in srgb, currentColor 18%, transparent);
    }
}

.vsap-shell .vsap-format__option {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.vsap-shell .vsap-format__option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.vsap-shell .vsap-format__option span {
    padding: 8px 20px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: color-mix(in srgb, currentColor 62%, transparent);
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease;
    pointer-events: none;
}

.vsap-shell .vsap-format__option input:checked + span {
    color: #ffffff;
    background: var(--vsap-accent);
}

.vsap-shell .vsap-format__option input:focus-visible + span {
    outline: 2px solid var(--vsap-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------- Aktionen */

.vsap-shell .vsap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
}

.vsap-shell .vsap-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    /* Weiss fest setzen: Bootstrap gibt Buttons "color: inherit" mit. */
    color: #ffffff;
    background-color: var(--vsap-accent);
    background-image: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-shadow: none;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Auch das Icon und die Beschriftung erben nichts Fremdes. */
.vsap-shell .vsap-submit__label,
.vsap-shell .vsap-submit__icon {
    color: #ffffff;
}

.vsap-shell .vsap-submit:hover:not(:disabled) {
    background-color: var(--vsap-accent-dark);
    transform: translateY(-1px);
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-submit:hover:not(:disabled) {
        box-shadow: 0 10px 26px rgba(0, 212, 255, 0.28);
    }
}

.vsap-shell .vsap-submit:active:not(:disabled) {
    transform: translateY(0);
}

.vsap-shell .vsap-submit:focus-visible {
    outline: 2px solid var(--vsap-accent);
    outline-offset: 3px;
}

.vsap-shell .vsap-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vsap-shell .vsap-submit__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.vsap-shell .vsap-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.vsap-shell .vsap-input[aria-invalid="true"] {
    border-color: var(--vsap-danger);
}

/* ------------------------------------------------------- Dauerhafter Hinweis */

.vsap-shell .vsap-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 28px;
    padding: 16px 18px;
    font-size: 15.5px;
    line-height: 1.6;
    color: inherit;
    background: rgba(229, 83, 75, 0.10);
    border: 1px solid rgba(229, 83, 75, 0.4);
    border-left: 3px solid var(--vsap-danger);
    border-radius: var(--vsap-radius);
}

.vsap-shell .vsap-notice:focus {
    outline: none;
}

.vsap-shell .vsap-notice__icon {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 2px;
    color: var(--vsap-danger);
}

.vsap-shell .vsap-notice__text {
    flex: 1 1 auto;
    min-width: 0;
}

/* ----------------------------------------------------------------- Toasts */

.vsap-toasts {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100% - 44px));
    pointer-events: none;
}

.vsap-toast {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    font-family: 'Raleway', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    color: #ffffff;
    background: #22262f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #37d67a;
    border-radius: var(--vsap-radius, 14px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.vsap-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vsap-toast--success { border-left-color: #37d67a; }
.vsap-toast--error   { border-left-color: #ff5c5c; }

.vsap-toast__icon {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 1px;
}

.vsap-toast--success .vsap-toast__icon { color: #37d67a; }
.vsap-toast--error   .vsap-toast__icon { color: #ff5c5c; }

.vsap-toast__text {
    flex: 1 1 auto;
    min-width: 0;
}

.vsap-toast__link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vsap-toast__link:hover,
.vsap-toast__link:focus {
    color: #ffffff;
    opacity: 0.85;
}

.vsap-toast__close {
    flex: 0 0 auto;
    padding: 0 2px;
    font-size: 20px;
    line-height: 1;
    color: #ffffff;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.vsap-toast__close:hover {
    opacity: 1;
}

.vsap-toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: left center;
    opacity: 0.5;
}

.vsap-toast--success .vsap-toast__bar { background: #37d67a; }
.vsap-toast--error   .vsap-toast__bar { background: #ff5c5c; }

@media (max-width: 600px) {
    .vsap-toasts {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
    .vsap-shell {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .vsap-shell {
        --vsap-gap: 18px;
        font-size: 16.5px;
    }

    .vsap-shell .vsap-input {
        padding: 14px 15px;
    }

    .vsap-shell .vsap-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsap-shell .vsap-input,
    .vsap-shell .vsap-submit,
    .vsap-shell .vsap-progress span,
    .vsap-toast,
    .vsap-toast__bar {
        transition: none;
    }
}

/* ============================================================== Karte ==== */

.vsap-shell .vsap-card {
    /*
     * Bewusst ohne eigenen Rahmen und Hintergrund: Das Theme steckt den
     * Beitrag bereits in eine Box. Eine zweite Karte darin ergaebe den
     * typischen Kasten-im-Kasten-Effekt.
     */
    background: none;
    border: 0;
    border-radius: 0;
}

/* Kopfzeile mit feinem Akzentstrich darunter */
.vsap-shell .vsap-card__head {
    position: relative;
    padding: 0 0 18px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.vsap-shell .vsap-card__head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 84px;
    height: 2px;
    background: var(--vsap-accent);
}

.vsap-shell .vsap-card__heading {
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: inherit;
}

.vsap-shell .vsap-card__sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

/* Zweispaltig ab Tablet: links die kurzen Felder, rechts der Schreibbereich */
/*
 * Kein Nebeneinander von Feldern und Editor: Die Inhaltsspalte dieser Seite
 * ist wegen der Sidebar nur rund 830px breit - zweispaltig blieben fuer den
 * Schreibbereich keine 440px. Die kurzen Felder stehen deshalb kompakt
 * nebeneinander oben, der Editor bekommt darunter die volle Breite.
 */
.vsap-shell .vsap-card__body {
    display: block;
    padding: 22px 0;
}

.vsap-shell .vsap-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
    min-width: 0;
}

.vsap-shell .vsap-side__rule {
    height: 1px;
    margin: 2px 0;
    background: color-mix(in srgb, currentColor 15%, transparent);
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-side__rule {
        background: color-mix(in srgb, currentColor 18%, transparent);
    }
}

.vsap-shell .vsap-main {
    display: block;
    min-width: 0;
}

/* Fusszeile mit Absendeknopf */
.vsap-shell .vsap-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    padding: 20px 0 0;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    background: none;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-card__foot {
        background: rgba(0, 0, 0, 0.16);
        border-top-color: color-mix(in srgb, currentColor 18%, transparent);
    }
}

/* ============================================================= Editor ==== */

/* Eigenstaendiger Schreibbereich statt eines nackten Textfelds */
.vsap-shell .vsap-editor {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 5%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: var(--vsap-radius);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-editor {
        background: rgba(0, 0, 0, 0.2);
        border-color: color-mix(in srgb, currentColor 18%, transparent);
    }
}

/* Rahmen reagiert auf den Fokus im Textfeld - wirkt wie ein Eingabefeld */
.vsap-shell .vsap-editor:focus-within {
    border-color: var(--vsap-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--vsap-accent) 14%, transparent);
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-editor:focus-within {
        box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.14);
    }
}

.vsap-shell .vsap-editor__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.vsap-shell .vsap-editor__label {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

.vsap-shell .vsap-editor__area {
    display: block;
    width: 100%;
    min-height: 320px;
    max-height: 70vh;
    padding: 18px;
    font-family: inherit;
    font-size: 16.5px;
    line-height: 1.8;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    resize: vertical;
    overflow-y: auto;
}

.vsap-shell .vsap-editor__area:focus {
    outline: none;
}

.vsap-shell .vsap-editor__area::placeholder {
    color: color-mix(in srgb, currentColor 62%, transparent);
    opacity: 0.55;
}

.vsap-shell .vsap-editor__foot {
    padding: 0 14px 12px;
}

.vsap-shell .vsap-editor__foot .vsap-progress {
    margin: 0 0 10px;
}

/* Im Editor sitzt der Schalter kompakter als frueher im Feldfluss */
.vsap-shell .vsap-editor__bar .vsap-format {
    margin-bottom: 0;
    padding: 3px;
}

.vsap-shell .vsap-editor__bar .vsap-format__option span {
    padding: 6px 16px;
    font-size: 13.5px;
}

@media (max-width: 600px) {
    .vsap-shell .vsap-card__head,
    .vsap-shell .vsap-card__body,
    .vsap-shell .vsap-card__foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vsap-shell .vsap-card__heading {
        font-size: 21px;
    }

    .vsap-shell .vsap-editor__area {
        min-height: 240px;
        padding: 15px;
    }
}

/*
 * Rueckfallebene fuer Browser ohne color-mix(). Neutrales Grau funktioniert
 * sowohl auf hellem als auch auf dunklem Grund passabel.
 */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-input,
    .vsap-shell .vsap-editor,
    .vsap-shell .vsap-format {
        background-color: rgba(128, 128, 128, 0.12);
        border-color: rgba(128, 128, 128, 0.35);
    }

    .vsap-shell .vsap-hint,
    .vsap-shell .vsap-counter,
    .vsap-shell .vsap-note,
    .vsap-shell .vsap-card__sub,
    .vsap-shell .vsap-search__count {
        opacity: 0.7;
    }

    .vsap-shell .vsap-card__head,
    .vsap-shell .vsap-card__foot,
    .vsap-shell .vsap-side__rule,
    .vsap-shell .vsap-editor__bar {
        border-color: rgba(128, 128, 128, 0.3);
    }
}

/* Ab Tablet stehen die kurzen Felder zu zweit nebeneinander. */
@media (min-width: 620px) {
    .vsap-shell .vsap-side {
        grid-template-columns: 1fr 1fr;
        gap: 18px 20px;
    }

    /* Trennlinie und der Block fuer die neue Serie ueber beide Spalten. */
    .vsap-shell .vsap-side__rule,
    .vsap-shell .vsap-new-series {
        grid-column: 1 / -1;
    }
}

/* ------------------------------------------------------- Nutzerbedingungen */

.vsap-shell .vsap-terms {
    margin-top: 18px;
}

.vsap-shell .vsap-terms__label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    line-height: 1.55;
    cursor: pointer;
}

.vsap-shell .vsap-terms__label input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--vsap-accent);
    cursor: pointer;
}

.vsap-shell .vsap-terms__label a {
    color: var(--vsap-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vsap-shell .vsap-terms__label a:hover,
.vsap-shell .vsap-terms__label a:focus {
    color: var(--vsap-accent-dark);
}

/* Kennzeichnung optionaler Felder */
.vsap-shell .vsap-optional {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 62%, transparent);
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 999px;
    vertical-align: 1px;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .vsap-shell .vsap-optional {
        color: inherit;
        opacity: 0.65;
        background: rgba(128, 128, 128, 0.15);
    }
}
